updated swedish translation from peppo
[ardour.git] / libs / taglib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597        echo_test_string="`eval $cmd`" &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="acinclude.m4"
734 ac_default_prefix=/usr/local
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
820 INSTALL_PROGRAM
821 INSTALL_SCRIPT
822 INSTALL_DATA
823 am__isrc
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 CONF_FILES
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 CPP
860 CXX
861 CXXFLAGS
862 ac_ct_CXX
863 CXXDEPMODE
864 am__fastdepCXX_TRUE
865 am__fastdepCXX_FALSE
866 WOVERLOADED_VIRTUAL
867 HAVE_GCC_VISIBILITY
868 unsermake_enable_pch_TRUE
869 unsermake_enable_pch_FALSE
870 USE_EXCEPTIONS
871 USE_RTTI
872 CXXCPP
873 NOOPT_CXXFLAGS
874 NOOPT_CFLAGS
875 ENABLE_PERMISSIVE_FLAG
876 LDFLAGS_AS_NEEDED
877 LDFLAGS_NEW_DTAGS
878 KDE_USE_FINAL_TRUE
879 KDE_USE_FINAL_FALSE
880 KDE_USE_CLOSURE_TRUE
881 KDE_USE_CLOSURE_FALSE
882 KDE_NO_UNDEFINED
883 KDE_USE_NMCHECK_TRUE
884 KDE_USE_NMCHECK_FALSE
885 GREP
886 EGREP
887 LN_S
888 ECHO
889 AR
890 RANLIB
891 F77
892 FFLAGS
893 ac_ct_F77
894 LIBTOOL
895 KDE_PLUGIN
896 KDE_CHECK_PLUGIN
897 all_includes
898 all_libraries
899 AUTODIRS
900 link_zlib_TRUE
901 link_zlib_FALSE
902 build_tests_TRUE
903 build_tests_FALSE
904 TOPSUBDIRS
905 LIBOBJS
906 LTLIBOBJS'
907 ac_subst_files=''
908       ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
916 CPP
917 CXX
918 CXXFLAGS
919 CCC
920 CXXCPP
921 F77
922 FFLAGS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975   # If the previous option needs an argument, assign it.
976   if test -n "$ac_prev"; then
977     eval $ac_prev=\$ac_option
978     ac_prev=
979     continue
980   fi
981
982   case $ac_option in
983   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984   *)    ac_optarg=yes ;;
985   esac
986
987   # Accept the important Cygnus configure options, so we can diagnose typos.
988
989   case $ac_dashdash$ac_option in
990   --)
991     ac_dashdash=yes ;;
992
993   -bindir | --bindir | --bindi | --bind | --bin | --bi)
994     ac_prev=bindir ;;
995   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996     bindir=$ac_optarg ;;
997
998   -build | --build | --buil | --bui | --bu)
999     ac_prev=build_alias ;;
1000   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001     build_alias=$ac_optarg ;;
1002
1003   -cache-file | --cache-file | --cache-fil | --cache-fi \
1004   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005     ac_prev=cache_file ;;
1006   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008     cache_file=$ac_optarg ;;
1009
1010   --config-cache | -C)
1011     cache_file=config.cache ;;
1012
1013   -datadir | --datadir | --datadi | --datad)
1014     ac_prev=datadir ;;
1015   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016     datadir=$ac_optarg ;;
1017
1018   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019   | --dataroo | --dataro | --datar)
1020     ac_prev=datarootdir ;;
1021   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023     datarootdir=$ac_optarg ;;
1024
1025   -disable-* | --disable-*)
1026     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030    { (exit 1); exit 1; }; }
1031     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032     eval enable_$ac_feature=no ;;
1033
1034   -docdir | --docdir | --docdi | --doc | --do)
1035     ac_prev=docdir ;;
1036   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037     docdir=$ac_optarg ;;
1038
1039   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040     ac_prev=dvidir ;;
1041   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042     dvidir=$ac_optarg ;;
1043
1044   -enable-* | --enable-*)
1045     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049    { (exit 1); exit 1; }; }
1050     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051     eval enable_$ac_feature=\$ac_optarg ;;
1052
1053   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055   | --exec | --exe | --ex)
1056     ac_prev=exec_prefix ;;
1057   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059   | --exec=* | --exe=* | --ex=*)
1060     exec_prefix=$ac_optarg ;;
1061
1062   -gas | --gas | --ga | --g)
1063     # Obsolete; use --with-gas.
1064     with_gas=yes ;;
1065
1066   -help | --help | --hel | --he | -h)
1067     ac_init_help=long ;;
1068   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069     ac_init_help=recursive ;;
1070   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071     ac_init_help=short ;;
1072
1073   -host | --host | --hos | --ho)
1074     ac_prev=host_alias ;;
1075   -host=* | --host=* | --hos=* | --ho=*)
1076     host_alias=$ac_optarg ;;
1077
1078   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079     ac_prev=htmldir ;;
1080   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081   | --ht=*)
1082     htmldir=$ac_optarg ;;
1083
1084   -includedir | --includedir | --includedi | --included | --include \
1085   | --includ | --inclu | --incl | --inc)
1086     ac_prev=includedir ;;
1087   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088   | --includ=* | --inclu=* | --incl=* | --inc=*)
1089     includedir=$ac_optarg ;;
1090
1091   -infodir | --infodir | --infodi | --infod | --info | --inf)
1092     ac_prev=infodir ;;
1093   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094     infodir=$ac_optarg ;;
1095
1096   -libdir | --libdir | --libdi | --libd)
1097     ac_prev=libdir ;;
1098   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099     libdir=$ac_optarg ;;
1100
1101   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102   | --libexe | --libex | --libe)
1103     ac_prev=libexecdir ;;
1104   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105   | --libexe=* | --libex=* | --libe=*)
1106     libexecdir=$ac_optarg ;;
1107
1108   -localedir | --localedir | --localedi | --localed | --locale)
1109     ac_prev=localedir ;;
1110   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111     localedir=$ac_optarg ;;
1112
1113   -localstatedir | --localstatedir | --localstatedi | --localstated \
1114   | --localstate | --localstat | --localsta | --localst | --locals)
1115     ac_prev=localstatedir ;;
1116   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118     localstatedir=$ac_optarg ;;
1119
1120   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121     ac_prev=mandir ;;
1122   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123     mandir=$ac_optarg ;;
1124
1125   -nfp | --nfp | --nf)
1126     # Obsolete; use --without-fp.
1127     with_fp=no ;;
1128
1129   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130   | --no-cr | --no-c | -n)
1131     no_create=yes ;;
1132
1133   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135     no_recursion=yes ;;
1136
1137   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139   | --oldin | --oldi | --old | --ol | --o)
1140     ac_prev=oldincludedir ;;
1141   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144     oldincludedir=$ac_optarg ;;
1145
1146   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147     ac_prev=prefix ;;
1148   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149     prefix=$ac_optarg ;;
1150
1151   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152   | --program-pre | --program-pr | --program-p)
1153     ac_prev=program_prefix ;;
1154   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156     program_prefix=$ac_optarg ;;
1157
1158   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159   | --program-suf | --program-su | --program-s)
1160     ac_prev=program_suffix ;;
1161   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163     program_suffix=$ac_optarg ;;
1164
1165   -program-transform-name | --program-transform-name \
1166   | --program-transform-nam | --program-transform-na \
1167   | --program-transform-n | --program-transform- \
1168   | --program-transform | --program-transfor \
1169   | --program-transfo | --program-transf \
1170   | --program-trans | --program-tran \
1171   | --progr-tra | --program-tr | --program-t)
1172     ac_prev=program_transform_name ;;
1173   -program-transform-name=* | --program-transform-name=* \
1174   | --program-transform-nam=* | --program-transform-na=* \
1175   | --program-transform-n=* | --program-transform-=* \
1176   | --program-transform=* | --program-transfor=* \
1177   | --program-transfo=* | --program-transf=* \
1178   | --program-trans=* | --program-tran=* \
1179   | --progr-tra=* | --program-tr=* | --program-t=*)
1180     program_transform_name=$ac_optarg ;;
1181
1182   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183     ac_prev=pdfdir ;;
1184   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185     pdfdir=$ac_optarg ;;
1186
1187   -psdir | --psdir | --psdi | --psd | --ps)
1188     ac_prev=psdir ;;
1189   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190     psdir=$ac_optarg ;;
1191
1192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193   | -silent | --silent | --silen | --sile | --sil)
1194     silent=yes ;;
1195
1196   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197     ac_prev=sbindir ;;
1198   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199   | --sbi=* | --sb=*)
1200     sbindir=$ac_optarg ;;
1201
1202   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204   | --sharedst | --shareds | --shared | --share | --shar \
1205   | --sha | --sh)
1206     ac_prev=sharedstatedir ;;
1207   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210   | --sha=* | --sh=*)
1211     sharedstatedir=$ac_optarg ;;
1212
1213   -site | --site | --sit)
1214     ac_prev=site ;;
1215   -site=* | --site=* | --sit=*)
1216     site=$ac_optarg ;;
1217
1218   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219     ac_prev=srcdir ;;
1220   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221     srcdir=$ac_optarg ;;
1222
1223   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224   | --syscon | --sysco | --sysc | --sys | --sy)
1225     ac_prev=sysconfdir ;;
1226   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228     sysconfdir=$ac_optarg ;;
1229
1230   -target | --target | --targe | --targ | --tar | --ta | --t)
1231     ac_prev=target_alias ;;
1232   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233     target_alias=$ac_optarg ;;
1234
1235   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236     verbose=yes ;;
1237
1238   -version | --version | --versio | --versi | --vers | -V)
1239     ac_init_version=: ;;
1240
1241   -with-* | --with-*)
1242     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       { echo "$as_me: error: invalid package name: $ac_package" >&2
1246    { (exit 1); exit 1; }; }
1247     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248     eval with_$ac_package=\$ac_optarg ;;
1249
1250   -without-* | --without-*)
1251     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid package name: $ac_package" >&2
1255    { (exit 1); exit 1; }; }
1256     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257     eval with_$ac_package=no ;;
1258
1259   --x)
1260     # Obsolete; use --with-x.
1261     with_x=yes ;;
1262
1263   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264   | --x-incl | --x-inc | --x-in | --x-i)
1265     ac_prev=x_includes ;;
1266   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268     x_includes=$ac_optarg ;;
1269
1270   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272     ac_prev=x_libraries ;;
1273   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275     x_libraries=$ac_optarg ;;
1276
1277   -*) { echo "$as_me: error: unrecognized option: $ac_option
1278 Try \`$0 --help' for more information." >&2
1279    { (exit 1); exit 1; }; }
1280     ;;
1281
1282   *=*)
1283     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1286       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1287    { (exit 1); exit 1; }; }
1288     eval $ac_envvar=\$ac_optarg
1289     export $ac_envvar ;;
1290
1291   *)
1292     # FIXME: should be removed in autoconf 3.0.
1293     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297     ;;
1298
1299   esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304   { echo "$as_me: error: missing argument to $ac_option" >&2
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 # Be sure to have absolute directory names.
1309 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310                 datadir sysconfdir sharedstatedir localstatedir includedir \
1311                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312                 libdir localedir mandir
1313 do
1314   eval ac_val=\$$ac_var
1315   case $ac_val in
1316     [\\/$]* | ?:[\\/]* )  continue;;
1317     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318   esac
1319   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1320    { (exit 1); exit 1; }; }
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332   if test "x$build_alias" = x; then
1333     cross_compiling=maybe
1334     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335     If a cross compiler is detected then cross compile mode will be used." >&2
1336   elif test "x$build_alias" != "x$host_alias"; then
1337     cross_compiling=yes
1338   fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350   { echo "$as_me: error: Working directory cannot be determined" >&2
1351    { (exit 1); exit 1; }; }
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353   { echo "$as_me: error: pwd does not report name of working directory" >&2
1354    { (exit 1); exit 1; }; }
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359   ac_srcdir_defaulted=yes
1360   # Try the directory containing this script, then the parent directory.
1361   ac_confdir=`$as_dirname -- "$0" ||
1362 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363          X"$0" : 'X\(//\)[^/]' \| \
1364          X"$0" : 'X\(//\)$' \| \
1365          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1366 echo X"$0" |
1367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)[^/].*/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\).*/{
1380             s//\1/
1381             q
1382           }
1383           s/.*/./; q'`
1384   srcdir=$ac_confdir
1385   if test ! -r "$srcdir/$ac_unique_file"; then
1386     srcdir=..
1387   fi
1388 else
1389   ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394    { (exit 1); exit 1; }; }
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1399    { (exit 1); exit 1; }; }
1400         pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403   srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_env_${ac_var}_value=\$${ac_var}
1414   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422   # Omit some internal or obsolete options to make the list less imposing.
1423   # This message is too long to be a string in the A/UX 3.1 sh.
1424   cat <<_ACEOF
1425 \`configure' configures this package to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435   -h, --help              display this help and exit
1436       --help=short        display options specific to this package
1437       --help=recursive    display the short help of all the included packages
1438   -V, --version           display version information and exit
1439   -q, --quiet, --silent   do not print \`checking...' messages
1440       --cache-file=FILE   cache test results in FILE [disabled]
1441   -C, --config-cache      alias for \`--cache-file=config.cache'
1442   -n, --no-create         do not create output files
1443       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446   --prefix=PREFIX         install architecture-independent files in PREFIX
1447                           [$ac_default_prefix]
1448   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449                           [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459   --bindir=DIR           user executables [EPREFIX/bin]
1460   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1461   --libexecdir=DIR       program executables [EPREFIX/libexec]
1462   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1463   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1464   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1465   --libdir=DIR           object code libraries [EPREFIX/lib]
1466   --includedir=DIR       C header files [PREFIX/include]
1467   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1468   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1469   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1470   --infodir=DIR          info documentation [DATAROOTDIR/info]
1471   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1472   --mandir=DIR           man documentation [DATAROOTDIR/man]
1473   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1474   --htmldir=DIR          html documentation [DOCDIR]
1475   --dvidir=DIR           dvi documentation [DOCDIR]
1476   --pdfdir=DIR           pdf documentation [DOCDIR]
1477   --psdir=DIR            ps documentation [DOCDIR]
1478 _ACEOF
1479
1480   cat <<\_ACEOF
1481
1482 Program names:
1483   --program-prefix=PREFIX            prepend PREFIX to installed program names
1484   --program-suffix=SUFFIX            append SUFFIX to installed program names
1485   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487 System types:
1488   --build=BUILD     configure for building on BUILD [guessed]
1489   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490   --target=TARGET   configure for building compilers for TARGET [HOST]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1500   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1501   --disable-fast-perl     disable fast Makefile generation (needs perl)
1502   --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1503   --disable-debug         disables debug output and debug symbols default=no
1504   --enable-strict         compiles with strict compiler options (may not
1505                           work!)
1506   --disable-warnings      disables compilation with -Wall and similar
1507   --enable-profile        creates profiling infos default=no
1508   --disable-dependency-tracking  speeds up one-time build
1509   --enable-dependency-tracking   do not reject slow dependency extractors
1510   --enable-pch            enables precompiled header support (currently only
1511                           KCC or gcc >=3.4+unsermake) default=no
1512   --enable-coverage       use gcc coverage testing
1513   --enable-new-ldflags    enable the new linker flags
1514   --enable-final          build size optimized apps (experimental - needs lots
1515                           of memory)
1516   --enable-closure        delay template instantiation
1517   --enable-nmcheck        enable automatic namespace cleanness check
1518   --enable-shared[=PKGS]  build shared libraries [default=yes]
1519   --enable-static[=PKGS]  build static libraries [default=no]
1520   --enable-libsuffix      /lib directory suffix (64,32,none,auto=default)
1521   --enable-fast-install[=PKGS]
1522                           optimize for fast installation [default=yes]
1523   --disable-libtool-lock  avoid locking (might break parallel builds)
1524
1525 Optional Packages:
1526   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1527   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1528   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1529   --with-pic              try to use only PIC/non-PIC objects [default=use
1530                           both]
1531   --with-tags[=TAGS]      include additional configurations [automatic]
1532
1533 Some influential environment variables:
1534   CC          C compiler command
1535   CFLAGS      C compiler flags
1536   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537               nonstandard directory <lib dir>
1538   LIBS        libraries to pass to the linker, e.g. -l<library>
1539   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540               you have headers in a nonstandard directory <include dir>
1541   CPP         C preprocessor
1542   CXX         C++ compiler command
1543   CXXFLAGS    C++ compiler flags
1544   CXXCPP      C++ preprocessor
1545   F77         Fortran 77 compiler command
1546   FFLAGS      Fortran 77 compiler flags
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556   # If there are subdirs, report their specific --help.
1557   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558     test -d "$ac_dir" || continue
1559     ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565   # A ".." for each directory in $ac_dir_suffix.
1566   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567   case $ac_top_builddir_sub in
1568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570   esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578   .)  # We are building in place.
1579     ac_srcdir=.
1580     ac_top_srcdir=$ac_top_builddir_sub
1581     ac_abs_top_srcdir=$ac_pwd ;;
1582   [\\/]* | ?:[\\/]* )  # Absolute name.
1583     ac_srcdir=$srcdir$ac_dir_suffix;
1584     ac_top_srcdir=$srcdir
1585     ac_abs_top_srcdir=$srcdir ;;
1586   *) # Relative name.
1587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588     ac_top_srcdir=$ac_top_build_prefix$srcdir
1589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593     cd "$ac_dir" || { ac_status=$?; continue; }
1594     # Check for guested configure.
1595     if test -f "$ac_srcdir/configure.gnu"; then
1596       echo &&
1597       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598     elif test -f "$ac_srcdir/configure"; then
1599       echo &&
1600       $SHELL "$ac_srcdir/configure" --help=recursive
1601     else
1602       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603     fi || ac_status=$?
1604     cd "$ac_pwd" || { ac_status=$?; break; }
1605   done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610   cat <<\_ACEOF
1611 configure
1612 generated by GNU Autoconf 2.61
1613
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621 cat >config.log <<_ACEOF
1622 This file contains any messages produced by compilers while
1623 running configure, to aid debugging if configure makes a mistake.
1624
1625 It was created by $as_me, which was
1626 generated by GNU Autoconf 2.61.  Invocation command line was
1627
1628   $ $0 $@
1629
1630 _ACEOF
1631 exec 5>>config.log
1632 {
1633 cat <<_ASUNAME
1634 ## --------- ##
1635 ## Platform. ##
1636 ## --------- ##
1637
1638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1646
1647 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1648 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1651 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1652 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1653 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1654
1655 _ASUNAME
1656
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   echo "PATH: $as_dir"
1663 done
1664 IFS=$as_save_IFS
1665
1666 } >&5
1667
1668 cat >&5 <<_ACEOF
1669
1670
1671 ## ----------- ##
1672 ## Core tests. ##
1673 ## ----------- ##
1674
1675 _ACEOF
1676
1677
1678 # Keep a trace of the command line.
1679 # Strip out --no-create and --no-recursion so they do not pile up.
1680 # Strip out --silent because we don't want to record it for future runs.
1681 # Also quote any args containing shell meta-characters.
1682 # Make two passes to allow for proper duplicate-argument suppression.
1683 ac_configure_args=
1684 ac_configure_args0=
1685 ac_configure_args1=
1686 ac_must_keep_next=false
1687 for ac_pass in 1 2
1688 do
1689   for ac_arg
1690   do
1691     case $ac_arg in
1692     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694     | -silent | --silent | --silen | --sile | --sil)
1695       continue ;;
1696     *\'*)
1697       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698     esac
1699     case $ac_pass in
1700     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701     2)
1702       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703       if test $ac_must_keep_next = true; then
1704         ac_must_keep_next=false # Got value, back to normal.
1705       else
1706         case $ac_arg in
1707           *=* | --config-cache | -C | -disable-* | --disable-* \
1708           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710           | -with-* | --with-* | -without-* | --without-* | --x)
1711             case "$ac_configure_args0 " in
1712               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713             esac
1714             ;;
1715           -* ) ac_must_keep_next=true ;;
1716         esac
1717       fi
1718       ac_configure_args="$ac_configure_args '$ac_arg'"
1719       ;;
1720     esac
1721   done
1722 done
1723 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726 # When interrupted or exit'd, cleanup temporary files, and complete
1727 # config.log.  We remove comments because anyway the quotes in there
1728 # would cause problems or look ugly.
1729 # WARNING: Use '\'' to represent an apostrophe within the trap.
1730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731 trap 'exit_status=$?
1732   # Save into config.log some information that might help in debugging.
1733   {
1734     echo
1735
1736     cat <<\_ASBOX
1737 ## ---------------- ##
1738 ## Cache variables. ##
1739 ## ---------------- ##
1740 _ASBOX
1741     echo
1742     # The following way of writing the cache mishandles newlines in values,
1743 (
1744   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745     eval ac_val=\$$ac_var
1746     case $ac_val in #(
1747     *${as_nl}*)
1748       case $ac_var in #(
1749       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751       esac
1752       case $ac_var in #(
1753       _ | IFS | as_nl) ;; #(
1754       *) $as_unset $ac_var ;;
1755       esac ;;
1756     esac
1757   done
1758   (set) 2>&1 |
1759     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760     *${as_nl}ac_space=\ *)
1761       sed -n \
1762         "s/'\''/'\''\\\\'\'''\''/g;
1763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764       ;; #(
1765     *)
1766       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767       ;;
1768     esac |
1769     sort
1770 )
1771     echo
1772
1773     cat <<\_ASBOX
1774 ## ----------------- ##
1775 ## Output variables. ##
1776 ## ----------------- ##
1777 _ASBOX
1778     echo
1779     for ac_var in $ac_subst_vars
1780     do
1781       eval ac_val=\$$ac_var
1782       case $ac_val in
1783       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784       esac
1785       echo "$ac_var='\''$ac_val'\''"
1786     done | sort
1787     echo
1788
1789     if test -n "$ac_subst_files"; then
1790       cat <<\_ASBOX
1791 ## ------------------- ##
1792 ## File substitutions. ##
1793 ## ------------------- ##
1794 _ASBOX
1795       echo
1796       for ac_var in $ac_subst_files
1797       do
1798         eval ac_val=\$$ac_var
1799         case $ac_val in
1800         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801         esac
1802         echo "$ac_var='\''$ac_val'\''"
1803       done | sort
1804       echo
1805     fi
1806
1807     if test -s confdefs.h; then
1808       cat <<\_ASBOX
1809 ## ----------- ##
1810 ## confdefs.h. ##
1811 ## ----------- ##
1812 _ASBOX
1813       echo
1814       cat confdefs.h
1815       echo
1816     fi
1817     test "$ac_signal" != 0 &&
1818       echo "$as_me: caught signal $ac_signal"
1819     echo "$as_me: exit $exit_status"
1820   } >&5
1821   rm -f core *.core core.conftest.* &&
1822     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823     exit $exit_status
1824 ' 0
1825 for ac_signal in 1 2 13 15; do
1826   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 done
1828 ac_signal=0
1829
1830 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1831 rm -f -r conftest* confdefs.h
1832
1833 # Predefined preprocessor variables.
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 _ACEOF
1858
1859
1860 # Let the site file select an alternate cache file if it wants to.
1861 # Prefer explicitly selected file to automatically selected ones.
1862 if test -n "$CONFIG_SITE"; then
1863   set x "$CONFIG_SITE"
1864 elif test "x$prefix" != xNONE; then
1865   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866 else
1867   set x "$ac_default_prefix/share/config.site" \
1868         "$ac_default_prefix/etc/config.site"
1869 fi
1870 shift
1871 for ac_site_file
1872 do
1873   if test -r "$ac_site_file"; then
1874     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 echo "$as_me: loading site script $ac_site_file" >&6;}
1876     sed 's/^/| /' "$ac_site_file" >&5
1877     . "$ac_site_file"
1878   fi
1879 done
1880
1881 if test -r "$cache_file"; then
1882   # Some versions of bash will fail to source /dev/null (special
1883   # files actually), so we avoid doing that.
1884   if test -f "$cache_file"; then
1885     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 echo "$as_me: loading cache $cache_file" >&6;}
1887     case $cache_file in
1888       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889       *)                      . "./$cache_file";;
1890     esac
1891   fi
1892 else
1893   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 echo "$as_me: creating cache $cache_file" >&6;}
1895   >$cache_file
1896 fi
1897
1898 # Check that the precious variables saved in the cache have kept the same
1899 # value.
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903   eval ac_new_set=\$ac_env_${ac_var}_set
1904   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905   eval ac_new_val=\$ac_env_${ac_var}_value
1906   case $ac_old_set,$ac_new_set in
1907     set,)
1908       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910       ac_cache_corrupted=: ;;
1911     ,set)
1912       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914       ac_cache_corrupted=: ;;
1915     ,);;
1916     *)
1917       if test "x$ac_old_val" != "x$ac_new_val"; then
1918         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1921 echo "$as_me:   former value:  $ac_old_val" >&2;}
1922         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1923 echo "$as_me:   current value: $ac_new_val" >&2;}
1924         ac_cache_corrupted=:
1925       fi;;
1926   esac
1927   # Pass precious variables to config.status.
1928   if test "$ac_new_set" = set; then
1929     case $ac_new_val in
1930     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931     *) ac_arg=$ac_var=$ac_new_val ;;
1932     esac
1933     case " $ac_configure_args " in
1934       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936     esac
1937   fi
1938 done
1939 if $ac_cache_corrupted; then
1940   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970 ac_aux_dir=
1971 for ac_dir in admin "$srcdir"/admin; do
1972   if test -f "$ac_dir/install-sh"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/install-sh -c"
1975     break
1976   elif test -f "$ac_dir/install.sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install.sh -c"
1979     break
1980   elif test -f "$ac_dir/shtool"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/shtool install -c"
1983     break
1984   fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1999
2000
2001
2002 unset CDPATH
2003
2004 # Make sure we can run config.sub.
2005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2006   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2007 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2008    { (exit 1); exit 1; }; }
2009
2010 { echo "$as_me:$LINENO: checking build system type" >&5
2011 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2012 if test "${ac_cv_build+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   ac_build_alias=$build_alias
2016 test "x$ac_build_alias" = x &&
2017   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2018 test "x$ac_build_alias" = x &&
2019   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2020 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2021    { (exit 1); exit 1; }; }
2022 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2023   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2024 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2025    { (exit 1); exit 1; }; }
2026
2027 fi
2028 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2029 echo "${ECHO_T}$ac_cv_build" >&6; }
2030 case $ac_cv_build in
2031 *-*-*) ;;
2032 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2033 echo "$as_me: error: invalid value of canonical build" >&2;}
2034    { (exit 1); exit 1; }; };;
2035 esac
2036 build=$ac_cv_build
2037 ac_save_IFS=$IFS; IFS='-'
2038 set x $ac_cv_build
2039 shift
2040 build_cpu=$1
2041 build_vendor=$2
2042 shift; shift
2043 # Remember, the first character of IFS is used to create $*,
2044 # except with old shells:
2045 build_os=$*
2046 IFS=$ac_save_IFS
2047 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2048
2049
2050 { echo "$as_me:$LINENO: checking host system type" >&5
2051 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2052 if test "${ac_cv_host+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test "x$host_alias" = x; then
2056   ac_cv_host=$ac_cv_build
2057 else
2058   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2059     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 fi
2065 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2066 echo "${ECHO_T}$ac_cv_host" >&6; }
2067 case $ac_cv_host in
2068 *-*-*) ;;
2069 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2070 echo "$as_me: error: invalid value of canonical host" >&2;}
2071    { (exit 1); exit 1; }; };;
2072 esac
2073 host=$ac_cv_host
2074 ac_save_IFS=$IFS; IFS='-'
2075 set x $ac_cv_host
2076 shift
2077 host_cpu=$1
2078 host_vendor=$2
2079 shift; shift
2080 # Remember, the first character of IFS is used to create $*,
2081 # except with old shells:
2082 host_os=$*
2083 IFS=$ac_save_IFS
2084 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2085
2086
2087 { echo "$as_me:$LINENO: checking target system type" >&5
2088 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2089 if test "${ac_cv_target+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test "x$target_alias" = x; then
2093   ac_cv_target=$ac_cv_host
2094 else
2095   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2096     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2097 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2098    { (exit 1); exit 1; }; }
2099 fi
2100
2101 fi
2102 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2103 echo "${ECHO_T}$ac_cv_target" >&6; }
2104 case $ac_cv_target in
2105 *-*-*) ;;
2106 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2107 echo "$as_me: error: invalid value of canonical target" >&2;}
2108    { (exit 1); exit 1; }; };;
2109 esac
2110 target=$ac_cv_target
2111 ac_save_IFS=$IFS; IFS='-'
2112 set x $ac_cv_target
2113 shift
2114 target_cpu=$1
2115 target_vendor=$2
2116 shift; shift
2117 # Remember, the first character of IFS is used to create $*,
2118 # except with old shells:
2119 target_os=$*
2120 IFS=$ac_save_IFS
2121 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2122
2123
2124 # The aliases save the names the user supplied, while $host etc.
2125 # will get canonicalized.
2126 test -n "$target_alias" &&
2127   test "$program_prefix$program_suffix$program_transform_name" = \
2128     NONENONEs,x,x, &&
2129   program_prefix=${target_alias}-
2130 test "$program_prefix" != NONE &&
2131   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $.  echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2139 _ACEOF
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141 rm -f conftest.sed
2142
2143
2144 am__api_version='1.10'
2145
2146
2147
2148           test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2149   test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2150   test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2151   # Find a good install program.  We prefer a C program (faster),
2152 # so one script is as good as another.  But avoid the broken or
2153 # incompatible versions:
2154 # SysV /etc/install, /usr/sbin/install
2155 # SunOS /usr/etc/install
2156 # IRIX /sbin/install
2157 # AIX /bin/install
2158 # AmigaOS /C/install, which installs bootblocks on floppy discs
2159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2162 # OS/2's system install, which has a completely different semantic
2163 # ./install, which can be erroneously created by make from ./install.sh.
2164 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2165 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2166 if test -z "$INSTALL"; then
2167 if test "${ac_cv_path_install+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   # Account for people who put trailing slashes in PATH elements.
2176 case $as_dir/ in
2177   ./ | .// | /cC/* | \
2178   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2179   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2180   /usr/ucb/* ) ;;
2181   *)
2182     # OSF1 and SCO ODT 3.0 have their own names for install.
2183     # Don't use installbsd from OSF since it installs stuff as root
2184     # by default.
2185     for ac_prog in ginstall scoinst install; do
2186       for ac_exec_ext in '' $ac_executable_extensions; do
2187         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2188           if test $ac_prog = install &&
2189             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190             # AIX install.  It has an incompatible calling convention.
2191             :
2192           elif test $ac_prog = install &&
2193             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2194             # program-specific install script used by HP pwplus--don't use.
2195             :
2196           else
2197             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2198             break 3
2199           fi
2200         fi
2201       done
2202     done
2203     ;;
2204 esac
2205 done
2206 IFS=$as_save_IFS
2207
2208
2209 fi
2210   if test "${ac_cv_path_install+set}" = set; then
2211     INSTALL=$ac_cv_path_install
2212   else
2213     # As a last resort, use the slow shell script.  Don't cache a
2214     # value for INSTALL within a source directory, because that will
2215     # break other packages using the cache if that directory is
2216     # removed, or if the value is a relative name.
2217     INSTALL=$ac_install_sh
2218   fi
2219 fi
2220 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2221 echo "${ECHO_T}$INSTALL" >&6; }
2222
2223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2224 # It thinks the first close brace ends the variable substitution.
2225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2226
2227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2228
2229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2230
2231
2232   if test -z "$kde_save_INSTALL_given" ; then
2233     # OK, user hasn't given any INSTALL, autoconf found one for us
2234     # now we test, if it supports the -p flag
2235     { echo "$as_me:$LINENO: checking for -p flag to install" >&5
2236 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
2237     rm -f confinst.$$.* > /dev/null 2>&1
2238     echo "Testtest" > confinst.$$.orig
2239     ac_res=no
2240     if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2241       if test -f confinst.$$.new ; then
2242         # OK, -p seems to do no harm to install
2243         INSTALL="${INSTALL} -p"
2244         ac_res=yes
2245       fi
2246     fi
2247     rm -f confinst.$$.*
2248     { echo "$as_me:$LINENO: result: $ac_res" >&5
2249 echo "${ECHO_T}$ac_res" >&6; }
2250   fi
2251
2252   if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2253     INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2254   fi
2255   if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2256     INSTALL_SCRIPT='${INSTALL}'
2257   fi
2258
2259 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2260 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2261 # Just in case
2262 sleep 1
2263 echo timestamp > conftest.file
2264 # Do `set' in a subshell so we don't clobber the current shell's
2265 # arguments.  Must try -L first in case configure is actually a
2266 # symlink; some systems play weird games with the mod time of symlinks
2267 # (eg FreeBSD returns the mod time of the symlink's containing
2268 # directory).
2269 if (
2270    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2271    if test "$*" = "X"; then
2272       # -L didn't work.
2273       set X `ls -t $srcdir/configure conftest.file`
2274    fi
2275    rm -f conftest.file
2276    if test "$*" != "X $srcdir/configure conftest.file" \
2277       && test "$*" != "X conftest.file $srcdir/configure"; then
2278
2279       # If neither matched, then we have a broken ls.  This can happen
2280       # if, for instance, CONFIG_SHELL is bash and it inherits a
2281       # broken ls alias from the environment.  This has actually
2282       # happened.  Such a system could not be considered "sane".
2283       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2284 alias in your environment" >&5
2285 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2286 alias in your environment" >&2;}
2287    { (exit 1); exit 1; }; }
2288    fi
2289
2290    test "$2" = conftest.file
2291    )
2292 then
2293    # Ok.
2294    :
2295 else
2296    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2297 Check your system clock" >&5
2298 echo "$as_me: error: newly created file is older than distributed files!
2299 Check your system clock" >&2;}
2300    { (exit 1); exit 1; }; }
2301 fi
2302 { echo "$as_me:$LINENO: result: yes" >&5
2303 echo "${ECHO_T}yes" >&6; }
2304 # expand $ac_aux_dir to an absolute path
2305 am_aux_dir=`cd $ac_aux_dir && pwd`
2306
2307 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2308 # Use eval to expand $SHELL
2309 if eval "$MISSING --run true"; then
2310   am_missing_run="$MISSING --run "
2311 else
2312   am_missing_run=
2313   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2314 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2315 fi
2316
2317 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2318 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2319 if test -z "$MKDIR_P"; then
2320   if test "${ac_cv_path_mkdir+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_prog in mkdir gmkdir; do
2329          for ac_exec_ext in '' $ac_executable_extensions; do
2330            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2331            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2332              'mkdir (GNU coreutils) '* | \
2333              'mkdir (coreutils) '* | \
2334              'mkdir (fileutils) '4.1*)
2335                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2336                break 3;;
2337            esac
2338          done
2339        done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344
2345   if test "${ac_cv_path_mkdir+set}" = set; then
2346     MKDIR_P="$ac_cv_path_mkdir -p"
2347   else
2348     # As a last resort, use the slow shell script.  Don't cache a
2349     # value for MKDIR_P within a source directory, because that will
2350     # break other packages using the cache if that directory is
2351     # removed, or if the value is a relative name.
2352     test -d ./--version && rmdir ./--version
2353     MKDIR_P="$ac_install_sh -d"
2354   fi
2355 fi
2356 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2357 echo "${ECHO_T}$MKDIR_P" >&6; }
2358
2359 mkdir_p="$MKDIR_P"
2360 case $mkdir_p in
2361   [\\/$]* | ?:[\\/]*) ;;
2362   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2363 esac
2364
2365 for ac_prog in gawk mawk nawk awk
2366 do
2367   # Extract the first word of "$ac_prog", so it can be a program name with args.
2368 set dummy $ac_prog; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_AWK+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$AWK"; then
2375   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_AWK="$ac_prog"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 AWK=$ac_cv_prog_AWK
2395 if test -n "$AWK"; then
2396   { echo "$as_me:$LINENO: result: $AWK" >&5
2397 echo "${ECHO_T}$AWK" >&6; }
2398 else
2399   { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2401 fi
2402
2403
2404   test -n "$AWK" && break
2405 done
2406
2407 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2408 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2409 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2410 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   cat >conftest.make <<\_ACEOF
2414 SHELL = /bin/sh
2415 all:
2416         @echo '@@@%%%=$(MAKE)=@@@%%%'
2417 _ACEOF
2418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2419 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2420   *@@@%%%=?*=@@@%%%*)
2421     eval ac_cv_prog_make_${ac_make}_set=yes;;
2422   *)
2423     eval ac_cv_prog_make_${ac_make}_set=no;;
2424 esac
2425 rm -f conftest.make
2426 fi
2427 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2428   { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2430   SET_MAKE=
2431 else
2432   { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434   SET_MAKE="MAKE=${MAKE-make}"
2435 fi
2436
2437 rm -rf .tst 2>/dev/null
2438 mkdir .tst 2>/dev/null
2439 if test -d .tst; then
2440   am__leading_dot=.
2441 else
2442   am__leading_dot=_
2443 fi
2444 rmdir .tst 2>/dev/null
2445
2446 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2447   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2448   # is not polluted with repeated "-I."
2449   am__isrc=' -I$(srcdir)'
2450   # test to see if srcdir already configured
2451   if test -f $srcdir/config.status; then
2452     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2453 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2454    { (exit 1); exit 1; }; }
2455   fi
2456 fi
2457
2458 # test whether we have cygpath
2459 if test -z "$CYGPATH_W"; then
2460   if (cygpath --version) >/dev/null 2>/dev/null; then
2461     CYGPATH_W='cygpath -w'
2462   else
2463     CYGPATH_W=echo
2464   fi
2465 fi
2466
2467
2468 # Define the identity of the package.
2469  PACKAGE=taglib
2470  VERSION=1.4
2471
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE "$PACKAGE"
2475 _ACEOF
2476
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define VERSION "$VERSION"
2480 _ACEOF
2481
2482 # Some tools Automake needs.
2483
2484 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2485
2486
2487 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2488
2489
2490 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2491
2492
2493 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2494
2495
2496 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2497
2498 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2499
2500 # Installed binaries are usually stripped using `strip' when the user
2501 # run `make install-strip'.  However `strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the `STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505   if test -n "$ac_tool_prefix"; then
2506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_STRIP+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   if test -n "$STRIP"; then
2514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521   for ac_exec_ext in '' $ac_executable_extensions; do
2522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535   { echo "$as_me:$LINENO: result: $STRIP" >&5
2536 echo "${ECHO_T}$STRIP" >&6; }
2537 else
2538   { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$ac_cv_prog_STRIP"; then
2545   ac_ct_STRIP=$STRIP
2546   # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   if test -n "$ac_ct_STRIP"; then
2554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561   for ac_exec_ext in '' $ac_executable_extensions; do
2562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     ac_cv_prog_ac_ct_STRIP="strip"
2564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2576 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582   if test "x$ac_ct_STRIP" = x; then
2583     STRIP=":"
2584   else
2585     case $cross_compiling:$ac_tool_warned in
2586 yes:)
2587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2588 whose name does not start with the host triplet.  If you think this
2589 configuration is useful to you, please write to autoconf@gnu.org." >&5
2590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2591 whose name does not start with the host triplet.  If you think this
2592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2593 ac_tool_warned=yes ;;
2594 esac
2595     STRIP=$ac_ct_STRIP
2596   fi
2597 else
2598   STRIP="$ac_cv_prog_STRIP"
2599 fi
2600
2601 fi
2602 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2603
2604 # We need awk for the "check" target.  The system "awk" is bad on
2605 # some platforms.
2606 # Always define AMTAR for backward compatibility.
2607
2608 AMTAR=${AMTAR-"${am_missing_run}tar"}
2609
2610 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2611
2612
2613
2614
2615
2616
2617 unset CDPATH
2618
2619
2620 if test "x$prefix" = "xNONE"; then
2621   prefix=$ac_default_prefix
2622   ac_configure_args="$ac_configure_args --prefix $prefix"
2623 fi
2624
2625     # Check whether --enable-fast-perl was given.
2626 if test "${enable_fast_perl+set}" = set; then
2627   enableval=$enable_fast_perl; with_fast_perl=$enableval
2628 else
2629   with_fast_perl=yes
2630 fi
2631
2632
2633
2634   val=
2635   if test -f $srcdir/configure.files ; then
2636     val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2637   fi
2638   CONF_FILES=
2639   if test -n "$val" ; then
2640     for i in $val ; do
2641       CONF_FILES="$CONF_FILES $i"
2642     done
2643   fi
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650 DEPDIR="${am__leading_dot}deps"
2651
2652 ac_config_commands="$ac_config_commands depfiles"
2653
2654
2655 am_make=${MAKE-make}
2656 cat > confinc << 'END'
2657 am__doit:
2658         @echo done
2659 .PHONY: am__doit
2660 END
2661 # If we don't find an include directive, just comment out the code.
2662 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2663 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2664 am__include="#"
2665 am__quote=
2666 _am_result=none
2667 # First try GNU make style include.
2668 echo "include confinc" > confmf
2669 # We grep out `Entering directory' and `Leaving directory'
2670 # messages which can occur if `w' ends up in MAKEFLAGS.
2671 # In particular we don't look at `^make:' because GNU make might
2672 # be invoked under some other name (usually "gmake"), in which
2673 # case it prints its new name instead of `make'.
2674 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2675    am__include=include
2676    am__quote=
2677    _am_result=GNU
2678 fi
2679 # Now try BSD make style include.
2680 if test "$am__include" = "#"; then
2681    echo '.include "confinc"' > confmf
2682    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2683       am__include=.include
2684       am__quote="\""
2685       _am_result=BSD
2686    fi
2687 fi
2688
2689
2690 { echo "$as_me:$LINENO: result: $_am_result" >&5
2691 echo "${ECHO_T}$_am_result" >&6; }
2692 rm -f confinc confmf
2693
2694 # Check whether --enable-dependency-tracking was given.
2695 if test "${enable_dependency_tracking+set}" = set; then
2696   enableval=$enable_dependency_tracking;
2697 fi
2698
2699 if test "x$enable_dependency_tracking" != xno; then
2700   am_depcomp="$ac_aux_dir/depcomp"
2701   AMDEPBACKSLASH='\'
2702 fi
2703  if test "x$enable_dependency_tracking" != xno; then
2704   AMDEP_TRUE=
2705   AMDEP_FALSE='#'
2706 else
2707   AMDEP_TRUE='#'
2708   AMDEP_FALSE=
2709 fi
2710
2711
2712
2713
2714
2715   # Check whether --enable-debug was given.
2716 if test "${enable_debug+set}" = set; then
2717   enableval=$enable_debug;
2718     case $enableval in
2719       yes)
2720         kde_use_debug_code="yes"
2721         kde_use_debug_define=no
2722         ;;
2723       full)
2724         kde_use_debug_code="full"
2725         kde_use_debug_define=no
2726         ;;
2727       *)
2728         kde_use_debug_code="no"
2729         kde_use_debug_define=yes
2730         ;;
2731     esac
2732
2733 else
2734   kde_use_debug_code="no"
2735       kde_use_debug_define=no
2736
2737 fi
2738
2739
2740     # Check whether --enable-dummyoption was given.
2741 if test "${enable_dummyoption+set}" = set; then
2742   enableval=$enable_dummyoption;
2743 fi
2744
2745
2746   # Check whether --enable-strict was given.
2747 if test "${enable_strict+set}" = set; then
2748   enableval=$enable_strict;
2749     if test $enableval = "no"; then
2750          kde_use_strict_options="no"
2751        else
2752          kde_use_strict_options="yes"
2753     fi
2754
2755 else
2756   kde_use_strict_options="no"
2757 fi
2758
2759
2760   # Check whether --enable-warnings was given.
2761 if test "${enable_warnings+set}" = set; then
2762   enableval=$enable_warnings;
2763     if test $enableval = "no"; then
2764          kde_use_warnings="no"
2765        else
2766          kde_use_warnings="yes"
2767     fi
2768
2769 else
2770   kde_use_warnings="yes"
2771 fi
2772
2773
2774     if test "$kde_use_debug_code" != "no"; then
2775     kde_use_warnings=yes
2776   fi
2777
2778   # Check whether --enable-profile was given.
2779 if test "${enable_profile+set}" = set; then
2780   enableval=$enable_profile; kde_use_profiling=$enableval
2781 else
2782   kde_use_profiling="no"
2783
2784 fi
2785
2786
2787     CFLAGS=" $CFLAGS"
2788
2789   ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824   { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2826 else
2827   { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_CC"; then
2834   ac_ct_CC=$CC
2835   # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$ac_ct_CC"; then
2843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_ac_ct_CC="gcc"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2866 else
2867   { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2870
2871   if test "x$ac_ct_CC" = x; then
2872     CC=""
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet.  If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884     CC=$ac_ct_CC
2885   fi
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891           if test -n "$ac_tool_prefix"; then
2892     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2923 else
2924   { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2927
2928
2929   fi
2930 fi
2931 if test -z "$CC"; then
2932   # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942   ac_prog_rejected=no
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951        ac_prog_rejected=yes
2952        continue
2953      fi
2954     ac_cv_prog_CC="cc"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 if test $ac_prog_rejected = yes; then
2963   # We found a bogon in the path, so make sure we never use it.
2964   set dummy $ac_cv_prog_CC
2965   shift
2966   if test $# != 0; then
2967     # We chose a different compiler from the bogus one.
2968     # However, it has the same basename, so the bogon will be chosen
2969     # first if we set CC to just the basename; use the full file name.
2970     shift
2971     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972   fi
2973 fi
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$CC"; then
2988   if test -n "$ac_tool_prefix"; then
2989   for ac_prog in cl.exe
2990   do
2991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006   for ac_exec_ext in '' $ac_executable_extensions; do
3007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3022 else
3023   { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3025 fi
3026
3027
3028     test -n "$CC" && break
3029   done
3030 fi
3031 if test -z "$CC"; then
3032   ac_ct_CC=$CC
3033   for ac_prog in cl.exe
3034 do
3035   # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   if test -n "$ac_ct_CC"; then
3043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_ac_ct_CC="$ac_prog"
3053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6; }
3066 else
3067   { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3069 fi
3070
3071
3072   test -n "$ac_ct_CC" && break
3073 done
3074
3075   if test "x$ac_ct_CC" = x; then
3076     CC=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3081 whose name does not start with the host triplet.  If you think this
3082 configuration is useful to you, please write to autoconf@gnu.org." >&5
3083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet.  If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088     CC=$ac_ct_CC
3089   fi
3090 fi
3091
3092 fi
3093
3094
3095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099    { (exit 1); exit 1; }; }
3100
3101 # Provide some information about the compiler.
3102 echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 ac_compiler=`set X $ac_compile; echo $2`
3104 { (ac_try="$ac_compiler --version >&5"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compiler --version >&5") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }
3114 { (ac_try="$ac_compiler -v >&5"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compiler -v >&5") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }
3124 { (ac_try="$ac_compiler -V >&5"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compiler -V >&5") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }
3134
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3154 # of exeext.
3155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3158 #
3159 # List of possible output files, starting from the most likely.
3160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3161 # only as a last resort.  b.out is created by i960 compilers.
3162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3163 #
3164 # The IRIX 6 linker writes into existing files which may not be
3165 # executable, retaining their permissions.  Remove them first so a
3166 # subsequent execution test works.
3167 ac_rmfiles=
3168 for ac_file in $ac_files
3169 do
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3172     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3173   esac
3174 done
3175 rm -f $ac_rmfiles
3176
3177 if { (ac_try="$ac_link_default"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_link_default") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; then
3187   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194   test -f "$ac_file" || continue
3195   case $ac_file in
3196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3197         ;;
3198     [ab].out )
3199         # We found the default executable, but exeext='' is most
3200         # certainly right.
3201         break;;
3202     *.* )
3203         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204         then :; else
3205            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206         fi
3207         # We set ac_cv_exeext here because the later test for it is not
3208         # safe: cross compilers may not add the suffix if given an `-o'
3209         # argument, so we may need to know it at that point already.
3210         # Even if this section looks crufty: it has the advantage of
3211         # actually working.
3212         break;;
3213     * )
3214         break;;
3215   esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220   ac_file=''
3221 fi
3222
3223 { echo "$as_me:$LINENO: result: $ac_file" >&5
3224 echo "${ECHO_T}$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&2;}
3233    { (exit 77); exit 77; }; }
3234 fi
3235
3236 ac_exeext=$ac_cv_exeext
3237
3238 # Check that the compiler produces executables we can run.  If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245   if { ac_try='./$ac_file'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255     cross_compiling=no
3256   else
3257     if test "$cross_compiling" = maybe; then
3258         cross_compiling=yes
3259     else
3260         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266    { (exit 1); exit 1; }; }
3267     fi
3268   fi
3269 fi
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3281
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312    { (exit 1); exit 1; }; }
3313 fi
3314
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$EXEEXT
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; then
3353   for ac_file in conftest.o conftest.obj conftest.*; do
3354   test -f "$ac_file" || continue;
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358        break;;
3359   esac
3360 done
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369    { (exit 1); exit 1; }; }
3370 fi
3371
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394        choke me
3395 #endif
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } && {
3415          test -z "$ac_c_werror_flag" ||
3416          test ! -s conftest.err
3417        } && test -s conftest.$ac_objext; then
3418   ac_compiler_gnu=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423         ac_compiler_gnu=no
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   ac_save_c_werror_flag=$ac_c_werror_flag
3441    ac_c_werror_flag=yes
3442    ac_cv_prog_cc_g=no
3443    CFLAGS="-g"
3444    cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466   (eval "$ac_compile") 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && {
3473          test -z "$ac_c_werror_flag" ||
3474          test ! -s conftest.err
3475        } && test -s conftest.$ac_objext; then
3476   ac_cv_prog_cc_g=yes
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481         CFLAGS=""
3482       cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_c_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   :
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         ac_c_werror_flag=$ac_save_c_werror_flag
3520          CFLAGS="-g"
3521          cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568    ac_c_werror_flag=$ac_save_c_werror_flag
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573   CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575   if test "$GCC" = yes; then
3576     CFLAGS="-g -O2"
3577   else
3578     CFLAGS="-g"
3579   fi
3580 else
3581   if test "$GCC" = yes; then
3582     CFLAGS="-O2"
3583   else
3584     CFLAGS=
3585   fi
3586 fi
3587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608      char **p;
3609      int i;
3610 {
3611   return p[i];
3612 }
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3614 {
3615   char *s;
3616   va_list v;
3617   va_start (v,p);
3618   s = g (p, va_arg (v,int));
3619   va_end (v);
3620   return s;
3621 }
3622
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624    function prototypes and stuff, but not '\xHH' hex character constants.
3625    These don't provoke an error unfortunately, instead are silently treated
3626    as 'x'.  The following induces an error, until -std is added to get
3627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628    array size at least.  It's necessary to write '\x00'==0 to get something
3629    that's true only with -std.  */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633    inside strings and character constants.  */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3643 int
3644 main ()
3645 {
3646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 do
3654   CC="$ac_save_CC $ac_arg"
3655   rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_compile") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } && {
3669          test -z "$ac_c_werror_flag" ||
3670          test ! -s conftest.err
3671        } && test -s conftest.$ac_objext; then
3672   ac_cv_prog_cc_c89=$ac_arg
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext
3681   test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689   x)
3690     { echo "$as_me:$LINENO: result: none needed" >&5
3691 echo "${ECHO_T}none needed" >&6; } ;;
3692   xno)
3693     { echo "$as_me:$LINENO: result: unsupported" >&5
3694 echo "${ECHO_T}unsupported" >&6; } ;;
3695   *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 depcc="$CC"   am_compiler_list=
3709
3710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716   # We make a subdir and do the tests there.  Otherwise we can end up
3717   # making bogus files that we don't know about and never remove.  For
3718   # instance it was reported that on HP-UX the gcc test will end up
3719   # making a dummy file named `D' -- because `-MD' means `put the output
3720   # in D'.
3721   mkdir conftest.dir
3722   # Copy depcomp to subdir because otherwise we won't find it if we're
3723   # using a relative directory.
3724   cp "$am_depcomp" conftest.dir
3725   cd conftest.dir
3726   # We will build objects and dependencies in a subdirectory because
3727   # it helps to detect inapplicable dependency modes.  For instance
3728   # both Tru64's cc and ICC support -MD to output dependencies as a
3729   # side effect of compilation, but ICC will put the dependencies in
3730   # the current directory while Tru64 will put them in the object
3731   # directory.
3732   mkdir sub
3733
3734   am_cv_CC_dependencies_compiler_type=none
3735   if test "$am_compiler_list" = ""; then
3736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737   fi
3738   for depmode in $am_compiler_list; do
3739     # Setup a source with many dependencies, because some compilers
3740     # like to wrap large dependency lists on column 80 (with \), and
3741     # we should not choose a depcomp mode which is confused by this.
3742     #
3743     # We need to recreate these files for each test, as the compiler may
3744     # overwrite some of them when testing with obscure command lines.
3745     # This happens at least with the AIX C compiler.
3746     : > sub/conftest.c
3747     for i in 1 2 3 4 5 6; do
3748       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750       # Solaris 8's {/usr,}/bin/sh.
3751       touch sub/conftst$i.h
3752     done
3753     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755     case $depmode in
3756     nosideeffect)
3757       # after this tag, mechanisms are not by side-effect, so they'll
3758       # only be used when explicitly requested
3759       if test "x$enable_dependency_tracking" = xyes; then
3760         continue
3761       else
3762         break
3763       fi
3764       ;;
3765     none) break ;;
3766     esac
3767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768     # mode.  It turns out that the SunPro C++ compiler does not properly
3769     # handle `-M -o', and we need to detect this.
3770     if depmode=$depmode \
3771        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774          >/dev/null 2>conftest.err &&
3775        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3776        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3777        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3778        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3779       # icc doesn't choke on unknown options, it will just issue warnings
3780       # or remarks (even with -Werror).  So we grep stderr for any message
3781       # that says an option was ignored or not supported.
3782       # When given -MP, icc 7.0 and 7.1 complain thusly:
3783       #   icc: Command line warning: ignoring option '-M'; no argument required
3784       # The diagnosis changed in icc 8.0:
3785       #   icc: Command line remark: option '-MP' not supported
3786       if (grep 'ignoring option' conftest.err ||
3787           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3788         am_cv_CC_dependencies_compiler_type=$depmode
3789         break
3790       fi
3791     fi
3792   done
3793
3794   cd ..
3795   rm -rf conftest.dir
3796 else
3797   am_cv_CC_dependencies_compiler_type=none
3798 fi
3799
3800 fi
3801 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3802 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3803 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3804
3805  if
3806   test "x$enable_dependency_tracking" != xno \
3807   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808   am__fastdepCC_TRUE=
3809   am__fastdepCC_FALSE='#'
3810 else
3811   am__fastdepCC_TRUE='#'
3812   am__fastdepCC_FALSE=
3813 fi
3814
3815
3816
3817   ac_ext=c
3818 ac_cpp='$CPP $CPPFLAGS'
3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3824 # On Suns, sometimes $CPP names a directory.
3825 if test -n "$CPP" && test -d "$CPP"; then
3826   CPP=
3827 fi
3828 if test -z "$CPP"; then
3829   if test "${ac_cv_prog_CPP+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832       # Double quotes because CPP needs to be expanded
3833     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834     do
3835       ac_preproc_ok=false
3836 for ac_c_preproc_warn_flag in '' yes
3837 do
3838   # Use a header file that comes with gcc, so configuring glibc
3839   # with a fresh cross-compiler works.
3840   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841   # <limits.h> exists even on freestanding compilers.
3842   # On the NeXT, cc -E runs the code through the compiler's parser,
3843   # not just through cpp. "Syntax error" is here to catch this case.
3844   cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3855                      Syntax error
3856 _ACEOF
3857 if { (ac_try="$ac_cpp conftest.$ac_ext"
3858 case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } >/dev/null && {
3870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3871          test ! -s conftest.err
3872        }; then
3873   :
3874 else
3875   echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878   # Broken: fails on valid input.
3879 continue
3880 fi
3881
3882 rm -f conftest.err conftest.$ac_ext
3883
3884   # OK, works on sane cases.  Now check whether nonexistent headers
3885   # can be detected and how.
3886   cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } >/dev/null && {
3907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        }; then
3910   # Broken: success on invalid input.
3911 continue
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916   # Passes both tests.
3917 ac_preproc_ok=:
3918 break
3919 fi
3920
3921 rm -f conftest.err conftest.$ac_ext
3922
3923 done
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then
3927   break
3928 fi
3929
3930     done
3931     ac_cv_prog_CPP=$CPP
3932
3933 fi
3934   CPP=$ac_cv_prog_CPP
3935 else
3936   ac_cv_prog_CPP=$CPP
3937 fi
3938 { echo "$as_me:$LINENO: result: $CPP" >&5
3939 echo "${ECHO_T}$CPP" >&6; }
3940 ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3942 do
3943   # Use a header file that comes with gcc, so configuring glibc
3944   # with a fresh cross-compiler works.
3945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946   # <limits.h> exists even on freestanding compilers.
3947   # On the NeXT, cc -E runs the code through the compiler's parser,
3948   # not just through cpp. "Syntax error" is here to catch this case.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960                      Syntax error
3961 _ACEOF
3962 if { (ac_try="$ac_cpp conftest.$ac_ext"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } >/dev/null && {
3975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        }; then
3978   :
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983   # Broken: fails on valid input.
3984 continue
3985 fi
3986
3987 rm -f conftest.err conftest.$ac_ext
3988
3989   # OK, works on sane cases.  Now check whether nonexistent headers
3990   # can be detected and how.
3991   cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if { (ac_try="$ac_cpp conftest.$ac_ext"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } >/dev/null && {
4012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4013          test ! -s conftest.err
4014        }; then
4015   # Broken: success on invalid input.
4016 continue
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021   # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4024 fi
4025
4026 rm -f conftest.err conftest.$ac_ext
4027
4028 done
4029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4030 rm -f conftest.err conftest.$ac_ext
4031 if $ac_preproc_ok; then
4032   :
4033 else
4034   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&5
4036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&2;}
4038    { (exit 1); exit 1; }; }
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047
4048   if test "$GCC" = "yes"; then
4049     if test "$kde_use_debug_code" != "no"; then
4050       if test $kde_use_debug_code = "full"; then
4051         CFLAGS="-g3 -fno-inline $CFLAGS"
4052       else
4053         CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
4054       fi
4055     else
4056       CFLAGS="-O2 $CFLAGS"
4057     fi
4058   fi
4059
4060   if test "$kde_use_debug_define" = "yes"; then
4061     CFLAGS="-DNDEBUG $CFLAGS"
4062   fi
4063
4064
4065   case "$host" in
4066   *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4067   *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4068   esac
4069
4070   if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4071      LDFLAGS=""
4072   fi
4073
4074   CXXFLAGS=" $CXXFLAGS"
4075
4076   ac_ext=cpp
4077 ac_cpp='$CXXCPP $CPPFLAGS'
4078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4081 if test -z "$CXX"; then
4082   if test -n "$CCC"; then
4083     CXX=$CCC
4084   else
4085     if test -n "$ac_tool_prefix"; then
4086   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4087   do
4088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4092 if test "${ac_cv_prog_CXX+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$CXX"; then
4096   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 CXX=$ac_cv_prog_CXX
4116 if test -n "$CXX"; then
4117   { echo "$as_me:$LINENO: result: $CXX" >&5
4118 echo "${ECHO_T}$CXX" >&6; }
4119 else
4120   { echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6; }
4122 fi
4123
4124
4125     test -n "$CXX" && break
4126   done
4127 fi
4128 if test -z "$CXX"; then
4129   ac_ct_CXX=$CXX
4130   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4131 do
4132   # Extract the first word of "$ac_prog", so it can be a program name with args.
4133 set dummy $ac_prog; ac_word=$2
4134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4136 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   if test -n "$ac_ct_CXX"; then
4140   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145   IFS=$as_save_IFS
4146   test -z "$as_dir" && as_dir=.
4147   for ac_exec_ext in '' $ac_executable_extensions; do
4148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149     ac_cv_prog_ac_ct_CXX="$ac_prog"
4150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151     break 2
4152   fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi
4158 fi
4159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4160 if test -n "$ac_ct_CXX"; then
4161   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4162 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4163 else
4164   { echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6; }
4166 fi
4167
4168
4169   test -n "$ac_ct_CXX" && break
4170 done
4171
4172   if test "x$ac_ct_CXX" = x; then
4173     CXX="g++"
4174   else
4175     case $cross_compiling:$ac_tool_warned in
4176 yes:)
4177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4178 whose name does not start with the host triplet.  If you think this
4179 configuration is useful to you, please write to autoconf@gnu.org." >&5
4180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4181 whose name does not start with the host triplet.  If you think this
4182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185     CXX=$ac_ct_CXX
4186   fi
4187 fi
4188
4189   fi
4190 fi
4191 # Provide some information about the compiler.
4192 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4193 ac_compiler=`set X $ac_compile; echo $2`
4194 { (ac_try="$ac_compiler --version >&5"
4195 case "(($ac_try" in
4196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197   *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200   (eval "$ac_compiler --version >&5") 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }
4204 { (ac_try="$ac_compiler -v >&5"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_compiler -v >&5") 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }
4214 { (ac_try="$ac_compiler -V >&5"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_compiler -V >&5") 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }
4224
4225 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4226 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4227 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236
4237 int
4238 main ()
4239 {
4240 #ifndef __GNUC__
4241        choke me
4242 #endif
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255   (eval "$ac_compile") 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } && {
4262          test -z "$ac_cxx_werror_flag" ||
4263          test ! -s conftest.err
4264        } && test -s conftest.$ac_objext; then
4265   ac_compiler_gnu=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270         ac_compiler_gnu=no
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4275
4276 fi
4277 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4278 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4279 GXX=`test $ac_compiler_gnu = yes && echo yes`
4280 ac_test_CXXFLAGS=${CXXFLAGS+set}
4281 ac_save_CXXFLAGS=$CXXFLAGS
4282 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4283 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4284 if test "${ac_cv_prog_cxx_g+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4288    ac_cxx_werror_flag=yes
4289    ac_cv_prog_cxx_g=no
4290    CXXFLAGS="-g"
4291    cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297
4298 int
4299 main ()
4300 {
4301
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compile") 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && {
4320          test -z "$ac_cxx_werror_flag" ||
4321          test ! -s conftest.err
4322        } && test -s conftest.$ac_objext; then
4323   ac_cv_prog_cxx_g=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         CXXFLAGS=""
4329       cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } && {
4358          test -z "$ac_cxx_werror_flag" ||
4359          test ! -s conftest.err
4360        } && test -s conftest.$ac_objext; then
4361   :
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4367          CXXFLAGS="-g"
4368          cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 int
4376 main ()
4377 {
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_compile") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && {
4397          test -z "$ac_cxx_werror_flag" ||
4398          test ! -s conftest.err
4399        } && test -s conftest.$ac_objext; then
4400   ac_cv_prog_cxx_g=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405
4406 fi
4407
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4416 fi
4417 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4418 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4419 if test "$ac_test_CXXFLAGS" = set; then
4420   CXXFLAGS=$ac_save_CXXFLAGS
4421 elif test $ac_cv_prog_cxx_g = yes; then
4422   if test "$GXX" = yes; then
4423     CXXFLAGS="-g -O2"
4424   else
4425     CXXFLAGS="-g"
4426   fi
4427 else
4428   if test "$GXX" = yes; then
4429     CXXFLAGS="-O2"
4430   else
4431     CXXFLAGS=
4432   fi
4433 fi
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440 depcc="$CXX"  am_compiler_list=
4441
4442 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4443 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4444 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448   # We make a subdir and do the tests there.  Otherwise we can end up
4449   # making bogus files that we don't know about and never remove.  For
4450   # instance it was reported that on HP-UX the gcc test will end up
4451   # making a dummy file named `D' -- because `-MD' means `put the output
4452   # in D'.
4453   mkdir conftest.dir
4454   # Copy depcomp to subdir because otherwise we won't find it if we're
4455   # using a relative directory.
4456   cp "$am_depcomp" conftest.dir
4457   cd conftest.dir
4458   # We will build objects and dependencies in a subdirectory because
4459   # it helps to detect inapplicable dependency modes.  For instance
4460   # both Tru64's cc and ICC support -MD to output dependencies as a
4461   # side effect of compilation, but ICC will put the dependencies in
4462   # the current directory while Tru64 will put them in the object
4463   # directory.
4464   mkdir sub
4465
4466   am_cv_CXX_dependencies_compiler_type=none
4467   if test "$am_compiler_list" = ""; then
4468      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469   fi
4470   for depmode in $am_compiler_list; do
4471     # Setup a source with many dependencies, because some compilers
4472     # like to wrap large dependency lists on column 80 (with \), and
4473     # we should not choose a depcomp mode which is confused by this.
4474     #
4475     # We need to recreate these files for each test, as the compiler may
4476     # overwrite some of them when testing with obscure command lines.
4477     # This happens at least with the AIX C compiler.
4478     : > sub/conftest.c
4479     for i in 1 2 3 4 5 6; do
4480       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4481       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4482       # Solaris 8's {/usr,}/bin/sh.
4483       touch sub/conftst$i.h
4484     done
4485     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486
4487     case $depmode in
4488     nosideeffect)
4489       # after this tag, mechanisms are not by side-effect, so they'll
4490       # only be used when explicitly requested
4491       if test "x$enable_dependency_tracking" = xyes; then
4492         continue
4493       else
4494         break
4495       fi
4496       ;;
4497     none) break ;;
4498     esac
4499     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4500     # mode.  It turns out that the SunPro C++ compiler does not properly
4501     # handle `-M -o', and we need to detect this.
4502     if depmode=$depmode \
4503        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4505        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4506          >/dev/null 2>conftest.err &&
4507        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4508        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4509        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4510        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4511       # icc doesn't choke on unknown options, it will just issue warnings
4512       # or remarks (even with -Werror).  So we grep stderr for any message
4513       # that says an option was ignored or not supported.
4514       # When given -MP, icc 7.0 and 7.1 complain thusly:
4515       #   icc: Command line warning: ignoring option '-M'; no argument required
4516       # The diagnosis changed in icc 8.0:
4517       #   icc: Command line remark: option '-MP' not supported
4518       if (grep 'ignoring option' conftest.err ||
4519           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4520         am_cv_CXX_dependencies_compiler_type=$depmode
4521         break
4522       fi
4523     fi
4524   done
4525
4526   cd ..
4527   rm -rf conftest.dir
4528 else
4529   am_cv_CXX_dependencies_compiler_type=none
4530 fi
4531
4532 fi
4533 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4534 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4535 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4536
4537  if
4538   test "x$enable_dependency_tracking" != xno \
4539   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4540   am__fastdepCXX_TRUE=
4541   am__fastdepCXX_FALSE='#'
4542 else
4543   am__fastdepCXX_TRUE='#'
4544   am__fastdepCXX_FALSE=
4545 fi
4546
4547
4548
4549
4550   { echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
4551 echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6; }
4552
4553
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560
4561 #ifdef __GNUC__
4562 #if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
4563 choke me
4564 #endif
4565 #endif
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext
4576 if { (ac_try="$ac_compile"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_compile") 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } && {
4589          test -z "$ac_c_werror_flag" ||
4590          test ! -s conftest.err
4591        } && test -s conftest.$ac_objext; then
4592   kde_bad_compiler=no
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597         kde_bad_compiler=yes
4598
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602
4603   { echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
4604 echo "${ECHO_T}$kde_bad_compiler" >&6; }
4605
4606 if test "$kde_bad_compiler" = "yes"; then
4607   { { echo "$as_me:$LINENO: error:
4608
4609 This particular compiler version is blacklisted because it
4610 is known to miscompile KDE. Please use a newer version, or
4611 if that is not yet available, choose an older version.
4612
4613 Please do not report a bug or bother us reporting this
4614 configure error. We know about it, and we introduced
4615 it by intention to avoid untraceable bugs or crashes in KDE.
4616
4617 " >&5
4618 echo "$as_me: error:
4619
4620 This particular compiler version is blacklisted because it
4621 is known to miscompile KDE. Please use a newer version, or
4622 if that is not yet available, choose an older version.
4623
4624 Please do not report a bug or bother us reporting this
4625 configure error. We know about it, and we introduced
4626 it by intention to avoid untraceable bugs or crashes in KDE.
4627
4628 " >&2;}
4629    { (exit 1); exit 1; }; }
4630 fi
4631
4632
4633
4634   if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4635     if test "$kde_use_debug_code" != "no"; then
4636       if test "$CXX" = "KCC"; then
4637         CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4638       else
4639         if test "$kde_use_debug_code" = "full"; then
4640           CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4641         else
4642           CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
4643         fi
4644       fi
4645
4646 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4647 echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
4648 kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4649 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652
4653
4654
4655 ac_ext=cpp
4656 ac_cpp='$CXXCPP $CPPFLAGS'
4657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4660
4661 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4662
4663
4664
4665   save_CXXFLAGS="$CXXFLAGS"
4666   CXXFLAGS="$CXXFLAGS -fno-builtin"
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
4674 int
4675 main ()
4676 {
4677  return 0;
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (ac_try="$ac_link"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_link") 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && {
4696          test -z "$ac_cxx_werror_flag" ||
4697          test ! -s conftest.err
4698        } && test -s conftest$ac_exeext &&
4699        $as_test_x conftest$ac_exeext; then
4700   eval "kde_cv_prog_cxx_$kde_cache=yes"
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4709       conftest$ac_exeext conftest.$ac_ext
4710   CXXFLAGS="$save_CXXFLAGS"
4711   ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718 fi
4719
4720 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4721  { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4723  :
4724  CXXFLAGS="-fno-builtin $CXXFLAGS"
4725 else
4726  { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728  :
4729
4730 fi
4731
4732
4733
4734 { echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4735 echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
4736 kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4737 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740
4741
4742    ac_ext=cpp
4743 ac_cpp='$CXXCPP $CPPFLAGS'
4744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4747
4748 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4749
4750
4751   save_CXXFLAGS="$CXXFLAGS"
4752   CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759
4760 int
4761 main ()
4762 {
4763  return 0;
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (ac_try="$ac_link"
4770 case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_link") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_cxx_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest$ac_exeext &&
4785        $as_test_x conftest$ac_exeext; then
4786   eval "kde_cv_prog_cxx_$kde_cache=yes"
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791
4792 fi
4793
4794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4795       conftest$ac_exeext conftest.$ac_ext
4796   CXXFLAGS="$save_CXXFLAGS"
4797   ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803
4804 fi
4805
4806 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4807  { echo "$as_me:$LINENO: result: yes" >&5
4808 echo "${ECHO_T}yes" >&6; }
4809  :
4810  WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4811 else
4812  { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814  :
4815  WOVERLOADED_VRITUAL=""
4816 fi
4817
4818
4819     else
4820       if test "$CXX" = "KCC"; then
4821         CXXFLAGS="+K3 $CXXFLAGS"
4822       else
4823         CXXFLAGS="-O2 $CXXFLAGS"
4824       fi
4825     fi
4826   fi
4827
4828   if test "$kde_use_debug_define" = "yes"; then
4829     CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4830   fi
4831
4832   if test "$kde_use_profiling" = "yes"; then
4833
4834 { echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4835 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
4836 kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
4837 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840
4841
4842    ac_ext=cpp
4843 ac_cpp='$CXXCPP $CPPFLAGS'
4844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847
4848 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4849
4850
4851   save_CXXFLAGS="$CXXFLAGS"
4852   CXXFLAGS="$CXXFLAGS -pg"
4853   cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859
4860 int
4861 main ()
4862 {
4863  return 0;
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (ac_try="$ac_link"
4870 case "(($ac_try" in
4871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872   *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875   (eval "$ac_link") 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } && {
4882          test -z "$ac_cxx_werror_flag" ||
4883          test ! -s conftest.err
4884        } && test -s conftest$ac_exeext &&
4885        $as_test_x conftest$ac_exeext; then
4886   eval "kde_cv_prog_cxx_$kde_cache=yes"
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891
4892 fi
4893
4894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4895       conftest$ac_exeext conftest.$ac_ext
4896   CXXFLAGS="$save_CXXFLAGS"
4897   ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
4903
4904 fi
4905
4906 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4907  { echo "$as_me:$LINENO: result: yes" >&5
4908 echo "${ECHO_T}yes" >&6; }
4909  :
4910
4911       CFLAGS="-pg $CFLAGS"
4912       CXXFLAGS="-pg $CXXFLAGS"
4913
4914 else
4915  { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917  :
4918
4919 fi
4920
4921   fi
4922
4923   if test "$kde_use_warnings" = "yes"; then
4924       if test "$GCC" = "yes"; then
4925         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
4926         case $host in
4927           *-*-linux-gnu)
4928             CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4929             CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
4930
4931 { echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
4932 echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
4933 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4934 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937
4938
4939    ac_ext=cpp
4940 ac_cpp='$CXXCPP $CPPFLAGS'
4941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944
4945 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4946
4947
4948   save_CXXFLAGS="$CXXFLAGS"
4949   CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956
4957 int
4958 main ()
4959 {
4960  return 0;
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (ac_try="$ac_link"
4967 case "(($ac_try" in
4968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969   *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972   (eval "$ac_link") 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } && {
4979          test -z "$ac_cxx_werror_flag" ||
4980          test ! -s conftest.err
4981        } && test -s conftest$ac_exeext &&
4982        $as_test_x conftest$ac_exeext; then
4983   eval "kde_cv_prog_cxx_$kde_cache=yes"
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988
4989 fi
4990
4991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4992       conftest$ac_exeext conftest.$ac_ext
4993   CXXFLAGS="$save_CXXFLAGS"
4994   ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
5001 fi
5002
5003 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5004  { echo "$as_me:$LINENO: result: yes" >&5
5005 echo "${ECHO_T}yes" >&6; }
5006  :
5007  CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5008 else
5009  { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5011  :
5012
5013 fi
5014
5015
5016 { echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5017 echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5018 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5019 if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022
5023
5024   ac_ext=c
5025 ac_cpp='$CPP $CPPFLAGS'
5026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5029
5030   save_CFLAGS="$CFLAGS"
5031   CFLAGS="$CFLAGS -Wmissing-format-attribute"
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038
5039 int
5040 main ()
5041 {
5042  return 0;
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (ac_try="$ac_link"
5049 case "(($ac_try" in
5050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051   *) ac_try_echo=$ac_try;;
5052 esac
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054   (eval "$ac_link") 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } && {
5061          test -z "$ac_c_werror_flag" ||
5062          test ! -s conftest.err
5063        } && test -s conftest$ac_exeext &&
5064        $as_test_x conftest$ac_exeext; then
5065   eval "kde_cv_prog_cc_$kde_cache=yes"
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070
5071 fi
5072
5073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5074       conftest$ac_exeext conftest.$ac_ext
5075   CFLAGS="$save_CFLAGS"
5076   ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082
5083 fi
5084
5085 if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5086  { echo "$as_me:$LINENO: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6; }
5088  :
5089  CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5090 else
5091  { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5093  :
5094
5095 fi
5096
5097           ;;
5098         esac
5099
5100 { echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5101 echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
5102 kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5103 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106
5107
5108    ac_ext=cpp
5109 ac_cpp='$CXXCPP $CPPFLAGS'
5110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5113
5114 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5115
5116
5117   save_CXXFLAGS="$CXXFLAGS"
5118   CXXFLAGS="$CXXFLAGS -Wundef"
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129  return 0;
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (ac_try="$ac_link"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_link") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && {
5148          test -z "$ac_cxx_werror_flag" ||
5149          test ! -s conftest.err
5150        } && test -s conftest$ac_exeext &&
5151        $as_test_x conftest$ac_exeext; then
5152   eval "kde_cv_prog_cxx_$kde_cache=yes"
5153 else
5154   echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5161       conftest$ac_exeext conftest.$ac_ext
5162   CXXFLAGS="$save_CXXFLAGS"
5163   ac_ext=c
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168
5169
5170 fi
5171
5172 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5173  { echo "$as_me:$LINENO: result: yes" >&5
5174 echo "${ECHO_T}yes" >&6; }
5175  :
5176  CXXFLAGS="-Wundef $CXXFLAGS"
5177 else
5178  { echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6; }
5180  :
5181
5182 fi
5183
5184
5185 { echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5186 echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
5187 kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5188 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191
5192
5193    ac_ext=cpp
5194 ac_cpp='$CXXCPP $CPPFLAGS'
5195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198
5199 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5200
5201
5202   save_CXXFLAGS="$CXXFLAGS"
5203   CXXFLAGS="$CXXFLAGS -Wno-long-long"
5204   cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210
5211 int
5212 main ()
5213 {
5214  return 0;
5215   ;
5216   return 0;
5217 }
5218 _ACEOF
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (ac_try="$ac_link"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_link") 2>conftest.er1
5227   ac_status=$?
5228   grep -v '^ *+' conftest.er1 >conftest.err
5229   rm -f conftest.er1
5230   cat conftest.err >&5
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } && {
5233          test -z "$ac_cxx_werror_flag" ||
5234          test ! -s conftest.err
5235        } && test -s conftest$ac_exeext &&
5236        $as_test_x conftest$ac_exeext; then
5237   eval "kde_cv_prog_cxx_$kde_cache=yes"
5238 else
5239   echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242
5243 fi
5244
5245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5246       conftest$ac_exeext conftest.$ac_ext
5247   CXXFLAGS="$save_CXXFLAGS"
5248   ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253
5254
5255 fi
5256
5257 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5258  { echo "$as_me:$LINENO: result: yes" >&5
5259 echo "${ECHO_T}yes" >&6; }
5260  :
5261  CXXFLAGS="-Wno-long-long $CXXFLAGS"
5262 else
5263  { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265  :
5266
5267 fi
5268
5269
5270 { echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
5271 echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6; }
5272 kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5273 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276
5277
5278    ac_ext=cpp
5279 ac_cpp='$CXXCPP $CPPFLAGS'
5280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283
5284 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5285
5286
5287   save_CXXFLAGS="$CXXFLAGS"
5288   CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295
5296 int
5297 main ()
5298 {
5299  return 0;
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>conftest.er1
5312   ac_status=$?
5313   grep -v '^ *+' conftest.er1 >conftest.err
5314   rm -f conftest.er1
5315   cat conftest.err >&5
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } && {
5318          test -z "$ac_cxx_werror_flag" ||
5319          test ! -s conftest.err
5320        } && test -s conftest$ac_exeext &&
5321        $as_test_x conftest$ac_exeext; then
5322   eval "kde_cv_prog_cxx_$kde_cache=yes"
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327
5328 fi
5329
5330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5331       conftest$ac_exeext conftest.$ac_ext
5332   CXXFLAGS="$save_CXXFLAGS"
5333   ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338
5339
5340 fi
5341
5342 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5343  { echo "$as_me:$LINENO: result: yes" >&5
5344 echo "${ECHO_T}yes" >&6; }
5345  :
5346  CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5347 else
5348  { echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6; }
5350  :
5351
5352 fi
5353
5354      fi
5355   fi
5356
5357   if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5358     CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5359   fi
5360
5361   # Check whether --enable-pch was given.
5362 if test "${enable_pch+set}" = set; then
5363   enableval=$enable_pch;  kde_use_pch=$enableval
5364 else
5365    kde_use_pch=no
5366 fi
5367
5368
5369   HAVE_GCC_VISIBILITY=0
5370
5371
5372   if test "$GXX" = "yes"; then
5373     gcc_no_reorder_blocks=NO
5374
5375 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5376 echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6; }
5377 kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5378 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381
5382
5383    ac_ext=cpp
5384 ac_cpp='$CXXCPP $CPPFLAGS'
5385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5388
5389 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5390
5391
5392   save_CXXFLAGS="$CXXFLAGS"
5393   CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5394   cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400
5401 int
5402 main ()
5403 {
5404  return 0;
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (ac_try="$ac_link"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_link") 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } && {
5423          test -z "$ac_cxx_werror_flag" ||
5424          test ! -s conftest.err
5425        } && test -s conftest$ac_exeext &&
5426        $as_test_x conftest$ac_exeext; then
5427   eval "kde_cv_prog_cxx_$kde_cache=yes"
5428 else
5429   echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432
5433 fi
5434
5435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5436       conftest$ac_exeext conftest.$ac_ext
5437   CXXFLAGS="$save_CXXFLAGS"
5438   ac_ext=c
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444
5445 fi
5446
5447 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5448  { echo "$as_me:$LINENO: result: yes" >&5
5449 echo "${ECHO_T}yes" >&6; }
5450  :
5451  gcc_no_reorder_blocks=YES
5452 else
5453  { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5455  :
5456
5457 fi
5458
5459     if test $kde_use_debug_code != "no" && \
5460        test $kde_use_debug_code != "full" && \
5461        test "YES" = "$gcc_no_reorder_blocks" ; then
5462           CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5463           CFLAGS="$CFLAGS -fno-reorder-blocks"
5464     fi
5465
5466 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5467 echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
5468 kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5469 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472
5473
5474    ac_ext=cpp
5475 ac_cpp='$CXXCPP $CPPFLAGS'
5476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5479
5480 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5481
5482
5483   save_CXXFLAGS="$CXXFLAGS"
5484   CXXFLAGS="$CXXFLAGS -fno-exceptions"
5485   cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491
5492 int
5493 main ()
5494 {
5495  return 0;
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (ac_try="$ac_link"
5502 case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507   (eval "$ac_link") 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
5511   cat conftest.err >&5
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } && {
5514          test -z "$ac_cxx_werror_flag" ||
5515          test ! -s conftest.err
5516        } && test -s conftest$ac_exeext &&
5517        $as_test_x conftest$ac_exeext; then
5518   eval "kde_cv_prog_cxx_$kde_cache=yes"
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5527       conftest$ac_exeext conftest.$ac_ext
5528   CXXFLAGS="$save_CXXFLAGS"
5529   ac_ext=c
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535
5536 fi
5537
5538 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5539  { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5541  :
5542  CXXFLAGS="$CXXFLAGS -fno-exceptions"
5543 else
5544  { echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6; }
5546  :
5547
5548 fi
5549
5550
5551 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5552 echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
5553 kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5554 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557
5558
5559    ac_ext=cpp
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564
5565 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5566
5567
5568   save_CXXFLAGS="$CXXFLAGS"
5569   CXXFLAGS="$CXXFLAGS -fno-check-new"
5570   cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h.  */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h.  */
5576
5577 int
5578 main ()
5579 {
5580  return 0;
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (ac_try="$ac_link"
5587 case "(($ac_try" in
5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589   *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592   (eval "$ac_link") 2>conftest.er1
5593   ac_status=$?
5594   grep -v '^ *+' conftest.er1 >conftest.err
5595   rm -f conftest.er1
5596   cat conftest.err >&5
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } && {
5599          test -z "$ac_cxx_werror_flag" ||
5600          test ! -s conftest.err
5601        } && test -s conftest$ac_exeext &&
5602        $as_test_x conftest$ac_exeext; then
5603   eval "kde_cv_prog_cxx_$kde_cache=yes"
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5612       conftest$ac_exeext conftest.$ac_ext
5613   CXXFLAGS="$save_CXXFLAGS"
5614   ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620
5621 fi
5622
5623 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5624  { echo "$as_me:$LINENO: result: yes" >&5
5625 echo "${ECHO_T}yes" >&6; }
5626  :
5627  CXXFLAGS="$CXXFLAGS -fno-check-new"
5628 else
5629  { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5631  :
5632
5633 fi
5634
5635
5636 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5637 echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
5638 kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5639 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642
5643
5644    ac_ext=cpp
5645 ac_cpp='$CXXCPP $CPPFLAGS'
5646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649
5650 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5651
5652
5653   save_CXXFLAGS="$CXXFLAGS"
5654   CXXFLAGS="$CXXFLAGS -fno-common"
5655   cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661
5662 int
5663 main ()
5664 {
5665  return 0;
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (ac_try="$ac_link"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_link") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } && {
5684          test -z "$ac_cxx_werror_flag" ||
5685          test ! -s conftest.err
5686        } && test -s conftest$ac_exeext &&
5687        $as_test_x conftest$ac_exeext; then
5688   eval "kde_cv_prog_cxx_$kde_cache=yes"
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5697       conftest$ac_exeext conftest.$ac_ext
5698   CXXFLAGS="$save_CXXFLAGS"
5699   ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705
5706 fi
5707
5708 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5709  { echo "$as_me:$LINENO: result: yes" >&5
5710 echo "${ECHO_T}yes" >&6; }
5711  :
5712  CXXFLAGS="$CXXFLAGS -fno-common"
5713 else
5714  { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5716  :
5717
5718 fi
5719
5720
5721 { echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5722 echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
5723 kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
5724 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727
5728
5729    ac_ext=cpp
5730 ac_cpp='$CXXCPP $CPPFLAGS'
5731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5734
5735 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5736
5737
5738   save_CXXFLAGS="$CXXFLAGS"
5739   CXXFLAGS="$CXXFLAGS -fexceptions"
5740   cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746
5747 int
5748 main ()
5749 {
5750  return 0;
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (ac_try="$ac_link"
5757 case "(($ac_try" in
5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759   *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762   (eval "$ac_link") 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && {
5769          test -z "$ac_cxx_werror_flag" ||
5770          test ! -s conftest.err
5771        } && test -s conftest$ac_exeext &&
5772        $as_test_x conftest$ac_exeext; then
5773   eval "kde_cv_prog_cxx_$kde_cache=yes"
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5782       conftest$ac_exeext conftest.$ac_ext
5783   CXXFLAGS="$save_CXXFLAGS"
5784   ac_ext=c
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790
5791 fi
5792
5793 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5794  { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5796  :
5797  USE_EXCEPTIONS="-fexceptions"
5798 else
5799  { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5801  :
5802  USE_EXCEPTIONS=
5803 fi
5804
5805     ENABLE_PERMISSIVE_FLAG="-fpermissive"
5806
5807     if test "$kde_use_pch" = "yes"; then
5808         { echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
5809 echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
5810         echo >conftest.h
5811         if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
5812             kde_gcc_supports_pch=yes
5813             { echo "$as_me:$LINENO: result: yes" >&5
5814 echo "${ECHO_T}yes" >&6; }
5815         else
5816             kde_gcc_supports_pch=no
5817             { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5819         fi
5820         if test "$kde_gcc_supports_pch" = "yes"; then
5821             { echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
5822 echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
5823             if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
5824                 kde_gcc_supports_pch=yes
5825                 { echo "$as_me:$LINENO: result: yes" >&5
5826 echo "${ECHO_T}yes" >&6; }
5827             else
5828                 kde_gcc_supports_pch=no
5829                 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5831             fi
5832         fi
5833         rm -f conftest.h conftest.h.gch
5834     fi
5835
5836
5837   { echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
5838 echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6; }
5839 if test "${kde_cv_opt_noinline_match+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842
5843   kde_cv_opt_noinline_match=irrelevant
5844     if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
5845      && echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
5846
5847     ac_cflags_save="$CFLAGS"
5848     CFLAGS="$CFLAGS -D_USE_GNU"
5849
5850     cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856
5857   #include <string.h>
5858
5859 int
5860 main ()
5861 {
5862   const char *pt, *et;
5863   et = __extension__      ({ char __a0, __a1, __a2;       (__builtin_constant_p (  ";,"  ) && ((size_t)(const void *)((   ";,"   )+ 1) - (size_t)(const void *)(   ";,"   ) == 1)        ? ((__a0 =((__const char  *) (  ";,"  ))[0], __a0 == '\0')     ? ((void) (  pt ),((void *)0) )        : ((__a1 = ((__const char *) (  ";,"  ))[1], __a1== '\0')      ? (__extension__ (__builtin_constant_p (  __a0 ) && ( __a0 ) == '\0'   ? (char *) __rawmemchr (   pt  ,   __a0)       : strchr(   pt  ,   __a0 )))   : ((__a2 = ((__const char *) (  ";,"  ))[2], __a2 == '\0')      ? __strpbrk_c2 (  pt , __a0, __a1)      :(((__const char *) (  ";,"  ))[3] == '\0'     ? __strpbrk_c3 (  pt ,__a0, __a1, __a2): strpbrk (  pt ,   ";,"  ))))) : strpbrk (  pt ,  ";,"  )); }) ;
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5871 case "(($ac_try" in
5872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873   *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876   (eval "$ac_link") 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } && {
5883          test -z "$ac_c_werror_flag" ||
5884          test ! -s conftest.err
5885        } && test -s conftest$ac_exeext &&
5886        $as_test_x conftest$ac_exeext; then
5887   kde_cv_opt_noinline_match=yes
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892         kde_cv_opt_noinline_match=no
5893
5894 fi
5895
5896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5897       conftest$ac_exeext conftest.$ac_ext
5898
5899     CFLAGS="$ac_cflags_save"
5900   fi
5901
5902 fi
5903 { echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
5904 echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6; }
5905
5906     if test "x$kde_cv_opt_noinline_match" = "xno" ; then
5907        CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
5908     fi
5909   fi
5910    if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
5911   unsermake_enable_pch_TRUE=
5912   unsermake_enable_pch_FALSE='#'
5913 else
5914   unsermake_enable_pch_TRUE='#'
5915   unsermake_enable_pch_FALSE=
5916 fi
5917
5918   if test "$CXX" = "KCC"; then
5919
5920     if test "$kde_use_pch" = "yes"; then
5921
5922 { echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5923 echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
5924 kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
5925 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928
5929
5930    ac_ext=cpp
5931 ac_cpp='$CXXCPP $CPPFLAGS'
5932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5935
5936 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5937
5938
5939   save_CXXFLAGS="$CXXFLAGS"
5940   CXXFLAGS="$CXXFLAGS --pch"
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947
5948 int
5949 main ()
5950 {
5951  return 0;
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (ac_try="$ac_link"
5958 case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_link") 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } && {
5970          test -z "$ac_cxx_werror_flag" ||
5971          test ! -s conftest.err
5972        } && test -s conftest$ac_exeext &&
5973        $as_test_x conftest$ac_exeext; then
5974   eval "kde_cv_prog_cxx_$kde_cache=yes"
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5983       conftest$ac_exeext conftest.$ac_ext
5984   CXXFLAGS="$save_CXXFLAGS"
5985   ac_ext=c
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
5991
5992 fi
5993
5994 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5995  { echo "$as_me:$LINENO: result: yes" >&5
5996 echo "${ECHO_T}yes" >&6; }
5997  :
5998  CXXFLAGS="$CXXFLAGS --pch"
5999 else
6000  { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002  :
6003
6004 fi
6005
6006                                               fi
6007
6008 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6009 echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
6010 kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6011 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014
6015
6016    ac_ext=cpp
6017 ac_cpp='$CXXCPP $CPPFLAGS'
6018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6021
6022 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6023
6024
6025   save_CXXFLAGS="$CXXFLAGS"
6026   CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6027   cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033
6034 int
6035 main ()
6036 {
6037  return 0;
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_link") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } && {
6056          test -z "$ac_cxx_werror_flag" ||
6057          test ! -s conftest.err
6058        } && test -s conftest$ac_exeext &&
6059        $as_test_x conftest$ac_exeext; then
6060   eval "kde_cv_prog_cxx_$kde_cache=yes"
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069       conftest$ac_exeext conftest.$ac_ext
6070   CXXFLAGS="$save_CXXFLAGS"
6071   ac_ext=c
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
6077
6078 fi
6079
6080 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6081  { echo "$as_me:$LINENO: result: yes" >&5
6082 echo "${ECHO_T}yes" >&6; }
6083  :
6084  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6085 else
6086  { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088  :
6089
6090 fi
6091
6092
6093 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6094 echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
6095 kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6096 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099
6100
6101    ac_ext=cpp
6102 ac_cpp='$CXXCPP $CPPFLAGS'
6103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6106
6107 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6108
6109
6110   save_CXXFLAGS="$CXXFLAGS"
6111   CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6112   cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118
6119 int
6120 main ()
6121 {
6122  return 0;
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (ac_try="$ac_link"
6129 case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134   (eval "$ac_link") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_cxx_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest$ac_exeext &&
6144        $as_test_x conftest$ac_exeext; then
6145   eval "kde_cv_prog_cxx_$kde_cache=yes"
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150
6151 fi
6152
6153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6154       conftest$ac_exeext conftest.$ac_ext
6155   CXXFLAGS="$save_CXXFLAGS"
6156   ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163 fi
6164
6165 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6166  { echo "$as_me:$LINENO: result: yes" >&5
6167 echo "${ECHO_T}yes" >&6; }
6168  :
6169  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6170 else
6171  { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173  :
6174
6175 fi
6176
6177
6178 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6179 echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
6180 kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6181 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184
6185
6186    ac_ext=cpp
6187 ac_cpp='$CXXCPP $CPPFLAGS'
6188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6191
6192 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6193
6194
6195   save_CXXFLAGS="$CXXFLAGS"
6196   CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6197   cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203
6204 int
6205 main ()
6206 {
6207  return 0;
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (ac_try="$ac_link"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219   (eval "$ac_link") 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } && {
6226          test -z "$ac_cxx_werror_flag" ||
6227          test ! -s conftest.err
6228        } && test -s conftest$ac_exeext &&
6229        $as_test_x conftest$ac_exeext; then
6230   eval "kde_cv_prog_cxx_$kde_cache=yes"
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6239       conftest$ac_exeext conftest.$ac_ext
6240   CXXFLAGS="$save_CXXFLAGS"
6241   ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246
6247
6248 fi
6249
6250 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6251  { echo "$as_me:$LINENO: result: yes" >&5
6252 echo "${ECHO_T}yes" >&6; }
6253  :
6254  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6255 else
6256  { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258  :
6259
6260 fi
6261
6262
6263 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6264 echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
6265 kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6266 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269
6270
6271    ac_ext=cpp
6272 ac_cpp='$CXXCPP $CPPFLAGS'
6273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6276
6277 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6278
6279
6280   save_CXXFLAGS="$CXXFLAGS"
6281   CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6282   cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288
6289 int
6290 main ()
6291 {
6292  return 0;
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (ac_try="$ac_link"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_link") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } && {
6311          test -z "$ac_cxx_werror_flag" ||
6312          test ! -s conftest.err
6313        } && test -s conftest$ac_exeext &&
6314        $as_test_x conftest$ac_exeext; then
6315   eval "kde_cv_prog_cxx_$kde_cache=yes"
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6324       conftest$ac_exeext conftest.$ac_ext
6325   CXXFLAGS="$save_CXXFLAGS"
6326   ac_ext=c
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331
6332
6333 fi
6334
6335 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6336  { echo "$as_me:$LINENO: result: yes" >&5
6337 echo "${ECHO_T}yes" >&6; }
6338  :
6339  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6340 else
6341  { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343  :
6344
6345 fi
6346
6347
6348 { echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6349 echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
6350 kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6351 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354
6355
6356    ac_ext=cpp
6357 ac_cpp='$CXXCPP $CPPFLAGS'
6358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6361
6362 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6363
6364
6365   save_CXXFLAGS="$CXXFLAGS"
6366   CXXFLAGS="$CXXFLAGS --one_per"
6367   cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373
6374 int
6375 main ()
6376 {
6377  return 0;
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (ac_try="$ac_link"
6384 case "(($ac_try" in
6385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386   *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389   (eval "$ac_link") 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } && {
6396          test -z "$ac_cxx_werror_flag" ||
6397          test ! -s conftest.err
6398        } && test -s conftest$ac_exeext &&
6399        $as_test_x conftest$ac_exeext; then
6400   eval "kde_cv_prog_cxx_$kde_cache=yes"
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405
6406 fi
6407
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409       conftest$ac_exeext conftest.$ac_ext
6410   CXXFLAGS="$save_CXXFLAGS"
6411   ac_ext=c
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417
6418 fi
6419
6420 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6421  { echo "$as_me:$LINENO: result: yes" >&5
6422 echo "${ECHO_T}yes" >&6; }
6423  :
6424  CXXFLAGS="$CXXFLAGS --one_per"
6425 else
6426  { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6428  :
6429
6430 fi
6431
6432   fi
6433
6434     USE_RTTI=
6435
6436
6437   case "$host" in
6438       *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6439       *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6440       *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6441       *-*-solaris*)
6442         if test "$GXX" = yes; then
6443           libstdcpp=`$CXX -print-file-name=libstdc++.so`
6444           if test ! -f $libstdcpp; then
6445              { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6446 echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
6447    { (exit 1); exit 1; }; }
6448           fi
6449         fi
6450         ;;
6451   esac
6452
6453   if test "x$kde_use_qt_emb" != "xyes"; then
6454   __val=$CXX
6455   __forbid=" -fno-rtti -rpath "
6456   if test -n "$__val"; then
6457     __new=""
6458     ac_save_IFS=$IFS
6459     IFS="       "
6460     for i in $__val; do
6461       case "$__forbid" in
6462         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6463 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6464         *) # Careful to not add spaces, where there were none, because otherwise
6465            # libtool gets confused, if we change e.g. CXX
6466            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6467       esac
6468     done
6469     IFS=$ac_save_IFS
6470     CXX=$__new
6471   fi
6472
6473   __val=$CXXFLAGS
6474   __forbid=" -fno-rtti -rpath "
6475   if test -n "$__val"; then
6476     __new=""
6477     ac_save_IFS=$IFS
6478     IFS="       "
6479     for i in $__val; do
6480       case "$__forbid" in
6481         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6482 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6483         *) # Careful to not add spaces, where there were none, because otherwise
6484            # libtool gets confused, if we change e.g. CXX
6485            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6486       esac
6487     done
6488     IFS=$ac_save_IFS
6489     CXXFLAGS=$__new
6490   fi
6491
6492 else
6493   __val=$CXX
6494   __forbid=" -rpath "
6495   if test -n "$__val"; then
6496     __new=""
6497     ac_save_IFS=$IFS
6498     IFS="       "
6499     for i in $__val; do
6500       case "$__forbid" in
6501         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6502 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6503         *) # Careful to not add spaces, where there were none, because otherwise
6504            # libtool gets confused, if we change e.g. CXX
6505            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6506       esac
6507     done
6508     IFS=$ac_save_IFS
6509     CXX=$__new
6510   fi
6511
6512   __val=$CXXFLAGS
6513   __forbid=" -rpath "
6514   if test -n "$__val"; then
6515     __new=""
6516     ac_save_IFS=$IFS
6517     IFS="       "
6518     for i in $__val; do
6519       case "$__forbid" in
6520         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6521 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6522         *) # Careful to not add spaces, where there were none, because otherwise
6523            # libtool gets confused, if we change e.g. CXX
6524            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6525       esac
6526     done
6527     IFS=$ac_save_IFS
6528     CXXFLAGS=$__new
6529   fi
6530
6531 fi
6532
6533
6534   ac_ext=cpp
6535 ac_cpp='$CXXCPP $CPPFLAGS'
6536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6539 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6540 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6541 if test -z "$CXXCPP"; then
6542   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545       # Double quotes because CXXCPP needs to be expanded
6546     for CXXCPP in "$CXX -E" "/lib/cpp"
6547     do
6548       ac_preproc_ok=false
6549 for ac_cxx_preproc_warn_flag in '' yes
6550 do
6551   # Use a header file that comes with gcc, so configuring glibc
6552   # with a fresh cross-compiler works.
6553   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6554   # <limits.h> exists even on freestanding compilers.
6555   # On the NeXT, cc -E runs the code through the compiler's parser,
6556   # not just through cpp. "Syntax error" is here to catch this case.
6557   cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 #ifdef __STDC__
6564 # include <limits.h>
6565 #else
6566 # include <assert.h>
6567 #endif
6568                      Syntax error
6569 _ACEOF
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6571 case "(($ac_try" in
6572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573   *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577   ac_status=$?
6578   grep -v '^ *+' conftest.er1 >conftest.err
6579   rm -f conftest.er1
6580   cat conftest.err >&5
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } >/dev/null && {
6583          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6584          test ! -s conftest.err
6585        }; then
6586   :
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591   # Broken: fails on valid input.
6592 continue
6593 fi
6594
6595 rm -f conftest.err conftest.$ac_ext
6596
6597   # OK, works on sane cases.  Now check whether nonexistent headers
6598   # can be detected and how.
6599   cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 #include <ac_nonexistent.h>
6606 _ACEOF
6607 if { (ac_try="$ac_cpp conftest.$ac_ext"
6608 case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } >/dev/null && {
6620          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6621          test ! -s conftest.err
6622        }; then
6623   # Broken: success on invalid input.
6624 continue
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629   # Passes both tests.
6630 ac_preproc_ok=:
6631 break
6632 fi
6633
6634 rm -f conftest.err conftest.$ac_ext
6635
6636 done
6637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6638 rm -f conftest.err conftest.$ac_ext
6639 if $ac_preproc_ok; then
6640   break
6641 fi
6642
6643     done
6644     ac_cv_prog_CXXCPP=$CXXCPP
6645
6646 fi
6647   CXXCPP=$ac_cv_prog_CXXCPP
6648 else
6649   ac_cv_prog_CXXCPP=$CXXCPP
6650 fi
6651 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6652 echo "${ECHO_T}$CXXCPP" >&6; }
6653 ac_preproc_ok=false
6654 for ac_cxx_preproc_warn_flag in '' yes
6655 do
6656   # Use a header file that comes with gcc, so configuring glibc
6657   # with a fresh cross-compiler works.
6658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659   # <limits.h> exists even on freestanding compilers.
6660   # On the NeXT, cc -E runs the code through the compiler's parser,
6661   # not just through cpp. "Syntax error" is here to catch this case.
6662   cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h.  */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h.  */
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673                      Syntax error
6674 _ACEOF
6675 if { (ac_try="$ac_cpp conftest.$ac_ext"
6676 case "(($ac_try" in
6677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678   *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } >/dev/null && {
6688          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6689          test ! -s conftest.err
6690        }; then
6691   :
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696   # Broken: fails on valid input.
6697 continue
6698 fi
6699
6700 rm -f conftest.err conftest.$ac_ext
6701
6702   # OK, works on sane cases.  Now check whether nonexistent headers
6703   # can be detected and how.
6704   cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 #include <ac_nonexistent.h>
6711 _ACEOF
6712 if { (ac_try="$ac_cpp conftest.$ac_ext"
6713 case "(($ac_try" in
6714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715   *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } >/dev/null && {
6725          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6726          test ! -s conftest.err
6727        }; then
6728   # Broken: success on invalid input.
6729 continue
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734   # Passes both tests.
6735 ac_preproc_ok=:
6736 break
6737 fi
6738
6739 rm -f conftest.err conftest.$ac_ext
6740
6741 done
6742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6743 rm -f conftest.err conftest.$ac_ext
6744 if $ac_preproc_ok; then
6745   :
6746 else
6747   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6748 See \`config.log' for more details." >&5
6749 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6750 See \`config.log' for more details." >&2;}
6751    { (exit 1); exit 1; }; }
6752 fi
6753
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760
6761   if test "$GCC" = yes; then
6762      NOOPT_CFLAGS=-O0
6763   fi
6764
6765 { echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
6766 echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
6767 kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
6768 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771
6772
6773    ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6780
6781
6782   save_CXXFLAGS="$CXXFLAGS"
6783   CXXFLAGS="$CXXFLAGS -O0"
6784   cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790
6791 int
6792 main ()
6793 {
6794  return 0;
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6801 case "(($ac_try" in
6802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803   *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806   (eval "$ac_link") 2>conftest.er1
6807   ac_status=$?
6808   grep -v '^ *+' conftest.er1 >conftest.err
6809   rm -f conftest.er1
6810   cat conftest.err >&5
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); } && {
6813          test -z "$ac_cxx_werror_flag" ||
6814          test ! -s conftest.err
6815        } && test -s conftest$ac_exeext &&
6816        $as_test_x conftest$ac_exeext; then
6817   eval "kde_cv_prog_cxx_$kde_cache=yes"
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822
6823 fi
6824
6825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6826       conftest$ac_exeext conftest.$ac_ext
6827   CXXFLAGS="$save_CXXFLAGS"
6828   ac_ext=c
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833
6834
6835 fi
6836
6837 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6838  { echo "$as_me:$LINENO: result: yes" >&5
6839 echo "${ECHO_T}yes" >&6; }
6840  :
6841  NOOPT_CXXFLAGS=-O0
6842 else
6843  { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845  :
6846
6847 fi
6848
6849
6850   # Check whether --enable-coverage was given.
6851 if test "${enable_coverage+set}" = set; then
6852   enableval=$enable_coverage;
6853       if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
6854         ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6855         ac_coverage_linker="-lgcc"
6856       elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
6857         ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6858         ac_coverage_linker=""
6859       else
6860         { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
6861 echo "$as_me: error: coverage with your compiler is not supported" >&2;}
6862    { (exit 1); exit 1; }; }
6863       fi
6864       CFLAGS="$CFLAGS $ac_coverage_compiler"
6865       CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
6866       LDFLAGS="$LDFLAGS $ac_coverage_linker"
6867
6868 fi
6869
6870
6871
6872
6873
6874
6875
6876   # Check whether --enable-new_ldflags was given.
6877 if test "${enable_new_ldflags+set}" = set; then
6878   enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
6879 else
6880   kde_use_new_ldflags=no
6881 fi
6882
6883
6884   LDFLAGS_AS_NEEDED=""
6885   LDFLAGS_NEW_DTAGS=""
6886   if test "x$kde_use_new_ldflags" = "xyes"; then
6887        LDFLAGS_NEW_DTAGS=""
6888
6889 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
6890 echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
6891 kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
6892 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895
6896
6897    ac_ext=cpp
6898 ac_cpp='$CXXCPP $CPPFLAGS'
6899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6902
6903 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6904
6905
6906   save_CXXFLAGS="$CXXFLAGS"
6907   CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
6908   cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914
6915 int
6916 main ()
6917 {
6918  return 0;
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (ac_try="$ac_link"
6925 case "(($ac_try" in
6926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927   *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930   (eval "$ac_link") 2>conftest.er1
6931   ac_status=$?
6932   grep -v '^ *+' conftest.er1 >conftest.err
6933   rm -f conftest.er1
6934   cat conftest.err >&5
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); } && {
6937          test -z "$ac_cxx_werror_flag" ||
6938          test ! -s conftest.err
6939        } && test -s conftest$ac_exeext &&
6940        $as_test_x conftest$ac_exeext; then
6941   eval "kde_cv_prog_cxx_$kde_cache=yes"
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946
6947 fi
6948
6949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6950       conftest$ac_exeext conftest.$ac_ext
6951   CXXFLAGS="$save_CXXFLAGS"
6952   ac_ext=c
6953 ac_cpp='$CPP $CPPFLAGS'
6954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6957
6958
6959 fi
6960
6961 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6962  { echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6; }
6964  :
6965  LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
6966 else
6967  { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969  :
6970
6971 fi
6972
6973
6974
6975 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
6976 echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
6977 kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
6978 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981
6982
6983    ac_ext=cpp
6984 ac_cpp='$CXXCPP $CPPFLAGS'
6985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6988
6989 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6990
6991
6992   save_CXXFLAGS="$CXXFLAGS"
6993   CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
6994   cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000
7001 int
7002 main ()
7003 {
7004  return 0;
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (ac_try="$ac_link"
7011 case "(($ac_try" in
7012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013   *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016   (eval "$ac_link") 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } && {
7023          test -z "$ac_cxx_werror_flag" ||
7024          test ! -s conftest.err
7025        } && test -s conftest$ac_exeext &&
7026        $as_test_x conftest$ac_exeext; then
7027   eval "kde_cv_prog_cxx_$kde_cache=yes"
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032
7033 fi
7034
7035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7036       conftest$ac_exeext conftest.$ac_ext
7037   CXXFLAGS="$save_CXXFLAGS"
7038   ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043
7044
7045 fi
7046
7047 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7048  { echo "$as_me:$LINENO: result: yes" >&5
7049 echo "${ECHO_T}yes" >&6; }
7050  :
7051  LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7052 else
7053  { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055  :
7056
7057 fi
7058
7059   fi
7060
7061
7062
7063
7064   # Check whether --enable-final was given.
7065 if test "${enable_final+set}" = set; then
7066   enableval=$enable_final; kde_use_final=$enableval
7067 else
7068   kde_use_final=no
7069 fi
7070
7071
7072   if test "x$kde_use_final" = "xyes"; then
7073       KDE_USE_FINAL_TRUE=""
7074       KDE_USE_FINAL_FALSE="#"
7075    else
7076       KDE_USE_FINAL_TRUE="#"
7077       KDE_USE_FINAL_FALSE=""
7078   fi
7079
7080
7081
7082
7083   # Check whether --enable-closure was given.
7084 if test "${enable_closure+set}" = set; then
7085   enableval=$enable_closure; kde_use_closure=$enableval
7086 else
7087   kde_use_closure=no
7088 fi
7089
7090
7091   KDE_NO_UNDEFINED=""
7092   if test "x$kde_use_closure" = "xyes"; then
7093        KDE_USE_CLOSURE_TRUE=""
7094        KDE_USE_CLOSURE_FALSE="#"
7095 #       CXXFLAGS="$CXXFLAGS $REPO"
7096   else
7097        KDE_USE_CLOSURE_TRUE="#"
7098        KDE_USE_CLOSURE_FALSE=""
7099        KDE_NO_UNDEFINED=""
7100        case $host in
7101          *-*-linux-gnu)
7102
7103 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7104 echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
7105 kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7106 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109
7110
7111    ac_ext=cpp
7112 ac_cpp='$CXXCPP $CPPFLAGS'
7113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7116
7117 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7118
7119
7120   save_CXXFLAGS="$CXXFLAGS"
7121   CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7122   cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128
7129 int
7130 main ()
7131 {
7132  return 0;
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (ac_try="$ac_link"
7139 case "(($ac_try" in
7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141   *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144   (eval "$ac_link") 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } && {
7151          test -z "$ac_cxx_werror_flag" ||
7152          test ! -s conftest.err
7153        } && test -s conftest$ac_exeext &&
7154        $as_test_x conftest$ac_exeext; then
7155   eval "kde_cv_prog_cxx_$kde_cache=yes"
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160
7161 fi
7162
7163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7164       conftest$ac_exeext conftest.$ac_ext
7165   CXXFLAGS="$save_CXXFLAGS"
7166   ac_ext=c
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172
7173 fi
7174
7175 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7176  { echo "$as_me:$LINENO: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6; }
7178  :
7179
7180 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7181 echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
7182 kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7183 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186
7187
7188    ac_ext=cpp
7189 ac_cpp='$CXXCPP $CPPFLAGS'
7190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7193
7194 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7195
7196
7197   save_CXXFLAGS="$CXXFLAGS"
7198   CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7199   cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h.  */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h.  */
7205
7206 int
7207 main ()
7208 {
7209  return 0;
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (ac_try="$ac_link"
7216 case "(($ac_try" in
7217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218   *) ac_try_echo=$ac_try;;
7219 esac
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221   (eval "$ac_link") 2>conftest.er1
7222   ac_status=$?
7223   grep -v '^ *+' conftest.er1 >conftest.err
7224   rm -f conftest.er1
7225   cat conftest.err >&5
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); } && {
7228          test -z "$ac_cxx_werror_flag" ||
7229          test ! -s conftest.err
7230        } && test -s conftest$ac_exeext &&
7231        $as_test_x conftest$ac_exeext; then
7232   eval "kde_cv_prog_cxx_$kde_cache=yes"
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237
7238 fi
7239
7240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7241       conftest$ac_exeext conftest.$ac_ext
7242   CXXFLAGS="$save_CXXFLAGS"
7243   ac_ext=c
7244 ac_cpp='$CPP $CPPFLAGS'
7245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248
7249
7250 fi
7251
7252 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7253  { echo "$as_me:$LINENO: result: yes" >&5
7254 echo "${ECHO_T}yes" >&6; }
7255  :
7256  KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7257 else
7258  { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7260  :
7261  KDE_NO_UNDEFINED=""
7262 fi
7263
7264 else
7265  { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7267  :
7268  KDE_NO_UNDEFINED=""
7269 fi
7270
7271            ;;
7272        esac
7273   fi
7274
7275
7276
7277
7278
7279   # Check whether --enable-nmcheck was given.
7280 if test "${enable_nmcheck+set}" = set; then
7281   enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7282 else
7283   kde_use_nmcheck=no
7284 fi
7285
7286
7287   if test "$kde_use_nmcheck" = "yes"; then
7288       KDE_USE_NMCHECK_TRUE=""
7289       KDE_USE_NMCHECK_FALSE="#"
7290    else
7291       KDE_USE_NMCHECK_TRUE="#"
7292       KDE_USE_NMCHECK_FALSE=""
7293   fi
7294
7295
7296
7297
7298
7299
7300
7301 CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS"
7302 # Check whether --enable-shared was given.
7303 if test "${enable_shared+set}" = set; then
7304   enableval=$enable_shared; p=${PACKAGE-default}
7305     case $enableval in
7306     yes) enable_shared=yes ;;
7307     no) enable_shared=no ;;
7308     *)
7309       enable_shared=no
7310       # Look at the argument we got.  We use all the common list separators.
7311       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312       for pkg in $enableval; do
7313         IFS="$lt_save_ifs"
7314         if test "X$pkg" = "X$p"; then
7315           enable_shared=yes
7316         fi
7317       done
7318       IFS="$lt_save_ifs"
7319       ;;
7320     esac
7321 else
7322   enable_shared=yes
7323 fi
7324
7325
7326
7327 # Check whether --enable-static was given.
7328 if test "${enable_static+set}" = set; then
7329   enableval=$enable_static; p=${PACKAGE-default}
7330     case $enableval in
7331     yes) enable_static=yes ;;
7332     no) enable_static=no ;;
7333     *)
7334      enable_static=no
7335       # Look at the argument we got.  We use all the common list separators.
7336       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337       for pkg in $enableval; do
7338         IFS="$lt_save_ifs"
7339         if test "X$pkg" = "X$p"; then
7340           enable_static=yes
7341         fi
7342       done
7343       IFS="$lt_save_ifs"
7344       ;;
7345     esac
7346 else
7347   enable_static=no
7348 fi
7349
7350
7351
7352
7353
7354
7355     # Check whether --enable-libsuffix was given.
7356 if test "${enable_libsuffix+set}" = set; then
7357   enableval=$enable_libsuffix; kdelibsuff=$enableval
7358 else
7359   kdelibsuff="auto"
7360 fi
7361
7362
7363     if test "$kdelibsuff" = "auto"; then
7364
7365 cat > conftest.c << EOF
7366 #include <stdio.h>
7367 int main() {
7368  return 0;
7369 }
7370 EOF
7371         kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7372     s,.*/lib\([^\/]*\)/.*,\1,
7373     p
7374 }'`
7375         rm -rf conftest.*
7376     fi
7377
7378     if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7379        kdelibsuff=
7380     fi
7381     if test -z "$kdelibsuff"; then
7382         { echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7383 echo "${ECHO_T}not using lib directory suffix" >&6; }
7384
7385 cat >>confdefs.h <<\_ACEOF
7386 #define KDELIBSUFF ""
7387 _ACEOF
7388
7389     else
7390         if test "$libdir" = '${exec_prefix}/lib'; then
7391             libdir="$libdir${kdelibsuff}"
7392             libdir="$libdir"
7393           fi
7394
7395 cat >>confdefs.h <<_ACEOF
7396 #define KDELIBSUFF "${kdelibsuff}"
7397 _ACEOF
7398
7399         { echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7400 echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
7401     fi
7402
7403 # Check whether --enable-fast-install was given.
7404 if test "${enable_fast_install+set}" = set; then
7405   enableval=$enable_fast_install; p=${PACKAGE-default}
7406     case $enableval in
7407     yes) enable_fast_install=yes ;;
7408     no) enable_fast_install=no ;;
7409     *)
7410       enable_fast_install=no
7411       # Look at the argument we got.  We use all the common list separators.
7412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413       for pkg in $enableval; do
7414         IFS="$lt_save_ifs"
7415         if test "X$pkg" = "X$p"; then
7416           enable_fast_install=yes
7417         fi
7418       done
7419       IFS="$lt_save_ifs"
7420       ;;
7421     esac
7422 else
7423   enable_fast_install=yes
7424 fi
7425
7426
7427 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7428 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7429 if test "${lt_cv_path_SED+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   # Loop through the user's path and test for sed and gsed.
7433 # Then use that list of sed's as ones to test for truncation.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439   for lt_ac_prog in sed gsed; do
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7442         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7443       fi
7444     done
7445   done
7446 done
7447 lt_ac_max=0
7448 lt_ac_count=0
7449 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7450 # along with /bin/sed that truncates output.
7451 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7452   test ! -f $lt_ac_sed && break
7453   cat /dev/null > conftest.in
7454   lt_ac_count=0
7455   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7456   # Check for GNU sed and select it if it is found.
7457   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7458     lt_cv_path_SED=$lt_ac_sed
7459     break
7460   fi
7461   while true; do
7462     cat conftest.in conftest.in >conftest.tmp
7463     mv conftest.tmp conftest.in
7464     cp conftest.in conftest.nl
7465     echo >>conftest.nl
7466     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7467     cmp -s conftest.out conftest.nl || break
7468     # 10000 chars as input seems more than enough
7469     test $lt_ac_count -gt 10 && break
7470     lt_ac_count=`expr $lt_ac_count + 1`
7471     if test $lt_ac_count -gt $lt_ac_max; then
7472       lt_ac_max=$lt_ac_count
7473       lt_cv_path_SED=$lt_ac_sed
7474     fi
7475   done
7476 done
7477
7478 fi
7479
7480 SED=$lt_cv_path_SED
7481 { echo "$as_me:$LINENO: result: $SED" >&5
7482 echo "${ECHO_T}$SED" >&6; }
7483
7484 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7485 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_GREP+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   # Extract the first word of "grep ggrep" to use in msg output
7490 if test -z "$GREP"; then
7491 set dummy grep ggrep; ac_prog_name=$2
7492 if test "${ac_cv_path_GREP+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   ac_path_GREP_found=false
7496 # Loop through the user's path and test for each of PROGNAME-LIST
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502   for ac_prog in grep ggrep; do
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7505     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7506     # Check for GNU ac_path_GREP and select it if it is found.
7507   # Check for GNU $ac_path_GREP
7508 case `"$ac_path_GREP" --version 2>&1` in
7509 *GNU*)
7510   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7511 *)
7512   ac_count=0
7513   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7514   while :
7515   do
7516     cat "conftest.in" "conftest.in" >"conftest.tmp"
7517     mv "conftest.tmp" "conftest.in"
7518     cp "conftest.in" "conftest.nl"
7519     echo 'GREP' >> "conftest.nl"
7520     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7522     ac_count=`expr $ac_count + 1`
7523     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7524       # Best one so far, save it but keep looking for a better one
7525       ac_cv_path_GREP="$ac_path_GREP"
7526       ac_path_GREP_max=$ac_count
7527     fi
7528     # 10*(2^10) chars as input seems more than enough
7529     test $ac_count -gt 10 && break
7530   done
7531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7532 esac
7533
7534
7535     $ac_path_GREP_found && break 3
7536   done
7537 done
7538
7539 done
7540 IFS=$as_save_IFS
7541
7542
7543 fi
7544
7545 GREP="$ac_cv_path_GREP"
7546 if test -z "$GREP"; then
7547   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7548 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7549    { (exit 1); exit 1; }; }
7550 fi
7551
7552 else
7553   ac_cv_path_GREP=$GREP
7554 fi
7555
7556
7557 fi
7558 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7559 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7560  GREP="$ac_cv_path_GREP"
7561
7562
7563 { echo "$as_me:$LINENO: checking for egrep" >&5
7564 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7565 if test "${ac_cv_path_EGREP+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7569    then ac_cv_path_EGREP="$GREP -E"
7570    else
7571      # Extract the first word of "egrep" to use in msg output
7572 if test -z "$EGREP"; then
7573 set dummy egrep; ac_prog_name=$2
7574 if test "${ac_cv_path_EGREP+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   ac_path_EGREP_found=false
7578 # Loop through the user's path and test for each of PROGNAME-LIST
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584   for ac_prog in egrep; do
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7587     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7588     # Check for GNU ac_path_EGREP and select it if it is found.
7589   # Check for GNU $ac_path_EGREP
7590 case `"$ac_path_EGREP" --version 2>&1` in
7591 *GNU*)
7592   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7593 *)
7594   ac_count=0
7595   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7596   while :
7597   do
7598     cat "conftest.in" "conftest.in" >"conftest.tmp"
7599     mv "conftest.tmp" "conftest.in"
7600     cp "conftest.in" "conftest.nl"
7601     echo 'EGREP' >> "conftest.nl"
7602     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7603     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7604     ac_count=`expr $ac_count + 1`
7605     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7606       # Best one so far, save it but keep looking for a better one
7607       ac_cv_path_EGREP="$ac_path_EGREP"
7608       ac_path_EGREP_max=$ac_count
7609     fi
7610     # 10*(2^10) chars as input seems more than enough
7611     test $ac_count -gt 10 && break
7612   done
7613   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7614 esac
7615
7616
7617     $ac_path_EGREP_found && break 3
7618   done
7619 done
7620
7621 done
7622 IFS=$as_save_IFS
7623
7624
7625 fi
7626
7627 EGREP="$ac_cv_path_EGREP"
7628 if test -z "$EGREP"; then
7629   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7630 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7631    { (exit 1); exit 1; }; }
7632 fi
7633
7634 else
7635   ac_cv_path_EGREP=$EGREP
7636 fi
7637
7638
7639    fi
7640 fi
7641 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7642 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7643  EGREP="$ac_cv_path_EGREP"
7644
7645
7646
7647 # Check whether --with-gnu-ld was given.
7648 if test "${with_gnu_ld+set}" = set; then
7649   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7650 else
7651   with_gnu_ld=no
7652 fi
7653
7654 ac_prog=ld
7655 if test "$GCC" = yes; then
7656   # Check if gcc -print-prog-name=ld gives a path.
7657   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7659   case $host in
7660   *-*-mingw*)
7661     # gcc leaves a trailing carriage return which upsets mingw
7662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7663   *)
7664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7665   esac
7666   case $ac_prog in
7667     # Accept absolute paths.
7668     [\\/]* | ?:[\\/]*)
7669       re_direlt='/[^/][^/]*/\.\./'
7670       # Canonicalize the pathname of ld
7671       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7672       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7673         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7674       done
7675       test -z "$LD" && LD="$ac_prog"
7676       ;;
7677   "")
7678     # If it fails, then pretend we aren't using GCC.
7679     ac_prog=ld
7680     ;;
7681   *)
7682     # If it is relative, then search for the first ld in PATH.
7683     with_gnu_ld=unknown
7684     ;;
7685   esac
7686 elif test "$with_gnu_ld" = yes; then
7687   { echo "$as_me:$LINENO: checking for GNU ld" >&5
7688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7689 else
7690   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7692 fi
7693 if test "${lt_cv_path_LD+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   if test -z "$LD"; then
7697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698   for ac_dir in $PATH; do
7699     IFS="$lt_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7702       lt_cv_path_LD="$ac_dir/$ac_prog"
7703       # Check to see if the program is GNU ld.  I'd rather use --version,
7704       # but apparently some GNU ld's only accept -v.
7705       # Break only if it was the GNU/non-GNU ld that we prefer.
7706       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7707       *GNU* | *'with BFD'*)
7708         test "$with_gnu_ld" != no && break
7709         ;;
7710       *)
7711         test "$with_gnu_ld" != yes && break
7712         ;;
7713       esac
7714     fi
7715   done
7716   IFS="$lt_save_ifs"
7717 else
7718   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7719 fi
7720 fi
7721
7722 LD="$lt_cv_path_LD"
7723 if test -n "$LD"; then
7724   { echo "$as_me:$LINENO: result: $LD" >&5
7725 echo "${ECHO_T}$LD" >&6; }
7726 else
7727   { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7729 fi
7730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7732    { (exit 1); exit 1; }; }
7733 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7739 case `$LD -v 2>&1 </dev/null` in
7740 *GNU* | *'with BFD'*)
7741   lt_cv_prog_gnu_ld=yes
7742   ;;
7743 *)
7744   lt_cv_prog_gnu_ld=no
7745   ;;
7746 esac
7747 fi
7748 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7750 with_gnu_ld=$lt_cv_prog_gnu_ld
7751
7752
7753 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7754 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7755 if test "${lt_cv_ld_reload_flag+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   lt_cv_ld_reload_flag='-r'
7759 fi
7760 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7761 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7762 reload_flag=$lt_cv_ld_reload_flag
7763 case $reload_flag in
7764 "" | " "*) ;;
7765 *) reload_flag=" $reload_flag" ;;
7766 esac
7767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7768
7769 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7770 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7771 if test "${lt_cv_path_NM+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -n "$NM"; then
7775   # Let the user override the test.
7776   lt_cv_path_NM="$NM"
7777 else
7778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7779   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7780     IFS="$lt_save_ifs"
7781     test -z "$ac_dir" && ac_dir=.
7782     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7783     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7784       # Check to see if the nm accepts a BSD-compat flag.
7785       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7786       #   nm: unknown option "B" ignored
7787       # Tru64's nm complains that /dev/null is an invalid object file
7788       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7789       */dev/null* | *'Invalid file or object type'*)
7790         lt_cv_path_NM="$tmp_nm -B"
7791         break
7792         ;;
7793       *)
7794         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7795         */dev/null*)
7796           lt_cv_path_NM="$tmp_nm -p"
7797           break
7798           ;;
7799         *)
7800           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7801           continue # so that we can try to find one that supports BSD flags
7802           ;;
7803         esac
7804       esac
7805     fi
7806   done
7807   IFS="$lt_save_ifs"
7808   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7809 fi
7810 fi
7811 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7812 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7813 NM="$lt_cv_path_NM"
7814
7815 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7816 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7817 LN_S=$as_ln_s
7818 if test "$LN_S" = "ln -s"; then
7819   { echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6; }
7821 else
7822   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7823 echo "${ECHO_T}no, using $LN_S" >&6; }
7824 fi
7825
7826 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7827 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
7828 if test "${lt_cv_deplibs_check_method+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   lt_cv_file_magic_cmd='$MAGIC_CMD'
7832 lt_cv_file_magic_test_file=
7833 lt_cv_deplibs_check_method='unknown'
7834 # Need to set the preceding variable on all platforms that support
7835 # interlibrary dependencies.
7836 # 'none' -- dependencies not supported.
7837 # `unknown' -- same as none, but documents that we really don't know.
7838 # 'pass_all' -- all dependencies passed with no checks.
7839 # 'test_compile' -- check by making test program.
7840 # 'file_magic [[regex]]' -- check by looking for files in library path
7841 # which responds to the $file_magic_cmd with a given extended regex.
7842 # If you have `file' or equivalent on your system and you're not sure
7843 # whether `pass_all' will *always* work, you probably want this one.
7844
7845 case $host_os in
7846 aix4* | aix5*)
7847   lt_cv_deplibs_check_method=pass_all
7848   ;;
7849
7850 beos*)
7851   lt_cv_deplibs_check_method=pass_all
7852   ;;
7853
7854 bsdi4*)
7855   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7856   lt_cv_file_magic_cmd='/usr/bin/file -L'
7857   lt_cv_file_magic_test_file=/shlib/libc.so
7858   ;;
7859
7860 cygwin*)
7861   lt_cv_deplibs_check_method=pass_all
7862   ;;
7863
7864 mingw* | pw32*)
7865   # win32_libid is a shell function defined in ltmain.sh
7866   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7867   lt_cv_file_magic_cmd='win32_libid'
7868   ;;
7869
7870 darwin* | rhapsody*)
7871   # this will be overwritten by pass_all, but leave it in just in case
7872   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7873   lt_cv_file_magic_cmd='/usr/bin/file -L'
7874   case "$host_os" in
7875   rhapsody* | darwin1.[012])
7876     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
7877     ;;
7878   *) # Darwin 1.3 on
7879     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7880     ;;
7881   esac
7882   lt_cv_deplibs_check_method=pass_all
7883   ;;
7884
7885 freebsd* | kfreebsd*-gnu)
7886   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7887     case $host_cpu in
7888     i*86 )
7889       # Not sure whether the presence of OpenBSD here was a mistake.
7890       # Let's accept both of them until this is cleared up.
7891       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7892       lt_cv_file_magic_cmd=/usr/bin/file
7893       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7894       ;;
7895     esac
7896   else
7897     lt_cv_deplibs_check_method=pass_all
7898   fi
7899   ;;
7900
7901 gnu*)
7902   lt_cv_deplibs_check_method=pass_all
7903   ;;
7904
7905 hpux10.20* | hpux11*)
7906   lt_cv_file_magic_cmd=/usr/bin/file
7907   case "$host_cpu" in
7908   ia64*)
7909     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7910     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7911     ;;
7912   hppa*64*)
7913     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]'
7914     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7915     ;;
7916   *)
7917     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7918     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7919     ;;
7920   esac
7921   ;;
7922
7923 irix5* | irix6* | nonstopux*)
7924   case $host_os in
7925   irix5* | nonstopux*)
7926     # this will be overridden with pass_all, but let us keep it just in case
7927     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
7928     ;;
7929   *)
7930     case $LD in
7931     *-32|*"-32 ") libmagic=32-bit;;
7932     *-n32|*"-n32 ") libmagic=N32;;
7933     *-64|*"-64 ") libmagic=64-bit;;
7934     *) libmagic=never-match;;
7935     esac
7936     # this will be overridden with pass_all, but let us keep it just in case
7937     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
7938     ;;
7939   esac
7940   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7941   lt_cv_deplibs_check_method=pass_all
7942   ;;
7943
7944 # This must be Linux ELF.
7945 linux*)
7946   case $host_cpu in
7947   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
7948     lt_cv_deplibs_check_method=pass_all ;;
7949   # the debian people say, arm and glibc 2.3.1 works for them with pass_all
7950   arm* )
7951     lt_cv_deplibs_check_method=pass_all ;;
7952   *)
7953     # glibc up to 2.1.1 does not perform some relocations on ARM
7954     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
7955   esac
7956   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
7957   ;;
7958
7959 netbsd*)
7960   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7961     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7962   else
7963     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7964   fi
7965   ;;
7966
7967 newos6*)
7968   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7969   lt_cv_file_magic_cmd=/usr/bin/file
7970   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7971   ;;
7972
7973 nto-qnx*)
7974   lt_cv_deplibs_check_method=unknown
7975   ;;
7976
7977 openbsd*)
7978   lt_cv_file_magic_cmd=/usr/bin/file
7979   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7980   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7981     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7982   else
7983     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
7984   fi
7985   ;;
7986
7987 osf3* | osf4* | osf5*)
7988   # this will be overridden with pass_all, but let us keep it just in case
7989   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
7990   lt_cv_file_magic_test_file=/shlib/libc.so
7991   lt_cv_deplibs_check_method=pass_all
7992   ;;
7993
7994 sco3.2v5*)
7995   lt_cv_deplibs_check_method=pass_all
7996   ;;
7997
7998 solaris*)
7999   lt_cv_deplibs_check_method=pass_all
8000   lt_cv_file_magic_test_file=/lib/libc.so
8001   ;;
8002
8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8004   case $host_vendor in
8005   motorola)
8006     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]'
8007     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8008     ;;
8009   ncr)
8010     lt_cv_deplibs_check_method=pass_all
8011     ;;
8012   sequent)
8013     lt_cv_file_magic_cmd='/bin/file'
8014     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8015     ;;
8016   sni)
8017     lt_cv_file_magic_cmd='/bin/file'
8018     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8019     lt_cv_file_magic_test_file=/lib/libc.so
8020     ;;
8021   siemens)
8022     lt_cv_deplibs_check_method=pass_all
8023     ;;
8024   esac
8025   ;;
8026
8027 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8028   lt_cv_deplibs_check_method=pass_all
8029   ;;
8030 esac
8031
8032 fi
8033 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8034 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8035 file_magic_cmd=$lt_cv_file_magic_cmd
8036 deplibs_check_method=$lt_cv_deplibs_check_method
8037 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8038
8039
8040 # If no C compiler was specified, use CC.
8041 LTCC=${LTCC-"$CC"}
8042
8043 # Allow CC to be a program name with arguments.
8044 compiler=$CC
8045
8046 # Check whether --enable-libtool-lock was given.
8047 if test "${enable_libtool_lock+set}" = set; then
8048   enableval=$enable_libtool_lock;
8049 fi
8050
8051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8052
8053 # Some flags need to be propagated to the compiler or linker for good
8054 # libtool support.
8055 case $host in
8056 ia64-*-hpux*)
8057   # Find out which ABI we are using.
8058   echo 'int i;' > conftest.$ac_ext
8059   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060   (eval $ac_compile) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; then
8064     case `/usr/bin/file conftest.$ac_objext` in
8065     *ELF-32*)
8066       HPUX_IA64_MODE="32"
8067       ;;
8068     *ELF-64*)
8069       HPUX_IA64_MODE="64"
8070       ;;
8071     esac
8072   fi
8073   rm -rf conftest*
8074   ;;
8075 *-*-irix6*)
8076   # Find out which ABI we are using.
8077   echo '#line 8077 "configure"' > conftest.$ac_ext
8078   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079   (eval $ac_compile) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; then
8083    if test "$lt_cv_prog_gnu_ld" = yes; then
8084     case `/usr/bin/file conftest.$ac_objext` in
8085     *32-bit*)
8086       LD="${LD-ld} -melf32bsmip"
8087       ;;
8088     *N32*)
8089       LD="${LD-ld} -melf32bmipn32"
8090       ;;
8091     *64-bit*)
8092       LD="${LD-ld} -melf64bmip"
8093       ;;
8094     esac
8095    else
8096     case `/usr/bin/file conftest.$ac_objext` in
8097     *32-bit*)
8098       LD="${LD-ld} -32"
8099       ;;
8100     *N32*)
8101       LD="${LD-ld} -n32"
8102       ;;
8103     *64-bit*)
8104       LD="${LD-ld} -64"
8105       ;;
8106     esac
8107    fi
8108   fi
8109   rm -rf conftest*
8110   ;;
8111
8112 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8113   # Find out which ABI we are using.
8114   echo 'int i;' > conftest.$ac_ext
8115   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116   (eval $ac_compile) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; then
8120     case "`/usr/bin/file conftest.o`" in
8121     *32-bit*)
8122       LINUX_64_MODE="32"
8123       case $host in
8124         x86_64-*linux*)
8125           LD="${LD-ld} -m elf_i386"
8126           ;;
8127         ppc64-*linux*)
8128           LD="${LD-ld} -m elf32ppclinux"
8129           ;;
8130         s390x-*linux*)
8131           LD="${LD-ld} -m elf_s390"
8132           ;;
8133         sparc64-*linux*)
8134           LD="${LD-ld} -m elf32_sparc"
8135           ;;
8136       esac
8137       ;;
8138     *64-bit*)
8139       LINUX_64_MODE="64"
8140       case $host in
8141         x86_64-*linux*)
8142           LD="${LD-ld} -m elf_x86_64"
8143           ;;
8144         ppc*-*linux*|powerpc*-*linux*)
8145           LD="${LD-ld} -m elf64ppc"
8146           ;;
8147         s390*-*linux*)
8148           LD="${LD-ld} -m elf64_s390"
8149           ;;
8150         sparc*-*linux*)
8151           LD="${LD-ld} -m elf64_sparc"
8152           ;;
8153       esac
8154       ;;
8155     esac
8156   fi
8157   rm -rf conftest*
8158   ;;
8159
8160 *-*-sco3.2v5*)
8161   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8162   SAVE_CFLAGS="$CFLAGS"
8163   CFLAGS="$CFLAGS -belf"
8164   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8165 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8166 if test "${lt_cv_cc_needs_belf+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   ac_ext=c
8170 ac_cpp='$CPP $CPPFLAGS'
8171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8174
8175      cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 int
8183 main ()
8184 {
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_link") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && {
8204          test -z "$ac_c_werror_flag" ||
8205          test ! -s conftest.err
8206        } && test -s conftest$ac_exeext &&
8207        $as_test_x conftest$ac_exeext; then
8208   lt_cv_cc_needs_belf=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213         lt_cv_cc_needs_belf=no
8214 fi
8215
8216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217       conftest$ac_exeext conftest.$ac_ext
8218      ac_ext=c
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224 fi
8225 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8226 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8227   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8228     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229     CFLAGS="$SAVE_CFLAGS"
8230   fi
8231   ;;
8232
8233 esac
8234
8235 need_locks="$enable_libtool_lock"
8236
8237
8238
8239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8241 if test "${ac_cv_header_stdc+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250 #include <stdlib.h>
8251 #include <stdarg.h>
8252 #include <string.h>
8253 #include <float.h>
8254
8255 int
8256 main ()
8257 {
8258
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8265 case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_compile") 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } && {
8277          test -z "$ac_c_werror_flag" ||
8278          test ! -s conftest.err
8279        } && test -s conftest.$ac_objext; then
8280   ac_cv_header_stdc=yes
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285         ac_cv_header_stdc=no
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289
8290 if test $ac_cv_header_stdc = yes; then
8291   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 #include <string.h>
8299
8300 _ACEOF
8301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8302   $EGREP "memchr" >/dev/null 2>&1; then
8303   :
8304 else
8305   ac_cv_header_stdc=no
8306 fi
8307 rm -f conftest*
8308
8309 fi
8310
8311 if test $ac_cv_header_stdc = yes; then
8312   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8313   cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 #include <stdlib.h>
8320
8321 _ACEOF
8322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8323   $EGREP "free" >/dev/null 2>&1; then
8324   :
8325 else
8326   ac_cv_header_stdc=no
8327 fi
8328 rm -f conftest*
8329
8330 fi
8331
8332 if test $ac_cv_header_stdc = yes; then
8333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8334   if test "$cross_compiling" = yes; then
8335   :
8336 else
8337   cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343 #include <ctype.h>
8344 #include <stdlib.h>
8345 #if ((' ' & 0x0FF) == 0x020)
8346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8348 #else
8349 # define ISLOWER(c) \
8350                    (('a' <= (c) && (c) <= 'i') \
8351                      || ('j' <= (c) && (c) <= 'r') \
8352                      || ('s' <= (c) && (c) <= 'z'))
8353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8354 #endif
8355
8356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8357 int
8358 main ()
8359 {
8360   int i;
8361   for (i = 0; i < 256; i++)
8362     if (XOR (islower (i), ISLOWER (i))
8363         || toupper (i) != TOUPPER (i))
8364       return 2;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8370 case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_link") 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8379   { (case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_try") 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   :
8389 else
8390   echo "$as_me: program exited with status $ac_status" >&5
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ( exit $ac_status )
8395 ac_cv_header_stdc=no
8396 fi
8397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8398 fi
8399
8400
8401 fi
8402 fi
8403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8405 if test $ac_cv_header_stdc = yes; then
8406
8407 cat >>confdefs.h <<\_ACEOF
8408 #define STDC_HEADERS 1
8409 _ACEOF
8410
8411 fi
8412
8413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8424                   inttypes.h stdint.h unistd.h
8425 do
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438 $ac_includes_default
8439
8440 #include <$ac_header>
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (ac_try="$ac_compile"
8444 case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_compile") 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } && {
8456          test -z "$ac_c_werror_flag" ||
8457          test ! -s conftest.err
8458        } && test -s conftest.$ac_objext; then
8459   eval "$as_ac_Header=yes"
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464         eval "$as_ac_Header=no"
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469 ac_res=`eval echo '${'$as_ac_Header'}'`
8470                { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475 _ACEOF
8476
8477 fi
8478
8479 done
8480
8481
8482
8483 for ac_header in dlfcn.h
8484 do
8485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8487   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 fi
8492 ac_res=`eval echo '${'$as_ac_Header'}'`
8493                { echo "$as_me:$LINENO: result: $ac_res" >&5
8494 echo "${ECHO_T}$ac_res" >&6; }
8495 else
8496   # Is the header compilable?
8497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505 $ac_includes_default
8506 #include <$ac_header>
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512   *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515   (eval "$ac_compile") 2>conftest.er1
8516   ac_status=$?
8517   grep -v '^ *+' conftest.er1 >conftest.err
8518   rm -f conftest.er1
8519   cat conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } && {
8522          test -z "$ac_c_werror_flag" ||
8523          test ! -s conftest.err
8524        } && test -s conftest.$ac_objext; then
8525   ac_header_compiler=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530         ac_header_compiler=no
8531 fi
8532
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8535 echo "${ECHO_T}$ac_header_compiler" >&6; }
8536
8537 # Is the header present?
8538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546 #include <$ac_header>
8547 _ACEOF
8548 if { (ac_try="$ac_cpp conftest.$ac_ext"
8549 case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } >/dev/null && {
8561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8562          test ! -s conftest.err
8563        }; then
8564   ac_header_preproc=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569   ac_header_preproc=no
8570 fi
8571
8572 rm -f conftest.err conftest.$ac_ext
8573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8574 echo "${ECHO_T}$ac_header_preproc" >&6; }
8575
8576 # So?  What about this header?
8577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8578   yes:no: )
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8583     ac_header_preproc=yes
8584     ;;
8585   no:yes:* )
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8598
8599     ;;
8600 esac
8601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   eval "$as_ac_Header=\$ac_header_preproc"
8607 fi
8608 ac_res=`eval echo '${'$as_ac_Header'}'`
8609                { echo "$as_me:$LINENO: result: $ac_res" >&5
8610 echo "${ECHO_T}$ac_res" >&6; }
8611
8612 fi
8613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8614   cat >>confdefs.h <<_ACEOF
8615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8616 _ACEOF
8617
8618 fi
8619
8620 done
8621
8622 ac_ext=f
8623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8626 if test -n "$ac_tool_prefix"; then
8627   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8628   do
8629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8633 if test "${ac_cv_prog_F77+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   if test -n "$F77"; then
8637   ac_cv_prog_F77="$F77" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644   for ac_exec_ext in '' $ac_executable_extensions; do
8645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651 done
8652 IFS=$as_save_IFS
8653
8654 fi
8655 fi
8656 F77=$ac_cv_prog_F77
8657 if test -n "$F77"; then
8658   { echo "$as_me:$LINENO: result: $F77" >&5
8659 echo "${ECHO_T}$F77" >&6; }
8660 else
8661   { echo "$as_me:$LINENO: result: no" >&5
8662 echo "${ECHO_T}no" >&6; }
8663 fi
8664
8665
8666     test -n "$F77" && break
8667   done
8668 fi
8669 if test -z "$F77"; then
8670   ac_ct_F77=$F77
8671   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8672 do
8673   # Extract the first word of "$ac_prog", so it can be a program name with args.
8674 set dummy $ac_prog; ac_word=$2
8675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8677 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   if test -n "$ac_ct_F77"; then
8681   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688   for ac_exec_ext in '' $ac_executable_extensions; do
8689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690     ac_cv_prog_ac_ct_F77="$ac_prog"
8691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8701 if test -n "$ac_ct_F77"; then
8702   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8703 echo "${ECHO_T}$ac_ct_F77" >&6; }
8704 else
8705   { echo "$as_me:$LINENO: result: no" >&5
8706 echo "${ECHO_T}no" >&6; }
8707 fi
8708
8709
8710   test -n "$ac_ct_F77" && break
8711 done
8712
8713   if test "x$ac_ct_F77" = x; then
8714     F77=""
8715   else
8716     case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8719 whose name does not start with the host triplet.  If you think this
8720 configuration is useful to you, please write to autoconf@gnu.org." >&5
8721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8722 whose name does not start with the host triplet.  If you think this
8723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8724 ac_tool_warned=yes ;;
8725 esac
8726     F77=$ac_ct_F77
8727   fi
8728 fi
8729
8730
8731 # Provide some information about the compiler.
8732 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8733 ac_compiler=`set X $ac_compile; echo $2`
8734 { (ac_try="$ac_compiler --version >&5"
8735 case "(($ac_try" in
8736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737   *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740   (eval "$ac_compiler --version >&5") 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }
8744 { (ac_try="$ac_compiler -v >&5"
8745 case "(($ac_try" in
8746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747   *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750   (eval "$ac_compiler -v >&5") 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }
8754 { (ac_try="$ac_compiler -V >&5"
8755 case "(($ac_try" in
8756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757   *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760   (eval "$ac_compiler -V >&5") 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }
8764 rm -f a.out
8765
8766 # If we don't use `.F' as extension, the preprocessor is not run on the
8767 # input file.  (Note that this only needs to work for GNU compilers.)
8768 ac_save_ext=$ac_ext
8769 ac_ext=F
8770 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8771 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8772 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776       program main
8777 #ifndef __GNUC__
8778        choke me
8779 #endif
8780
8781       end
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (ac_try="$ac_compile"
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_compile") 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          test -z "$ac_f77_werror_flag" ||
8798          test ! -s conftest.err
8799        } && test -s conftest.$ac_objext; then
8800   ac_compiler_gnu=yes
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805         ac_compiler_gnu=no
8806 fi
8807
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8810
8811 fi
8812 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8813 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8814 ac_ext=$ac_save_ext
8815 ac_test_FFLAGS=${FFLAGS+set}
8816 ac_save_FFLAGS=$FFLAGS
8817 FFLAGS=
8818 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8819 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8820 if test "${ac_cv_prog_f77_g+set}" = set; then
8821   echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823   FFLAGS=-g
8824 cat >conftest.$ac_ext <<_ACEOF
8825       program main
8826
8827       end
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_compile") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } && {
8843          test -z "$ac_f77_werror_flag" ||
8844          test ! -s conftest.err
8845        } && test -s conftest.$ac_objext; then
8846   ac_cv_prog_f77_g=yes
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851         ac_cv_prog_f77_g=no
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855
8856 fi
8857 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8858 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8859 if test "$ac_test_FFLAGS" = set; then
8860   FFLAGS=$ac_save_FFLAGS
8861 elif test $ac_cv_prog_f77_g = yes; then
8862   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8863     FFLAGS="-g -O2"
8864   else
8865     FFLAGS="-g"
8866   fi
8867 else
8868   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8869     FFLAGS="-O2"
8870   else
8871     FFLAGS=
8872   fi
8873 fi
8874
8875 G77=`test $ac_compiler_gnu = yes && echo yes`
8876 ac_ext=c
8877 ac_cpp='$CPP $CPPFLAGS'
8878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8881
8882
8883
8884 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8885
8886 # find the maximum length of command line arguments
8887 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8888 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8889 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892     i=0
8893   testring="ABCD"
8894
8895   case $build_os in
8896   msdosdjgpp*)
8897     # On DJGPP, this test can blow up pretty badly due to problems in libc
8898     # (any single argument exceeding 2000 bytes causes a buffer overrun
8899     # during glob expansion).  Even if it were fixed, the result of this
8900     # check would be larger than it should be.
8901     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8902     ;;
8903
8904   gnu*)
8905     # Under GNU Hurd, this test is not required because there is
8906     # no limit to the length of command line arguments.
8907     # Libtool will interpret -1 as no limit whatsoever
8908     lt_cv_sys_max_cmd_len=-1;
8909     ;;
8910
8911   cygwin* | mingw*)
8912     # On Win9x/ME, this test blows up -- it succeeds, but takes
8913     # about 5 minutes as the teststring grows exponentially.
8914     # Worse, since 9x/ME are not pre-emptively multitasking,
8915     # you end up with a "frozen" computer, even though with patience
8916     # the test eventually succeeds (with a max line length of 256k).
8917     # Instead, let's just punt: use the minimum linelength reported by
8918     # all of the supported platforms: 8192 (on NT/2K/XP).
8919     lt_cv_sys_max_cmd_len=8192;
8920     ;;
8921
8922  *)
8923     # If test is not a shell built-in, we'll probably end up computing a
8924     # maximum length that is only half of the actual maximum length, but
8925     # we can't tell.
8926     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
8927                = "XX$testring") >/dev/null 2>&1 &&
8928             new_result=`expr "X$testring" : ".*" 2>&1` &&
8929             lt_cv_sys_max_cmd_len=$new_result &&
8930             test $i != 17 # 1/2 MB should be enough
8931     do
8932       i=`expr $i + 1`
8933       testring=$testring$testring
8934     done
8935     testring=
8936     # Add a significant safety factor because C++ compilers can tack on massive
8937     # amounts of additional arguments before passing them to the linker.
8938     # It appears as though 1/2 is a usable value.
8939     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8940     ;;
8941   esac
8942
8943 fi
8944
8945 if test -n $lt_cv_sys_max_cmd_len ; then
8946   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8947 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8948 else
8949   { echo "$as_me:$LINENO: result: none" >&5
8950 echo "${ECHO_T}none" >&6; }
8951 fi
8952
8953
8954
8955
8956 # Check for command to grab the raw symbol name followed by C symbol from nm.
8957 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8958 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8959 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962
8963 # These are sane defaults that work on at least a few old systems.
8964 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8965
8966 # Character class describing NM global symbol codes.
8967 symcode='[BCDEGRST]'
8968
8969 # Regexp to match symbols that can be accessed directly from C.
8970 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8971
8972 # Transform the above into a raw symbol and a C symbol.
8973 symxfrm='\1 \2\3 \3'
8974
8975 # Transform an extracted symbol line into a proper C declaration
8976 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8977
8978 # Transform an extracted symbol line into symbol name and symbol address
8979 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'"
8980
8981 # Define system-specific variables.
8982 case $host_os in
8983 aix*)
8984   symcode='[BCDT]'
8985   ;;
8986 cygwin* | mingw* | pw32*)
8987   symcode='[ABCDGISTW]'
8988   ;;
8989 hpux*) # Its linker distinguishes data from code symbols
8990   if test "$host_cpu" = ia64; then
8991     symcode='[ABCDEGRST]'
8992   fi
8993   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8994   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'"
8995   ;;
8996 irix* | nonstopux*)
8997   symcode='[BCDEGRST]'
8998   ;;
8999 osf*)
9000   symcode='[BCDEGQRST]'
9001   ;;
9002 solaris* | sysv5*)
9003   symcode='[BDT]'
9004   ;;
9005 sysv4)
9006   symcode='[DFNSTU]'
9007   ;;
9008 esac
9009
9010 # Handle CRLF in mingw tool chain
9011 opt_cr=
9012 case $build_os in
9013 mingw*)
9014   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9015   ;;
9016 esac
9017
9018 # If we're using GNU nm, then use its standard symbol codes.
9019 case `$NM -V 2>&1` in
9020 *GNU* | *'with BFD'*)
9021   symcode='[ABCDGISTW]' ;;
9022 esac
9023
9024 # Try without a prefix undercore, then with it.
9025 for ac_symprfx in "" "_"; do
9026
9027   # Write the raw and C identifiers.
9028   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9029
9030   # Check to see that the pipe works correctly.
9031   pipe_works=no
9032
9033   rm -f conftest*
9034   cat > conftest.$ac_ext <<EOF
9035 #ifdef __cplusplus
9036 extern "C" {
9037 #endif
9038 char nm_test_var;
9039 void nm_test_func(){}
9040 #ifdef __cplusplus
9041 }
9042 #endif
9043 int main(){nm_test_var='a';nm_test_func();return(0);}
9044 EOF
9045
9046   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047   (eval $ac_compile) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; then
9051     # Now try to grab the symbols.
9052     nlist=conftest.nm
9053     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9054   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } && test -s "$nlist"; then
9058       # Try sorting and uniquifying the output.
9059       if sort "$nlist" | uniq > "$nlist"T; then
9060         mv -f "$nlist"T "$nlist"
9061       else
9062         rm -f "$nlist"T
9063       fi
9064
9065       # Make sure that we snagged all the symbols we need.
9066       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9067         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9068           cat <<EOF > conftest.$ac_ext
9069 #ifdef __cplusplus
9070 extern "C" {
9071 #endif
9072
9073 EOF
9074           # Now generate the symbol file.
9075           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9076
9077           cat <<EOF >> conftest.$ac_ext
9078 #if defined (__STDC__) && __STDC__
9079 # define lt_ptr_t void *
9080 #else
9081 # define lt_ptr_t char *
9082 # define const
9083 #endif
9084
9085 /* The mapping between symbol names and symbols. */
9086 const struct {
9087   const char *name;
9088   lt_ptr_t address;
9089 }
9090 lt_preloaded_symbols[] =
9091 {
9092 EOF
9093           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9094           cat <<\EOF >> conftest.$ac_ext
9095   {0, (lt_ptr_t) 0}
9096 };
9097
9098 #ifdef __cplusplus
9099 }
9100 #endif
9101 EOF
9102           # Now try linking the two files.
9103           mv conftest.$ac_objext conftstm.$ac_objext
9104           lt_save_LIBS="$LIBS"
9105           lt_save_CFLAGS="$CFLAGS"
9106           LIBS="conftstm.$ac_objext"
9107           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9108           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109   (eval $ac_link) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9113             pipe_works=yes
9114           fi
9115           LIBS="$lt_save_LIBS"
9116           CFLAGS="$lt_save_CFLAGS"
9117         else
9118           echo "cannot find nm_test_func in $nlist" >&5
9119         fi
9120       else
9121         echo "cannot find nm_test_var in $nlist" >&5
9122       fi
9123     else
9124       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9125     fi
9126   else
9127     echo "$progname: failed program was:" >&5
9128     cat conftest.$ac_ext >&5
9129   fi
9130   rm -f conftest* conftst*
9131
9132   # Do not use the global_symbol_pipe unless it works.
9133   if test "$pipe_works" = yes; then
9134     break
9135   else
9136     lt_cv_sys_global_symbol_pipe=
9137   fi
9138 done
9139
9140 fi
9141
9142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9143   lt_cv_sys_global_symbol_to_cdecl=
9144 fi
9145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9146   { echo "$as_me:$LINENO: result: failed" >&5
9147 echo "${ECHO_T}failed" >&6; }
9148 else
9149   { echo "$as_me:$LINENO: result: ok" >&5
9150 echo "${ECHO_T}ok" >&6; }
9151 fi
9152
9153 { echo "$as_me:$LINENO: checking for objdir" >&5
9154 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9155 if test "${lt_cv_objdir+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   rm -f .libs 2>/dev/null
9159 mkdir .libs 2>/dev/null
9160 if test -d .libs; then
9161   lt_cv_objdir=.libs
9162 else
9163   # MS-DOS does not allow filenames that begin with a dot.
9164   lt_cv_objdir=_libs
9165 fi
9166 rmdir .libs 2>/dev/null
9167 fi
9168 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9169 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9170 objdir=$lt_cv_objdir
9171
9172
9173
9174
9175
9176 case $host_os in
9177 aix3*)
9178   # AIX sometimes has problems with the GCC collect2 program.  For some
9179   # reason, if we set the COLLECT_NAMES environment variable, the problems
9180   # vanish in a puff of smoke.
9181   if test "X${COLLECT_NAMES+set}" != Xset; then
9182     COLLECT_NAMES=
9183     export COLLECT_NAMES
9184   fi
9185   ;;
9186 esac
9187
9188 # Sed substitution that helps us do robust quoting.  It backslashifies
9189 # metacharacters that are still active within double-quoted strings.
9190 Xsed='sed -e s/^X//'
9191 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9192
9193 # Same as above, but do not quote variable references.
9194 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9195
9196 # Sed substitution to delay expansion of an escaped shell variable in a
9197 # double_quote_subst'ed string.
9198 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9199
9200 # Sed substitution to avoid accidental globbing in evaled expressions
9201 no_glob_subst='s/\*/\\\*/g'
9202
9203 # Constants:
9204 rm="rm -f"
9205
9206 # Global variables:
9207 default_ofile=libtool
9208 can_build_shared=yes
9209
9210 # All known linkers require a `.a' archive for static linking (except M$VC,
9211 # which needs '.lib').
9212 libext=a
9213 ltmain="$ac_aux_dir/ltmain.sh"
9214 ofile="$default_ofile"
9215 with_gnu_ld="$lt_cv_prog_gnu_ld"
9216
9217 if test -n "$ac_tool_prefix"; then
9218   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9219 set dummy ${ac_tool_prefix}ar; ac_word=$2
9220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9222 if test "${ac_cv_prog_AR+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   if test -n "$AR"; then
9226   ac_cv_prog_AR="$AR" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233   for ac_exec_ext in '' $ac_executable_extensions; do
9234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235     ac_cv_prog_AR="${ac_tool_prefix}ar"
9236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240 done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 AR=$ac_cv_prog_AR
9246 if test -n "$AR"; then
9247   { echo "$as_me:$LINENO: result: $AR" >&5
9248 echo "${ECHO_T}$AR" >&6; }
9249 else
9250   { echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6; }
9252 fi
9253
9254
9255 fi
9256 if test -z "$ac_cv_prog_AR"; then
9257   ac_ct_AR=$AR
9258   # Extract the first word of "ar", so it can be a program name with args.
9259 set dummy ar; ac_word=$2
9260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   if test -n "$ac_ct_AR"; then
9266   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271   IFS=$as_save_IFS
9272   test -z "$as_dir" && as_dir=.
9273   for ac_exec_ext in '' $ac_executable_extensions; do
9274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275     ac_cv_prog_ac_ct_AR="ar"
9276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277     break 2
9278   fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283 fi
9284 fi
9285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9286 if test -n "$ac_ct_AR"; then
9287   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9288 echo "${ECHO_T}$ac_ct_AR" >&6; }
9289 else
9290   { echo "$as_me:$LINENO: result: no" >&5
9291 echo "${ECHO_T}no" >&6; }
9292 fi
9293
9294   if test "x$ac_ct_AR" = x; then
9295     AR="false"
9296   else
9297     case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9300 whose name does not start with the host triplet.  If you think this
9301 configuration is useful to you, please write to autoconf@gnu.org." >&5
9302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9303 whose name does not start with the host triplet.  If you think this
9304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9305 ac_tool_warned=yes ;;
9306 esac
9307     AR=$ac_ct_AR
9308   fi
9309 else
9310   AR="$ac_cv_prog_AR"
9311 fi
9312
9313 if test -n "$ac_tool_prefix"; then
9314   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_prog_RANLIB+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   if test -n "$RANLIB"; then
9322   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327   IFS=$as_save_IFS
9328   test -z "$as_dir" && as_dir=.
9329   for ac_exec_ext in '' $ac_executable_extensions; do
9330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333     break 2
9334   fi
9335 done
9336 done
9337 IFS=$as_save_IFS
9338
9339 fi
9340 fi
9341 RANLIB=$ac_cv_prog_RANLIB
9342 if test -n "$RANLIB"; then
9343   { echo "$as_me:$LINENO: result: $RANLIB" >&5
9344 echo "${ECHO_T}$RANLIB" >&6; }
9345 else
9346   { echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6; }
9348 fi
9349
9350
9351 fi
9352 if test -z "$ac_cv_prog_RANLIB"; then
9353   ac_ct_RANLIB=$RANLIB
9354   # Extract the first word of "ranlib", so it can be a program name with args.
9355 set dummy ranlib; ac_word=$2
9356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361   if test -n "$ac_ct_RANLIB"; then
9362   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9366 do
9367   IFS=$as_save_IFS
9368   test -z "$as_dir" && as_dir=.
9369   for ac_exec_ext in '' $ac_executable_extensions; do
9370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371     ac_cv_prog_ac_ct_RANLIB="ranlib"
9372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9373     break 2
9374   fi
9375 done
9376 done
9377 IFS=$as_save_IFS
9378
9379 fi
9380 fi
9381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9382 if test -n "$ac_ct_RANLIB"; then
9383   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9384 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9385 else
9386   { echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6; }
9388 fi
9389
9390   if test "x$ac_ct_RANLIB" = x; then
9391     RANLIB=":"
9392   else
9393     case $cross_compiling:$ac_tool_warned in
9394 yes:)
9395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9396 whose name does not start with the host triplet.  If you think this
9397 configuration is useful to you, please write to autoconf@gnu.org." >&5
9398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9399 whose name does not start with the host triplet.  If you think this
9400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9401 ac_tool_warned=yes ;;
9402 esac
9403     RANLIB=$ac_ct_RANLIB
9404   fi
9405 else
9406   RANLIB="$ac_cv_prog_RANLIB"
9407 fi
9408
9409 if test -n "$ac_tool_prefix"; then
9410   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9411 set dummy ${ac_tool_prefix}strip; ac_word=$2
9412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9414 if test "${ac_cv_prog_STRIP+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   if test -n "$STRIP"; then
9418   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9422 do
9423   IFS=$as_save_IFS
9424   test -z "$as_dir" && as_dir=.
9425   for ac_exec_ext in '' $ac_executable_extensions; do
9426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9429     break 2
9430   fi
9431 done
9432 done
9433 IFS=$as_save_IFS
9434
9435 fi
9436 fi
9437 STRIP=$ac_cv_prog_STRIP
9438 if test -n "$STRIP"; then
9439   { echo "$as_me:$LINENO: result: $STRIP" >&5
9440 echo "${ECHO_T}$STRIP" >&6; }
9441 else
9442   { echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6; }
9444 fi
9445
9446
9447 fi
9448 if test -z "$ac_cv_prog_STRIP"; then
9449   ac_ct_STRIP=$STRIP
9450   # Extract the first word of "strip", so it can be a program name with args.
9451 set dummy strip; ac_word=$2
9452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9454 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   if test -n "$ac_ct_STRIP"; then
9458   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465   for ac_exec_ext in '' $ac_executable_extensions; do
9466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9467     ac_cv_prog_ac_ct_STRIP="strip"
9468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472 done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9478 if test -n "$ac_ct_STRIP"; then
9479   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9480 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9481 else
9482   { echo "$as_me:$LINENO: result: no" >&5
9483 echo "${ECHO_T}no" >&6; }
9484 fi
9485
9486   if test "x$ac_ct_STRIP" = x; then
9487     STRIP=":"
9488   else
9489     case $cross_compiling:$ac_tool_warned in
9490 yes:)
9491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9492 whose name does not start with the host triplet.  If you think this
9493 configuration is useful to you, please write to autoconf@gnu.org." >&5
9494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9495 whose name does not start with the host triplet.  If you think this
9496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9497 ac_tool_warned=yes ;;
9498 esac
9499     STRIP=$ac_ct_STRIP
9500   fi
9501 else
9502   STRIP="$ac_cv_prog_STRIP"
9503 fi
9504
9505
9506 old_CC="$CC"
9507 old_CFLAGS="$CFLAGS"
9508
9509 # Set sane defaults for various variables
9510 test -z "$AR" && AR=ar
9511 test -z "$AR_FLAGS" && AR_FLAGS=cru
9512 test -z "$AS" && AS=as
9513 test -z "$CC" && CC=cc
9514 test -z "$LTCC" && LTCC=$CC
9515 test -z "$DLLTOOL" && DLLTOOL=dlltool
9516 test -z "$LD" && LD=ld
9517 test -z "$LN_S" && LN_S="ln -s"
9518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9519 test -z "$NM" && NM=nm
9520 test -z "$SED" && SED=sed
9521 test -z "$OBJDUMP" && OBJDUMP=objdump
9522 test -z "$RANLIB" && RANLIB=:
9523 test -z "$STRIP" && STRIP=:
9524 test -z "$ac_objext" && ac_objext=o
9525
9526 # Determine commands to create old-style static archives.
9527 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9528 old_postinstall_cmds='chmod 644 $oldlib'
9529 old_postuninstall_cmds=
9530
9531 if test -n "$RANLIB"; then
9532   case $host_os in
9533   openbsd*)
9534     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9535     ;;
9536   *)
9537     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9538     ;;
9539   esac
9540   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9541 fi
9542
9543 # Only perform the check for file, if the check method requires it
9544 case $deplibs_check_method in
9545 file_magic*)
9546   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9547     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9548 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9549 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   case $MAGIC_CMD in
9553 [\\/*] |  ?:[\\/]*)
9554   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9555   ;;
9556 *)
9557   lt_save_MAGIC_CMD="$MAGIC_CMD"
9558   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9559   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9560   for ac_dir in $ac_dummy; do
9561     IFS="$lt_save_ifs"
9562     test -z "$ac_dir" && ac_dir=.
9563     if test -f $ac_dir/${ac_tool_prefix}file; then
9564       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9565       if test -n "$file_magic_test_file"; then
9566         case $deplibs_check_method in
9567         "file_magic "*)
9568           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9569           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9570           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9571             $EGREP "$file_magic_regex" > /dev/null; then
9572             :
9573           else
9574             cat <<EOF 1>&2
9575
9576 *** Warning: the command libtool uses to detect shared libraries,
9577 *** $file_magic_cmd, produces output that libtool cannot recognize.
9578 *** The result is that libtool may fail to recognize shared libraries
9579 *** as such.  This will affect the creation of libtool libraries that
9580 *** depend on shared libraries, but programs linked with such libtool
9581 *** libraries will work regardless of this problem.  Nevertheless, you
9582 *** may want to report the problem to your system manager and/or to
9583 *** bug-libtool@gnu.org
9584
9585 EOF
9586           fi ;;
9587         esac
9588       fi
9589       break
9590     fi
9591   done
9592   IFS="$lt_save_ifs"
9593   MAGIC_CMD="$lt_save_MAGIC_CMD"
9594   ;;
9595 esac
9596 fi
9597
9598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9599 if test -n "$MAGIC_CMD"; then
9600   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9601 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9602 else
9603   { echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6; }
9605 fi
9606
9607 if test -z "$lt_cv_path_MAGIC_CMD"; then
9608   if test -n "$ac_tool_prefix"; then
9609     { echo "$as_me:$LINENO: checking for file" >&5
9610 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   case $MAGIC_CMD in
9615 [\\/*] |  ?:[\\/]*)
9616   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9617   ;;
9618 *)
9619   lt_save_MAGIC_CMD="$MAGIC_CMD"
9620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9621   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9622   for ac_dir in $ac_dummy; do
9623     IFS="$lt_save_ifs"
9624     test -z "$ac_dir" && ac_dir=.
9625     if test -f $ac_dir/file; then
9626       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9627       if test -n "$file_magic_test_file"; then
9628         case $deplibs_check_method in
9629         "file_magic "*)
9630           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9631           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9632           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9633             $EGREP "$file_magic_regex" > /dev/null; then
9634             :
9635           else
9636             cat <<EOF 1>&2
9637
9638 *** Warning: the command libtool uses to detect shared libraries,
9639 *** $file_magic_cmd, produces output that libtool cannot recognize.
9640 *** The result is that libtool may fail to recognize shared libraries
9641 *** as such.  This will affect the creation of libtool libraries that
9642 *** depend on shared libraries, but programs linked with such libtool
9643 *** libraries will work regardless of this problem.  Nevertheless, you
9644 *** may want to report the problem to your system manager and/or to
9645 *** bug-libtool@gnu.org
9646
9647 EOF
9648           fi ;;
9649         esac
9650       fi
9651       break
9652     fi
9653   done
9654   IFS="$lt_save_ifs"
9655   MAGIC_CMD="$lt_save_MAGIC_CMD"
9656   ;;
9657 esac
9658 fi
9659
9660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9661 if test -n "$MAGIC_CMD"; then
9662   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9663 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9664 else
9665   { echo "$as_me:$LINENO: result: no" >&5
9666 echo "${ECHO_T}no" >&6; }
9667 fi
9668
9669   else
9670     MAGIC_CMD=:
9671   fi
9672 fi
9673
9674   fi
9675   ;;
9676 esac
9677
9678 enable_dlopen=yes
9679 enable_win32_dll=no
9680
9681 # Check whether --enable-libtool-lock was given.
9682 if test "${enable_libtool_lock+set}" = set; then
9683   enableval=$enable_libtool_lock;
9684 fi
9685
9686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9687
9688
9689 # Check whether --with-pic was given.
9690 if test "${with_pic+set}" = set; then
9691   withval=$with_pic; pic_mode="$withval"
9692 else
9693   pic_mode=default
9694 fi
9695
9696 test -z "$pic_mode" && pic_mode=default
9697
9698 # Use C for the default configuration in the libtool script
9699 tagname=
9700 lt_save_CC="$CC"
9701 ac_ext=c
9702 ac_cpp='$CPP $CPPFLAGS'
9703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9706
9707
9708 # Source file extension for C test sources.
9709 ac_ext=c
9710
9711 # Object file extension for compiled C test sources.
9712 objext=o
9713 objext=$objext
9714
9715 # Code to be used in simple compile tests
9716 lt_simple_compile_test_code="int some_variable = 0;\n"
9717
9718 # Code to be used in simple link tests
9719 lt_simple_link_test_code='int main(){return(0);}\n'
9720
9721
9722 # If no C compiler was specified, use CC.
9723 LTCC=${LTCC-"$CC"}
9724
9725 # Allow CC to be a program name with arguments.
9726 compiler=$CC
9727
9728
9729 #
9730 # Check for any special shared library compilation flags.
9731 #
9732 lt_prog_cc_shlib=
9733 if test "$GCC" = no; then
9734   case $host_os in
9735   sco3.2v5*)
9736     lt_prog_cc_shlib='-belf'
9737     ;;
9738   esac
9739 fi
9740 if test -n "$lt_prog_cc_shlib"; then
9741   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9742 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9743   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
9744   else
9745     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9746 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9747     lt_cv_prog_cc_can_build_shared=no
9748   fi
9749 fi
9750
9751
9752 #
9753 # Check to make sure the static flag actually works.
9754 #
9755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9756 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
9757 if test "${lt_prog_compiler_static_works+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   lt_prog_compiler_static_works=no
9761    save_LDFLAGS="$LDFLAGS"
9762    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9763    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765      # The compiler can only warn and ignore the option if not recognized
9766      # So say no if there are warnings
9767      if test -s conftest.err; then
9768        # Append any errors to the config.log.
9769        cat conftest.err 1>&5
9770      else
9771        lt_prog_compiler_static_works=yes
9772      fi
9773    fi
9774    $rm conftest*
9775    LDFLAGS="$save_LDFLAGS"
9776
9777 fi
9778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9779 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9780
9781 if test x"$lt_prog_compiler_static_works" = xyes; then
9782     :
9783 else
9784     lt_prog_compiler_static=
9785 fi
9786
9787
9788
9789 ## CAVEAT EMPTOR:
9790 ## There is no encapsulation within the following macros, do not change
9791 ## the running order or otherwise move them around unless you know exactly
9792 ## what you are doing...
9793
9794 lt_prog_compiler_no_builtin_flag=
9795
9796 if test "$GCC" = yes; then
9797   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9798
9799
9800 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9801 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9802 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   lt_cv_prog_compiler_rtti_exceptions=no
9806   ac_outfile=conftest.$ac_objext
9807    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9808    lt_compiler_flag="-fno-rtti -fno-exceptions"
9809    # Insert the option either (1) after the last *FLAGS variable, or
9810    # (2) before a word containing "conftest.", or (3) at the end.
9811    # Note that $ac_compile itself does not contain backslashes and begins
9812    # with a dollar sign (not a hyphen), so the echo should work correctly.
9813    # The option is referenced via a variable to avoid confusing sed.
9814    lt_compile=`echo "$ac_compile" | $SED \
9815    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9817    -e 's:$: $lt_compiler_flag:'`
9818    (eval echo "\"\$as_me:9818: $lt_compile\"" >&5)
9819    (eval "$lt_compile" 2>conftest.err)
9820    ac_status=$?
9821    cat conftest.err >&5
9822    echo "$as_me:9822: \$? = $ac_status" >&5
9823    if (exit $ac_status) && test -s "$ac_outfile"; then
9824      # The compiler can only warn and ignore the option if not recognized
9825      # So say no if there are warnings
9826      if test ! -s conftest.err; then
9827        lt_cv_prog_compiler_rtti_exceptions=yes
9828      fi
9829    fi
9830    $rm conftest*
9831
9832 fi
9833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9835
9836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9837     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9838 else
9839     :
9840 fi
9841
9842 fi
9843
9844 lt_prog_compiler_wl=
9845 lt_prog_compiler_pic=
9846 lt_prog_compiler_static=
9847
9848 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9850
9851   if test "$GCC" = yes; then
9852     lt_prog_compiler_wl='-Wl,'
9853     lt_prog_compiler_static='-static'
9854
9855     case $host_os in
9856       aix*)
9857       # All AIX code is PIC.
9858       if test "$host_cpu" = ia64; then
9859         # AIX 5 now supports IA64 processor
9860         lt_prog_compiler_static='-Bstatic'
9861       fi
9862       ;;
9863
9864     amigaos*)
9865       # FIXME: we need at least 68020 code to build shared libraries, but
9866       # adding the `-m68020' flag to GCC prevents building anything better,
9867       # like `-m68040'.
9868       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9869       ;;
9870
9871     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9872       # PIC is the default for these OSes.
9873       ;;
9874
9875     mingw* | pw32* | os2*)
9876       # This hack is so that the source file can tell whether it is being
9877       # built for inclusion in a dll (and should export symbols for example).
9878       lt_prog_compiler_pic='-DDLL_EXPORT'
9879       ;;
9880
9881     darwin* | rhapsody*)
9882       # PIC is the default on this platform
9883       # Common symbols not allowed in MH_DYLIB files
9884       lt_prog_compiler_pic='-fno-common'
9885       ;;
9886
9887     msdosdjgpp*)
9888       # Just because we use GCC doesn't mean we suddenly get shared libraries
9889       # on systems that don't support them.
9890       lt_prog_compiler_can_build_shared=no
9891       enable_shared=no
9892       ;;
9893
9894     sysv4*MP*)
9895       if test -d /usr/nec; then
9896         lt_prog_compiler_pic=-Kconform_pic
9897       fi
9898       ;;
9899
9900     hpux*)
9901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9902       # not for PA HP-UX.
9903       case "$host_cpu" in
9904       hppa*64*|ia64*)
9905         # +Z the default
9906         ;;
9907       *)
9908         lt_prog_compiler_pic='-fPIC'
9909         ;;
9910       esac
9911       ;;
9912
9913     *)
9914       lt_prog_compiler_pic='-fPIC'
9915       ;;
9916     esac
9917   else
9918     # PORTME Check for flag to pass linker flags through the system compiler.
9919     case $host_os in
9920     aix*)
9921       lt_prog_compiler_wl='-Wl,'
9922       if test "$host_cpu" = ia64; then
9923         # AIX 5 now supports IA64 processor
9924         lt_prog_compiler_static='-Bstatic'
9925       else
9926         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9927       fi
9928       ;;
9929
9930     mingw* | pw32* | os2*)
9931       # This hack is so that the source file can tell whether it is being
9932       # built for inclusion in a dll (and should export symbols for example).
9933       lt_prog_compiler_pic='-DDLL_EXPORT'
9934       ;;
9935
9936     hpux9* | hpux10* | hpux11*)
9937       lt_prog_compiler_wl='-Wl,'
9938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9939       # not for PA HP-UX.
9940       case "$host_cpu" in
9941       hppa*64*|ia64*)
9942         # +Z the default
9943         ;;
9944       *)
9945         lt_prog_compiler_pic='+Z'
9946         ;;
9947       esac
9948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9949       lt_prog_compiler_static='${wl}-a ${wl}archive'
9950       ;;
9951
9952     irix5* | irix6* | nonstopux*)
9953       lt_prog_compiler_wl='-Wl,'
9954       # PIC (with -KPIC) is the default.
9955       lt_prog_compiler_static='-non_shared'
9956       ;;
9957
9958     newsos6)
9959       lt_prog_compiler_pic='-KPIC'
9960       lt_prog_compiler_static='-Bstatic'
9961       ;;
9962
9963     linux*)
9964       case $CC in
9965       icc* | ecc*)
9966         lt_prog_compiler_wl='-Wl,'
9967         lt_prog_compiler_pic='-KPIC'
9968         lt_prog_compiler_static='-static'
9969         ;;
9970       ccc*)
9971         lt_prog_compiler_wl='-Wl,'
9972         # All Alpha code is PIC.
9973         lt_prog_compiler_static='-non_shared'
9974         ;;
9975       esac
9976       ;;
9977
9978     osf3* | osf4* | osf5*)
9979       lt_prog_compiler_wl='-Wl,'
9980       # All OSF/1 code is PIC.
9981       lt_prog_compiler_static='-non_shared'
9982       ;;
9983
9984     sco3.2v5*)
9985       lt_prog_compiler_pic='-Kpic'
9986       lt_prog_compiler_static='-dn'
9987       ;;
9988
9989     solaris*)
9990       lt_prog_compiler_wl='-Wl,'
9991       lt_prog_compiler_pic='-KPIC'
9992       lt_prog_compiler_static='-Bstatic'
9993       ;;
9994
9995     sunos4*)
9996       lt_prog_compiler_wl='-Qoption ld '
9997       lt_prog_compiler_pic='-PIC'
9998       lt_prog_compiler_static='-Bstatic'
9999       ;;
10000
10001     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10002       lt_prog_compiler_wl='-Wl,'
10003       lt_prog_compiler_pic='-KPIC'
10004       lt_prog_compiler_static='-Bstatic'
10005       ;;
10006
10007     sysv4*MP*)
10008       if test -d /usr/nec ;then
10009         lt_prog_compiler_pic='-Kconform_pic'
10010         lt_prog_compiler_static='-Bstatic'
10011       fi
10012       ;;
10013
10014     uts4*)
10015       lt_prog_compiler_pic='-pic'
10016       lt_prog_compiler_static='-Bstatic'
10017       ;;
10018
10019     *)
10020       lt_prog_compiler_can_build_shared=no
10021       ;;
10022     esac
10023   fi
10024
10025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10026 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10027
10028 #
10029 # Check to make sure the PIC flag actually works.
10030 #
10031 if test -n "$lt_prog_compiler_pic"; then
10032
10033 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10034 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10035 if test "${lt_prog_compiler_pic_works+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   lt_prog_compiler_pic_works=no
10039   ac_outfile=conftest.$ac_objext
10040    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10041    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10042    # Insert the option either (1) after the last *FLAGS variable, or
10043    # (2) before a word containing "conftest.", or (3) at the end.
10044    # Note that $ac_compile itself does not contain backslashes and begins
10045    # with a dollar sign (not a hyphen), so the echo should work correctly.
10046    # The option is referenced via a variable to avoid confusing sed.
10047    lt_compile=`echo "$ac_compile" | $SED \
10048    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10050    -e 's:$: $lt_compiler_flag:'`
10051    (eval echo "\"\$as_me:10051: $lt_compile\"" >&5)
10052    (eval "$lt_compile" 2>conftest.err)
10053    ac_status=$?
10054    cat conftest.err >&5
10055    echo "$as_me:10055: \$? = $ac_status" >&5
10056    if (exit $ac_status) && test -s "$ac_outfile"; then
10057      # The compiler can only warn and ignore the option if not recognized
10058      # So say no if there are warnings
10059      if test ! -s conftest.err; then
10060        lt_prog_compiler_pic_works=yes
10061      fi
10062    fi
10063    $rm conftest*
10064
10065 fi
10066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10067 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10068
10069 if test x"$lt_prog_compiler_pic_works" = xyes; then
10070     case $lt_prog_compiler_pic in
10071      "" | " "*) ;;
10072      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10073      esac
10074 else
10075     lt_prog_compiler_pic=
10076      lt_prog_compiler_can_build_shared=no
10077 fi
10078
10079 fi
10080 case "$host_os" in
10081   # For platforms which do not support PIC, -DPIC is meaningless:
10082   *djgpp*)
10083     lt_prog_compiler_pic=
10084     ;;
10085   *)
10086     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10087     ;;
10088 esac
10089
10090 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10091 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10092 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   lt_cv_prog_compiler_c_o=no
10096    $rm -r conftest 2>/dev/null
10097    mkdir conftest
10098    cd conftest
10099    mkdir out
10100    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10101
10102    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10103    # that will create temporary files in the current directory regardless of
10104    # the output directory.  Thus, making CWD read-only will cause this test
10105    # to fail, enabling locking or at least warning the user not to do parallel
10106    # builds.
10107    chmod -w .
10108
10109    lt_compiler_flag="-o out/conftest2.$ac_objext"
10110    # Insert the option either (1) after the last *FLAGS variable, or
10111    # (2) before a word containing "conftest.", or (3) at the end.
10112    # Note that $ac_compile itself does not contain backslashes and begins
10113    # with a dollar sign (not a hyphen), so the echo should work correctly.
10114    lt_compile=`echo "$ac_compile" | $SED \
10115    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10117    -e 's:$: $lt_compiler_flag:'`
10118    (eval echo "\"\$as_me:10118: $lt_compile\"" >&5)
10119    (eval "$lt_compile" 2>out/conftest.err)
10120    ac_status=$?
10121    cat out/conftest.err >&5
10122    echo "$as_me:10122: \$? = $ac_status" >&5
10123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10124    then
10125      # The compiler can only warn and ignore the option if not recognized
10126      # So say no if there are warnings
10127      if test ! -s out/conftest.err; then
10128        lt_cv_prog_compiler_c_o=yes
10129      fi
10130    fi
10131    chmod u+w .
10132    $rm conftest* out/*
10133    rmdir out
10134    cd ..
10135    rmdir conftest
10136    $rm conftest*
10137
10138 fi
10139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10141
10142
10143 hard_links="nottested"
10144 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10145   # do not overwrite the value of need_locks provided by the user
10146   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10148   hard_links=yes
10149   $rm conftest*
10150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10151   touch conftest.a
10152   ln conftest.a conftest.b 2>&5 || hard_links=no
10153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10154   { echo "$as_me:$LINENO: result: $hard_links" >&5
10155 echo "${ECHO_T}$hard_links" >&6; }
10156   if test "$hard_links" = no; then
10157     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10159     need_locks=warn
10160   fi
10161 else
10162   need_locks=no
10163 fi
10164
10165 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10167
10168   runpath_var=
10169   allow_undefined_flag=
10170   enable_shared_with_static_runtimes=no
10171   archive_cmds=
10172   archive_expsym_cmds=
10173   old_archive_From_new_cmds=
10174   old_archive_from_expsyms_cmds=
10175   export_dynamic_flag_spec=
10176   whole_archive_flag_spec=
10177   thread_safe_flag_spec=
10178   hardcode_libdir_flag_spec=
10179   hardcode_libdir_flag_spec_ld=
10180   hardcode_libdir_separator=
10181   hardcode_direct=no
10182   hardcode_minus_L=no
10183   hardcode_shlibpath_var=unsupported
10184   link_all_deplibs=unknown
10185   hardcode_automatic=no
10186   module_cmds=
10187   module_expsym_cmds=
10188   always_export_symbols=no
10189   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10190   # include_expsyms should be a list of space-separated symbols to be *always*
10191   # included in the symbol list
10192   include_expsyms=
10193   # exclude_expsyms can be an extended regexp of symbols to exclude
10194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10196   # as well as any symbol that contains `d'.
10197   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10199   # platforms (ab)use it in PIC code, but their linkers get confused if
10200   # the symbol is explicitly referenced.  Since portable code cannot
10201   # rely on this symbol name, it's probably fine to never include it in
10202   # preloaded symbol tables.
10203   extract_expsyms_cmds=
10204
10205   case $host_os in
10206   cygwin* | mingw* | pw32*)
10207     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10208     # When not using gcc, we currently assume that we are using
10209     # Microsoft Visual C++.
10210     if test "$GCC" != yes; then
10211       with_gnu_ld=no
10212     fi
10213     ;;
10214   openbsd*)
10215     with_gnu_ld=no
10216     ;;
10217   esac
10218
10219   ld_shlibs=yes
10220   if test "$with_gnu_ld" = yes; then
10221     # If archive_cmds runs LD, not CC, wlarc should be empty
10222     wlarc='${wl}'
10223
10224     # See if GNU ld supports shared libraries.
10225     case $host_os in
10226     aix3* | aix4* | aix5*)
10227       # On AIX/PPC, the GNU linker is very broken
10228       if test "$host_cpu" != ia64; then
10229         ld_shlibs=no
10230         cat <<EOF 1>&2
10231
10232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10233 *** to be unable to reliably create shared libraries on AIX.
10234 *** Therefore, libtool is disabling shared libraries support.  If you
10235 *** really care for shared libraries, you may want to modify your PATH
10236 *** so that a non-GNU linker is found, and then restart.
10237
10238 EOF
10239       fi
10240       ;;
10241
10242     amigaos*)
10243       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)'
10244       hardcode_libdir_flag_spec='-L$libdir'
10245       hardcode_minus_L=yes
10246
10247       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10248       # that the semantics of dynamic libraries on AmigaOS, at least up
10249       # to version 4, is to share data among multiple programs linked
10250       # with the same dynamic library.  Since this doesn't match the
10251       # behavior of shared libraries on other platforms, we can't use
10252       # them.
10253       ld_shlibs=no
10254       ;;
10255
10256     beos*)
10257       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10258         allow_undefined_flag=unsupported
10259         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10260         # support --undefined.  This deserves some investigation.  FIXME
10261         archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10262       else
10263         ld_shlibs=no
10264       fi
10265       ;;
10266
10267     cygwin* | mingw* | pw32*)
10268       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10269       # as there is no search path for DLLs.
10270       hardcode_libdir_flag_spec='-L$libdir'
10271       allow_undefined_flag=no
10272       always_export_symbols=no
10273       enable_shared_with_static_runtimes=yes
10274       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10275
10276       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10277         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10278         # If the export-symbols file already is a .def file (1st line
10279         # is EXPORTS), use it as is; otherwise, prepend...
10280         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10281           cp $export_symbols $output_objdir/$soname.def;
10282         else
10283           echo EXPORTS > $output_objdir/$soname.def;
10284           cat $export_symbols >> $output_objdir/$soname.def;
10285         fi~
10286         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10287       else
10288         ld_shlibs=no
10289       fi
10290       ;;
10291
10292     netbsd*)
10293       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10294         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10295         wlarc=
10296       else
10297         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10298         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10299       fi
10300       ;;
10301
10302     solaris* | sysv5*)
10303       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10304         ld_shlibs=no
10305         cat <<EOF 1>&2
10306
10307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10308 *** create shared libraries on Solaris systems.  Therefore, libtool
10309 *** is disabling shared libraries support.  We urge you to upgrade GNU
10310 *** binutils to release 2.9.1 or newer.  Another option is to modify
10311 *** your PATH or compiler configuration so that the native linker is
10312 *** used, and then restart.
10313
10314 EOF
10315       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10316         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10317         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10318       else
10319         ld_shlibs=no
10320       fi
10321       ;;
10322
10323     sunos4*)
10324       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10325       wlarc=
10326       hardcode_direct=yes
10327       hardcode_shlibpath_var=no
10328       ;;
10329
10330     *)
10331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10332         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10333         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10334       else
10335         ld_shlibs=no
10336       fi
10337       ;;
10338     esac
10339
10340     if test "$ld_shlibs" = yes; then
10341       runpath_var=LD_RUN_PATH
10342       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10343       export_dynamic_flag_spec='${wl}--export-dynamic'
10344       # ancient GNU ld didn't support --whole-archive et. al.
10345       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10346         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10347       else
10348         whole_archive_flag_spec=
10349       fi
10350     fi
10351   else
10352     # PORTME fill in a description of your system's linker (not GNU ld)
10353     case $host_os in
10354     aix3*)
10355       allow_undefined_flag=unsupported
10356       always_export_symbols=yes
10357       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'
10358       # Note: this linker hardcodes the directories in LIBPATH if there
10359       # are no directories specified by -L.
10360       hardcode_minus_L=yes
10361       if test "$GCC" = yes && test -z "$link_static_flag"; then
10362         # Neither direct hardcoding nor static linking is supported with a
10363         # broken collect2.
10364         hardcode_direct=unsupported
10365       fi
10366       ;;
10367
10368     aix4* | aix5*)
10369       if test "$host_cpu" = ia64; then
10370         # On IA64, the linker does run time linking by default, so we don't
10371         # have to do anything special.
10372         aix_use_runtimelinking=no
10373         exp_sym_flag='-Bexport'
10374         no_entry_flag=""
10375       else
10376         # If we're using GNU nm, then we don't want the "-C" option.
10377         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10378         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10379           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'
10380         else
10381           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'
10382         fi
10383
10384         # KDE requires run time linking.  Make it the default.
10385         aix_use_runtimelinking=yes
10386         exp_sym_flag='-bexport'
10387         no_entry_flag='-bnoentry'
10388       fi
10389
10390       # When large executables or shared objects are built, AIX ld can
10391       # have problems creating the table of contents.  If linking a library
10392       # or program results in "error TOC overflow" add -mminimal-toc to
10393       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10394       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10395
10396       archive_cmds=''
10397       hardcode_direct=yes
10398       hardcode_libdir_separator=':'
10399       link_all_deplibs=yes
10400
10401       if test "$GCC" = yes; then
10402         case $host_os in aix4.012|aix4.012.*)
10403         # We only want to do this on AIX 4.2 and lower, the check
10404         # below for broken collect2 doesn't work under 4.3+
10405           collect2name=`${CC} -print-prog-name=collect2`
10406           if test -f "$collect2name" && \
10407            strings "$collect2name" | grep resolve_lib_name >/dev/null
10408           then
10409           # We have reworked collect2
10410           hardcode_direct=yes
10411           else
10412           # We have old collect2
10413           hardcode_direct=unsupported
10414           # It fails to find uninstalled libraries when the uninstalled
10415           # path is not listed in the libpath.  Setting hardcode_minus_L
10416           # to unsupported forces relinking
10417           hardcode_minus_L=yes
10418           hardcode_libdir_flag_spec='-L$libdir'
10419           hardcode_libdir_separator=
10420           fi
10421         esac
10422         shared_flag='-shared'
10423       else
10424         # not using gcc
10425         if test "$host_cpu" = ia64; then
10426         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10427         # chokes on -Wl,-G. The following line is correct:
10428           shared_flag='-G'
10429         else
10430         if test "$aix_use_runtimelinking" = yes; then
10431             shared_flag='-qmkshrobj ${wl}-G'
10432           else
10433             shared_flag='-qmkshrobj'
10434         fi
10435         fi
10436       fi
10437
10438       # Let the compiler handle the export list.
10439       always_export_symbols=no
10440       if test "$aix_use_runtimelinking" = yes; then
10441         # Warning - without using the other runtime loading flags (-brtl),
10442         # -berok will link without error, but may produce a broken library.
10443         allow_undefined_flag='-berok'
10444        # Determine the default libpath from the value encoded in an empty executable.
10445         cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451
10452 int
10453 main ()
10454 {
10455
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467   (eval "$ac_link") 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } && {
10474          test -z "$ac_c_werror_flag" ||
10475          test ! -s conftest.err
10476        } && test -s conftest$ac_exeext &&
10477        $as_test_x conftest$ac_exeext; then
10478
10479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10480 }'`
10481 # Check for a 64-bit object if we didn't find anything.
10482 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; }
10483 }'`; fi
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492       conftest$ac_exeext conftest.$ac_ext
10493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10494
10495         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10496         archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10497         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10498        else
10499         if test "$host_cpu" = ia64; then
10500           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501           allow_undefined_flag="-z nodefs"
10502           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10503         else
10504          # Determine the default libpath from the value encoded in an empty executable.
10505          cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511
10512 int
10513 main ()
10514 {
10515
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (ac_try="$ac_link"
10522 case "(($ac_try" in
10523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524   *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527   (eval "$ac_link") 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } && {
10534          test -z "$ac_c_werror_flag" ||
10535          test ! -s conftest.err
10536        } && test -s conftest$ac_exeext &&
10537        $as_test_x conftest$ac_exeext; then
10538
10539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10540 }'`
10541 # Check for a 64-bit object if we didn't find anything.
10542 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; }
10543 }'`; fi
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552       conftest$ac_exeext conftest.$ac_ext
10553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10554
10555          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10556           # Warning - without using the other run time loading flags,
10557           # -berok will link without error, but may produce a broken library.
10558           no_undefined_flag=' ${wl}-bernotok'
10559           allow_undefined_flag=' ${wl}-berok'
10560           # -bexpall does not export symbols beginning with underscore (_)
10561           always_export_symbols=yes
10562           # Exported symbols can be pulled into shared objects from archives
10563           whole_archive_flag_spec=' '
10564           archive_cmds_need_lc=yes
10565           # This is similar to how AIX traditionally builds it's shared libraries.
10566           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10567         fi
10568       fi
10569       ;;
10570
10571     amigaos*)
10572       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)'
10573       hardcode_libdir_flag_spec='-L$libdir'
10574       hardcode_minus_L=yes
10575       # see comment about different semantics on the GNU ld section
10576       ld_shlibs=no
10577       ;;
10578
10579     bsdi4*)
10580       export_dynamic_flag_spec=-rdynamic
10581       ;;
10582
10583     cygwin* | mingw* | pw32*)
10584       # When not using gcc, we currently assume that we are using
10585       # Microsoft Visual C++.
10586       # hardcode_libdir_flag_spec is actually meaningless, as there is
10587       # no search path for DLLs.
10588       hardcode_libdir_flag_spec=' '
10589       allow_undefined_flag=no
10590       # Tell ltmain to make .lib files, not .a files.
10591       libext=lib
10592       # Tell ltmain to make .dll files, not .so files.
10593       shrext=".dll"
10594       # FIXME: Setting linknames here is a bad hack.
10595       archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10596       # The linker will automatically build a .lib file if we build a DLL.
10597       old_archive_From_new_cmds='true'
10598       # FIXME: Should let the user specify the lib program.
10599       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10600       fix_srcfile_path='`cygpath -w "$srcfile"`'
10601       enable_shared_with_static_runtimes=yes
10602       ;;
10603
10604     darwin* | rhapsody*)
10605     if test "$GXX" = yes ; then
10606       archive_cmds_need_lc=no
10607       case "$host_os" in
10608       rhapsody* | darwin1.[012])
10609         allow_undefined_flag='-Wl,-undefined -Wl,suppress'
10610         ;;
10611       *) # Darwin 1.3 on
10612         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10613           allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10614         else
10615           case ${MACOSX_DEPLOYMENT_TARGET} in
10616             10.012)
10617               allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10618               ;;
10619             10.*)
10620               allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10621               ;;
10622           esac
10623         fi
10624         ;;
10625       esac
10626         lt_int_apple_cc_single_mod=no
10627         output_verbose_link_cmd='echo'
10628         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10629           lt_int_apple_cc_single_mod=yes
10630         fi
10631         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10632           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10633         else
10634         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10635       fi
10636       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10637       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10638         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10639           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10640         else
10641           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10642         fi
10643           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10644       hardcode_direct=no
10645       hardcode_automatic=yes
10646       hardcode_shlibpath_var=unsupported
10647       whole_archive_flag_spec='-all_load $convenience'
10648       link_all_deplibs=yes
10649     else
10650       ld_shlibs=no
10651     fi
10652       ;;
10653
10654     dgux*)
10655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656       hardcode_libdir_flag_spec='-L$libdir'
10657       hardcode_shlibpath_var=no
10658       ;;
10659
10660     freebsd1*)
10661       ld_shlibs=no
10662       ;;
10663
10664     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10665     # support.  Future versions do this automatically, but an explicit c++rt0.o
10666     # does not break anything, and helps significantly (at the cost of a little
10667     # extra space).
10668     freebsd2.2*)
10669       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10670       hardcode_libdir_flag_spec='-R$libdir'
10671       hardcode_direct=yes
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10676     freebsd2*)
10677       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10678       hardcode_direct=yes
10679       hardcode_minus_L=yes
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10684     freebsd* | kfreebsd*-gnu)
10685       archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10686       hardcode_libdir_flag_spec='-R$libdir'
10687       hardcode_direct=yes
10688       hardcode_shlibpath_var=no
10689       ;;
10690
10691     hpux9*)
10692       if test "$GCC" = yes; then
10693         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10694       else
10695         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'
10696       fi
10697       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10698       hardcode_libdir_separator=:
10699       hardcode_direct=yes
10700
10701       # hardcode_minus_L: Not really in the search PATH,
10702       # but as the default location of the library.
10703       hardcode_minus_L=yes
10704       export_dynamic_flag_spec='${wl}-E'
10705       ;;
10706
10707     hpux10* | hpux11*)
10708       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10709         case "$host_cpu" in
10710         hppa*64*|ia64*)
10711           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10712           ;;
10713         *)
10714           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10715           ;;
10716         esac
10717       else
10718         case "$host_cpu" in
10719         hppa*64*|ia64*)
10720           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10721           ;;
10722         *)
10723           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10724           ;;
10725         esac
10726       fi
10727       if test "$with_gnu_ld" = no; then
10728         case "$host_cpu" in
10729         hppa*64*)
10730           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10731           hardcode_libdir_flag_spec_ld='+b $libdir'
10732           hardcode_libdir_separator=:
10733           hardcode_direct=no
10734           hardcode_shlibpath_var=no
10735           ;;
10736         ia64*)
10737           hardcode_libdir_flag_spec='-L$libdir'
10738           hardcode_direct=no
10739           hardcode_shlibpath_var=no
10740
10741           # hardcode_minus_L: Not really in the search PATH,
10742           # but as the default location of the library.
10743           hardcode_minus_L=yes
10744           ;;
10745         *)
10746           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10747           hardcode_libdir_separator=:
10748           hardcode_direct=yes
10749           export_dynamic_flag_spec='${wl}-E'
10750
10751           # hardcode_minus_L: Not really in the search PATH,
10752           # but as the default location of the library.
10753           hardcode_minus_L=yes
10754           ;;
10755         esac
10756       fi
10757       ;;
10758
10759     irix5* | irix6* | nonstopux*)
10760       if test "$GCC" = yes; then
10761         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10762       else
10763         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'
10764         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10765       fi
10766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10767       hardcode_libdir_separator=:
10768       link_all_deplibs=yes
10769       ;;
10770
10771     netbsd*)
10772       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10773         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10774       else
10775         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10776       fi
10777       hardcode_libdir_flag_spec='-R$libdir'
10778       hardcode_direct=yes
10779       hardcode_shlibpath_var=no
10780       ;;
10781
10782     newsos6)
10783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784       hardcode_direct=yes
10785       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10786       hardcode_libdir_separator=:
10787       hardcode_shlibpath_var=no
10788       ;;
10789
10790     openbsd*)
10791       hardcode_direct=yes
10792       hardcode_shlibpath_var=no
10793       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10794         archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10795         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10796         export_dynamic_flag_spec='${wl}-E'
10797       else
10798        case $host_os in
10799          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10800            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801            hardcode_libdir_flag_spec='-R$libdir'
10802            ;;
10803          *)
10804            archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10805            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10806            ;;
10807        esac
10808       fi
10809       ;;
10810
10811     os2*)
10812       hardcode_libdir_flag_spec='-L$libdir'
10813       hardcode_minus_L=yes
10814       allow_undefined_flag=unsupported
10815       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10816       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10817       ;;
10818
10819     osf3*)
10820       if test "$GCC" = yes; then
10821         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10822         archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10823       else
10824         allow_undefined_flag=' -expect_unresolved \*'
10825         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'
10826       fi
10827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       hardcode_libdir_separator=:
10829       ;;
10830
10831     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10832       if test "$GCC" = yes; then
10833         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10834         archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
10835         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10836       else
10837         allow_undefined_flag=' -expect_unresolved \*'
10838         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'
10839         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10840         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10841
10842         # Both c and cxx compiler support -rpath directly
10843         hardcode_libdir_flag_spec='-rpath $libdir'
10844       fi
10845       hardcode_libdir_separator=:
10846       ;;
10847
10848     sco3.2v5*)
10849       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850       hardcode_shlibpath_var=no
10851       export_dynamic_flag_spec='${wl}-Bexport'
10852       runpath_var=LD_RUN_PATH
10853       hardcode_runpath_var=yes
10854       ;;
10855
10856     solaris*)
10857       no_undefined_flag=' -z text'
10858       if test "$GCC" = yes; then
10859         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10861           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10862       else
10863         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10865         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10866       fi
10867       hardcode_libdir_flag_spec='-R$libdir'
10868       hardcode_shlibpath_var=no
10869       case $host_os in
10870       solaris2.[0-5] | solaris2.[0-5].*) ;;
10871       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10872         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10873       esac
10874       link_all_deplibs=yes
10875       ;;
10876
10877     sunos4*)
10878       if test "x$host_vendor" = xsequent; then
10879         # Use $CC to link under sequent, because it throws in some extra .o
10880         # files that make .init and .fini sections work.
10881         archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10882       else
10883         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10884       fi
10885       hardcode_libdir_flag_spec='-L$libdir'
10886       hardcode_direct=yes
10887       hardcode_minus_L=yes
10888       hardcode_shlibpath_var=no
10889       ;;
10890
10891     sysv4)
10892       case $host_vendor in
10893         sni)
10894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895           hardcode_direct=yes # is this really true???
10896         ;;
10897         siemens)
10898           ## LD is ld it makes a PLAMLIB
10899           ## CC just makes a GrossModule.
10900           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10901           reload_cmds='$CC -r -o $output$reload_objs'
10902           hardcode_direct=no
10903         ;;
10904         motorola)
10905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10907         ;;
10908       esac
10909       runpath_var='LD_RUN_PATH'
10910       hardcode_shlibpath_var=no
10911       ;;
10912
10913     sysv4.3*)
10914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915       hardcode_shlibpath_var=no
10916       export_dynamic_flag_spec='-Bexport'
10917       ;;
10918
10919     sysv4*MP*)
10920       if test -d /usr/nec; then
10921         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922         hardcode_shlibpath_var=no
10923         runpath_var=LD_RUN_PATH
10924         hardcode_runpath_var=yes
10925         ld_shlibs=yes
10926       fi
10927       ;;
10928
10929     sysv4.2uw2*)
10930       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10931       hardcode_direct=yes
10932       hardcode_minus_L=no
10933       hardcode_shlibpath_var=no
10934       hardcode_runpath_var=yes
10935       runpath_var=LD_RUN_PATH
10936       ;;
10937
10938    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10939       no_undefined_flag='${wl}-z ${wl}text'
10940       if test "$GCC" = yes; then
10941         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10942       else
10943         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10944       fi
10945       runpath_var='LD_RUN_PATH'
10946       hardcode_shlibpath_var=no
10947       ;;
10948
10949     sysv5*)
10950       no_undefined_flag=' -z text'
10951       # $CC -shared without GNU ld will not create a library from C++
10952       # object files and a static libstdc++, better avoid it by now
10953       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10956       hardcode_libdir_flag_spec=
10957       hardcode_shlibpath_var=no
10958       runpath_var='LD_RUN_PATH'
10959       ;;
10960
10961     uts4*)
10962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963       hardcode_libdir_flag_spec='-L$libdir'
10964       hardcode_shlibpath_var=no
10965       ;;
10966
10967     *)
10968       ld_shlibs=no
10969       ;;
10970     esac
10971   fi
10972
10973 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10974 echo "${ECHO_T}$ld_shlibs" >&6; }
10975 test "$ld_shlibs" = no && can_build_shared=no
10976
10977 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10978 if test "$GCC" = yes; then
10979   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10980 fi
10981
10982 #
10983 # Do we need to explicitly link libc?
10984 #
10985 case "x$archive_cmds_need_lc" in
10986 x|xyes)
10987   # Assume -lc should be added
10988   archive_cmds_need_lc=yes
10989
10990   if test "$enable_shared" = yes && test "$GCC" = yes; then
10991     case $archive_cmds in
10992     *'~'*)
10993       # FIXME: we may have to deal with multi-command sequences.
10994       ;;
10995     '$CC '*)
10996       # Test whether the compiler implicitly links with -lc since on some
10997       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10998       # to ld, don't add -lc before -lgcc.
10999       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11001       $rm conftest*
11002       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11003
11004       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } 2>conftest.err; then
11009         soname=conftest
11010         lib=conftest
11011         libobjs=conftest.$ac_objext
11012         deplibs=
11013         wl=$lt_prog_compiler_wl
11014         compiler_flags=-v
11015         linker_flags=-v
11016         verstring=
11017         output_objdir=.
11018         libname=conftest
11019         lt_save_allow_undefined_flag=$allow_undefined_flag
11020         allow_undefined_flag=
11021         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11022   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }
11026         then
11027           archive_cmds_need_lc=no
11028         else
11029           archive_cmds_need_lc=yes
11030         fi
11031         allow_undefined_flag=$lt_save_allow_undefined_flag
11032       else
11033         cat conftest.err 1>&5
11034       fi
11035       $rm conftest*
11036       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11037 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11038       ;;
11039     esac
11040   fi
11041   ;;
11042 esac
11043
11044 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11046 library_names_spec=
11047 libname_spec='lib$name'
11048 soname_spec=
11049 shrext=".so"
11050 postinstall_cmds=
11051 postuninstall_cmds=
11052 finish_cmds=
11053 finish_eval=
11054 shlibpath_var=
11055 shlibpath_overrides_runpath=unknown
11056 version_type=none
11057 dynamic_linker="$host_os ld.so"
11058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11060 need_lib_prefix=unknown
11061 hardcode_into_libs=no
11062
11063 # when you set need_version to no, make sure it does not cause -set_version
11064 # flags to be left without arguments
11065 need_version=unknown
11066
11067 case $host_os in
11068 aix3*)
11069   version_type=linux
11070   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11071   shlibpath_var=LIBPATH
11072
11073   # AIX 3 has no versioning support, so we append a major version to the name.
11074   soname_spec='${libname}${release}${shared_ext}$major'
11075   ;;
11076
11077 aix4* | aix5*)
11078   version_type=linux
11079   need_lib_prefix=no
11080   need_version=no
11081   hardcode_into_libs=yes
11082   if test "$host_cpu" = ia64; then
11083     # AIX 5 supports IA64
11084     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11085     shlibpath_var=LD_LIBRARY_PATH
11086   else
11087     # With GCC up to 2.95.x, collect2 would create an import file
11088     # for dependence libraries.  The import file would start with
11089     # the line `#! .'.  This would cause the generated library to
11090     # depend on `.', always an invalid library.  This was fixed in
11091     # development snapshots of GCC prior to 3.0.
11092     case $host_os in
11093       aix4 | aix4.[01] | aix4.[01].*)
11094       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11095            echo ' yes '
11096            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11097         :
11098       else
11099         can_build_shared=no
11100       fi
11101       ;;
11102     esac
11103     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11104     # soname into executable. Probably we can add versioning support to
11105     # collect2, so additional links can be useful in future.
11106     if test "$aix_use_runtimelinking" = yes; then
11107       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11108       # instead of lib<name>.a to let people know that these are not
11109       # typical AIX shared libraries.
11110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111     else
11112       # We preserve .a as extension for shared libraries through AIX4.2
11113       # and later when we are not doing run time linking.
11114       library_names_spec='${libname}${release}.a $libname.a'
11115       soname_spec='${libname}${release}${shared_ext}$major'
11116     fi
11117     shlibpath_var=LIBPATH
11118   fi
11119   ;;
11120
11121 amigaos*)
11122   library_names_spec='$libname.ixlibrary $libname.a'
11123   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11124   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'
11125   ;;
11126
11127 beos*)
11128   library_names_spec='${libname}${shared_ext}'
11129   dynamic_linker="$host_os ld.so"
11130   shlibpath_var=LIBRARY_PATH
11131   ;;
11132
11133 bsdi4*)
11134   version_type=linux
11135   need_version=no
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137   soname_spec='${libname}${release}${shared_ext}$major'
11138   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11141   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11142   # the default ld.so.conf also contains /usr/contrib/lib and
11143   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11144   # libtool to hard-code these into programs
11145   ;;
11146
11147 cygwin* | mingw* | pw32*)
11148   version_type=windows
11149   shrext=".dll"
11150   need_version=no
11151   need_lib_prefix=no
11152
11153   case $GCC,$host_os in
11154   yes,cygwin* | yes,mingw* | yes,pw32*)
11155     library_names_spec='$libname.dll.a'
11156     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11157     postinstall_cmds='base_file=`basename \${file}`~
11158       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11159       dldir=$destdir/`dirname \$dlpath`~
11160       test -d \$dldir || mkdir -p \$dldir~
11161       $install_prog $dir/$dlname \$dldir/$dlname'
11162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11163       dlpath=$dir/\$dldll~
11164        $rm \$dlpath'
11165     shlibpath_overrides_runpath=yes
11166
11167     case $host_os in
11168     cygwin*)
11169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11171       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11172       ;;
11173     mingw*)
11174       # MinGW DLLs use traditional 'lib' prefix
11175       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11177       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11178         # It is most probably a Windows format PATH printed by
11179         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11180         # path with ; separators, and with drive letters. We can handle the
11181         # drive letters (cygwin fileutils understands them), so leave them,
11182         # especially as we might pass files found there to a mingw objdump,
11183         # which wouldn't understand a cygwinified path. Ahh.
11184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11185       else
11186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11187       fi
11188       ;;
11189     pw32*)
11190       # pw32 DLLs use 'pw' prefix rather than 'lib'
11191       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11192       ;;
11193     esac
11194     ;;
11195
11196   *)
11197     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11198     ;;
11199   esac
11200   dynamic_linker='Win32 ld.exe'
11201   # FIXME: first we should search . and the directory the executable is in
11202   shlibpath_var=PATH
11203   ;;
11204
11205 darwin* | rhapsody*)
11206   dynamic_linker="$host_os dyld"
11207   version_type=darwin
11208   need_lib_prefix=no
11209   need_version=no
11210   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11211   soname_spec='${libname}${release}${major}$shared_ext'
11212   shlibpath_overrides_runpath=yes
11213   shlibpath_var=DYLD_LIBRARY_PATH
11214   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11215   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11216   if test "$GCC" = yes; then
11217     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"`
11218   else
11219     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11220   fi
11221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11222   ;;
11223
11224 dgux*)
11225   version_type=linux
11226   need_lib_prefix=no
11227   need_version=no
11228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11229   soname_spec='${libname}${release}${shared_ext}$major'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   ;;
11232
11233 freebsd1*)
11234   dynamic_linker=no
11235   ;;
11236
11237 kfreebsd*-gnu*)
11238   version_type=linux
11239   need_lib_prefix=no
11240   need_version=no
11241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242   soname_spec='${libname}${release}${shared_ext}$major'
11243   shlibpath_var=LD_LIBRARY_PATH
11244   shlibpath_overrides_runpath=no
11245   hardcode_into_libs=yes
11246   dynamic_linker='GNU ld.so'
11247   ;;
11248
11249 freebsd*)
11250   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11251   version_type=freebsd-$objformat
11252   case $version_type in
11253     freebsd-elf*)
11254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11255       need_version=no
11256       need_lib_prefix=no
11257       ;;
11258     freebsd-*)
11259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11260       need_version=yes
11261       ;;
11262   esac
11263   shlibpath_var=LD_LIBRARY_PATH
11264   case $host_os in
11265   freebsd2*)
11266     shlibpath_overrides_runpath=yes
11267     ;;
11268   freebsd3.01* | freebsdelf3.01*)
11269     shlibpath_overrides_runpath=yes
11270     hardcode_into_libs=yes
11271     ;;
11272   *) # from 3.2 on
11273     shlibpath_overrides_runpath=no
11274     hardcode_into_libs=yes
11275     ;;
11276   esac
11277   ;;
11278
11279 gnu*)
11280   version_type=linux
11281   need_lib_prefix=no
11282   need_version=no
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284   soname_spec='${libname}${release}${shared_ext}$major'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   hardcode_into_libs=yes
11287   ;;
11288
11289 hpux9* | hpux10* | hpux11*)
11290   # Give a soname corresponding to the major version so that dld.sl refuses to
11291   # link against other versions.
11292   version_type=sunos
11293   need_lib_prefix=no
11294   need_version=no
11295   case "$host_cpu" in
11296   ia64*)
11297     shrext='.so'
11298     hardcode_into_libs=yes
11299     dynamic_linker="$host_os dld.so"
11300     shlibpath_var=LD_LIBRARY_PATH
11301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303     soname_spec='${libname}${release}${shared_ext}$major'
11304     if test "X$HPUX_IA64_MODE" = X32; then
11305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11306     else
11307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308     fi
11309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310     ;;
11311    hppa*64*)
11312      shrext='.sl'
11313      hardcode_into_libs=yes
11314      dynamic_linker="$host_os dld.sl"
11315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318      soname_spec='${libname}${release}${shared_ext}$major'
11319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321      ;;
11322    *)
11323     shrext='.sl'
11324     dynamic_linker="$host_os dld.sl"
11325     shlibpath_var=SHLIB_PATH
11326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328     soname_spec='${libname}${release}${shared_ext}$major'
11329     ;;
11330   esac
11331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11332   postinstall_cmds='chmod 555 $lib'
11333   ;;
11334
11335 irix5* | irix6* | nonstopux*)
11336   case $host_os in
11337     nonstopux*) version_type=nonstopux ;;
11338     *)
11339         if test "$lt_cv_prog_gnu_ld" = yes; then
11340                 version_type=linux
11341         else
11342                 version_type=irix
11343         fi ;;
11344   esac
11345   need_lib_prefix=no
11346   need_version=no
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11349   case $host_os in
11350   irix5* | nonstopux*)
11351     libsuff= shlibsuff=
11352     ;;
11353   *)
11354     case $LD in # libtool.m4 will add one of these switches to LD
11355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356       libsuff= shlibsuff= libmagic=32-bit;;
11357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358       libsuff=32 shlibsuff=N32 libmagic=N32;;
11359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361     *) libsuff= shlibsuff= libmagic=never-match;;
11362     esac
11363     ;;
11364   esac
11365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366   shlibpath_overrides_runpath=no
11367   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369   hardcode_into_libs=yes
11370   ;;
11371
11372 # No shared lib support for Linux oldld, aout, or coff.
11373 linux*oldld* | linux*aout* | linux*coff*)
11374   dynamic_linker=no
11375   ;;
11376
11377 # This must be Linux ELF.
11378 linux*)
11379   version_type=linux
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385   libsuff=
11386   if test "x$LINUX_64_MODE" = x64; then
11387     # Some platforms are per default 64-bit, so there's no /lib64
11388     if test -d /lib64 -a ! -h /lib64; then
11389       libsuff=64
11390     fi
11391   fi
11392   shlibpath_var=LD_LIBRARY_PATH
11393   shlibpath_overrides_runpath=no
11394   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11395   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11396   # This implies no fast_install, which is unacceptable.
11397   # Some rework will be needed to allow for fast_install
11398   # before this can be enabled.
11399   hardcode_into_libs=yes
11400
11401   # We used to test for /lib/ld.so.1 and disable shared libraries on
11402   # powerpc, because MkLinux only supported shared libraries with the
11403   # GNU dynamic linker.  Since this was broken with cross compilers,
11404   # most powerpc-linux boxes support dynamic linking these days and
11405   # people can always --disable-shared, the test was removed, and we
11406   # assume the GNU/Linux dynamic linker is in use.
11407   dynamic_linker='GNU/Linux ld.so'
11408   ;;
11409
11410 netbsd*)
11411   version_type=sunos
11412   need_lib_prefix=no
11413   need_version=no
11414   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417     dynamic_linker='NetBSD (a.out) ld.so'
11418   else
11419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11420     soname_spec='${libname}${release}${shared_ext}$major'
11421     dynamic_linker='NetBSD ld.elf_so'
11422   fi
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=yes
11425   hardcode_into_libs=yes
11426   ;;
11427
11428 newsos6)
11429   version_type=linux
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   shlibpath_overrides_runpath=yes
11433   ;;
11434
11435 nto-qnx*)
11436   version_type=linux
11437   need_lib_prefix=no
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=yes
11443   ;;
11444
11445 openbsd*)
11446   version_type=sunos
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11453     case $host_os in
11454       openbsd2.[89] | openbsd2.[89].*)
11455         shlibpath_overrides_runpath=no
11456         ;;
11457       *)
11458         shlibpath_overrides_runpath=yes
11459         ;;
11460       esac
11461   else
11462     shlibpath_overrides_runpath=yes
11463   fi
11464   ;;
11465
11466 os2*)
11467   libname_spec='$name'
11468   shrext=".dll"
11469   need_lib_prefix=no
11470   library_names_spec='$libname${shared_ext} $libname.a'
11471   dynamic_linker='OS/2 ld.exe'
11472   shlibpath_var=LIBPATH
11473   ;;
11474
11475 osf3* | osf4* | osf5*)
11476   version_type=osf
11477   need_lib_prefix=no
11478   need_version=no
11479   soname_spec='${libname}${release}${shared_ext}$major'
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11483   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11484   ;;
11485
11486 sco3.2v5*)
11487   version_type=osf
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490   shlibpath_var=LD_LIBRARY_PATH
11491   ;;
11492
11493 solaris*)
11494   version_type=linux
11495   need_lib_prefix=no
11496   need_version=no
11497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498   soname_spec='${libname}${release}${shared_ext}$major'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   shlibpath_overrides_runpath=yes
11501   hardcode_into_libs=yes
11502   # ldd complains unless libraries are executable
11503   postinstall_cmds='chmod +x $lib'
11504   ;;
11505
11506 sunos4*)
11507   version_type=sunos
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=yes
11512   if test "$with_gnu_ld" = yes; then
11513     need_lib_prefix=no
11514   fi
11515   need_version=yes
11516   ;;
11517
11518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11519   version_type=linux
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   case $host_vendor in
11524     sni)
11525       shlibpath_overrides_runpath=no
11526       need_lib_prefix=no
11527       export_dynamic_flag_spec='${wl}-Blargedynsym'
11528       runpath_var=LD_RUN_PATH
11529       ;;
11530     siemens)
11531       need_lib_prefix=no
11532       ;;
11533     motorola)
11534       need_lib_prefix=no
11535       need_version=no
11536       shlibpath_overrides_runpath=no
11537       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538       ;;
11539   esac
11540   ;;
11541
11542 sysv4*MP*)
11543   if test -d /usr/nec ;then
11544     version_type=linux
11545     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11546     soname_spec='$libname${shared_ext}.$major'
11547     shlibpath_var=LD_LIBRARY_PATH
11548   fi
11549   ;;
11550
11551 uts4*)
11552   version_type=linux
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   ;;
11557
11558 *)
11559   dynamic_linker=no
11560   ;;
11561 esac
11562 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11563 echo "${ECHO_T}$dynamic_linker" >&6; }
11564 test "$dynamic_linker" = no && can_build_shared=no
11565
11566 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11567 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11568 hardcode_action=
11569 if test -n "$hardcode_libdir_flag_spec" || \
11570    test -n "$runpath_var " || \
11571    test "X$hardcode_automatic"="Xyes" ; then
11572
11573   # We can hardcode non-existant directories.
11574   if test "$hardcode_direct" != no &&
11575      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11576      # have to relink, otherwise we might link with an installed library
11577      # when we should be linking with a yet-to-be-installed one
11578      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11579      test "$hardcode_minus_L" != no; then
11580     # Linking always hardcodes the temporary library directory.
11581     hardcode_action=relink
11582   else
11583     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11584     hardcode_action=immediate
11585   fi
11586 else
11587   # We cannot hardcode anything, or else we can only hardcode existing
11588   # directories.
11589   hardcode_action=unsupported
11590 fi
11591 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11592 echo "${ECHO_T}$hardcode_action" >&6; }
11593
11594 if test "$hardcode_action" = relink; then
11595   # Fast installation is not supported
11596   enable_fast_install=no
11597 elif test "$shlibpath_overrides_runpath" = yes ||
11598      test "$enable_shared" = no; then
11599   # Fast installation is not necessary
11600   enable_fast_install=needless
11601 fi
11602
11603 striplib=
11604 old_striplib=
11605 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11606 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11607 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11608   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11609   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11610   { echo "$as_me:$LINENO: result: yes" >&5
11611 echo "${ECHO_T}yes" >&6; }
11612 else
11613 # FIXME - insert some real tests, host_os isn't really good enough
11614   case $host_os in
11615    darwin*)
11616        if test -n "$STRIP" ; then
11617          striplib="$STRIP -x"
11618          { echo "$as_me:$LINENO: result: yes" >&5
11619 echo "${ECHO_T}yes" >&6; }
11620        else
11621   { echo "$as_me:$LINENO: result: no" >&5
11622 echo "${ECHO_T}no" >&6; }
11623 fi
11624        ;;
11625    *)
11626   { echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6; }
11628     ;;
11629   esac
11630 fi
11631
11632 if test "x$enable_dlopen" != xyes; then
11633   enable_dlopen=unknown
11634   enable_dlopen_self=unknown
11635   enable_dlopen_self_static=unknown
11636 else
11637   lt_cv_dlopen=no
11638   lt_cv_dlopen_libs=
11639
11640   case $host_os in
11641   beos*)
11642     lt_cv_dlopen="load_add_on"
11643     lt_cv_dlopen_libs=
11644     lt_cv_dlopen_self=yes
11645     ;;
11646
11647   mingw* | pw32*)
11648     lt_cv_dlopen="LoadLibrary"
11649     lt_cv_dlopen_libs=
11650    ;;
11651
11652   cygwin*)
11653     lt_cv_dlopen="dlopen"
11654     lt_cv_dlopen_libs=
11655    ;;
11656
11657   darwin*)
11658   # if libdl is installed we need to link against it
11659     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   ac_check_lib_save_LIBS=$LIBS
11665 LIBS="-ldl  $LIBS"
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char dlopen ();
11680 int
11681 main ()
11682 {
11683 return dlopen ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_link") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } && {
11702          test -z "$ac_c_werror_flag" ||
11703          test ! -s conftest.err
11704        } && test -s conftest$ac_exeext &&
11705        $as_test_x conftest$ac_exeext; then
11706   ac_cv_lib_dl_dlopen=yes
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711         ac_cv_lib_dl_dlopen=no
11712 fi
11713
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715       conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11717 fi
11718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11720 if test $ac_cv_lib_dl_dlopen = yes; then
11721   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11722 else
11723
11724     lt_cv_dlopen="dyld"
11725     lt_cv_dlopen_libs=
11726     lt_cv_dlopen_self=yes
11727
11728 fi
11729
11730    ;;
11731
11732   *)
11733     { echo "$as_me:$LINENO: checking for shl_load" >&5
11734 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11735 if test "${ac_cv_func_shl_load+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11746 #define shl_load innocuous_shl_load
11747
11748 /* System header to define __stub macros and hopefully few prototypes,
11749     which can conflict with char shl_load (); below.
11750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11751     <limits.h> exists even on freestanding compilers.  */
11752
11753 #ifdef __STDC__
11754 # include <limits.h>
11755 #else
11756 # include <assert.h>
11757 #endif
11758
11759 #undef shl_load
11760
11761 /* Override any GCC internal prototype to avoid an error.
11762    Use char because int might match the return type of a GCC
11763    builtin and then its argument prototype would still apply.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char shl_load ();
11768 /* The GNU C library defines this for functions which it implements
11769     to always fail with ENOSYS.  Some functions are actually named
11770     something starting with __ and the normal name is an alias.  */
11771 #if defined __stub_shl_load || defined __stub___shl_load
11772 choke me
11773 #endif
11774
11775 int
11776 main ()
11777 {
11778 return shl_load ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (ac_try="$ac_link"
11785 case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_link") 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } && {
11797          test -z "$ac_c_werror_flag" ||
11798          test ! -s conftest.err
11799        } && test -s conftest$ac_exeext &&
11800        $as_test_x conftest$ac_exeext; then
11801   ac_cv_func_shl_load=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806         ac_cv_func_shl_load=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810       conftest$ac_exeext conftest.$ac_ext
11811 fi
11812 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11813 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11814 if test $ac_cv_func_shl_load = yes; then
11815   lt_cv_dlopen="shl_load"
11816 else
11817   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11818 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11819 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   ac_check_lib_save_LIBS=$LIBS
11823 LIBS="-ldld  $LIBS"
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832    Use char because int might match the return type of a GCC
11833    builtin and then its argument prototype would still apply.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char shl_load ();
11838 int
11839 main ()
11840 {
11841 return shl_load ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_link") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } && {
11860          test -z "$ac_c_werror_flag" ||
11861          test ! -s conftest.err
11862        } && test -s conftest$ac_exeext &&
11863        $as_test_x conftest$ac_exeext; then
11864   ac_cv_lib_dld_shl_load=yes
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869         ac_cv_lib_dld_shl_load=no
11870 fi
11871
11872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873       conftest$ac_exeext conftest.$ac_ext
11874 LIBS=$ac_check_lib_save_LIBS
11875 fi
11876 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11877 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11878 if test $ac_cv_lib_dld_shl_load = yes; then
11879   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11880 else
11881   { echo "$as_me:$LINENO: checking for dlopen" >&5
11882 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11883 if test "${ac_cv_func_dlopen+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11894 #define dlopen innocuous_dlopen
11895
11896 /* System header to define __stub macros and hopefully few prototypes,
11897     which can conflict with char dlopen (); below.
11898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899     <limits.h> exists even on freestanding compilers.  */
11900
11901 #ifdef __STDC__
11902 # include <limits.h>
11903 #else
11904 # include <assert.h>
11905 #endif
11906
11907 #undef dlopen
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dlopen ();
11916 /* The GNU C library defines this for functions which it implements
11917     to always fail with ENOSYS.  Some functions are actually named
11918     something starting with __ and the normal name is an alias.  */
11919 #if defined __stub_dlopen || defined __stub___dlopen
11920 choke me
11921 #endif
11922
11923 int
11924 main ()
11925 {
11926 return dlopen ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_link") 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } && {
11945          test -z "$ac_c_werror_flag" ||
11946          test ! -s conftest.err
11947        } && test -s conftest$ac_exeext &&
11948        $as_test_x conftest$ac_exeext; then
11949   ac_cv_func_dlopen=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954         ac_cv_func_dlopen=no
11955 fi
11956
11957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958       conftest$ac_exeext conftest.$ac_ext
11959 fi
11960 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11961 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11962 if test $ac_cv_func_dlopen = yes; then
11963   lt_cv_dlopen="dlopen"
11964 else
11965   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-ldl  $LIBS"
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978
11979 /* Override any GCC internal prototype to avoid an error.
11980    Use char because int might match the return type of a GCC
11981    builtin and then its argument prototype would still apply.  */
11982 #ifdef __cplusplus
11983 extern "C"
11984 #endif
11985 char dlopen ();
11986 int
11987 main ()
11988 {
11989 return dlopen ();
11990   ;
11991   return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (ac_try="$ac_link"
11996 case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_link") 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } && {
12008          test -z "$ac_c_werror_flag" ||
12009          test ! -s conftest.err
12010        } && test -s conftest$ac_exeext &&
12011        $as_test_x conftest$ac_exeext; then
12012   ac_cv_lib_dl_dlopen=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         ac_cv_lib_dl_dlopen=no
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021       conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_lib_save_LIBS
12023 fi
12024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12026 if test $ac_cv_lib_dl_dlopen = yes; then
12027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12028 else
12029   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12030 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034   ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lsvld  $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044    Use char because int might match the return type of a GCC
12045    builtin and then its argument prototype would still apply.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char dlopen ();
12050 int
12051 main ()
12052 {
12053 return dlopen ();
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062   *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065   (eval "$ac_link") 2>conftest.er1
12066   ac_status=$?
12067   grep -v '^ *+' conftest.er1 >conftest.err
12068   rm -f conftest.er1
12069   cat conftest.err >&5
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } && {
12072          test -z "$ac_c_werror_flag" ||
12073          test ! -s conftest.err
12074        } && test -s conftest$ac_exeext &&
12075        $as_test_x conftest$ac_exeext; then
12076   ac_cv_lib_svld_dlopen=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         ac_cv_lib_svld_dlopen=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085       conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12089 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12090 if test $ac_cv_lib_svld_dlopen = yes; then
12091   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12092 else
12093   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12094 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-ldld  $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108    Use char because int might match the return type of a GCC
12109    builtin and then its argument prototype would still apply.  */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char dld_link ();
12114 int
12115 main ()
12116 {
12117 return dld_link ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_link") 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } && {
12136          test -z "$ac_c_werror_flag" ||
12137          test ! -s conftest.err
12138        } && test -s conftest$ac_exeext &&
12139        $as_test_x conftest$ac_exeext; then
12140   ac_cv_lib_dld_dld_link=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145         ac_cv_lib_dld_dld_link=no
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12149       conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12154 if test $ac_cv_lib_dld_dld_link = yes; then
12155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12156 fi
12157
12158
12159 fi
12160
12161
12162 fi
12163
12164
12165 fi
12166
12167
12168 fi
12169
12170
12171 fi
12172
12173     ;;
12174   esac
12175
12176   if test "x$lt_cv_dlopen" != xno; then
12177     enable_dlopen=yes
12178   else
12179     enable_dlopen=no
12180   fi
12181
12182   case $lt_cv_dlopen in
12183   dlopen)
12184     save_CPPFLAGS="$CPPFLAGS"
12185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12186
12187     save_LDFLAGS="$LDFLAGS"
12188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12189
12190     save_LIBS="$LIBS"
12191     LIBS="$lt_cv_dlopen_libs $LIBS"
12192
12193     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12195 if test "${lt_cv_dlopen_self+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198           if test "$cross_compiling" = yes; then :
12199   lt_cv_dlopen_self=cross
12200 else
12201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12202   lt_status=$lt_dlunknown
12203   cat > conftest.$ac_ext <<EOF
12204 #line 12204 "configure"
12205 #include "confdefs.h"
12206
12207 #if HAVE_DLFCN_H
12208 #include <dlfcn.h>
12209 #endif
12210
12211 #include <stdio.h>
12212
12213 #ifdef RTLD_GLOBAL
12214 #  define LT_DLGLOBAL           RTLD_GLOBAL
12215 #else
12216 #  ifdef DL_GLOBAL
12217 #    define LT_DLGLOBAL         DL_GLOBAL
12218 #  else
12219 #    define LT_DLGLOBAL         0
12220 #  endif
12221 #endif
12222
12223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12224    find out it does not work in some platform. */
12225 #ifndef LT_DLLAZY_OR_NOW
12226 #  ifdef RTLD_LAZY
12227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12228 #  else
12229 #    ifdef DL_LAZY
12230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12231 #    else
12232 #      ifdef RTLD_NOW
12233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12234 #      else
12235 #        ifdef DL_NOW
12236 #          define LT_DLLAZY_OR_NOW      DL_NOW
12237 #        else
12238 #          define LT_DLLAZY_OR_NOW      0
12239 #        endif
12240 #      endif
12241 #    endif
12242 #  endif
12243 #endif
12244
12245 #ifdef __cplusplus
12246 extern "C" void exit (int);
12247 #endif
12248
12249 void fnord() { int i=42;}
12250 int main ()
12251 {
12252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12253   int status = $lt_dlunknown;
12254
12255   if (self)
12256     {
12257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12259       /* dlclose (self); */
12260     }
12261
12262     exit (status);
12263 }
12264 EOF
12265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266   (eval $ac_link) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12270     (./conftest; exit; ) 2>/dev/null
12271     lt_status=$?
12272     case x$lt_status in
12273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12276     esac
12277   else :
12278     # compilation failed
12279     lt_cv_dlopen_self=no
12280   fi
12281 fi
12282 rm -fr conftest*
12283
12284
12285 fi
12286 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12288
12289     if test "x$lt_cv_dlopen_self" = xyes; then
12290       LDFLAGS="$LDFLAGS $link_static_flag"
12291       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12293 if test "${lt_cv_dlopen_self_static+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296           if test "$cross_compiling" = yes; then :
12297   lt_cv_dlopen_self_static=cross
12298 else
12299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300   lt_status=$lt_dlunknown
12301   cat > conftest.$ac_ext <<EOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304
12305 #if HAVE_DLFCN_H
12306 #include <dlfcn.h>
12307 #endif
12308
12309 #include <stdio.h>
12310
12311 #ifdef RTLD_GLOBAL
12312 #  define LT_DLGLOBAL           RTLD_GLOBAL
12313 #else
12314 #  ifdef DL_GLOBAL
12315 #    define LT_DLGLOBAL         DL_GLOBAL
12316 #  else
12317 #    define LT_DLGLOBAL         0
12318 #  endif
12319 #endif
12320
12321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322    find out it does not work in some platform. */
12323 #ifndef LT_DLLAZY_OR_NOW
12324 #  ifdef RTLD_LAZY
12325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12326 #  else
12327 #    ifdef DL_LAZY
12328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12329 #    else
12330 #      ifdef RTLD_NOW
12331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12332 #      else
12333 #        ifdef DL_NOW
12334 #          define LT_DLLAZY_OR_NOW      DL_NOW
12335 #        else
12336 #          define LT_DLLAZY_OR_NOW      0
12337 #        endif
12338 #      endif
12339 #    endif
12340 #  endif
12341 #endif
12342
12343 #ifdef __cplusplus
12344 extern "C" void exit (int);
12345 #endif
12346
12347 void fnord() { int i=42;}
12348 int main ()
12349 {
12350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351   int status = $lt_dlunknown;
12352
12353   if (self)
12354     {
12355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357       /* dlclose (self); */
12358     }
12359
12360     exit (status);
12361 }
12362 EOF
12363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364   (eval $ac_link) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368     (./conftest; exit; ) 2>/dev/null
12369     lt_status=$?
12370     case x$lt_status in
12371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12374     esac
12375   else :
12376     # compilation failed
12377     lt_cv_dlopen_self_static=no
12378   fi
12379 fi
12380 rm -fr conftest*
12381
12382
12383 fi
12384 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12386     fi
12387
12388     CPPFLAGS="$save_CPPFLAGS"
12389     LDFLAGS="$save_LDFLAGS"
12390     LIBS="$save_LIBS"
12391     ;;
12392   esac
12393
12394   case $lt_cv_dlopen_self in
12395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12396   *) enable_dlopen_self=unknown ;;
12397   esac
12398
12399   case $lt_cv_dlopen_self_static in
12400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12401   *) enable_dlopen_self_static=unknown ;;
12402   esac
12403 fi
12404
12405
12406 # Report which librarie types wil actually be built
12407 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12409 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12410 echo "${ECHO_T}$can_build_shared" >&6; }
12411
12412 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12414 test "$can_build_shared" = "no" && enable_shared=no
12415
12416 # On AIX, shared libraries and static libraries use the same namespace, and
12417 # are all built from PIC.
12418 case "$host_os" in
12419 aix3*)
12420   test "$enable_shared" = yes && enable_static=no
12421   if test -n "$RANLIB"; then
12422     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12423     postinstall_cmds='$RANLIB $lib'
12424   fi
12425   ;;
12426
12427 aix4*)
12428   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12429     test "$enable_shared" = yes && enable_static=no
12430   fi
12431   ;;
12432   darwin* | rhapsody*)
12433   if test "$GCC" = yes; then
12434     archive_cmds_need_lc=no
12435     case "$host_os" in
12436     rhapsody* | darwin1.[012])
12437       allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12438       ;;
12439     *) # Darwin 1.3 on
12440       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12441         allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12442       else
12443         case ${MACOSX_DEPLOYMENT_TARGET} in
12444           10.012)
12445             allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12446             ;;
12447           10.*)
12448             allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12449             ;;
12450         esac
12451       fi
12452       ;;
12453     esac
12454     output_verbose_link_cmd='echo'
12455     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12456     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12457     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12458     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12459     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12460     hardcode_direct=no
12461     hardcode_automatic=yes
12462     hardcode_shlibpath_var=unsupported
12463     whole_archive_flag_spec='-all_load $convenience'
12464     link_all_deplibs=yes
12465   else
12466     ld_shlibs=no
12467   fi
12468     ;;
12469 esac
12470 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12471 echo "${ECHO_T}$enable_shared" >&6; }
12472
12473 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12475 # Make sure either enable_shared or enable_static is yes.
12476 test "$enable_shared" = yes || enable_static=yes
12477 { echo "$as_me:$LINENO: result: $enable_static" >&5
12478 echo "${ECHO_T}$enable_static" >&6; }
12479
12480 # The else clause should only fire when bootstrapping the
12481 # libtool distribution, otherwise you forgot to ship ltmain.sh
12482 # with your package, and you will get complaints that there are
12483 # no rules to generate ltmain.sh.
12484 if test -f "$ltmain"; then
12485   # See if we are running on zsh, and set the options which allow our commands through
12486   # without removal of \ escapes.
12487   if test -n "${ZSH_VERSION+set}" ; then
12488     setopt NO_GLOB_SUBST
12489   fi
12490   # Now quote all the things that may contain metacharacters while being
12491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12492   # variables and quote the copies for generation of the libtool script.
12493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12494     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12495     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12496     deplibs_check_method reload_flag reload_cmds need_locks \
12497     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12498     lt_cv_sys_global_symbol_to_c_name_address \
12499     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12500     old_postinstall_cmds old_postuninstall_cmds \
12501     compiler \
12502     CC \
12503     LD \
12504     lt_prog_compiler_wl \
12505     lt_prog_compiler_pic \
12506     lt_prog_compiler_static \
12507     lt_prog_compiler_no_builtin_flag \
12508     export_dynamic_flag_spec \
12509     thread_safe_flag_spec \
12510     whole_archive_flag_spec \
12511     enable_shared_with_static_runtimes \
12512     old_archive_cmds \
12513     old_archive_from_new_cmds \
12514     predep_objects \
12515     postdep_objects \
12516     predeps \
12517     postdeps \
12518     compiler_lib_search_path \
12519     archive_cmds \
12520     archive_expsym_cmds \
12521     postinstall_cmds \
12522     postuninstall_cmds \
12523     old_archive_from_expsyms_cmds \
12524     allow_undefined_flag \
12525     no_undefined_flag \
12526     export_symbols_cmds \
12527     hardcode_libdir_flag_spec \
12528     hardcode_libdir_flag_spec_ld \
12529     hardcode_libdir_separator \
12530     hardcode_automatic \
12531     module_cmds \
12532     module_expsym_cmds \
12533     lt_cv_prog_compiler_c_o \
12534     exclude_expsyms \
12535     include_expsyms; do
12536
12537     case $var in
12538     old_archive_cmds | \
12539     old_archive_from_new_cmds | \
12540     archive_cmds | \
12541     archive_expsym_cmds | \
12542     module_cmds | \
12543     module_expsym_cmds | \
12544     old_archive_from_expsyms_cmds | \
12545     export_symbols_cmds | \
12546     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12547     postinstall_cmds | postuninstall_cmds | \
12548     old_postinstall_cmds | old_postuninstall_cmds | \
12549     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12550       # Double-quote double-evaled strings.
12551       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12552       ;;
12553     *)
12554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12555       ;;
12556     esac
12557   done
12558
12559   case $lt_echo in
12560   *'\$0 --fallback-echo"')
12561     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12562     ;;
12563   esac
12564
12565 cfgfile="${ofile}T"
12566   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12567   $rm -f "$cfgfile"
12568   { echo "$as_me:$LINENO: creating $ofile" >&5
12569 echo "$as_me: creating $ofile" >&6;}
12570
12571   cat <<__EOF__ >> "$cfgfile"
12572 #! $SHELL
12573
12574 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12575 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12576 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12577 #
12578 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12579 # Free Software Foundation, Inc.
12580 #
12581 # This file is part of GNU Libtool:
12582 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12583 #
12584 # This program is free software; you can redistribute it and/or modify
12585 # it under the terms of the GNU General Public License as published by
12586 # the Free Software Foundation; either version 2 of the License, or
12587 # (at your option) any later version.
12588 #
12589 # This program is distributed in the hope that it will be useful, but
12590 # WITHOUT ANY WARRANTY; without even the implied warranty of
12591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12592 # General Public License for more details.
12593 #
12594 # You should have received a copy of the GNU General Public License
12595 # along with this program; if not, write to the Free Software
12596 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12597 #
12598 # As a special exception to the GNU General Public License, if you
12599 # distribute this file as part of a program that contains a
12600 # configuration script generated by Autoconf, you may include it under
12601 # the same distribution terms that you use for the rest of that program.
12602
12603 # A sed program that does not truncate output.
12604 SED=$lt_SED
12605
12606 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12607 Xsed="$SED -e s/^X//"
12608
12609 # The HP-UX ksh and POSIX shell print the target directory to stdout
12610 # if CDPATH is set.
12611 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12612
12613 # The names of the tagged configurations supported by this script.
12614 available_tags=
12615
12616 # ### BEGIN LIBTOOL CONFIG
12617
12618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12619
12620 # Shell to use when invoking shell scripts.
12621 SHELL=$lt_SHELL
12622
12623 # Whether or not to build shared libraries.
12624 build_libtool_libs=$enable_shared
12625
12626 # Whether or not to build static libraries.
12627 build_old_libs=$enable_static
12628
12629 # Whether or not to add -lc for building shared libraries.
12630 build_libtool_need_lc=$archive_cmds_need_lc
12631
12632 # Whether or not to disallow shared libs when runtime libs are static
12633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12634
12635 # Whether or not to optimize for fast installation.
12636 fast_install=$enable_fast_install
12637
12638 # The host system.
12639 host_alias=$host_alias
12640 host=$host
12641
12642 # An echo program that does not interpret backslashes.
12643 echo=$lt_echo
12644
12645 # The archiver.
12646 AR=$lt_AR
12647 AR_FLAGS=$lt_AR_FLAGS
12648
12649 # A C compiler.
12650 LTCC=$lt_LTCC
12651
12652 # A language-specific compiler.
12653 CC=$lt_compiler
12654
12655 # Is the compiler the GNU C compiler?
12656 with_gcc=$GCC
12657
12658 # An ERE matcher.
12659 EGREP=$lt_EGREP
12660
12661 # The linker used to build libraries.
12662 LD=$lt_LD
12663
12664 # Whether we need hard or soft links.
12665 LN_S=$lt_LN_S
12666
12667 # A BSD-compatible nm program.
12668 NM=$lt_NM
12669
12670 # A symbol stripping program
12671 STRIP=$STRIP
12672
12673 # Used to examine libraries when file_magic_cmd begins "file"
12674 MAGIC_CMD=$MAGIC_CMD
12675
12676 # Used on cygwin: DLL creation program.
12677 DLLTOOL="$DLLTOOL"
12678
12679 # Used on cygwin: object dumper.
12680 OBJDUMP="$OBJDUMP"
12681
12682 # Used on cygwin: assembler.
12683 AS="$AS"
12684
12685 # The name of the directory that contains temporary libtool files.
12686 objdir=$objdir
12687
12688 # How to create reloadable object files.
12689 reload_flag=$lt_reload_flag
12690 reload_cmds=$lt_reload_cmds
12691
12692 # How to pass a linker flag through the compiler.
12693 wl=$lt_lt_prog_compiler_wl
12694
12695 # Object file suffix (normally "o").
12696 objext="$ac_objext"
12697
12698 # Old archive suffix (normally "a").
12699 libext="$libext"
12700
12701 # Shared library suffix (normally ".so").
12702 shrext='$shrext'
12703
12704 # Executable file suffix (normally "").
12705 exeext="$exeext"
12706
12707 # Additional compiler flags for building library objects.
12708 pic_flag=$lt_lt_prog_compiler_pic
12709 pic_mode=$pic_mode
12710
12711 # What is the maximum length of a command?
12712 max_cmd_len=$lt_cv_sys_max_cmd_len
12713
12714 # Does compiler simultaneously support -c and -o options?
12715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12716
12717 # Must we lock files when doing compilation ?
12718 need_locks=$lt_need_locks
12719
12720 # Do we need the lib prefix for modules?
12721 need_lib_prefix=$need_lib_prefix
12722
12723 # Do we need a version for libraries?
12724 need_version=$need_version
12725
12726 # Whether dlopen is supported.
12727 dlopen_support=$enable_dlopen
12728
12729 # Whether dlopen of programs is supported.
12730 dlopen_self=$enable_dlopen_self
12731
12732 # Whether dlopen of statically linked programs is supported.
12733 dlopen_self_static=$enable_dlopen_self_static
12734
12735 # Compiler flag to prevent dynamic linking.
12736 link_static_flag=$lt_lt_prog_compiler_static
12737
12738 # Compiler flag to turn off builtin functions.
12739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12740
12741 # Compiler flag to allow reflexive dlopens.
12742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12743
12744 # Compiler flag to generate shared objects directly from archives.
12745 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12746
12747 # Compiler flag to generate thread-safe objects.
12748 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12749
12750 # Library versioning type.
12751 version_type=$version_type
12752
12753 # Format of library name prefix.
12754 libname_spec=$lt_libname_spec
12755
12756 # List of archive names.  First name is the real one, the rest are links.
12757 # The last name is the one that the linker finds with -lNAME.
12758 library_names_spec=$lt_library_names_spec
12759
12760 # The coded name of the library, if different from the real name.
12761 soname_spec=$lt_soname_spec
12762
12763 # Commands used to build and install an old-style archive.
12764 RANLIB=$lt_RANLIB
12765 old_archive_cmds=$lt_old_archive_cmds
12766 old_postinstall_cmds=$lt_old_postinstall_cmds
12767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12768
12769 # Create an old-style archive from a shared archive.
12770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12771
12772 # Create a temporary old-style archive to link instead of a shared archive.
12773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12774
12775 # Commands used to build and install a shared archive.
12776 archive_cmds=$lt_archive_cmds
12777 archive_expsym_cmds=$lt_archive_expsym_cmds
12778 postinstall_cmds=$lt_postinstall_cmds
12779 postuninstall_cmds=$lt_postuninstall_cmds
12780
12781 # Commands used to build a loadable module (assumed same as above if empty)
12782 module_cmds=$lt_module_cmds
12783 module_expsym_cmds=$lt_module_expsym_cmds
12784
12785 # Commands to strip libraries.
12786 old_striplib=$lt_old_striplib
12787 striplib=$lt_striplib
12788
12789 # Dependencies to place before the objects being linked to create a
12790 # shared library.
12791 predep_objects=$lt_predep_objects
12792
12793 # Dependencies to place after the objects being linked to create a
12794 # shared library.
12795 postdep_objects=$lt_postdep_objects
12796
12797 # Dependencies to place before the objects being linked to create a
12798 # shared library.
12799 predeps=$lt_predeps
12800
12801 # Dependencies to place after the objects being linked to create a
12802 # shared library.
12803 postdeps=$lt_postdeps
12804
12805 # The library search path used internally by the compiler when linking
12806 # a shared library.
12807 compiler_lib_search_path=$lt_compiler_lib_search_path
12808
12809 # Method to check whether dependent libraries are shared objects.
12810 deplibs_check_method=$lt_deplibs_check_method
12811
12812 # Command to use when deplibs_check_method == file_magic.
12813 file_magic_cmd=$lt_file_magic_cmd
12814
12815 # Flag that allows shared libraries with undefined symbols to be built.
12816 allow_undefined_flag=$lt_allow_undefined_flag
12817
12818 # Flag that forces no undefined symbols.
12819 no_undefined_flag=$lt_no_undefined_flag
12820
12821 # Commands used to finish a libtool library installation in a directory.
12822 finish_cmds=$lt_finish_cmds
12823
12824 # Same as above, but a single script fragment to be evaled but not shown.
12825 finish_eval=$lt_finish_eval
12826
12827 # Take the output of nm and produce a listing of raw symbols and C names.
12828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12829
12830 # Transform the output of nm in a proper C declaration
12831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12832
12833 # Transform the output of nm in a C name address pair
12834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12835
12836 # This is the shared library runtime path variable.
12837 runpath_var=$runpath_var
12838
12839 # This is the shared library path variable.
12840 shlibpath_var=$shlibpath_var
12841
12842 # Is shlibpath searched before the hard-coded library search path?
12843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12844
12845 # How to hardcode a shared library path into an executable.
12846 hardcode_action=$hardcode_action
12847
12848 # Whether we should hardcode library paths into libraries.
12849 hardcode_into_libs=$hardcode_into_libs
12850
12851 # Flag to hardcode \$libdir into a binary during linking.
12852 # This must work even if \$libdir does not exist.
12853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12854
12855 # If ld is used when linking, flag to hardcode \$libdir into
12856 # a binary during linking. This must work even if \$libdir does
12857 # not exist.
12858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12859
12860 # Whether we need a single -rpath flag with a separated argument.
12861 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12862
12863 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12864 # resulting binary.
12865 hardcode_direct=$hardcode_direct
12866
12867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12868 # resulting binary.
12869 hardcode_minus_L=$hardcode_minus_L
12870
12871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12872 # the resulting binary.
12873 hardcode_shlibpath_var=$hardcode_shlibpath_var
12874
12875 # Set to yes if building a shared library automatically hardcodes DIR into the library
12876 # and all subsequent libraries and executables linked against it.
12877 hardcode_automatic=$hardcode_automatic
12878
12879 # Variables whose values should be saved in libtool wrapper scripts and
12880 # restored at relink time.
12881 variables_saved_for_relink="$variables_saved_for_relink"
12882
12883 # Whether libtool must link a program against all its dependency libraries.
12884 link_all_deplibs=$link_all_deplibs
12885
12886 # Compile-time system search path for libraries
12887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12888
12889 # Run-time system search path for libraries
12890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12891
12892 # Fix the shell variable \$srcfile for the compiler.
12893 fix_srcfile_path="$fix_srcfile_path"
12894
12895 # Set to yes if exported symbols are required.
12896 always_export_symbols=$always_export_symbols
12897
12898 # The commands to list exported symbols.
12899 export_symbols_cmds=$lt_export_symbols_cmds
12900
12901 # The commands to extract the exported symbol list from a shared archive.
12902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12903
12904 # Symbols that should not be listed in the preloaded symbols.
12905 exclude_expsyms=$lt_exclude_expsyms
12906
12907 # Symbols that must always be exported.
12908 include_expsyms=$lt_include_expsyms
12909
12910 # ### END LIBTOOL CONFIG
12911
12912 __EOF__
12913
12914
12915   case $host_os in
12916   aix3*)
12917     cat <<\EOF >> "$cfgfile"
12918
12919 # AIX sometimes has problems with the GCC collect2 program.  For some
12920 # reason, if we set the COLLECT_NAMES environment variable, the problems
12921 # vanish in a puff of smoke.
12922 if test "X${COLLECT_NAMES+set}" != Xset; then
12923   COLLECT_NAMES=
12924   export COLLECT_NAMES
12925 fi
12926 EOF
12927     ;;
12928   esac
12929
12930   # We use sed instead of cat because bash on DJGPP gets confused if
12931   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12932   # text mode, it properly converts lines to CR/LF.  This bash problem
12933   # is reportedly fixed, but why not run on old versions too?
12934   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12935
12936   mv -f "$cfgfile" "$ofile" || \
12937     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12938   chmod +x "$ofile"
12939
12940 else
12941   # If there is no Makefile yet, we rely on a make rule to execute
12942   # `config.status --recheck' to rerun these tests and create the
12943   # libtool script then.
12944   test -f Makefile && make "$ltmain"
12945 fi
12946
12947
12948 ac_ext=c
12949 ac_cpp='$CPP $CPPFLAGS'
12950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954 CC="$lt_save_CC"
12955
12956
12957 # Check whether --with-tags was given.
12958 if test "${with_tags+set}" = set; then
12959   withval=$with_tags; tagnames="$withval"
12960 fi
12961
12962
12963 if test -f "$ltmain" && test -n "$tagnames"; then
12964   if test ! -f "${ofile}"; then
12965     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12966 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12967   fi
12968
12969   if test -z "$LTCC"; then
12970     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12971     if test -z "$LTCC"; then
12972       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12973 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12974     else
12975       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12976 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12977     fi
12978   fi
12979
12980   # Extract list of available tagged configurations in $ofile.
12981   # Note that this assumes the entire list is on one line.
12982   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12983
12984   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12985   for tagname in $tagnames; do
12986     IFS="$lt_save_ifs"
12987     # Check whether tagname contains only valid characters
12988     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12989     "") ;;
12990     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12991 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12992    { (exit 1); exit 1; }; }
12993         ;;
12994     esac
12995
12996     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12997     then
12998       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12999 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13000    { (exit 1); exit 1; }; }
13001     fi
13002
13003     # Update the list of available tags.
13004     if test -n "$tagname"; then
13005       echo appending configuration tag \"$tagname\" to $ofile
13006
13007       case $tagname in
13008       CXX)
13009         if test -n "$CXX" && test "X$CXX" != "Xno"; then
13010           ac_ext=cpp
13011 ac_cpp='$CXXCPP $CPPFLAGS'
13012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13015
13016
13017
13018
13019 archive_cmds_need_lc_CXX=no
13020 allow_undefined_flag_CXX=
13021 always_export_symbols_CXX=no
13022 archive_expsym_cmds_CXX=
13023 export_dynamic_flag_spec_CXX=
13024 hardcode_direct_CXX=no
13025 hardcode_libdir_flag_spec_CXX=
13026 hardcode_libdir_flag_spec_ld_CXX=
13027 hardcode_libdir_separator_CXX=
13028 hardcode_minus_L_CXX=no
13029 hardcode_automatic_CXX=no
13030 module_cmds_CXX=
13031 module_expsym_cmds_CXX=
13032 link_all_deplibs_CXX=unknown
13033 old_archive_cmds_CXX=$old_archive_cmds
13034 no_undefined_flag_CXX=
13035 whole_archive_flag_spec_CXX=
13036 enable_shared_with_static_runtimes_CXX=no
13037
13038 # Dependencies to place before and after the object being linked:
13039 predep_objects_CXX=
13040 postdep_objects_CXX=
13041 predeps_CXX=
13042 postdeps_CXX=
13043 compiler_lib_search_path_CXX=
13044
13045 # Source file extension for C++ test sources.
13046 ac_ext=cc
13047
13048 # Object file extension for compiled C++ test sources.
13049 objext=o
13050 objext_CXX=$objext
13051
13052 # Code to be used in simple compile tests
13053 lt_simple_compile_test_code="int some_variable = 0;\n"
13054
13055 # Code to be used in simple link tests
13056 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13057
13058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13059
13060 # If no C compiler was specified, use CC.
13061 LTCC=${LTCC-"$CC"}
13062
13063 # Allow CC to be a program name with arguments.
13064 compiler=$CC
13065
13066
13067 # Allow CC to be a program name with arguments.
13068 lt_save_CC=$CC
13069 lt_save_LD=$LD
13070 lt_save_GCC=$GCC
13071 GCC=$GXX
13072 lt_save_with_gnu_ld=$with_gnu_ld
13073 lt_save_path_LD=$lt_cv_path_LD
13074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13075   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13076 else
13077   unset lt_cv_prog_gnu_ld
13078 fi
13079 if test -n "${lt_cv_path_LDCXX+set}"; then
13080   lt_cv_path_LD=$lt_cv_path_LDCXX
13081 else
13082   unset lt_cv_path_LD
13083 fi
13084 test -z "${LDCXX+set}" || LD=$LDCXX
13085 CC=${CXX-"c++"}
13086 compiler=$CC
13087 compiler_CXX=$CC
13088 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13089
13090 # We don't want -fno-exception wen compiling C++ code, so set the
13091 # no_builtin_flag separately
13092 if test "$GXX" = yes; then
13093   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13094 else
13095   lt_prog_compiler_no_builtin_flag_CXX=
13096 fi
13097
13098 if test "$GXX" = yes; then
13099   # Set up default GNU C++ configuration
13100
13101
13102 # Check whether --with-gnu-ld was given.
13103 if test "${with_gnu_ld+set}" = set; then
13104   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13105 else
13106   with_gnu_ld=no
13107 fi
13108
13109 ac_prog=ld
13110 if test "$GCC" = yes; then
13111   # Check if gcc -print-prog-name=ld gives a path.
13112   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13113 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13114   case $host in
13115   *-*-mingw*)
13116     # gcc leaves a trailing carriage return which upsets mingw
13117     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13118   *)
13119     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13120   esac
13121   case $ac_prog in
13122     # Accept absolute paths.
13123     [\\/]* | ?:[\\/]*)
13124       re_direlt='/[^/][^/]*/\.\./'
13125       # Canonicalize the pathname of ld
13126       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13127       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13128         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13129       done
13130       test -z "$LD" && LD="$ac_prog"
13131       ;;
13132   "")
13133     # If it fails, then pretend we aren't using GCC.
13134     ac_prog=ld
13135     ;;
13136   *)
13137     # If it is relative, then search for the first ld in PATH.
13138     with_gnu_ld=unknown
13139     ;;
13140   esac
13141 elif test "$with_gnu_ld" = yes; then
13142   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13143 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13144 else
13145   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13146 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13147 fi
13148 if test "${lt_cv_path_LD+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   if test -z "$LD"; then
13152   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13153   for ac_dir in $PATH; do
13154     IFS="$lt_save_ifs"
13155     test -z "$ac_dir" && ac_dir=.
13156     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13157       lt_cv_path_LD="$ac_dir/$ac_prog"
13158       # Check to see if the program is GNU ld.  I'd rather use --version,
13159       # but apparently some GNU ld's only accept -v.
13160       # Break only if it was the GNU/non-GNU ld that we prefer.
13161       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13162       *GNU* | *'with BFD'*)
13163         test "$with_gnu_ld" != no && break
13164         ;;
13165       *)
13166         test "$with_gnu_ld" != yes && break
13167         ;;
13168       esac
13169     fi
13170   done
13171   IFS="$lt_save_ifs"
13172 else
13173   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13174 fi
13175 fi
13176
13177 LD="$lt_cv_path_LD"
13178 if test -n "$LD"; then
13179   { echo "$as_me:$LINENO: result: $LD" >&5
13180 echo "${ECHO_T}$LD" >&6; }
13181 else
13182   { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13184 fi
13185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13187    { (exit 1); exit 1; }; }
13188 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13190 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13194 case `$LD -v 2>&1 </dev/null` in
13195 *GNU* | *'with BFD'*)
13196   lt_cv_prog_gnu_ld=yes
13197   ;;
13198 *)
13199   lt_cv_prog_gnu_ld=no
13200   ;;
13201 esac
13202 fi
13203 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13204 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13205 with_gnu_ld=$lt_cv_prog_gnu_ld
13206
13207
13208
13209   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13210   # archiving commands below assume that GNU ld is being used.
13211   if test "$with_gnu_ld" = yes; then
13212     archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13213     archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13214
13215     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13216     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13217
13218     # If archive_cmds runs LD, not CC, wlarc should be empty
13219     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13220     #     investigate it a little bit more. (MM)
13221     wlarc='${wl}'
13222
13223     # ancient GNU ld didn't support --whole-archive et. al.
13224     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13225         grep 'no-whole-archive' > /dev/null; then
13226       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13227     else
13228       whole_archive_flag_spec_CXX=
13229     fi
13230   else
13231     with_gnu_ld=no
13232     wlarc=
13233
13234     # A generic and very simple default shared library creation
13235     # command for GNU C++ for the case where it uses the native
13236     # linker, instead of GNU ld.  If possible, this setting should
13237     # overridden to take advantage of the native linker features on
13238     # the platform it is being used on.
13239     archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13240   fi
13241
13242   # Commands to make compiler produce verbose output that lists
13243   # what "hidden" libraries, object files and flags are used when
13244   # linking a shared library.
13245   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13246
13247 else
13248   GXX=no
13249   with_gnu_ld=no
13250   wlarc=
13251 fi
13252
13253 # PORTME: fill in a description of your system's C++ link characteristics
13254 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13255 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13256 ld_shlibs_CXX=yes
13257 case $host_os in
13258   aix3*)
13259     # FIXME: insert proper C++ library support
13260     ld_shlibs_CXX=no
13261     ;;
13262   aix4* | aix5*)
13263     if test "$host_cpu" = ia64; then
13264       # On IA64, the linker does run time linking by default, so we don't
13265       # have to do anything special.
13266       aix_use_runtimelinking=no
13267       exp_sym_flag='-Bexport'
13268       no_entry_flag=""
13269     else
13270       # KDE requires run time linking.  Make it the default.
13271       aix_use_runtimelinking=yes
13272       exp_sym_flag='-bexport'
13273       no_entry_flag='-bnoentry'
13274     fi
13275
13276     # When large executables or shared objects are built, AIX ld can
13277     # have problems creating the table of contents.  If linking a library
13278     # or program results in "error TOC overflow" add -mminimal-toc to
13279     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13280     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13281
13282     archive_cmds_CXX=''
13283     hardcode_direct_CXX=yes
13284     hardcode_libdir_separator_CXX=':'
13285     link_all_deplibs_CXX=yes
13286
13287     if test "$GXX" = yes; then
13288       case $host_os in aix4.012|aix4.012.*)
13289       # We only want to do this on AIX 4.2 and lower, the check
13290       # below for broken collect2 doesn't work under 4.3+
13291         collect2name=`${CC} -print-prog-name=collect2`
13292         if test -f "$collect2name" && \
13293            strings "$collect2name" | grep resolve_lib_name >/dev/null
13294         then
13295           # We have reworked collect2
13296           hardcode_direct_CXX=yes
13297         else
13298           # We have old collect2
13299           hardcode_direct_CXX=unsupported
13300           # It fails to find uninstalled libraries when the uninstalled
13301           # path is not listed in the libpath.  Setting hardcode_minus_L
13302           # to unsupported forces relinking
13303           hardcode_minus_L_CXX=yes
13304           hardcode_libdir_flag_spec_CXX='-L$libdir'
13305           hardcode_libdir_separator_CXX=
13306         fi
13307       esac
13308       shared_flag='-shared'
13309     else
13310       # not using gcc
13311       if test "$host_cpu" = ia64; then
13312         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13313         # chokes on -Wl,-G. The following line is correct:
13314         shared_flag='-G'
13315       else
13316         if test "$aix_use_runtimelinking" = yes; then
13317           shared_flag='-qmkshrobj ${wl}-G'
13318         else
13319           shared_flag='-qmkshrobj'
13320         fi
13321       fi
13322     fi
13323
13324     # Let the compiler handle the export list.
13325     always_export_symbols_CXX=no
13326     if test "$aix_use_runtimelinking" = yes; then
13327       # Warning - without using the other runtime loading flags (-brtl),
13328       # -berok will link without error, but may produce a broken library.
13329       allow_undefined_flag_CXX='-berok'
13330       # Determine the default libpath from the value encoded in an empty executable.
13331       cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337
13338 int
13339 main ()
13340 {
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_link") 2>conftest.er1
13354   ac_status=$?
13355   grep -v '^ *+' conftest.er1 >conftest.err
13356   rm -f conftest.er1
13357   cat conftest.err >&5
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } && {
13360          test -z "$ac_cxx_werror_flag" ||
13361          test ! -s conftest.err
13362        } && test -s conftest$ac_exeext &&
13363        $as_test_x conftest$ac_exeext; then
13364
13365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13366 }'`
13367 # Check for a 64-bit object if we didn't find anything.
13368 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; }
13369 }'`; fi
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374
13375 fi
13376
13377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378       conftest$ac_exeext conftest.$ac_ext
13379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380
13381       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13382
13383       archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
13384       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13385      else
13386       if test "$host_cpu" = ia64; then
13387         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13388         allow_undefined_flag_CXX="-z nodefs"
13389         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13390       else
13391         # Determine the default libpath from the value encoded in an empty executable.
13392         cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398
13399 int
13400 main ()
13401 {
13402
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_link") 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } && {
13421          test -z "$ac_cxx_werror_flag" ||
13422          test ! -s conftest.err
13423        } && test -s conftest$ac_exeext &&
13424        $as_test_x conftest$ac_exeext; then
13425
13426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13427 }'`
13428 # Check for a 64-bit object if we didn't find anything.
13429 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; }
13430 }'`; fi
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439       conftest$ac_exeext conftest.$ac_ext
13440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441
13442         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13443         # Warning - without using the other run time loading flags,
13444         # -berok will link without error, but may produce a broken library.
13445         no_undefined_flag_CXX=' ${wl}-bernotok'
13446         allow_undefined_flag_CXX=' ${wl}-berok'
13447         # -bexpall does not export symbols beginning with underscore (_)
13448         always_export_symbols_CXX=yes
13449         # Exported symbols can be pulled into shared objects from archives
13450         whole_archive_flag_spec_CXX=' '
13451         archive_cmds_need_lc_CXX=yes
13452         # This is similar to how AIX traditionally builds it's shared libraries.
13453         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13454       fi
13455     fi
13456     ;;
13457   chorus*)
13458     case $cc_basename in
13459       *)
13460         # FIXME: insert proper C++ library support
13461         ld_shlibs_CXX=no
13462         ;;
13463     esac
13464     ;;
13465
13466   cygwin* | mingw* | pw32*)
13467     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13468     # as there is no search path for DLLs.
13469     hardcode_libdir_flag_spec_CXX='-L$libdir'
13470     allow_undefined_flag_CXX=no
13471     always_export_symbols_CXX=no
13472     enable_shared_with_static_runtimes_CXX=yes
13473
13474     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13475       archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13476       # If the export-symbols file already is a .def file (1st line
13477       # is EXPORTS), use it as is; otherwise, prepend...
13478       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13479         cp $export_symbols $output_objdir/$soname.def;
13480       else
13481         echo EXPORTS > $output_objdir/$soname.def;
13482         cat $export_symbols >> $output_objdir/$soname.def;
13483       fi~
13484       $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13485     else
13486       ld_shlibs_CXX=no
13487     fi
13488   ;;
13489
13490   darwin* | rhapsody*)
13491   if test "$GXX" = yes; then
13492     archive_cmds_need_lc_CXX=no
13493     case "$host_os" in
13494     rhapsody* | darwin1.[012])
13495       allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
13496       ;;
13497     *) # Darwin 1.3 on
13498       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13499         allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13500       else
13501         case ${MACOSX_DEPLOYMENT_TARGET} in
13502           10.012)
13503             allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13504             ;;
13505           10.*)
13506             allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
13507             ;;
13508         esac
13509       fi
13510       ;;
13511     esac
13512     lt_int_apple_cc_single_mod=no
13513     output_verbose_link_cmd='echo'
13514     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13515       lt_int_apple_cc_single_mod=yes
13516     fi
13517     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13518       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13519     else
13520       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
13521     fi
13522     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13523
13524     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13525     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13526       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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13527     else
13528       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13529     fi
13530     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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13531     hardcode_direct_CXX=no
13532     hardcode_automatic_CXX=yes
13533     hardcode_shlibpath_var_CXX=unsupported
13534     whole_archive_flag_spec_CXX='-all_load $convenience'
13535     link_all_deplibs_CXX=yes
13536   else
13537     ld_shlibs_CXX=no
13538   fi
13539     ;;
13540
13541   dgux*)
13542     case $cc_basename in
13543       ec++)
13544         # FIXME: insert proper C++ library support
13545         ld_shlibs_CXX=no
13546         ;;
13547       ghcx)
13548         # Green Hills C++ Compiler
13549         # FIXME: insert proper C++ library support
13550         ld_shlibs_CXX=no
13551         ;;
13552       *)
13553         # FIXME: insert proper C++ library support
13554         ld_shlibs_CXX=no
13555         ;;
13556     esac
13557     ;;
13558   freebsd12*)
13559     # C++ shared libraries reported to be fairly broken before switch to ELF
13560     ld_shlibs_CXX=no
13561     ;;
13562   freebsd-elf*)
13563     archive_cmds_need_lc_CXX=no
13564     ;;
13565   freebsd* | kfreebsd*-gnu)
13566     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13567     # conventions
13568     ld_shlibs_CXX=yes
13569     ;;
13570   gnu*)
13571     ;;
13572   hpux9*)
13573     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13574     hardcode_libdir_separator_CXX=:
13575     export_dynamic_flag_spec_CXX='${wl}-E'
13576     hardcode_direct_CXX=yes
13577     hardcode_minus_L_CXX=yes # Not in the search PATH,
13578                                 # but as the default
13579                                 # location of the library.
13580
13581     case $cc_basename in
13582     CC)
13583       # FIXME: insert proper C++ library support
13584       ld_shlibs_CXX=no
13585       ;;
13586     aCC)
13587       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13588       # Commands to make compiler produce verbose output that lists
13589       # what "hidden" libraries, object files and flags are used when
13590       # linking a shared library.
13591       #
13592       # There doesn't appear to be a way to prevent this compiler from
13593       # explicitly linking system object files so we need to strip them
13594       # from the output so that they don't get included in the library
13595       # dependencies.
13596       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13597       ;;
13598     *)
13599       if test "$GXX" = yes; then
13600         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13601       else
13602         # FIXME: insert proper C++ library support
13603         ld_shlibs_CXX=no
13604       fi
13605       ;;
13606     esac
13607     ;;
13608   hpux10*|hpux11*)
13609     if test $with_gnu_ld = no; then
13610       case "$host_cpu" in
13611       hppa*64*)
13612         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13613         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13614         hardcode_libdir_separator_CXX=:
13615         ;;
13616       ia64*)
13617         hardcode_libdir_flag_spec_CXX='-L$libdir'
13618         ;;
13619       *)
13620         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13621         hardcode_libdir_separator_CXX=:
13622         export_dynamic_flag_spec_CXX='${wl}-E'
13623         ;;
13624       esac
13625     fi
13626     case "$host_cpu" in
13627     hppa*64*)
13628       hardcode_direct_CXX=no
13629       hardcode_shlibpath_var_CXX=no
13630       ;;
13631     ia64*)
13632       hardcode_direct_CXX=no
13633       hardcode_shlibpath_var_CXX=no
13634       hardcode_minus_L_CXX=yes # Not in the search PATH,
13635                                               # but as the default
13636                                               # location of the library.
13637       ;;
13638     *)
13639       hardcode_direct_CXX=yes
13640       hardcode_minus_L_CXX=yes # Not in the search PATH,
13641                                               # but as the default
13642                                               # location of the library.
13643       ;;
13644     esac
13645
13646     case $cc_basename in
13647       CC)
13648         # FIXME: insert proper C++ library support
13649         ld_shlibs_CXX=no
13650         ;;
13651       aCC)
13652         case "$host_cpu" in
13653         hppa*64*|ia64*)
13654           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13655           ;;
13656         *)
13657           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13658           ;;
13659         esac
13660         # Commands to make compiler produce verbose output that lists
13661         # what "hidden" libraries, object files and flags are used when
13662         # linking a shared library.
13663         #
13664         # There doesn't appear to be a way to prevent this compiler from
13665         # explicitly linking system object files so we need to strip them
13666         # from the output so that they don't get included in the library
13667         # dependencies.
13668         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'
13669         ;;
13670       *)
13671         if test "$GXX" = yes; then
13672           if test $with_gnu_ld = no; then
13673             case "$host_cpu" in
13674             ia64*|hppa*64*)
13675               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13676               ;;
13677             *)
13678               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13679               ;;
13680             esac
13681           fi
13682         else
13683           # FIXME: insert proper C++ library support
13684           ld_shlibs_CXX=no
13685         fi
13686         ;;
13687     esac
13688     ;;
13689   irix5* | irix6*)
13690     case $cc_basename in
13691       CC)
13692         # SGI C++
13693         archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13694
13695         # Archives containing C++ object files must be created using
13696         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13697         # necessary to make sure instantiated templates are included
13698         # in the archive.
13699         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13700         ;;
13701       *)
13702         if test "$GXX" = yes; then
13703           if test "$with_gnu_ld" = no; then
13704             archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13705           else
13706             archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13707           fi
13708         fi
13709         link_all_deplibs_CXX=yes
13710         ;;
13711     esac
13712     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13713     hardcode_libdir_separator_CXX=:
13714     ;;
13715   linux*)
13716     case $cc_basename in
13717       KCC)
13718         # Kuck and Associates, Inc. (KAI) C++ Compiler
13719
13720         # KCC will only create a shared library if the output file
13721         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13722         # to its proper name (with version) after linking.
13723         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13724         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13725         # Commands to make compiler produce verbose output that lists
13726         # what "hidden" libraries, object files and flags are used when
13727         # linking a shared library.
13728         #
13729         # There doesn't appear to be a way to prevent this compiler from
13730         # explicitly linking system object files so we need to strip them
13731         # from the output so that they don't get included in the library
13732         # dependencies.
13733         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'
13734
13735         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13736         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13737
13738         # Archives containing C++ object files must be created using
13739         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13740         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13741         ;;
13742       icpc)
13743         # Intel C++
13744         with_gnu_ld=yes
13745         archive_cmds_need_lc_CXX=no
13746         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13747         archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13748         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13750         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13751         ;;
13752       cxx)
13753         # Compaq C++
13754         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13755         archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13756
13757         runpath_var=LD_RUN_PATH
13758         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13759         hardcode_libdir_separator_CXX=:
13760
13761         # Commands to make compiler produce verbose output that lists
13762         # what "hidden" libraries, object files and flags are used when
13763         # linking a shared library.
13764         #
13765         # There doesn't appear to be a way to prevent this compiler from
13766         # explicitly linking system object files so we need to strip them
13767         # from the output so that they don't get included in the library
13768         # dependencies.
13769         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'
13770         ;;
13771     esac
13772     ;;
13773   lynxos*)
13774     # FIXME: insert proper C++ library support
13775     ld_shlibs_CXX=no
13776     ;;
13777   m88k*)
13778     # FIXME: insert proper C++ library support
13779     ld_shlibs_CXX=no
13780     ;;
13781   mvs*)
13782     case $cc_basename in
13783       cxx)
13784         # FIXME: insert proper C++ library support
13785         ld_shlibs_CXX=no
13786         ;;
13787       *)
13788         # FIXME: insert proper C++ library support
13789         ld_shlibs_CXX=no
13790         ;;
13791     esac
13792     ;;
13793   netbsd*)
13794     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13795       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13796       wlarc=
13797       hardcode_libdir_flag_spec_CXX='-R$libdir'
13798       hardcode_direct_CXX=yes
13799       hardcode_shlibpath_var_CXX=no
13800     fi
13801     # Workaround some broken pre-1.5 toolchains
13802     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13803     ;;
13804   osf3*)
13805     case $cc_basename in
13806       KCC)
13807         # Kuck and Associates, Inc. (KAI) C++ Compiler
13808
13809         # KCC will only create a shared library if the output file
13810         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13811         # to its proper name (with version) after linking.
13812         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13813
13814         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13815         hardcode_libdir_separator_CXX=:
13816
13817         # Archives containing C++ object files must be created using
13818         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13819         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13820
13821         ;;
13822       RCC)
13823         # Rational C++ 2.4.1
13824         # FIXME: insert proper C++ library support
13825         ld_shlibs_CXX=no
13826         ;;
13827       cxx)
13828         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13829         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13830
13831         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13832         hardcode_libdir_separator_CXX=:
13833
13834         # Commands to make compiler produce verbose output that lists
13835         # what "hidden" libraries, object files and flags are used when
13836         # linking a shared library.
13837         #
13838         # There doesn't appear to be a way to prevent this compiler from
13839         # explicitly linking system object files so we need to strip them
13840         # from the output so that they don't get included in the library
13841         # dependencies.
13842         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'
13843         ;;
13844       *)
13845         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13846           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13847           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13848
13849           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13850           hardcode_libdir_separator_CXX=:
13851
13852           # Commands to make compiler produce verbose output that lists
13853           # what "hidden" libraries, object files and flags are used when
13854           # linking a shared library.
13855           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13856
13857         else
13858           # FIXME: insert proper C++ library support
13859           ld_shlibs_CXX=no
13860         fi
13861         ;;
13862     esac
13863     ;;
13864   osf4* | osf5*)
13865     case $cc_basename in
13866       KCC)
13867         # Kuck and Associates, Inc. (KAI) C++ Compiler
13868
13869         # KCC will only create a shared library if the output file
13870         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13871         # to its proper name (with version) after linking.
13872         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13873
13874         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13875         hardcode_libdir_separator_CXX=:
13876
13877         # Archives containing C++ object files must be created using
13878         # the KAI C++ compiler.
13879         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13880         ;;
13881       RCC)
13882         # Rational C++ 2.4.1
13883         # FIXME: insert proper C++ library support
13884         ld_shlibs_CXX=no
13885         ;;
13886       cxx)
13887         allow_undefined_flag_CXX=' -expect_unresolved \*'
13888         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13889         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13890           echo "-hidden">> $lib.exp~
13891           $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13892           $rm $lib.exp'
13893
13894         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13895         hardcode_libdir_separator_CXX=:
13896
13897         # Commands to make compiler produce verbose output that lists
13898         # what "hidden" libraries, object files and flags are used when
13899         # linking a shared library.
13900         #
13901         # There doesn't appear to be a way to prevent this compiler from
13902         # explicitly linking system object files so we need to strip them
13903         # from the output so that they don't get included in the library
13904         # dependencies.
13905         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'
13906         ;;
13907       *)
13908         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13909           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13910          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13911
13912           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13913           hardcode_libdir_separator_CXX=:
13914
13915           # Commands to make compiler produce verbose output that lists
13916           # what "hidden" libraries, object files and flags are used when
13917           # linking a shared library.
13918           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13919
13920         else
13921           # FIXME: insert proper C++ library support
13922           ld_shlibs_CXX=no
13923         fi
13924         ;;
13925     esac
13926     ;;
13927   psos*)
13928     # FIXME: insert proper C++ library support
13929     ld_shlibs_CXX=no
13930     ;;
13931   sco*)
13932     archive_cmds_need_lc_CXX=no
13933     case $cc_basename in
13934       CC)
13935         # FIXME: insert proper C++ library support
13936         ld_shlibs_CXX=no
13937         ;;
13938       *)
13939         # FIXME: insert proper C++ library support
13940         ld_shlibs_CXX=no
13941         ;;
13942     esac
13943     ;;
13944   sunos4*)
13945     case $cc_basename in
13946       CC)
13947         # Sun C++ 4.x
13948         # FIXME: insert proper C++ library support
13949         ld_shlibs_CXX=no
13950         ;;
13951       lcc)
13952         # Lucid
13953         # FIXME: insert proper C++ library support
13954         ld_shlibs_CXX=no
13955         ;;
13956       *)
13957         # FIXME: insert proper C++ library support
13958         ld_shlibs_CXX=no
13959         ;;
13960     esac
13961     ;;
13962   solaris*)
13963     case $cc_basename in
13964       CC)
13965         # Sun C++ 4.2, 5.x and Centerline C++
13966         no_undefined_flag_CXX=' -zdefs'
13967         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13968         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13969         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13970
13971         hardcode_libdir_flag_spec_CXX='-R$libdir'
13972         hardcode_shlibpath_var_CXX=no
13973         case $host_os in
13974           solaris2.0-5 | solaris2.0-5.*) ;;
13975           *)
13976             # The C++ compiler is used as linker so we must use $wl
13977             # flag to pass the commands to the underlying system
13978             # linker.
13979             # Supported since Solaris 2.6 (maybe 2.5.1?)
13980             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13981             ;;
13982         esac
13983         link_all_deplibs_CXX=yes
13984
13985         # Commands to make compiler produce verbose output that lists
13986         # what "hidden" libraries, object files and flags are used when
13987         # linking a shared library.
13988         #
13989         # There doesn't appear to be a way to prevent this compiler from
13990         # explicitly linking system object files so we need to strip them
13991         # from the output so that they don't get included in the library
13992         # dependencies.
13993         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13994
13995         # Archives containing C++ object files must be created using
13996         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13997         # necessary to make sure instantiated templates are included
13998         # in the archive.
13999         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14000         ;;
14001       gcx)
14002         # Green Hills C++ Compiler
14003         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14004
14005         # The C++ compiler must be used to create the archive.
14006         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14007         ;;
14008       *)
14009         # GNU C++ compiler with Solaris linker
14010         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14011           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14012           if $CC --version | grep -v '^2\.7' > /dev/null; then
14013             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14014             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14015                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14016
14017             # Commands to make compiler produce verbose output that lists
14018             # what "hidden" libraries, object files and flags are used when
14019             # linking a shared library.
14020             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14021           else
14022             # g++ 2.7 appears to require `-G' NOT `-shared' on this
14023             # platform.
14024             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14025             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14026                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14027
14028             # Commands to make compiler produce verbose output that lists
14029             # what "hidden" libraries, object files and flags are used when
14030             # linking a shared library.
14031             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14032           fi
14033
14034           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14035         fi
14036         ;;
14037     esac
14038     ;;
14039   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14040     archive_cmds_need_lc_CXX=no
14041     ;;
14042   tandem*)
14043     case $cc_basename in
14044       NCC)
14045         # NonStop-UX NCC 3.20
14046         # FIXME: insert proper C++ library support
14047         ld_shlibs_CXX=no
14048         ;;
14049       *)
14050         # FIXME: insert proper C++ library support
14051         ld_shlibs_CXX=no
14052         ;;
14053     esac
14054     ;;
14055   vxworks*)
14056     # FIXME: insert proper C++ library support
14057     ld_shlibs_CXX=no
14058     ;;
14059   *)
14060     # FIXME: insert proper C++ library support
14061     ld_shlibs_CXX=no
14062     ;;
14063 esac
14064 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14065 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14066 test "$ld_shlibs_CXX" = no && can_build_shared=no
14067
14068 GCC_CXX="$GXX"
14069 LD_CXX="$LD"
14070
14071 ## CAVEAT EMPTOR:
14072 ## There is no encapsulation within the following macros, do not change
14073 ## the running order or otherwise move them around unless you know exactly
14074 ## what you are doing...
14075
14076 cat > conftest.$ac_ext <<EOF
14077 class Foo
14078 {
14079 public:
14080   Foo (void) { a = 0; }
14081 private:
14082   int a;
14083 };
14084 EOF
14085
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087   (eval $ac_compile) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; then
14091   # Parse the compiler output and extract the necessary
14092   # objects, libraries and library flags.
14093
14094   # Sentinel used to keep track of whether or not we are before
14095   # the conftest object file.
14096   pre_test_object_deps_done=no
14097
14098   # The `*' in the case matches for architectures that use `case' in
14099   # $output_verbose_cmd can trigger glob expansion during the loop
14100   # eval without this substitution.
14101   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14102
14103   for p in `eval $output_verbose_link_cmd`; do
14104     case $p in
14105
14106     -L* | -R* | -l*)
14107        # Some compilers place space between "-{L,R}" and the path.
14108        # Remove the space.
14109        if test $p = "-L" \
14110           || test $p = "-R"; then
14111          prev=$p
14112          continue
14113        else
14114          prev=
14115        fi
14116
14117        if test "$pre_test_object_deps_done" = no; then
14118          case $p in
14119          -L* | -R*)
14120            # Internal compiler library paths should come after those
14121            # provided the user.  The postdeps already come after the
14122            # user supplied libs so there is no need to process them.
14123            if test -z "$compiler_lib_search_path_CXX"; then
14124              compiler_lib_search_path_CXX="${prev}${p}"
14125            else
14126              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14127            fi
14128            ;;
14129          # The "-l" case would never come before the object being
14130          # linked, so don't bother handling this case.
14131          esac
14132        else
14133          if test -z "$postdeps_CXX"; then
14134            postdeps_CXX="${prev}${p}"
14135          else
14136            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14137          fi
14138        fi
14139        ;;
14140
14141     *.$objext|*.$libext)
14142        # This assumes that the test object file only shows up
14143        # once in the compiler output.
14144        if test "$p" = "conftest.$objext"; then
14145          pre_test_object_deps_done=yes
14146          continue
14147        fi
14148
14149        if test "$pre_test_object_deps_done" = no; then
14150          if test -z "$predep_objects_CXX"; then
14151            predep_objects_CXX="$p"
14152          else
14153            predep_objects_CXX="$predep_objects_CXX $p"
14154          fi
14155        else
14156          if test -z "$postdep_objects_CXX"; then
14157            postdep_objects_CXX="$p"
14158          else
14159            postdep_objects_CXX="$postdep_objects_CXX $p"
14160          fi
14161        fi
14162        ;;
14163
14164     *) ;; # Ignore the rest.
14165
14166     esac
14167   done
14168
14169   # Clean up.
14170   rm -f a.out a.exe
14171 else
14172   echo "libtool.m4: error: problem compiling CXX test program"
14173 fi
14174
14175 $rm -f confest.$objext
14176
14177 case " $postdeps_CXX " in
14178 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14179 esac
14180
14181 lt_prog_compiler_wl_CXX=
14182 lt_prog_compiler_pic_CXX=
14183 lt_prog_compiler_static_CXX=
14184
14185 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14186 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14187
14188   # C++ specific cases for pic, static, wl, etc.
14189   if test "$GXX" = yes; then
14190     lt_prog_compiler_wl_CXX='-Wl,'
14191     lt_prog_compiler_static_CXX='-static'
14192
14193     case $host_os in
14194     aix*)
14195       # All AIX code is PIC.
14196       if test "$host_cpu" = ia64; then
14197         # AIX 5 now supports IA64 processor
14198         lt_prog_compiler_static_CXX='-Bstatic'
14199       fi
14200       ;;
14201     amigaos*)
14202       # FIXME: we need at least 68020 code to build shared libraries, but
14203       # adding the `-m68020' flag to GCC prevents building anything better,
14204       # like `-m68040'.
14205       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14206       ;;
14207     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14208       # PIC is the default for these OSes.
14209       ;;
14210     mingw* | os2* | pw32*)
14211       # This hack is so that the source file can tell whether it is being
14212       # built for inclusion in a dll (and should export symbols for example).
14213       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14214       ;;
14215     darwin* | rhapsody*)
14216       # PIC is the default on this platform
14217       # Common symbols not allowed in MH_DYLIB files
14218       lt_prog_compiler_pic_CXX='-fno-common'
14219       ;;
14220     *djgpp*)
14221       # DJGPP does not support shared libraries at all
14222       lt_prog_compiler_pic_CXX=
14223       ;;
14224     sysv4*MP*)
14225       if test -d /usr/nec; then
14226         lt_prog_compiler_pic_CXX=-Kconform_pic
14227       fi
14228       ;;
14229     hpux*)
14230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14231       # not for PA HP-UX.
14232       case "$host_cpu" in
14233       hppa*64*|ia64*)
14234         ;;
14235       *)
14236         lt_prog_compiler_pic_CXX='-fPIC'
14237         ;;
14238       esac
14239       ;;
14240     *)
14241       lt_prog_compiler_pic_CXX='-fPIC'
14242       ;;
14243     esac
14244   else
14245     case $host_os in
14246       aix4* | aix5*)
14247         # All AIX code is PIC.
14248         if test "$host_cpu" = ia64; then
14249           # AIX 5 now supports IA64 processor
14250           lt_prog_compiler_static_CXX='-Bstatic'
14251         else
14252           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14253         fi
14254         ;;
14255       chorus*)
14256         case $cc_basename in
14257         cxch68)
14258           # Green Hills C++ Compiler
14259           # _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"
14260           ;;
14261         esac
14262         ;;
14263       dgux*)
14264         case $cc_basename in
14265           ec++)
14266             lt_prog_compiler_pic_CXX='-KPIC'
14267             ;;
14268           ghcx)
14269             # Green Hills C++ Compiler
14270             lt_prog_compiler_pic_CXX='-pic'
14271             ;;
14272           *)
14273             ;;
14274         esac
14275         ;;
14276       freebsd* | kfreebsd*-gnu)
14277         # FreeBSD uses GNU C++
14278         ;;
14279       hpux9* | hpux10* | hpux11*)
14280         case $cc_basename in
14281           CC)
14282             lt_prog_compiler_wl_CXX='-Wl,'
14283             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14284             if test "$host_cpu" != ia64; then
14285               lt_prog_compiler_pic_CXX='+Z'
14286             fi
14287             ;;
14288           aCC)
14289             lt_prog_compiler_wl_CXX='-Wl,'
14290             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14291             case "$host_cpu" in
14292             hppa*64*|ia64*)
14293               # +Z the default
14294               ;;
14295             *)
14296               lt_prog_compiler_pic_CXX='+Z'
14297               ;;
14298             esac
14299             ;;
14300           *)
14301             ;;
14302         esac
14303         ;;
14304       irix5* | irix6* | nonstopux*)
14305         case $cc_basename in
14306           CC)
14307             lt_prog_compiler_wl_CXX='-Wl,'
14308             lt_prog_compiler_static_CXX='-non_shared'
14309             # CC pic flag -KPIC is the default.
14310             ;;
14311           *)
14312             ;;
14313         esac
14314         ;;
14315       linux*)
14316         case $cc_basename in
14317           KCC)
14318             # KAI C++ Compiler
14319             lt_prog_compiler_wl_CXX='--backend -Wl,'
14320             lt_prog_compiler_pic_CXX='-fPIC'
14321             ;;
14322           icpc)
14323             # Intel C++
14324             lt_prog_compiler_wl_CXX='-Wl,'
14325             lt_prog_compiler_pic_CXX='-KPIC'
14326             lt_prog_compiler_static_CXX='-static'
14327             ;;
14328           cxx)
14329             # Compaq C++
14330             # Make sure the PIC flag is empty.  It appears that all Alpha
14331             # Linux and Compaq Tru64 Unix objects are PIC.
14332             lt_prog_compiler_pic_CXX=
14333             lt_prog_compiler_static_CXX='-non_shared'
14334             ;;
14335           *)
14336             ;;
14337         esac
14338         ;;
14339       lynxos*)
14340         ;;
14341       m88k*)
14342         ;;
14343       mvs*)
14344         case $cc_basename in
14345           cxx)
14346             lt_prog_compiler_pic_CXX='-W c,exportall'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       netbsd*)
14353         ;;
14354       osf3* | osf4* | osf5*)
14355         case $cc_basename in
14356           KCC)
14357             lt_prog_compiler_wl_CXX='--backend -Wl,'
14358             ;;
14359           RCC)
14360             # Rational C++ 2.4.1
14361             lt_prog_compiler_pic_CXX='-pic'
14362             ;;
14363           cxx)
14364             # Digital/Compaq C++
14365             lt_prog_compiler_wl_CXX='-Wl,'
14366             # Make sure the PIC flag is empty.  It appears that all Alpha
14367             # Linux and Compaq Tru64 Unix objects are PIC.
14368             lt_prog_compiler_pic_CXX=
14369             lt_prog_compiler_static_CXX='-non_shared'
14370             ;;
14371           *)
14372             ;;
14373         esac
14374         ;;
14375       psos*)
14376         ;;
14377       sco*)
14378         case $cc_basename in
14379           CC)
14380             lt_prog_compiler_pic_CXX='-fPIC'
14381             ;;
14382           *)
14383             ;;
14384         esac
14385         ;;
14386       solaris*)
14387         case $cc_basename in
14388           CC)
14389             # Sun C++ 4.2, 5.x and Centerline C++
14390             lt_prog_compiler_pic_CXX='-KPIC'
14391             lt_prog_compiler_static_CXX='-Bstatic'
14392             lt_prog_compiler_wl_CXX='-Qoption ld '
14393             ;;
14394           gcx)
14395             # Green Hills C++ Compiler
14396             lt_prog_compiler_pic_CXX='-PIC'
14397             ;;
14398           *)
14399             ;;
14400         esac
14401         ;;
14402       sunos4*)
14403         case $cc_basename in
14404           CC)
14405             # Sun C++ 4.x
14406             lt_prog_compiler_pic_CXX='-pic'
14407             lt_prog_compiler_static_CXX='-Bstatic'
14408             ;;
14409           lcc)
14410             # Lucid
14411             lt_prog_compiler_pic_CXX='-pic'
14412             ;;
14413           *)
14414             ;;
14415         esac
14416         ;;
14417       tandem*)
14418         case $cc_basename in
14419           NCC)
14420             # NonStop-UX NCC 3.20
14421             lt_prog_compiler_pic_CXX='-KPIC'
14422             ;;
14423           *)
14424             ;;
14425         esac
14426         ;;
14427       unixware*)
14428         ;;
14429       vxworks*)
14430         ;;
14431       *)
14432         lt_prog_compiler_can_build_shared_CXX=no
14433         ;;
14434     esac
14435   fi
14436
14437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14438 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14439
14440 #
14441 # Check to make sure the PIC flag actually works.
14442 #
14443 if test -n "$lt_prog_compiler_pic_CXX"; then
14444
14445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14447 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   lt_prog_compiler_pic_works_CXX=no
14451   ac_outfile=conftest.$ac_objext
14452    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14453    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14454    # Insert the option either (1) after the last *FLAGS variable, or
14455    # (2) before a word containing "conftest.", or (3) at the end.
14456    # Note that $ac_compile itself does not contain backslashes and begins
14457    # with a dollar sign (not a hyphen), so the echo should work correctly.
14458    # The option is referenced via a variable to avoid confusing sed.
14459    lt_compile=`echo "$ac_compile" | $SED \
14460    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14462    -e 's:$: $lt_compiler_flag:'`
14463    (eval echo "\"\$as_me:14463: $lt_compile\"" >&5)
14464    (eval "$lt_compile" 2>conftest.err)
14465    ac_status=$?
14466    cat conftest.err >&5
14467    echo "$as_me:14467: \$? = $ac_status" >&5
14468    if (exit $ac_status) && test -s "$ac_outfile"; then
14469      # The compiler can only warn and ignore the option if not recognized
14470      # So say no if there are warnings
14471      if test ! -s conftest.err; then
14472        lt_prog_compiler_pic_works_CXX=yes
14473      fi
14474    fi
14475    $rm conftest*
14476
14477 fi
14478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14479 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14480
14481 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14482     case $lt_prog_compiler_pic_CXX in
14483      "" | " "*) ;;
14484      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14485      esac
14486 else
14487     lt_prog_compiler_pic_CXX=
14488      lt_prog_compiler_can_build_shared_CXX=no
14489 fi
14490
14491 fi
14492 case "$host_os" in
14493   # For platforms which do not support PIC, -DPIC is meaningless:
14494   *djgpp*)
14495     lt_prog_compiler_pic_CXX=
14496     ;;
14497   *)
14498     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14499     ;;
14500 esac
14501
14502 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14504 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14505   echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507   lt_cv_prog_compiler_c_o_CXX=no
14508    $rm -r conftest 2>/dev/null
14509    mkdir conftest
14510    cd conftest
14511    mkdir out
14512    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14513
14514    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14515    # that will create temporary files in the current directory regardless of
14516    # the output directory.  Thus, making CWD read-only will cause this test
14517    # to fail, enabling locking or at least warning the user not to do parallel
14518    # builds.
14519    chmod -w .
14520
14521    lt_compiler_flag="-o out/conftest2.$ac_objext"
14522    # Insert the option either (1) after the last *FLAGS variable, or
14523    # (2) before a word containing "conftest.", or (3) at the end.
14524    # Note that $ac_compile itself does not contain backslashes and begins
14525    # with a dollar sign (not a hyphen), so the echo should work correctly.
14526    lt_compile=`echo "$ac_compile" | $SED \
14527    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529    -e 's:$: $lt_compiler_flag:'`
14530    (eval echo "\"\$as_me:14530: $lt_compile\"" >&5)
14531    (eval "$lt_compile" 2>out/conftest.err)
14532    ac_status=$?
14533    cat out/conftest.err >&5
14534    echo "$as_me:14534: \$? = $ac_status" >&5
14535    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14536    then
14537      # The compiler can only warn and ignore the option if not recognized
14538      # So say no if there are warnings
14539      if test ! -s out/conftest.err; then
14540        lt_cv_prog_compiler_c_o_CXX=yes
14541      fi
14542    fi
14543    chmod u+w .
14544    $rm conftest* out/*
14545    rmdir out
14546    cd ..
14547    rmdir conftest
14548    $rm conftest*
14549
14550 fi
14551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14552 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14553
14554
14555 hard_links="nottested"
14556 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14557   # do not overwrite the value of need_locks provided by the user
14558   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14559 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14560   hard_links=yes
14561   $rm conftest*
14562   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14563   touch conftest.a
14564   ln conftest.a conftest.b 2>&5 || hard_links=no
14565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14566   { echo "$as_me:$LINENO: result: $hard_links" >&5
14567 echo "${ECHO_T}$hard_links" >&6; }
14568   if test "$hard_links" = no; then
14569     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14570 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14571     need_locks=warn
14572   fi
14573 else
14574   need_locks=no
14575 fi
14576
14577 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14578 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14579
14580   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14581   case $host_os in
14582   aix4* | aix5*)
14583     # If we're using GNU nm, then we don't want the "-C" option.
14584     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14585     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14586       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'
14587     else
14588       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'
14589     fi
14590     ;;
14591   pw32*)
14592     export_symbols_cmds_CXX="$ltdll_cmds"
14593   ;;
14594   cygwin* | mingw*)
14595     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14596   ;;
14597   *)
14598     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14599   ;;
14600   esac
14601
14602 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14603 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14604 test "$ld_shlibs_CXX" = no && can_build_shared=no
14605
14606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14607 if test "$GCC" = yes; then
14608   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14609 fi
14610
14611 #
14612 # Do we need to explicitly link libc?
14613 #
14614 case "x$archive_cmds_need_lc_CXX" in
14615 x|xyes)
14616   # Assume -lc should be added
14617   archive_cmds_need_lc_CXX=yes
14618
14619   if test "$enable_shared" = yes && test "$GCC" = yes; then
14620     case $archive_cmds_CXX in
14621     *'~'*)
14622       # FIXME: we may have to deal with multi-command sequences.
14623       ;;
14624     '$CC '*)
14625       # Test whether the compiler implicitly links with -lc since on some
14626       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14627       # to ld, don't add -lc before -lgcc.
14628       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14629 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14630       $rm conftest*
14631       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14632
14633       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634   (eval $ac_compile) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } 2>conftest.err; then
14638         soname=conftest
14639         lib=conftest
14640         libobjs=conftest.$ac_objext
14641         deplibs=
14642         wl=$lt_prog_compiler_wl_CXX
14643         compiler_flags=-v
14644         linker_flags=-v
14645         verstring=
14646         output_objdir=.
14647         libname=conftest
14648         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14649         allow_undefined_flag_CXX=
14650         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14651   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }
14655         then
14656           archive_cmds_need_lc_CXX=no
14657         else
14658           archive_cmds_need_lc_CXX=yes
14659         fi
14660         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14661       else
14662         cat conftest.err 1>&5
14663       fi
14664       $rm conftest*
14665       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14666 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14667       ;;
14668     esac
14669   fi
14670   ;;
14671 esac
14672
14673 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14674 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14675 library_names_spec=
14676 libname_spec='lib$name'
14677 soname_spec=
14678 shrext=".so"
14679 postinstall_cmds=
14680 postuninstall_cmds=
14681 finish_cmds=
14682 finish_eval=
14683 shlibpath_var=
14684 shlibpath_overrides_runpath=unknown
14685 version_type=none
14686 dynamic_linker="$host_os ld.so"
14687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14689 need_lib_prefix=unknown
14690 hardcode_into_libs=no
14691
14692 # when you set need_version to no, make sure it does not cause -set_version
14693 # flags to be left without arguments
14694 need_version=unknown
14695
14696 case $host_os in
14697 aix3*)
14698   version_type=linux
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14700   shlibpath_var=LIBPATH
14701
14702   # AIX 3 has no versioning support, so we append a major version to the name.
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   ;;
14705
14706 aix4* | aix5*)
14707   version_type=linux
14708   need_lib_prefix=no
14709   need_version=no
14710   hardcode_into_libs=yes
14711   if test "$host_cpu" = ia64; then
14712     # AIX 5 supports IA64
14713     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14714     shlibpath_var=LD_LIBRARY_PATH
14715   else
14716     # With GCC up to 2.95.x, collect2 would create an import file
14717     # for dependence libraries.  The import file would start with
14718     # the line `#! .'.  This would cause the generated library to
14719     # depend on `.', always an invalid library.  This was fixed in
14720     # development snapshots of GCC prior to 3.0.
14721     case $host_os in
14722       aix4 | aix4.[01] | aix4.[01].*)
14723       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14724            echo ' yes '
14725            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14726         :
14727       else
14728         can_build_shared=no
14729       fi
14730       ;;
14731     esac
14732     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14733     # soname into executable. Probably we can add versioning support to
14734     # collect2, so additional links can be useful in future.
14735     if test "$aix_use_runtimelinking" = yes; then
14736       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14737       # instead of lib<name>.a to let people know that these are not
14738       # typical AIX shared libraries.
14739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740     else
14741       # We preserve .a as extension for shared libraries through AIX4.2
14742       # and later when we are not doing run time linking.
14743       library_names_spec='${libname}${release}.a $libname.a'
14744       soname_spec='${libname}${release}${shared_ext}$major'
14745     fi
14746     shlibpath_var=LIBPATH
14747   fi
14748   ;;
14749
14750 amigaos*)
14751   library_names_spec='$libname.ixlibrary $libname.a'
14752   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14753   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'
14754   ;;
14755
14756 beos*)
14757   library_names_spec='${libname}${shared_ext}'
14758   dynamic_linker="$host_os ld.so"
14759   shlibpath_var=LIBRARY_PATH
14760   ;;
14761
14762 bsdi4*)
14763   version_type=linux
14764   need_version=no
14765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766   soname_spec='${libname}${release}${shared_ext}$major'
14767   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14770   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14771   # the default ld.so.conf also contains /usr/contrib/lib and
14772   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14773   # libtool to hard-code these into programs
14774   ;;
14775
14776 cygwin* | mingw* | pw32*)
14777   version_type=windows
14778   shrext=".dll"
14779   need_version=no
14780   need_lib_prefix=no
14781
14782   case $GCC,$host_os in
14783   yes,cygwin* | yes,mingw* | yes,pw32*)
14784     library_names_spec='$libname.dll.a'
14785     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14786     postinstall_cmds='base_file=`basename \${file}`~
14787       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14788       dldir=$destdir/`dirname \$dlpath`~
14789       test -d \$dldir || mkdir -p \$dldir~
14790       $install_prog $dir/$dlname \$dldir/$dlname'
14791     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792       dlpath=$dir/\$dldll~
14793        $rm \$dlpath'
14794     shlibpath_overrides_runpath=yes
14795
14796     case $host_os in
14797     cygwin*)
14798       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14799       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14801       ;;
14802     mingw*)
14803       # MinGW DLLs use traditional 'lib' prefix
14804       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14805       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14806       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14807         # It is most probably a Windows format PATH printed by
14808         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14809         # path with ; separators, and with drive letters. We can handle the
14810         # drive letters (cygwin fileutils understands them), so leave them,
14811         # especially as we might pass files found there to a mingw objdump,
14812         # which wouldn't understand a cygwinified path. Ahh.
14813         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14814       else
14815         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14816       fi
14817       ;;
14818     pw32*)
14819       # pw32 DLLs use 'pw' prefix rather than 'lib'
14820       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14821       ;;
14822     esac
14823     ;;
14824
14825   *)
14826     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14827     ;;
14828   esac
14829   dynamic_linker='Win32 ld.exe'
14830   # FIXME: first we should search . and the directory the executable is in
14831   shlibpath_var=PATH
14832   ;;
14833
14834 darwin* | rhapsody*)
14835   dynamic_linker="$host_os dyld"
14836   version_type=darwin
14837   need_lib_prefix=no
14838   need_version=no
14839   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14840   soname_spec='${libname}${release}${major}$shared_ext'
14841   shlibpath_overrides_runpath=yes
14842   shlibpath_var=DYLD_LIBRARY_PATH
14843   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14844   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14845   if test "$GCC" = yes; then
14846     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"`
14847   else
14848     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14849   fi
14850   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14851   ;;
14852
14853 dgux*)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   ;;
14861
14862 freebsd1*)
14863   dynamic_linker=no
14864   ;;
14865
14866 kfreebsd*-gnu*)
14867   version_type=linux
14868   need_lib_prefix=no
14869   need_version=no
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   shlibpath_overrides_runpath=no
14874   hardcode_into_libs=yes
14875   dynamic_linker='GNU ld.so'
14876   ;;
14877
14878 freebsd*)
14879   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14880   version_type=freebsd-$objformat
14881   case $version_type in
14882     freebsd-elf*)
14883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14884       need_version=no
14885       need_lib_prefix=no
14886       ;;
14887     freebsd-*)
14888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14889       need_version=yes
14890       ;;
14891   esac
14892   shlibpath_var=LD_LIBRARY_PATH
14893   case $host_os in
14894   freebsd2*)
14895     shlibpath_overrides_runpath=yes
14896     ;;
14897   freebsd3.01* | freebsdelf3.01*)
14898     shlibpath_overrides_runpath=yes
14899     hardcode_into_libs=yes
14900     ;;
14901   *) # from 3.2 on
14902     shlibpath_overrides_runpath=no
14903     hardcode_into_libs=yes
14904     ;;
14905   esac
14906   ;;
14907
14908 gnu*)
14909   version_type=linux
14910   need_lib_prefix=no
14911   need_version=no
14912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14913   soname_spec='${libname}${release}${shared_ext}$major'
14914   shlibpath_var=LD_LIBRARY_PATH
14915   hardcode_into_libs=yes
14916   ;;
14917
14918 hpux9* | hpux10* | hpux11*)
14919   # Give a soname corresponding to the major version so that dld.sl refuses to
14920   # link against other versions.
14921   version_type=sunos
14922   need_lib_prefix=no
14923   need_version=no
14924   case "$host_cpu" in
14925   ia64*)
14926     shrext='.so'
14927     hardcode_into_libs=yes
14928     dynamic_linker="$host_os dld.so"
14929     shlibpath_var=LD_LIBRARY_PATH
14930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932     soname_spec='${libname}${release}${shared_ext}$major'
14933     if test "X$HPUX_IA64_MODE" = X32; then
14934       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14935     else
14936       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14937     fi
14938     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14939     ;;
14940    hppa*64*)
14941      shrext='.sl'
14942      hardcode_into_libs=yes
14943      dynamic_linker="$host_os dld.sl"
14944      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14945      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947      soname_spec='${libname}${release}${shared_ext}$major'
14948      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14949      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14950      ;;
14951    *)
14952     shrext='.sl'
14953     dynamic_linker="$host_os dld.sl"
14954     shlibpath_var=SHLIB_PATH
14955     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957     soname_spec='${libname}${release}${shared_ext}$major'
14958     ;;
14959   esac
14960   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14961   postinstall_cmds='chmod 555 $lib'
14962   ;;
14963
14964 irix5* | irix6* | nonstopux*)
14965   case $host_os in
14966     nonstopux*) version_type=nonstopux ;;
14967     *)
14968         if test "$lt_cv_prog_gnu_ld" = yes; then
14969                 version_type=linux
14970         else
14971                 version_type=irix
14972         fi ;;
14973   esac
14974   need_lib_prefix=no
14975   need_version=no
14976   soname_spec='${libname}${release}${shared_ext}$major'
14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14978   case $host_os in
14979   irix5* | nonstopux*)
14980     libsuff= shlibsuff=
14981     ;;
14982   *)
14983     case $LD in # libtool.m4 will add one of these switches to LD
14984     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14985       libsuff= shlibsuff= libmagic=32-bit;;
14986     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14987       libsuff=32 shlibsuff=N32 libmagic=N32;;
14988     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14989       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14990     *) libsuff= shlibsuff= libmagic=never-match;;
14991     esac
14992     ;;
14993   esac
14994   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14995   shlibpath_overrides_runpath=no
14996   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14997   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14998   hardcode_into_libs=yes
14999   ;;
15000
15001 # No shared lib support for Linux oldld, aout, or coff.
15002 linux*oldld* | linux*aout* | linux*coff*)
15003   dynamic_linker=no
15004   ;;
15005
15006 # This must be Linux ELF.
15007 linux*)
15008   version_type=linux
15009   need_lib_prefix=no
15010   need_version=no
15011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012   soname_spec='${libname}${release}${shared_ext}$major'
15013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15014   libsuff=
15015   if test "x$LINUX_64_MODE" = x64; then
15016     # Some platforms are per default 64-bit, so there's no /lib64
15017     if test -d /lib64 -a ! -h /lib64; then
15018       libsuff=64
15019     fi
15020   fi
15021   shlibpath_var=LD_LIBRARY_PATH
15022   shlibpath_overrides_runpath=no
15023   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15024   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15025   # This implies no fast_install, which is unacceptable.
15026   # Some rework will be needed to allow for fast_install
15027   # before this can be enabled.
15028   hardcode_into_libs=yes
15029
15030   # We used to test for /lib/ld.so.1 and disable shared libraries on
15031   # powerpc, because MkLinux only supported shared libraries with the
15032   # GNU dynamic linker.  Since this was broken with cross compilers,
15033   # most powerpc-linux boxes support dynamic linking these days and
15034   # people can always --disable-shared, the test was removed, and we
15035   # assume the GNU/Linux dynamic linker is in use.
15036   dynamic_linker='GNU/Linux ld.so'
15037   ;;
15038
15039 netbsd*)
15040   version_type=sunos
15041   need_lib_prefix=no
15042   need_version=no
15043   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15045     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15046     dynamic_linker='NetBSD (a.out) ld.so'
15047   else
15048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15049     soname_spec='${libname}${release}${shared_ext}$major'
15050     dynamic_linker='NetBSD ld.elf_so'
15051   fi
15052   shlibpath_var=LD_LIBRARY_PATH
15053   shlibpath_overrides_runpath=yes
15054   hardcode_into_libs=yes
15055   ;;
15056
15057 newsos6)
15058   version_type=linux
15059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=yes
15062   ;;
15063
15064 nto-qnx*)
15065   version_type=linux
15066   need_lib_prefix=no
15067   need_version=no
15068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   shlibpath_var=LD_LIBRARY_PATH
15071   shlibpath_overrides_runpath=yes
15072   ;;
15073
15074 openbsd*)
15075   version_type=sunos
15076   need_lib_prefix=no
15077   need_version=no
15078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15079   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15082     case $host_os in
15083       openbsd2.[89] | openbsd2.[89].*)
15084         shlibpath_overrides_runpath=no
15085         ;;
15086       *)
15087         shlibpath_overrides_runpath=yes
15088         ;;
15089       esac
15090   else
15091     shlibpath_overrides_runpath=yes
15092   fi
15093   ;;
15094
15095 os2*)
15096   libname_spec='$name'
15097   shrext=".dll"
15098   need_lib_prefix=no
15099   library_names_spec='$libname${shared_ext} $libname.a'
15100   dynamic_linker='OS/2 ld.exe'
15101   shlibpath_var=LIBPATH
15102   ;;
15103
15104 osf3* | osf4* | osf5*)
15105   version_type=osf
15106   need_lib_prefix=no
15107   need_version=no
15108   soname_spec='${libname}${release}${shared_ext}$major'
15109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110   shlibpath_var=LD_LIBRARY_PATH
15111   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15112   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15113   ;;
15114
15115 sco3.2v5*)
15116   version_type=osf
15117   soname_spec='${libname}${release}${shared_ext}$major'
15118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119   shlibpath_var=LD_LIBRARY_PATH
15120   ;;
15121
15122 solaris*)
15123   version_type=linux
15124   need_lib_prefix=no
15125   need_version=no
15126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127   soname_spec='${libname}${release}${shared_ext}$major'
15128   shlibpath_var=LD_LIBRARY_PATH
15129   shlibpath_overrides_runpath=yes
15130   hardcode_into_libs=yes
15131   # ldd complains unless libraries are executable
15132   postinstall_cmds='chmod +x $lib'
15133   ;;
15134
15135 sunos4*)
15136   version_type=sunos
15137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15138   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15139   shlibpath_var=LD_LIBRARY_PATH
15140   shlibpath_overrides_runpath=yes
15141   if test "$with_gnu_ld" = yes; then
15142     need_lib_prefix=no
15143   fi
15144   need_version=yes
15145   ;;
15146
15147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15148   version_type=linux
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   case $host_vendor in
15153     sni)
15154       shlibpath_overrides_runpath=no
15155       need_lib_prefix=no
15156       export_dynamic_flag_spec='${wl}-Blargedynsym'
15157       runpath_var=LD_RUN_PATH
15158       ;;
15159     siemens)
15160       need_lib_prefix=no
15161       ;;
15162     motorola)
15163       need_lib_prefix=no
15164       need_version=no
15165       shlibpath_overrides_runpath=no
15166       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15167       ;;
15168   esac
15169   ;;
15170
15171 sysv4*MP*)
15172   if test -d /usr/nec ;then
15173     version_type=linux
15174     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15175     soname_spec='$libname${shared_ext}.$major'
15176     shlibpath_var=LD_LIBRARY_PATH
15177   fi
15178   ;;
15179
15180 uts4*)
15181   version_type=linux
15182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183   soname_spec='${libname}${release}${shared_ext}$major'
15184   shlibpath_var=LD_LIBRARY_PATH
15185   ;;
15186
15187 *)
15188   dynamic_linker=no
15189   ;;
15190 esac
15191 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15192 echo "${ECHO_T}$dynamic_linker" >&6; }
15193 test "$dynamic_linker" = no && can_build_shared=no
15194
15195 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15197 hardcode_action_CXX=
15198 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15199    test -n "$runpath_var CXX" || \
15200    test "X$hardcode_automatic_CXX"="Xyes" ; then
15201
15202   # We can hardcode non-existant directories.
15203   if test "$hardcode_direct_CXX" != no &&
15204      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15205      # have to relink, otherwise we might link with an installed library
15206      # when we should be linking with a yet-to-be-installed one
15207      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15208      test "$hardcode_minus_L_CXX" != no; then
15209     # Linking always hardcodes the temporary library directory.
15210     hardcode_action_CXX=relink
15211   else
15212     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15213     hardcode_action_CXX=immediate
15214   fi
15215 else
15216   # We cannot hardcode anything, or else we can only hardcode existing
15217   # directories.
15218   hardcode_action_CXX=unsupported
15219 fi
15220 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15221 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15222
15223 if test "$hardcode_action_CXX" = relink; then
15224   # Fast installation is not supported
15225   enable_fast_install=no
15226 elif test "$shlibpath_overrides_runpath" = yes ||
15227      test "$enable_shared" = no; then
15228   # Fast installation is not necessary
15229   enable_fast_install=needless
15230 fi
15231
15232 striplib=
15233 old_striplib=
15234 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15235 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15236 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15237   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15238   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15239   { echo "$as_me:$LINENO: result: yes" >&5
15240 echo "${ECHO_T}yes" >&6; }
15241 else
15242 # FIXME - insert some real tests, host_os isn't really good enough
15243   case $host_os in
15244    darwin*)
15245        if test -n "$STRIP" ; then
15246          striplib="$STRIP -x"
15247          { echo "$as_me:$LINENO: result: yes" >&5
15248 echo "${ECHO_T}yes" >&6; }
15249        else
15250   { echo "$as_me:$LINENO: result: no" >&5
15251 echo "${ECHO_T}no" >&6; }
15252 fi
15253        ;;
15254    *)
15255   { echo "$as_me:$LINENO: result: no" >&5
15256 echo "${ECHO_T}no" >&6; }
15257     ;;
15258   esac
15259 fi
15260
15261 if test "x$enable_dlopen" != xyes; then
15262   enable_dlopen=unknown
15263   enable_dlopen_self=unknown
15264   enable_dlopen_self_static=unknown
15265 else
15266   lt_cv_dlopen=no
15267   lt_cv_dlopen_libs=
15268
15269   case $host_os in
15270   beos*)
15271     lt_cv_dlopen="load_add_on"
15272     lt_cv_dlopen_libs=
15273     lt_cv_dlopen_self=yes
15274     ;;
15275
15276   mingw* | pw32*)
15277     lt_cv_dlopen="LoadLibrary"
15278     lt_cv_dlopen_libs=
15279    ;;
15280
15281   cygwin*)
15282     lt_cv_dlopen="dlopen"
15283     lt_cv_dlopen_libs=
15284    ;;
15285
15286   darwin*)
15287   # if libdl is installed we need to link against it
15288     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15291   echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293   ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-ldl  $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301
15302 /* Override any GCC internal prototype to avoid an error.
15303    Use char because int might match the return type of a GCC
15304    builtin and then its argument prototype would still apply.  */
15305 #ifdef __cplusplus
15306 extern "C"
15307 #endif
15308 char dlopen ();
15309 int
15310 main ()
15311 {
15312 return dlopen ();
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (ac_try="$ac_link"
15319 case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_link") 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } && {
15331          test -z "$ac_cxx_werror_flag" ||
15332          test ! -s conftest.err
15333        } && test -s conftest$ac_exeext &&
15334        $as_test_x conftest$ac_exeext; then
15335   ac_cv_lib_dl_dlopen=yes
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340         ac_cv_lib_dl_dlopen=no
15341 fi
15342
15343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15344       conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15346 fi
15347 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15349 if test $ac_cv_lib_dl_dlopen = yes; then
15350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15351 else
15352
15353     lt_cv_dlopen="dyld"
15354     lt_cv_dlopen_libs=
15355     lt_cv_dlopen_self=yes
15356
15357 fi
15358
15359    ;;
15360
15361   *)
15362     { echo "$as_me:$LINENO: checking for shl_load" >&5
15363 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15364 if test "${ac_cv_func_shl_load+set}" = set; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15375 #define shl_load innocuous_shl_load
15376
15377 /* System header to define __stub macros and hopefully few prototypes,
15378     which can conflict with char shl_load (); below.
15379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15380     <limits.h> exists even on freestanding compilers.  */
15381
15382 #ifdef __STDC__
15383 # include <limits.h>
15384 #else
15385 # include <assert.h>
15386 #endif
15387
15388 #undef shl_load
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391    Use char because int might match the return type of a GCC
15392    builtin and then its argument prototype would still apply.  */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char shl_load ();
15397 /* The GNU C library defines this for functions which it implements
15398     to always fail with ENOSYS.  Some functions are actually named
15399     something starting with __ and the normal name is an alias.  */
15400 #if defined __stub_shl_load || defined __stub___shl_load
15401 choke me
15402 #endif
15403
15404 int
15405 main ()
15406 {
15407 return shl_load ();
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (ac_try="$ac_link"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_link") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } && {
15426          test -z "$ac_cxx_werror_flag" ||
15427          test ! -s conftest.err
15428        } && test -s conftest$ac_exeext &&
15429        $as_test_x conftest$ac_exeext; then
15430   ac_cv_func_shl_load=yes
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435         ac_cv_func_shl_load=no
15436 fi
15437
15438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15439       conftest$ac_exeext conftest.$ac_ext
15440 fi
15441 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15442 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15443 if test $ac_cv_func_shl_load = yes; then
15444   lt_cv_dlopen="shl_load"
15445 else
15446   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15447 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15448 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   ac_check_lib_save_LIBS=$LIBS
15452 LIBS="-ldld  $LIBS"
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459
15460 /* Override any GCC internal prototype to avoid an error.
15461    Use char because int might match the return type of a GCC
15462    builtin and then its argument prototype would still apply.  */
15463 #ifdef __cplusplus
15464 extern "C"
15465 #endif
15466 char shl_load ();
15467 int
15468 main ()
15469 {
15470 return shl_load ();
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_link") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } && {
15489          test -z "$ac_cxx_werror_flag" ||
15490          test ! -s conftest.err
15491        } && test -s conftest$ac_exeext &&
15492        $as_test_x conftest$ac_exeext; then
15493   ac_cv_lib_dld_shl_load=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498         ac_cv_lib_dld_shl_load=no
15499 fi
15500
15501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15502       conftest$ac_exeext conftest.$ac_ext
15503 LIBS=$ac_check_lib_save_LIBS
15504 fi
15505 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15506 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15507 if test $ac_cv_lib_dld_shl_load = yes; then
15508   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15509 else
15510   { echo "$as_me:$LINENO: checking for dlopen" >&5
15511 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15512 if test "${ac_cv_func_dlopen+set}" = set; then
15513   echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515   cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15523 #define dlopen innocuous_dlopen
15524
15525 /* System header to define __stub macros and hopefully few prototypes,
15526     which can conflict with char dlopen (); below.
15527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15528     <limits.h> exists even on freestanding compilers.  */
15529
15530 #ifdef __STDC__
15531 # include <limits.h>
15532 #else
15533 # include <assert.h>
15534 #endif
15535
15536 #undef dlopen
15537
15538 /* Override any GCC internal prototype to avoid an error.
15539    Use char because int might match the return type of a GCC
15540    builtin and then its argument prototype would still apply.  */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char dlopen ();
15545 /* The GNU C library defines this for functions which it implements
15546     to always fail with ENOSYS.  Some functions are actually named
15547     something starting with __ and the normal name is an alias.  */
15548 #if defined __stub_dlopen || defined __stub___dlopen
15549 choke me
15550 #endif
15551
15552 int
15553 main ()
15554 {
15555 return dlopen ();
15556   ;
15557   return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_link") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } && {
15574          test -z "$ac_cxx_werror_flag" ||
15575          test ! -s conftest.err
15576        } && test -s conftest$ac_exeext &&
15577        $as_test_x conftest$ac_exeext; then
15578   ac_cv_func_dlopen=yes
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583         ac_cv_func_dlopen=no
15584 fi
15585
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587       conftest$ac_exeext conftest.$ac_ext
15588 fi
15589 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15590 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15591 if test $ac_cv_func_dlopen = yes; then
15592   lt_cv_dlopen="dlopen"
15593 else
15594   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15595 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-ldl  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608 /* Override any GCC internal prototype to avoid an error.
15609    Use char because int might match the return type of a GCC
15610    builtin and then its argument prototype would still apply.  */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 char dlopen ();
15615 int
15616 main ()
15617 {
15618 return dlopen ();
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_link") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } && {
15637          test -z "$ac_cxx_werror_flag" ||
15638          test ! -s conftest.err
15639        } && test -s conftest$ac_exeext &&
15640        $as_test_x conftest$ac_exeext; then
15641   ac_cv_lib_dl_dlopen=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646         ac_cv_lib_dl_dlopen=no
15647 fi
15648
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650       conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15652 fi
15653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15655 if test $ac_cv_lib_dl_dlopen = yes; then
15656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15657 else
15658   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15659 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15660 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   ac_check_lib_save_LIBS=$LIBS
15664 LIBS="-lsvld  $LIBS"
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673    Use char because int might match the return type of a GCC
15674    builtin and then its argument prototype would still apply.  */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char dlopen ();
15679 int
15680 main ()
15681 {
15682 return dlopen ();
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_link") 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } && {
15701          test -z "$ac_cxx_werror_flag" ||
15702          test ! -s conftest.err
15703        } && test -s conftest$ac_exeext &&
15704        $as_test_x conftest$ac_exeext; then
15705   ac_cv_lib_svld_dlopen=yes
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710         ac_cv_lib_svld_dlopen=no
15711 fi
15712
15713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15714       conftest$ac_exeext conftest.$ac_ext
15715 LIBS=$ac_check_lib_save_LIBS
15716 fi
15717 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
15719 if test $ac_cv_lib_svld_dlopen = yes; then
15720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15721 else
15722   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
15724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-ldld  $LIBS"
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h.  */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h.  */
15735
15736 /* Override any GCC internal prototype to avoid an error.
15737    Use char because int might match the return type of a GCC
15738    builtin and then its argument prototype would still apply.  */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 char dld_link ();
15743 int
15744 main ()
15745 {
15746 return dld_link ();
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (ac_try="$ac_link"
15753 case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_link") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } && {
15765          test -z "$ac_cxx_werror_flag" ||
15766          test ! -s conftest.err
15767        } && test -s conftest$ac_exeext &&
15768        $as_test_x conftest$ac_exeext; then
15769   ac_cv_lib_dld_dld_link=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774         ac_cv_lib_dld_dld_link=no
15775 fi
15776
15777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778       conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15780 fi
15781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15782 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
15783 if test $ac_cv_lib_dld_dld_link = yes; then
15784   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15785 fi
15786
15787
15788 fi
15789
15790
15791 fi
15792
15793
15794 fi
15795
15796
15797 fi
15798
15799
15800 fi
15801
15802     ;;
15803   esac
15804
15805   if test "x$lt_cv_dlopen" != xno; then
15806     enable_dlopen=yes
15807   else
15808     enable_dlopen=no
15809   fi
15810
15811   case $lt_cv_dlopen in
15812   dlopen)
15813     save_CPPFLAGS="$CPPFLAGS"
15814     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15815
15816     save_LDFLAGS="$LDFLAGS"
15817     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15818
15819     save_LIBS="$LIBS"
15820     LIBS="$lt_cv_dlopen_libs $LIBS"
15821
15822     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15823 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
15824 if test "${lt_cv_dlopen_self+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827           if test "$cross_compiling" = yes; then :
15828   lt_cv_dlopen_self=cross
15829 else
15830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15831   lt_status=$lt_dlunknown
15832   cat > conftest.$ac_ext <<EOF
15833 #line 15833 "configure"
15834 #include "confdefs.h"
15835
15836 #if HAVE_DLFCN_H
15837 #include <dlfcn.h>
15838 #endif
15839
15840 #include <stdio.h>
15841
15842 #ifdef RTLD_GLOBAL
15843 #  define LT_DLGLOBAL           RTLD_GLOBAL
15844 #else
15845 #  ifdef DL_GLOBAL
15846 #    define LT_DLGLOBAL         DL_GLOBAL
15847 #  else
15848 #    define LT_DLGLOBAL         0
15849 #  endif
15850 #endif
15851
15852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15853    find out it does not work in some platform. */
15854 #ifndef LT_DLLAZY_OR_NOW
15855 #  ifdef RTLD_LAZY
15856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15857 #  else
15858 #    ifdef DL_LAZY
15859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15860 #    else
15861 #      ifdef RTLD_NOW
15862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15863 #      else
15864 #        ifdef DL_NOW
15865 #          define LT_DLLAZY_OR_NOW      DL_NOW
15866 #        else
15867 #          define LT_DLLAZY_OR_NOW      0
15868 #        endif
15869 #      endif
15870 #    endif
15871 #  endif
15872 #endif
15873
15874 #ifdef __cplusplus
15875 extern "C" void exit (int);
15876 #endif
15877
15878 void fnord() { int i=42;}
15879 int main ()
15880 {
15881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15882   int status = $lt_dlunknown;
15883
15884   if (self)
15885     {
15886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15887       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15888       /* dlclose (self); */
15889     }
15890
15891     exit (status);
15892 }
15893 EOF
15894   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895   (eval $ac_link) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15899     (./conftest; exit; ) 2>/dev/null
15900     lt_status=$?
15901     case x$lt_status in
15902       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15903       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15904       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15905     esac
15906   else :
15907     # compilation failed
15908     lt_cv_dlopen_self=no
15909   fi
15910 fi
15911 rm -fr conftest*
15912
15913
15914 fi
15915 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15916 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
15917
15918     if test "x$lt_cv_dlopen_self" = xyes; then
15919       LDFLAGS="$LDFLAGS $link_static_flag"
15920       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15921 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
15922 if test "${lt_cv_dlopen_self_static+set}" = set; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925           if test "$cross_compiling" = yes; then :
15926   lt_cv_dlopen_self_static=cross
15927 else
15928   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15929   lt_status=$lt_dlunknown
15930   cat > conftest.$ac_ext <<EOF
15931 #line 15931 "configure"
15932 #include "confdefs.h"
15933
15934 #if HAVE_DLFCN_H
15935 #include <dlfcn.h>
15936 #endif
15937
15938 #include <stdio.h>
15939
15940 #ifdef RTLD_GLOBAL
15941 #  define LT_DLGLOBAL           RTLD_GLOBAL
15942 #else
15943 #  ifdef DL_GLOBAL
15944 #    define LT_DLGLOBAL         DL_GLOBAL
15945 #  else
15946 #    define LT_DLGLOBAL         0
15947 #  endif
15948 #endif
15949
15950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15951    find out it does not work in some platform. */
15952 #ifndef LT_DLLAZY_OR_NOW
15953 #  ifdef RTLD_LAZY
15954 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15955 #  else
15956 #    ifdef DL_LAZY
15957 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15958 #    else
15959 #      ifdef RTLD_NOW
15960 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15961 #      else
15962 #        ifdef DL_NOW
15963 #          define LT_DLLAZY_OR_NOW      DL_NOW
15964 #        else
15965 #          define LT_DLLAZY_OR_NOW      0
15966 #        endif
15967 #      endif
15968 #    endif
15969 #  endif
15970 #endif
15971
15972 #ifdef __cplusplus
15973 extern "C" void exit (int);
15974 #endif
15975
15976 void fnord() { int i=42;}
15977 int main ()
15978 {
15979   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15980   int status = $lt_dlunknown;
15981
15982   if (self)
15983     {
15984       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15985       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15986       /* dlclose (self); */
15987     }
15988
15989     exit (status);
15990 }
15991 EOF
15992   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15993   (eval $ac_link) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15997     (./conftest; exit; ) 2>/dev/null
15998     lt_status=$?
15999     case x$lt_status in
16000       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16001       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16002       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16003     esac
16004   else :
16005     # compilation failed
16006     lt_cv_dlopen_self_static=no
16007   fi
16008 fi
16009 rm -fr conftest*
16010
16011
16012 fi
16013 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16014 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16015     fi
16016
16017     CPPFLAGS="$save_CPPFLAGS"
16018     LDFLAGS="$save_LDFLAGS"
16019     LIBS="$save_LIBS"
16020     ;;
16021   esac
16022
16023   case $lt_cv_dlopen_self in
16024   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16025   *) enable_dlopen_self=unknown ;;
16026   esac
16027
16028   case $lt_cv_dlopen_self_static in
16029   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16030   *) enable_dlopen_self_static=unknown ;;
16031   esac
16032 fi
16033
16034
16035 # The else clause should only fire when bootstrapping the
16036 # libtool distribution, otherwise you forgot to ship ltmain.sh
16037 # with your package, and you will get complaints that there are
16038 # no rules to generate ltmain.sh.
16039 if test -f "$ltmain"; then
16040   # See if we are running on zsh, and set the options which allow our commands through
16041   # without removal of \ escapes.
16042   if test -n "${ZSH_VERSION+set}" ; then
16043     setopt NO_GLOB_SUBST
16044   fi
16045   # Now quote all the things that may contain metacharacters while being
16046   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16047   # variables and quote the copies for generation of the libtool script.
16048   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16049     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16050     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16051     deplibs_check_method reload_flag reload_cmds need_locks \
16052     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16053     lt_cv_sys_global_symbol_to_c_name_address \
16054     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16055     old_postinstall_cmds old_postuninstall_cmds \
16056     compiler_CXX \
16057     CC_CXX \
16058     LD_CXX \
16059     lt_prog_compiler_wl_CXX \
16060     lt_prog_compiler_pic_CXX \
16061     lt_prog_compiler_static_CXX \
16062     lt_prog_compiler_no_builtin_flag_CXX \
16063     export_dynamic_flag_spec_CXX \
16064     thread_safe_flag_spec_CXX \
16065     whole_archive_flag_spec_CXX \
16066     enable_shared_with_static_runtimes_CXX \
16067     old_archive_cmds_CXX \
16068     old_archive_from_new_cmds_CXX \
16069     predep_objects_CXX \
16070     postdep_objects_CXX \
16071     predeps_CXX \
16072     postdeps_CXX \
16073     compiler_lib_search_path_CXX \
16074     archive_cmds_CXX \
16075     archive_expsym_cmds_CXX \
16076     postinstall_cmds_CXX \
16077     postuninstall_cmds_CXX \
16078     old_archive_from_expsyms_cmds_CXX \
16079     allow_undefined_flag_CXX \
16080     no_undefined_flag_CXX \
16081     export_symbols_cmds_CXX \
16082     hardcode_libdir_flag_spec_CXX \
16083     hardcode_libdir_flag_spec_ld_CXX \
16084     hardcode_libdir_separator_CXX \
16085     hardcode_automatic_CXX \
16086     module_cmds_CXX \
16087     module_expsym_cmds_CXX \
16088     lt_cv_prog_compiler_c_o_CXX \
16089     exclude_expsyms_CXX \
16090     include_expsyms_CXX; do
16091
16092     case $var in
16093     old_archive_cmds_CXX | \
16094     old_archive_from_new_cmds_CXX | \
16095     archive_cmds_CXX | \
16096     archive_expsym_cmds_CXX | \
16097     module_cmds_CXX | \
16098     module_expsym_cmds_CXX | \
16099     old_archive_from_expsyms_cmds_CXX | \
16100     export_symbols_cmds_CXX | \
16101     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16102     postinstall_cmds | postuninstall_cmds | \
16103     old_postinstall_cmds | old_postuninstall_cmds | \
16104     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16105       # Double-quote double-evaled strings.
16106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16107       ;;
16108     *)
16109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16110       ;;
16111     esac
16112   done
16113
16114   case $lt_echo in
16115   *'\$0 --fallback-echo"')
16116     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16117     ;;
16118   esac
16119
16120 cfgfile="$ofile"
16121
16122   cat <<__EOF__ >> "$cfgfile"
16123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16124
16125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16126
16127 # Shell to use when invoking shell scripts.
16128 SHELL=$lt_SHELL
16129
16130 # Whether or not to build shared libraries.
16131 build_libtool_libs=$enable_shared
16132
16133 # Whether or not to build static libraries.
16134 build_old_libs=$enable_static
16135
16136 # Whether or not to add -lc for building shared libraries.
16137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16138
16139 # Whether or not to disallow shared libs when runtime libs are static
16140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16141
16142 # Whether or not to optimize for fast installation.
16143 fast_install=$enable_fast_install
16144
16145 # The host system.
16146 host_alias=$host_alias
16147 host=$host
16148
16149 # An echo program that does not interpret backslashes.
16150 echo=$lt_echo
16151
16152 # The archiver.
16153 AR=$lt_AR
16154 AR_FLAGS=$lt_AR_FLAGS
16155
16156 # A C compiler.
16157 LTCC=$lt_LTCC
16158
16159 # A language-specific compiler.
16160 CC=$lt_compiler_CXX
16161
16162 # Is the compiler the GNU C compiler?
16163 with_gcc=$GCC_CXX
16164
16165 # An ERE matcher.
16166 EGREP=$lt_EGREP
16167
16168 # The linker used to build libraries.
16169 LD=$lt_LD_CXX
16170
16171 # Whether we need hard or soft links.
16172 LN_S=$lt_LN_S
16173
16174 # A BSD-compatible nm program.
16175 NM=$lt_NM
16176
16177 # A symbol stripping program
16178 STRIP=$STRIP
16179
16180 # Used to examine libraries when file_magic_cmd begins "file"
16181 MAGIC_CMD=$MAGIC_CMD
16182
16183 # Used on cygwin: DLL creation program.
16184 DLLTOOL="$DLLTOOL"
16185
16186 # Used on cygwin: object dumper.
16187 OBJDUMP="$OBJDUMP"
16188
16189 # Used on cygwin: assembler.
16190 AS="$AS"
16191
16192 # The name of the directory that contains temporary libtool files.
16193 objdir=$objdir
16194
16195 # How to create reloadable object files.
16196 reload_flag=$lt_reload_flag
16197 reload_cmds=$lt_reload_cmds
16198
16199 # How to pass a linker flag through the compiler.
16200 wl=$lt_lt_prog_compiler_wl_CXX
16201
16202 # Object file suffix (normally "o").
16203 objext="$ac_objext"
16204
16205 # Old archive suffix (normally "a").
16206 libext="$libext"
16207
16208 # Shared library suffix (normally ".so").
16209 shrext='$shrext'
16210
16211 # Executable file suffix (normally "").
16212 exeext="$exeext"
16213
16214 # Additional compiler flags for building library objects.
16215 pic_flag=$lt_lt_prog_compiler_pic_CXX
16216 pic_mode=$pic_mode
16217
16218 # What is the maximum length of a command?
16219 max_cmd_len=$lt_cv_sys_max_cmd_len
16220
16221 # Does compiler simultaneously support -c and -o options?
16222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16223
16224 # Must we lock files when doing compilation ?
16225 need_locks=$lt_need_locks
16226
16227 # Do we need the lib prefix for modules?
16228 need_lib_prefix=$need_lib_prefix
16229
16230 # Do we need a version for libraries?
16231 need_version=$need_version
16232
16233 # Whether dlopen is supported.
16234 dlopen_support=$enable_dlopen
16235
16236 # Whether dlopen of programs is supported.
16237 dlopen_self=$enable_dlopen_self
16238
16239 # Whether dlopen of statically linked programs is supported.
16240 dlopen_self_static=$enable_dlopen_self_static
16241
16242 # Compiler flag to prevent dynamic linking.
16243 link_static_flag=$lt_lt_prog_compiler_static_CXX
16244
16245 # Compiler flag to turn off builtin functions.
16246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16247
16248 # Compiler flag to allow reflexive dlopens.
16249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16250
16251 # Compiler flag to generate shared objects directly from archives.
16252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16253
16254 # Compiler flag to generate thread-safe objects.
16255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16256
16257 # Library versioning type.
16258 version_type=$version_type
16259
16260 # Format of library name prefix.
16261 libname_spec=$lt_libname_spec
16262
16263 # List of archive names.  First name is the real one, the rest are links.
16264 # The last name is the one that the linker finds with -lNAME.
16265 library_names_spec=$lt_library_names_spec
16266
16267 # The coded name of the library, if different from the real name.
16268 soname_spec=$lt_soname_spec
16269
16270 # Commands used to build and install an old-style archive.
16271 RANLIB=$lt_RANLIB
16272 old_archive_cmds=$lt_old_archive_cmds_CXX
16273 old_postinstall_cmds=$lt_old_postinstall_cmds
16274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16275
16276 # Create an old-style archive from a shared archive.
16277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16278
16279 # Create a temporary old-style archive to link instead of a shared archive.
16280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16281
16282 # Commands used to build and install a shared archive.
16283 archive_cmds=$lt_archive_cmds_CXX
16284 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16285 postinstall_cmds=$lt_postinstall_cmds
16286 postuninstall_cmds=$lt_postuninstall_cmds
16287
16288 # Commands used to build a loadable module (assumed same as above if empty)
16289 module_cmds=$lt_module_cmds_CXX
16290 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16291
16292 # Commands to strip libraries.
16293 old_striplib=$lt_old_striplib
16294 striplib=$lt_striplib
16295
16296 # Dependencies to place before the objects being linked to create a
16297 # shared library.
16298 predep_objects=$lt_predep_objects_CXX
16299
16300 # Dependencies to place after the objects being linked to create a
16301 # shared library.
16302 postdep_objects=$lt_postdep_objects_CXX
16303
16304 # Dependencies to place before the objects being linked to create a
16305 # shared library.
16306 predeps=$lt_predeps_CXX
16307
16308 # Dependencies to place after the objects being linked to create a
16309 # shared library.
16310 postdeps=$lt_postdeps_CXX
16311
16312 # The library search path used internally by the compiler when linking
16313 # a shared library.
16314 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16315
16316 # Method to check whether dependent libraries are shared objects.
16317 deplibs_check_method=$lt_deplibs_check_method
16318
16319 # Command to use when deplibs_check_method == file_magic.
16320 file_magic_cmd=$lt_file_magic_cmd
16321
16322 # Flag that allows shared libraries with undefined symbols to be built.
16323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16324
16325 # Flag that forces no undefined symbols.
16326 no_undefined_flag=$lt_no_undefined_flag_CXX
16327
16328 # Commands used to finish a libtool library installation in a directory.
16329 finish_cmds=$lt_finish_cmds
16330
16331 # Same as above, but a single script fragment to be evaled but not shown.
16332 finish_eval=$lt_finish_eval
16333
16334 # Take the output of nm and produce a listing of raw symbols and C names.
16335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16336
16337 # Transform the output of nm in a proper C declaration
16338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16339
16340 # Transform the output of nm in a C name address pair
16341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16342
16343 # This is the shared library runtime path variable.
16344 runpath_var=$runpath_var
16345
16346 # This is the shared library path variable.
16347 shlibpath_var=$shlibpath_var
16348
16349 # Is shlibpath searched before the hard-coded library search path?
16350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16351
16352 # How to hardcode a shared library path into an executable.
16353 hardcode_action=$hardcode_action_CXX
16354
16355 # Whether we should hardcode library paths into libraries.
16356 hardcode_into_libs=$hardcode_into_libs
16357
16358 # Flag to hardcode \$libdir into a binary during linking.
16359 # This must work even if \$libdir does not exist.
16360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16361
16362 # If ld is used when linking, flag to hardcode \$libdir into
16363 # a binary during linking. This must work even if \$libdir does
16364 # not exist.
16365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16366
16367 # Whether we need a single -rpath flag with a separated argument.
16368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16369
16370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16371 # resulting binary.
16372 hardcode_direct=$hardcode_direct_CXX
16373
16374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16375 # resulting binary.
16376 hardcode_minus_L=$hardcode_minus_L_CXX
16377
16378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16379 # the resulting binary.
16380 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16381
16382 # Set to yes if building a shared library automatically hardcodes DIR into the library
16383 # and all subsequent libraries and executables linked against it.
16384 hardcode_automatic=$hardcode_automatic_CXX
16385
16386 # Variables whose values should be saved in libtool wrapper scripts and
16387 # restored at relink time.
16388 variables_saved_for_relink="$variables_saved_for_relink"
16389
16390 # Whether libtool must link a program against all its dependency libraries.
16391 link_all_deplibs=$link_all_deplibs_CXX
16392
16393 # Compile-time system search path for libraries
16394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16395
16396 # Run-time system search path for libraries
16397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16398
16399 # Fix the shell variable \$srcfile for the compiler.
16400 fix_srcfile_path="$fix_srcfile_path_CXX"
16401
16402 # Set to yes if exported symbols are required.
16403 always_export_symbols=$always_export_symbols_CXX
16404
16405 # The commands to list exported symbols.
16406 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16407
16408 # The commands to extract the exported symbol list from a shared archive.
16409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16410
16411 # Symbols that should not be listed in the preloaded symbols.
16412 exclude_expsyms=$lt_exclude_expsyms_CXX
16413
16414 # Symbols that must always be exported.
16415 include_expsyms=$lt_include_expsyms_CXX
16416
16417 # ### END LIBTOOL TAG CONFIG: $tagname
16418
16419 __EOF__
16420
16421
16422 else
16423   # If there is no Makefile yet, we rely on a make rule to execute
16424   # `config.status --recheck' to rerun these tests and create the
16425   # libtool script then.
16426   test -f Makefile && make "$ltmain"
16427 fi
16428
16429
16430 ac_ext=c
16431 ac_cpp='$CPP $CPPFLAGS'
16432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16435
16436 CC=$lt_save_CC
16437 LDCXX=$LD
16438 LD=$lt_save_LD
16439 GCC=$lt_save_GCC
16440 with_gnu_ldcxx=$with_gnu_ld
16441 with_gnu_ld=$lt_save_with_gnu_ld
16442 lt_cv_path_LDCXX=$lt_cv_path_LD
16443 lt_cv_path_LD=$lt_save_path_LD
16444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16446
16447         else
16448           tagname=""
16449         fi
16450         ;;
16451
16452       F77)
16453         if test -n "$F77" && test "X$F77" != "Xno"; then
16454
16455 ac_ext=f
16456 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16457 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16458 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16459
16460
16461 archive_cmds_need_lc_F77=no
16462 allow_undefined_flag_F77=
16463 always_export_symbols_F77=no
16464 archive_expsym_cmds_F77=
16465 export_dynamic_flag_spec_F77=
16466 hardcode_direct_F77=no
16467 hardcode_libdir_flag_spec_F77=
16468 hardcode_libdir_flag_spec_ld_F77=
16469 hardcode_libdir_separator_F77=
16470 hardcode_minus_L_F77=no
16471 hardcode_automatic_F77=no
16472 module_cmds_F77=
16473 module_expsym_cmds_F77=
16474 link_all_deplibs_F77=unknown
16475 old_archive_cmds_F77=$old_archive_cmds
16476 no_undefined_flag_F77=
16477 whole_archive_flag_spec_F77=
16478 enable_shared_with_static_runtimes_F77=no
16479
16480 # Source file extension for f77 test sources.
16481 ac_ext=f
16482
16483 # Object file extension for compiled f77 test sources.
16484 objext=o
16485 objext_F77=$objext
16486
16487 # Code to be used in simple compile tests
16488 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16489
16490 # Code to be used in simple link tests
16491 lt_simple_link_test_code="      program t\n      end\n"
16492
16493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16494
16495 # If no C compiler was specified, use CC.
16496 LTCC=${LTCC-"$CC"}
16497
16498 # Allow CC to be a program name with arguments.
16499 compiler=$CC
16500
16501
16502 # Allow CC to be a program name with arguments.
16503 lt_save_CC="$CC"
16504 CC=${F77-"f77"}
16505 compiler=$CC
16506 compiler_F77=$CC
16507 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16508
16509 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16510 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16511 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16512 echo "${ECHO_T}$can_build_shared" >&6; }
16513
16514 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16515 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16516 test "$can_build_shared" = "no" && enable_shared=no
16517
16518 # On AIX, shared libraries and static libraries use the same namespace, and
16519 # are all built from PIC.
16520 case "$host_os" in
16521 aix3*)
16522   test "$enable_shared" = yes && enable_static=no
16523   if test -n "$RANLIB"; then
16524     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16525     postinstall_cmds='$RANLIB $lib'
16526   fi
16527   ;;
16528 aix4*)
16529   test "$enable_shared" = yes && enable_static=no
16530   ;;
16531 esac
16532 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16533 echo "${ECHO_T}$enable_shared" >&6; }
16534
16535 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16536 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16537 # Make sure either enable_shared or enable_static is yes.
16538 test "$enable_shared" = yes || enable_static=yes
16539 { echo "$as_me:$LINENO: result: $enable_static" >&5
16540 echo "${ECHO_T}$enable_static" >&6; }
16541
16542 test "$ld_shlibs_F77" = no && can_build_shared=no
16543
16544 GCC_F77="$G77"
16545 LD_F77="$LD"
16546
16547 lt_prog_compiler_wl_F77=
16548 lt_prog_compiler_pic_F77=
16549 lt_prog_compiler_static_F77=
16550
16551 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16552 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16553
16554   if test "$GCC" = yes; then
16555     lt_prog_compiler_wl_F77='-Wl,'
16556     lt_prog_compiler_static_F77='-static'
16557
16558     case $host_os in
16559       aix*)
16560       # All AIX code is PIC.
16561       if test "$host_cpu" = ia64; then
16562         # AIX 5 now supports IA64 processor
16563         lt_prog_compiler_static_F77='-Bstatic'
16564       fi
16565       ;;
16566
16567     amigaos*)
16568       # FIXME: we need at least 68020 code to build shared libraries, but
16569       # adding the `-m68020' flag to GCC prevents building anything better,
16570       # like `-m68040'.
16571       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16572       ;;
16573
16574     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16575       # PIC is the default for these OSes.
16576       ;;
16577
16578     mingw* | pw32* | os2*)
16579       # This hack is so that the source file can tell whether it is being
16580       # built for inclusion in a dll (and should export symbols for example).
16581       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16582       ;;
16583
16584     darwin* | rhapsody*)
16585       # PIC is the default on this platform
16586       # Common symbols not allowed in MH_DYLIB files
16587       lt_prog_compiler_pic_F77='-fno-common'
16588       ;;
16589
16590     msdosdjgpp*)
16591       # Just because we use GCC doesn't mean we suddenly get shared libraries
16592       # on systems that don't support them.
16593       lt_prog_compiler_can_build_shared_F77=no
16594       enable_shared=no
16595       ;;
16596
16597     sysv4*MP*)
16598       if test -d /usr/nec; then
16599         lt_prog_compiler_pic_F77=-Kconform_pic
16600       fi
16601       ;;
16602
16603     hpux*)
16604       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16605       # not for PA HP-UX.
16606       case "$host_cpu" in
16607       hppa*64*|ia64*)
16608         # +Z the default
16609         ;;
16610       *)
16611         lt_prog_compiler_pic_F77='-fPIC'
16612         ;;
16613       esac
16614       ;;
16615
16616     *)
16617       lt_prog_compiler_pic_F77='-fPIC'
16618       ;;
16619     esac
16620   else
16621     # PORTME Check for flag to pass linker flags through the system compiler.
16622     case $host_os in
16623     aix*)
16624       lt_prog_compiler_wl_F77='-Wl,'
16625       if test "$host_cpu" = ia64; then
16626         # AIX 5 now supports IA64 processor
16627         lt_prog_compiler_static_F77='-Bstatic'
16628       else
16629         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16630       fi
16631       ;;
16632
16633     mingw* | pw32* | os2*)
16634       # This hack is so that the source file can tell whether it is being
16635       # built for inclusion in a dll (and should export symbols for example).
16636       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16637       ;;
16638
16639     hpux9* | hpux10* | hpux11*)
16640       lt_prog_compiler_wl_F77='-Wl,'
16641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16642       # not for PA HP-UX.
16643       case "$host_cpu" in
16644       hppa*64*|ia64*)
16645         # +Z the default
16646         ;;
16647       *)
16648         lt_prog_compiler_pic_F77='+Z'
16649         ;;
16650       esac
16651       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16652       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16653       ;;
16654
16655     irix5* | irix6* | nonstopux*)
16656       lt_prog_compiler_wl_F77='-Wl,'
16657       # PIC (with -KPIC) is the default.
16658       lt_prog_compiler_static_F77='-non_shared'
16659       ;;
16660
16661     newsos6)
16662       lt_prog_compiler_pic_F77='-KPIC'
16663       lt_prog_compiler_static_F77='-Bstatic'
16664       ;;
16665
16666     linux*)
16667       case $CC in
16668       icc* | ecc*)
16669         lt_prog_compiler_wl_F77='-Wl,'
16670         lt_prog_compiler_pic_F77='-KPIC'
16671         lt_prog_compiler_static_F77='-static'
16672         ;;
16673       ccc*)
16674         lt_prog_compiler_wl_F77='-Wl,'
16675         # All Alpha code is PIC.
16676         lt_prog_compiler_static_F77='-non_shared'
16677         ;;
16678       esac
16679       ;;
16680
16681     osf3* | osf4* | osf5*)
16682       lt_prog_compiler_wl_F77='-Wl,'
16683       # All OSF/1 code is PIC.
16684       lt_prog_compiler_static_F77='-non_shared'
16685       ;;
16686
16687     sco3.2v5*)
16688       lt_prog_compiler_pic_F77='-Kpic'
16689       lt_prog_compiler_static_F77='-dn'
16690       ;;
16691
16692     solaris*)
16693       lt_prog_compiler_wl_F77='-Wl,'
16694       lt_prog_compiler_pic_F77='-KPIC'
16695       lt_prog_compiler_static_F77='-Bstatic'
16696       ;;
16697
16698     sunos4*)
16699       lt_prog_compiler_wl_F77='-Qoption ld '
16700       lt_prog_compiler_pic_F77='-PIC'
16701       lt_prog_compiler_static_F77='-Bstatic'
16702       ;;
16703
16704     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16705       lt_prog_compiler_wl_F77='-Wl,'
16706       lt_prog_compiler_pic_F77='-KPIC'
16707       lt_prog_compiler_static_F77='-Bstatic'
16708       ;;
16709
16710     sysv4*MP*)
16711       if test -d /usr/nec ;then
16712         lt_prog_compiler_pic_F77='-Kconform_pic'
16713         lt_prog_compiler_static_F77='-Bstatic'
16714       fi
16715       ;;
16716
16717     uts4*)
16718       lt_prog_compiler_pic_F77='-pic'
16719       lt_prog_compiler_static_F77='-Bstatic'
16720       ;;
16721
16722     *)
16723       lt_prog_compiler_can_build_shared_F77=no
16724       ;;
16725     esac
16726   fi
16727
16728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16730
16731 #
16732 # Check to make sure the PIC flag actually works.
16733 #
16734 if test -n "$lt_prog_compiler_pic_F77"; then
16735
16736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16738 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   lt_prog_compiler_pic_works_F77=no
16742   ac_outfile=conftest.$ac_objext
16743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16745    # Insert the option either (1) after the last *FLAGS variable, or
16746    # (2) before a word containing "conftest.", or (3) at the end.
16747    # Note that $ac_compile itself does not contain backslashes and begins
16748    # with a dollar sign (not a hyphen), so the echo should work correctly.
16749    # The option is referenced via a variable to avoid confusing sed.
16750    lt_compile=`echo "$ac_compile" | $SED \
16751    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753    -e 's:$: $lt_compiler_flag:'`
16754    (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755    (eval "$lt_compile" 2>conftest.err)
16756    ac_status=$?
16757    cat conftest.err >&5
16758    echo "$as_me:16758: \$? = $ac_status" >&5
16759    if (exit $ac_status) && test -s "$ac_outfile"; then
16760      # The compiler can only warn and ignore the option if not recognized
16761      # So say no if there are warnings
16762      if test ! -s conftest.err; then
16763        lt_prog_compiler_pic_works_F77=yes
16764      fi
16765    fi
16766    $rm conftest*
16767
16768 fi
16769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
16771
16772 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16773     case $lt_prog_compiler_pic_F77 in
16774      "" | " "*) ;;
16775      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16776      esac
16777 else
16778     lt_prog_compiler_pic_F77=
16779      lt_prog_compiler_can_build_shared_F77=no
16780 fi
16781
16782 fi
16783 case "$host_os" in
16784   # For platforms which do not support PIC, -DPIC is meaningless:
16785   *djgpp*)
16786     lt_prog_compiler_pic_F77=
16787     ;;
16788   *)
16789     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16790     ;;
16791 esac
16792
16793 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16795 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   lt_cv_prog_compiler_c_o_F77=no
16799    $rm -r conftest 2>/dev/null
16800    mkdir conftest
16801    cd conftest
16802    mkdir out
16803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16804
16805    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16806    # that will create temporary files in the current directory regardless of
16807    # the output directory.  Thus, making CWD read-only will cause this test
16808    # to fail, enabling locking or at least warning the user not to do parallel
16809    # builds.
16810    chmod -w .
16811
16812    lt_compiler_flag="-o out/conftest2.$ac_objext"
16813    # Insert the option either (1) after the last *FLAGS variable, or
16814    # (2) before a word containing "conftest.", or (3) at the end.
16815    # Note that $ac_compile itself does not contain backslashes and begins
16816    # with a dollar sign (not a hyphen), so the echo should work correctly.
16817    lt_compile=`echo "$ac_compile" | $SED \
16818    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16820    -e 's:$: $lt_compiler_flag:'`
16821    (eval echo "\"\$as_me:16821: $lt_compile\"" >&5)
16822    (eval "$lt_compile" 2>out/conftest.err)
16823    ac_status=$?
16824    cat out/conftest.err >&5
16825    echo "$as_me:16825: \$? = $ac_status" >&5
16826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16827    then
16828      # The compiler can only warn and ignore the option if not recognized
16829      # So say no if there are warnings
16830      if test ! -s out/conftest.err; then
16831        lt_cv_prog_compiler_c_o_F77=yes
16832      fi
16833    fi
16834    chmod u+w .
16835    $rm conftest* out/*
16836    rmdir out
16837    cd ..
16838    rmdir conftest
16839    $rm conftest*
16840
16841 fi
16842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16844
16845
16846 hard_links="nottested"
16847 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16848   # do not overwrite the value of need_locks provided by the user
16849   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16851   hard_links=yes
16852   $rm conftest*
16853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16854   touch conftest.a
16855   ln conftest.a conftest.b 2>&5 || hard_links=no
16856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16857   { echo "$as_me:$LINENO: result: $hard_links" >&5
16858 echo "${ECHO_T}$hard_links" >&6; }
16859   if test "$hard_links" = no; then
16860     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16862     need_locks=warn
16863   fi
16864 else
16865   need_locks=no
16866 fi
16867
16868 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16870
16871   runpath_var=
16872   allow_undefined_flag_F77=
16873   enable_shared_with_static_runtimes_F77=no
16874   archive_cmds_F77=
16875   archive_expsym_cmds_F77=
16876   old_archive_From_new_cmds_F77=
16877   old_archive_from_expsyms_cmds_F77=
16878   export_dynamic_flag_spec_F77=
16879   whole_archive_flag_spec_F77=
16880   thread_safe_flag_spec_F77=
16881   hardcode_libdir_flag_spec_F77=
16882   hardcode_libdir_flag_spec_ld_F77=
16883   hardcode_libdir_separator_F77=
16884   hardcode_direct_F77=no
16885   hardcode_minus_L_F77=no
16886   hardcode_shlibpath_var_F77=unsupported
16887   link_all_deplibs_F77=unknown
16888   hardcode_automatic_F77=no
16889   module_cmds_F77=
16890   module_expsym_cmds_F77=
16891   always_export_symbols_F77=no
16892   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16893   # include_expsyms should be a list of space-separated symbols to be *always*
16894   # included in the symbol list
16895   include_expsyms_F77=
16896   # exclude_expsyms can be an extended regexp of symbols to exclude
16897   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16898   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16899   # as well as any symbol that contains `d'.
16900   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16901   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16902   # platforms (ab)use it in PIC code, but their linkers get confused if
16903   # the symbol is explicitly referenced.  Since portable code cannot
16904   # rely on this symbol name, it's probably fine to never include it in
16905   # preloaded symbol tables.
16906   extract_expsyms_cmds=
16907
16908   case $host_os in
16909   cygwin* | mingw* | pw32*)
16910     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16911     # When not using gcc, we currently assume that we are using
16912     # Microsoft Visual C++.
16913     if test "$GCC" != yes; then
16914       with_gnu_ld=no
16915     fi
16916     ;;
16917   openbsd*)
16918     with_gnu_ld=no
16919     ;;
16920   esac
16921
16922   ld_shlibs_F77=yes
16923   if test "$with_gnu_ld" = yes; then
16924     # If archive_cmds runs LD, not CC, wlarc should be empty
16925     wlarc='${wl}'
16926
16927     # See if GNU ld supports shared libraries.
16928     case $host_os in
16929     aix3* | aix4* | aix5*)
16930       # On AIX/PPC, the GNU linker is very broken
16931       if test "$host_cpu" != ia64; then
16932         ld_shlibs_F77=no
16933         cat <<EOF 1>&2
16934
16935 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16936 *** to be unable to reliably create shared libraries on AIX.
16937 *** Therefore, libtool is disabling shared libraries support.  If you
16938 *** really care for shared libraries, you may want to modify your PATH
16939 *** so that a non-GNU linker is found, and then restart.
16940
16941 EOF
16942       fi
16943       ;;
16944
16945     amigaos*)
16946       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)'
16947       hardcode_libdir_flag_spec_F77='-L$libdir'
16948       hardcode_minus_L_F77=yes
16949
16950       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16951       # that the semantics of dynamic libraries on AmigaOS, at least up
16952       # to version 4, is to share data among multiple programs linked
16953       # with the same dynamic library.  Since this doesn't match the
16954       # behavior of shared libraries on other platforms, we can't use
16955       # them.
16956       ld_shlibs_F77=no
16957       ;;
16958
16959     beos*)
16960       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16961         allow_undefined_flag_F77=unsupported
16962         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16963         # support --undefined.  This deserves some investigation.  FIXME
16964         archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16965       else
16966         ld_shlibs_F77=no
16967       fi
16968       ;;
16969
16970     cygwin* | mingw* | pw32*)
16971       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16972       # as there is no search path for DLLs.
16973       hardcode_libdir_flag_spec_F77='-L$libdir'
16974       allow_undefined_flag_F77=no
16975       always_export_symbols_F77=no
16976       enable_shared_with_static_runtimes_F77=yes
16977       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16978
16979       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16980         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16981         # If the export-symbols file already is a .def file (1st line
16982         # is EXPORTS), use it as is; otherwise, prepend...
16983         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16984           cp $export_symbols $output_objdir/$soname.def;
16985         else
16986           echo EXPORTS > $output_objdir/$soname.def;
16987           cat $export_symbols >> $output_objdir/$soname.def;
16988         fi~
16989         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16990       else
16991         ld_shlibs=no
16992       fi
16993       ;;
16994
16995     netbsd*)
16996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16997         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16998         wlarc=
16999       else
17000         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17001         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002       fi
17003       ;;
17004
17005     solaris* | sysv5*)
17006       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17007         ld_shlibs_F77=no
17008         cat <<EOF 1>&2
17009
17010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17011 *** create shared libraries on Solaris systems.  Therefore, libtool
17012 *** is disabling shared libraries support.  We urge you to upgrade GNU
17013 *** binutils to release 2.9.1 or newer.  Another option is to modify
17014 *** your PATH or compiler configuration so that the native linker is
17015 *** used, and then restart.
17016
17017 EOF
17018       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17020         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17021       else
17022         ld_shlibs_F77=no
17023       fi
17024       ;;
17025
17026     sunos4*)
17027       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17028       wlarc=
17029       hardcode_direct_F77=yes
17030       hardcode_shlibpath_var_F77=no
17031       ;;
17032
17033     *)
17034       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17035         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17036         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17037       else
17038         ld_shlibs_F77=no
17039       fi
17040       ;;
17041     esac
17042
17043     if test "$ld_shlibs_F77" = yes; then
17044       runpath_var=LD_RUN_PATH
17045       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17046       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17047       # ancient GNU ld didn't support --whole-archive et. al.
17048       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17049         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17050       else
17051         whole_archive_flag_spec_F77=
17052       fi
17053     fi
17054   else
17055     # PORTME fill in a description of your system's linker (not GNU ld)
17056     case $host_os in
17057     aix3*)
17058       allow_undefined_flag_F77=unsupported
17059       always_export_symbols_F77=yes
17060       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'
17061       # Note: this linker hardcodes the directories in LIBPATH if there
17062       # are no directories specified by -L.
17063       hardcode_minus_L_F77=yes
17064       if test "$GCC" = yes && test -z "$link_static_flag"; then
17065         # Neither direct hardcoding nor static linking is supported with a
17066         # broken collect2.
17067         hardcode_direct_F77=unsupported
17068       fi
17069       ;;
17070
17071     aix4* | aix5*)
17072       if test "$host_cpu" = ia64; then
17073         # On IA64, the linker does run time linking by default, so we don't
17074         # have to do anything special.
17075         aix_use_runtimelinking=no
17076         exp_sym_flag='-Bexport'
17077         no_entry_flag=""
17078       else
17079         # If we're using GNU nm, then we don't want the "-C" option.
17080         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17081         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17082           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'
17083         else
17084           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'
17085         fi
17086
17087         # KDE requires run time linking.  Make it the default.
17088         aix_use_runtimelinking=yes
17089         exp_sym_flag='-bexport'
17090         no_entry_flag='-bnoentry'
17091       fi
17092
17093       # When large executables or shared objects are built, AIX ld can
17094       # have problems creating the table of contents.  If linking a library
17095       # or program results in "error TOC overflow" add -mminimal-toc to
17096       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17097       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17098
17099       archive_cmds_F77=''
17100       hardcode_direct_F77=yes
17101       hardcode_libdir_separator_F77=':'
17102       link_all_deplibs_F77=yes
17103
17104       if test "$GCC" = yes; then
17105         case $host_os in aix4.012|aix4.012.*)
17106         # We only want to do this on AIX 4.2 and lower, the check
17107         # below for broken collect2 doesn't work under 4.3+
17108           collect2name=`${CC} -print-prog-name=collect2`
17109           if test -f "$collect2name" && \
17110            strings "$collect2name" | grep resolve_lib_name >/dev/null
17111           then
17112           # We have reworked collect2
17113           hardcode_direct_F77=yes
17114           else
17115           # We have old collect2
17116           hardcode_direct_F77=unsupported
17117           # It fails to find uninstalled libraries when the uninstalled
17118           # path is not listed in the libpath.  Setting hardcode_minus_L
17119           # to unsupported forces relinking
17120           hardcode_minus_L_F77=yes
17121           hardcode_libdir_flag_spec_F77='-L$libdir'
17122           hardcode_libdir_separator_F77=
17123           fi
17124         esac
17125         shared_flag='-shared'
17126       else
17127         # not using gcc
17128         if test "$host_cpu" = ia64; then
17129         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17130         # chokes on -Wl,-G. The following line is correct:
17131           shared_flag='-G'
17132         else
17133         if test "$aix_use_runtimelinking" = yes; then
17134             shared_flag='-qmkshrobj ${wl}-G'
17135           else
17136             shared_flag='-qmkshrobj'
17137         fi
17138         fi
17139       fi
17140
17141       # Let the compiler handle the export list.
17142       always_export_symbols_F77=no
17143       if test "$aix_use_runtimelinking" = yes; then
17144         # Warning - without using the other runtime loading flags (-brtl),
17145         # -berok will link without error, but may produce a broken library.
17146         allow_undefined_flag_F77='-berok'
17147        # Determine the default libpath from the value encoded in an empty executable.
17148         cat >conftest.$ac_ext <<_ACEOF
17149       program main
17150
17151       end
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_link") 2>conftest.er1
17161   ac_status=$?
17162   grep -v '^ *+' conftest.er1 >conftest.err
17163   rm -f conftest.er1
17164   cat conftest.err >&5
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); } && {
17167          test -z "$ac_f77_werror_flag" ||
17168          test ! -s conftest.err
17169        } && test -s conftest$ac_exeext &&
17170        $as_test_x conftest$ac_exeext; then
17171
17172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17173 }'`
17174 # Check for a 64-bit object if we didn't find anything.
17175 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; }
17176 }'`; fi
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185       conftest$ac_exeext conftest.$ac_ext
17186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17187
17188         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17189         archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
17190         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17191        else
17192         if test "$host_cpu" = ia64; then
17193           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17194           allow_undefined_flag_F77="-z nodefs"
17195           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17196         else
17197          # Determine the default libpath from the value encoded in an empty executable.
17198          cat >conftest.$ac_ext <<_ACEOF
17199       program main
17200
17201       end
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_link") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } && {
17217          test -z "$ac_f77_werror_flag" ||
17218          test ! -s conftest.err
17219        } && test -s conftest$ac_exeext &&
17220        $as_test_x conftest$ac_exeext; then
17221
17222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17223 }'`
17224 # Check for a 64-bit object if we didn't find anything.
17225 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; }
17226 }'`; fi
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231
17232 fi
17233
17234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17235       conftest$ac_exeext conftest.$ac_ext
17236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17237
17238          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17239           # Warning - without using the other run time loading flags,
17240           # -berok will link without error, but may produce a broken library.
17241           no_undefined_flag_F77=' ${wl}-bernotok'
17242           allow_undefined_flag_F77=' ${wl}-berok'
17243           # -bexpall does not export symbols beginning with underscore (_)
17244           always_export_symbols_F77=yes
17245           # Exported symbols can be pulled into shared objects from archives
17246           whole_archive_flag_spec_F77=' '
17247           archive_cmds_need_lc_F77=yes
17248           # This is similar to how AIX traditionally builds it's shared libraries.
17249           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17250         fi
17251       fi
17252       ;;
17253
17254     amigaos*)
17255       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)'
17256       hardcode_libdir_flag_spec_F77='-L$libdir'
17257       hardcode_minus_L_F77=yes
17258       # see comment about different semantics on the GNU ld section
17259       ld_shlibs_F77=no
17260       ;;
17261
17262     bsdi4*)
17263       export_dynamic_flag_spec_F77=-rdynamic
17264       ;;
17265
17266     cygwin* | mingw* | pw32*)
17267       # When not using gcc, we currently assume that we are using
17268       # Microsoft Visual C++.
17269       # hardcode_libdir_flag_spec is actually meaningless, as there is
17270       # no search path for DLLs.
17271       hardcode_libdir_flag_spec_F77=' '
17272       allow_undefined_flag_F77=no
17273       # Tell ltmain to make .lib files, not .a files.
17274       libext=lib
17275       # Tell ltmain to make .dll files, not .so files.
17276       shrext=".dll"
17277       # FIXME: Setting linknames here is a bad hack.
17278       archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17279       # The linker will automatically build a .lib file if we build a DLL.
17280       old_archive_From_new_cmds_F77='true'
17281       # FIXME: Should let the user specify the lib program.
17282       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17283       fix_srcfile_path='`cygpath -w "$srcfile"`'
17284       enable_shared_with_static_runtimes_F77=yes
17285       ;;
17286
17287     darwin* | rhapsody*)
17288     if test "$GXX" = yes ; then
17289       archive_cmds_need_lc_F77=no
17290       case "$host_os" in
17291       rhapsody* | darwin1.[012])
17292         allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17293         ;;
17294       *) # Darwin 1.3 on
17295         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17296           allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17297         else
17298           case ${MACOSX_DEPLOYMENT_TARGET} in
17299             10.012)
17300               allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17301               ;;
17302             10.*)
17303               allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
17304               ;;
17305           esac
17306         fi
17307         ;;
17308       esac
17309         lt_int_apple_cc_single_mod=no
17310         output_verbose_link_cmd='echo'
17311         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17312           lt_int_apple_cc_single_mod=yes
17313         fi
17314         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17315           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17316         else
17317         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
17318       fi
17319       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17320       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17321         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17322           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17323         else
17324           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17325         fi
17326           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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17327       hardcode_direct_F77=no
17328       hardcode_automatic_F77=yes
17329       hardcode_shlibpath_var_F77=unsupported
17330       whole_archive_flag_spec_F77='-all_load $convenience'
17331       link_all_deplibs_F77=yes
17332     else
17333       ld_shlibs_F77=no
17334     fi
17335       ;;
17336
17337     dgux*)
17338       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339       hardcode_libdir_flag_spec_F77='-L$libdir'
17340       hardcode_shlibpath_var_F77=no
17341       ;;
17342
17343     freebsd1*)
17344       ld_shlibs_F77=no
17345       ;;
17346
17347     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17348     # support.  Future versions do this automatically, but an explicit c++rt0.o
17349     # does not break anything, and helps significantly (at the cost of a little
17350     # extra space).
17351     freebsd2.2*)
17352       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17353       hardcode_libdir_flag_spec_F77='-R$libdir'
17354       hardcode_direct_F77=yes
17355       hardcode_shlibpath_var_F77=no
17356       ;;
17357
17358     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17359     freebsd2*)
17360       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17361       hardcode_direct_F77=yes
17362       hardcode_minus_L_F77=yes
17363       hardcode_shlibpath_var_F77=no
17364       ;;
17365
17366     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17367     freebsd* | kfreebsd*-gnu)
17368       archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
17369       hardcode_libdir_flag_spec_F77='-R$libdir'
17370       hardcode_direct_F77=yes
17371       hardcode_shlibpath_var_F77=no
17372       ;;
17373
17374     hpux9*)
17375       if test "$GCC" = yes; then
17376         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17377       else
17378         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'
17379       fi
17380       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17381       hardcode_libdir_separator_F77=:
17382       hardcode_direct_F77=yes
17383
17384       # hardcode_minus_L: Not really in the search PATH,
17385       # but as the default location of the library.
17386       hardcode_minus_L_F77=yes
17387       export_dynamic_flag_spec_F77='${wl}-E'
17388       ;;
17389
17390     hpux10* | hpux11*)
17391       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17392         case "$host_cpu" in
17393         hppa*64*|ia64*)
17394           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17395           ;;
17396         *)
17397           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17398           ;;
17399         esac
17400       else
17401         case "$host_cpu" in
17402         hppa*64*|ia64*)
17403           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17404           ;;
17405         *)
17406           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17407           ;;
17408         esac
17409       fi
17410       if test "$with_gnu_ld" = no; then
17411         case "$host_cpu" in
17412         hppa*64*)
17413           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17414           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17415           hardcode_libdir_separator_F77=:
17416           hardcode_direct_F77=no
17417           hardcode_shlibpath_var_F77=no
17418           ;;
17419         ia64*)
17420           hardcode_libdir_flag_spec_F77='-L$libdir'
17421           hardcode_direct_F77=no
17422           hardcode_shlibpath_var_F77=no
17423
17424           # hardcode_minus_L: Not really in the search PATH,
17425           # but as the default location of the library.
17426           hardcode_minus_L_F77=yes
17427           ;;
17428         *)
17429           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17430           hardcode_libdir_separator_F77=:
17431           hardcode_direct_F77=yes
17432           export_dynamic_flag_spec_F77='${wl}-E'
17433
17434           # hardcode_minus_L: Not really in the search PATH,
17435           # but as the default location of the library.
17436           hardcode_minus_L_F77=yes
17437           ;;
17438         esac
17439       fi
17440       ;;
17441
17442     irix5* | irix6* | nonstopux*)
17443       if test "$GCC" = yes; then
17444         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17445       else
17446         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'
17447         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17448       fi
17449       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17450       hardcode_libdir_separator_F77=:
17451       link_all_deplibs_F77=yes
17452       ;;
17453
17454     netbsd*)
17455       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17456         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17457       else
17458         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17459       fi
17460       hardcode_libdir_flag_spec_F77='-R$libdir'
17461       hardcode_direct_F77=yes
17462       hardcode_shlibpath_var_F77=no
17463       ;;
17464
17465     newsos6)
17466       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17467       hardcode_direct_F77=yes
17468       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17469       hardcode_libdir_separator_F77=:
17470       hardcode_shlibpath_var_F77=no
17471       ;;
17472
17473     openbsd*)
17474       hardcode_direct_F77=yes
17475       hardcode_shlibpath_var_F77=no
17476       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477         archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17478         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17479         export_dynamic_flag_spec_F77='${wl}-E'
17480       else
17481        case $host_os in
17482          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17483            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17484            hardcode_libdir_flag_spec_F77='-R$libdir'
17485            ;;
17486          *)
17487            archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17488            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17489            ;;
17490        esac
17491       fi
17492       ;;
17493
17494     os2*)
17495       hardcode_libdir_flag_spec_F77='-L$libdir'
17496       hardcode_minus_L_F77=yes
17497       allow_undefined_flag_F77=unsupported
17498       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
17499       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17500       ;;
17501
17502     osf3*)
17503       if test "$GCC" = yes; then
17504         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17505         archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17506       else
17507         allow_undefined_flag_F77=' -expect_unresolved \*'
17508         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'
17509       fi
17510       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17511       hardcode_libdir_separator_F77=:
17512       ;;
17513
17514     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17515       if test "$GCC" = yes; then
17516         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17517         archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
17518         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17519       else
17520         allow_undefined_flag_F77=' -expect_unresolved \*'
17521         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'
17522         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~
17523         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17524
17525         # Both c and cxx compiler support -rpath directly
17526         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17527       fi
17528       hardcode_libdir_separator_F77=:
17529       ;;
17530
17531     sco3.2v5*)
17532       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533       hardcode_shlibpath_var_F77=no
17534       export_dynamic_flag_spec_F77='${wl}-Bexport'
17535       runpath_var=LD_RUN_PATH
17536       hardcode_runpath_var=yes
17537       ;;
17538
17539     solaris*)
17540       no_undefined_flag_F77=' -z text'
17541       if test "$GCC" = yes; then
17542         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17543         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17544           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
17545       else
17546         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17547         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17548         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17549       fi
17550       hardcode_libdir_flag_spec_F77='-R$libdir'
17551       hardcode_shlibpath_var_F77=no
17552       case $host_os in
17553       solaris2.[0-5] | solaris2.[0-5].*) ;;
17554       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17555         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17556       esac
17557       link_all_deplibs_F77=yes
17558       ;;
17559
17560     sunos4*)
17561       if test "x$host_vendor" = xsequent; then
17562         # Use $CC to link under sequent, because it throws in some extra .o
17563         # files that make .init and .fini sections work.
17564         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
17565       else
17566         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17567       fi
17568       hardcode_libdir_flag_spec_F77='-L$libdir'
17569       hardcode_direct_F77=yes
17570       hardcode_minus_L_F77=yes
17571       hardcode_shlibpath_var_F77=no
17572       ;;
17573
17574     sysv4)
17575       case $host_vendor in
17576         sni)
17577           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578           hardcode_direct_F77=yes # is this really true???
17579         ;;
17580         siemens)
17581           ## LD is ld it makes a PLAMLIB
17582           ## CC just makes a GrossModule.
17583           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17584           reload_cmds_F77='$CC -r -o $output$reload_objs'
17585           hardcode_direct_F77=no
17586         ;;
17587         motorola)
17588           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17590         ;;
17591       esac
17592       runpath_var='LD_RUN_PATH'
17593       hardcode_shlibpath_var_F77=no
17594       ;;
17595
17596     sysv4.3*)
17597       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598       hardcode_shlibpath_var_F77=no
17599       export_dynamic_flag_spec_F77='-Bexport'
17600       ;;
17601
17602     sysv4*MP*)
17603       if test -d /usr/nec; then
17604         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605         hardcode_shlibpath_var_F77=no
17606         runpath_var=LD_RUN_PATH
17607         hardcode_runpath_var=yes
17608         ld_shlibs_F77=yes
17609       fi
17610       ;;
17611
17612     sysv4.2uw2*)
17613       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17614       hardcode_direct_F77=yes
17615       hardcode_minus_L_F77=no
17616       hardcode_shlibpath_var_F77=no
17617       hardcode_runpath_var=yes
17618       runpath_var=LD_RUN_PATH
17619       ;;
17620
17621    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17622       no_undefined_flag_F77='${wl}-z ${wl}text'
17623       if test "$GCC" = yes; then
17624         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17625       else
17626         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17627       fi
17628       runpath_var='LD_RUN_PATH'
17629       hardcode_shlibpath_var_F77=no
17630       ;;
17631
17632     sysv5*)
17633       no_undefined_flag_F77=' -z text'
17634       # $CC -shared without GNU ld will not create a library from C++
17635       # object files and a static libstdc++, better avoid it by now
17636       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17638                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17639       hardcode_libdir_flag_spec_F77=
17640       hardcode_shlibpath_var_F77=no
17641       runpath_var='LD_RUN_PATH'
17642       ;;
17643
17644     uts4*)
17645       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646       hardcode_libdir_flag_spec_F77='-L$libdir'
17647       hardcode_shlibpath_var_F77=no
17648       ;;
17649
17650     *)
17651       ld_shlibs_F77=no
17652       ;;
17653     esac
17654   fi
17655
17656 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17657 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17658 test "$ld_shlibs_F77" = no && can_build_shared=no
17659
17660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17661 if test "$GCC" = yes; then
17662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17663 fi
17664
17665 #
17666 # Do we need to explicitly link libc?
17667 #
17668 case "x$archive_cmds_need_lc_F77" in
17669 x|xyes)
17670   # Assume -lc should be added
17671   archive_cmds_need_lc_F77=yes
17672
17673   if test "$enable_shared" = yes && test "$GCC" = yes; then
17674     case $archive_cmds_F77 in
17675     *'~'*)
17676       # FIXME: we may have to deal with multi-command sequences.
17677       ;;
17678     '$CC '*)
17679       # Test whether the compiler implicitly links with -lc since on some
17680       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17681       # to ld, don't add -lc before -lgcc.
17682       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17683 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17684       $rm conftest*
17685       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17686
17687       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688   (eval $ac_compile) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } 2>conftest.err; then
17692         soname=conftest
17693         lib=conftest
17694         libobjs=conftest.$ac_objext
17695         deplibs=
17696         wl=$lt_prog_compiler_wl_F77
17697         compiler_flags=-v
17698         linker_flags=-v
17699         verstring=
17700         output_objdir=.
17701         libname=conftest
17702         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17703         allow_undefined_flag_F77=
17704         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17705   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }
17709         then
17710           archive_cmds_need_lc_F77=no
17711         else
17712           archive_cmds_need_lc_F77=yes
17713         fi
17714         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17715       else
17716         cat conftest.err 1>&5
17717       fi
17718       $rm conftest*
17719       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17720 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17721       ;;
17722     esac
17723   fi
17724   ;;
17725 esac
17726
17727 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17728 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17729 library_names_spec=
17730 libname_spec='lib$name'
17731 soname_spec=
17732 shrext=".so"
17733 postinstall_cmds=
17734 postuninstall_cmds=
17735 finish_cmds=
17736 finish_eval=
17737 shlibpath_var=
17738 shlibpath_overrides_runpath=unknown
17739 version_type=none
17740 dynamic_linker="$host_os ld.so"
17741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17743 need_lib_prefix=unknown
17744 hardcode_into_libs=no
17745
17746 # when you set need_version to no, make sure it does not cause -set_version
17747 # flags to be left without arguments
17748 need_version=unknown
17749
17750 case $host_os in
17751 aix3*)
17752   version_type=linux
17753   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17754   shlibpath_var=LIBPATH
17755
17756   # AIX 3 has no versioning support, so we append a major version to the name.
17757   soname_spec='${libname}${release}${shared_ext}$major'
17758   ;;
17759
17760 aix4* | aix5*)
17761   version_type=linux
17762   need_lib_prefix=no
17763   need_version=no
17764   hardcode_into_libs=yes
17765   if test "$host_cpu" = ia64; then
17766     # AIX 5 supports IA64
17767     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17768     shlibpath_var=LD_LIBRARY_PATH
17769   else
17770     # With GCC up to 2.95.x, collect2 would create an import file
17771     # for dependence libraries.  The import file would start with
17772     # the line `#! .'.  This would cause the generated library to
17773     # depend on `.', always an invalid library.  This was fixed in
17774     # development snapshots of GCC prior to 3.0.
17775     case $host_os in
17776       aix4 | aix4.[01] | aix4.[01].*)
17777       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17778            echo ' yes '
17779            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17780         :
17781       else
17782         can_build_shared=no
17783       fi
17784       ;;
17785     esac
17786     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17787     # soname into executable. Probably we can add versioning support to
17788     # collect2, so additional links can be useful in future.
17789     if test "$aix_use_runtimelinking" = yes; then
17790       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17791       # instead of lib<name>.a to let people know that these are not
17792       # typical AIX shared libraries.
17793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794     else
17795       # We preserve .a as extension for shared libraries through AIX4.2
17796       # and later when we are not doing run time linking.
17797       library_names_spec='${libname}${release}.a $libname.a'
17798       soname_spec='${libname}${release}${shared_ext}$major'
17799     fi
17800     shlibpath_var=LIBPATH
17801   fi
17802   ;;
17803
17804 amigaos*)
17805   library_names_spec='$libname.ixlibrary $libname.a'
17806   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17807   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'
17808   ;;
17809
17810 beos*)
17811   library_names_spec='${libname}${shared_ext}'
17812   dynamic_linker="$host_os ld.so"
17813   shlibpath_var=LIBRARY_PATH
17814   ;;
17815
17816 bsdi4*)
17817   version_type=linux
17818   need_version=no
17819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820   soname_spec='${libname}${release}${shared_ext}$major'
17821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17822   shlibpath_var=LD_LIBRARY_PATH
17823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17825   # the default ld.so.conf also contains /usr/contrib/lib and
17826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17827   # libtool to hard-code these into programs
17828   ;;
17829
17830 cygwin* | mingw* | pw32*)
17831   version_type=windows
17832   shrext=".dll"
17833   need_version=no
17834   need_lib_prefix=no
17835
17836   case $GCC,$host_os in
17837   yes,cygwin* | yes,mingw* | yes,pw32*)
17838     library_names_spec='$libname.dll.a'
17839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17840     postinstall_cmds='base_file=`basename \${file}`~
17841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17842       dldir=$destdir/`dirname \$dlpath`~
17843       test -d \$dldir || mkdir -p \$dldir~
17844       $install_prog $dir/$dlname \$dldir/$dlname'
17845     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17846       dlpath=$dir/\$dldll~
17847        $rm \$dlpath'
17848     shlibpath_overrides_runpath=yes
17849
17850     case $host_os in
17851     cygwin*)
17852       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17853       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17854       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17855       ;;
17856     mingw*)
17857       # MinGW DLLs use traditional 'lib' prefix
17858       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17859       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17860       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17861         # It is most probably a Windows format PATH printed by
17862         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17863         # path with ; separators, and with drive letters. We can handle the
17864         # drive letters (cygwin fileutils understands them), so leave them,
17865         # especially as we might pass files found there to a mingw objdump,
17866         # which wouldn't understand a cygwinified path. Ahh.
17867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17868       else
17869         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17870       fi
17871       ;;
17872     pw32*)
17873       # pw32 DLLs use 'pw' prefix rather than 'lib'
17874       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17875       ;;
17876     esac
17877     ;;
17878
17879   *)
17880     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17881     ;;
17882   esac
17883   dynamic_linker='Win32 ld.exe'
17884   # FIXME: first we should search . and the directory the executable is in
17885   shlibpath_var=PATH
17886   ;;
17887
17888 darwin* | rhapsody*)
17889   dynamic_linker="$host_os dyld"
17890   version_type=darwin
17891   need_lib_prefix=no
17892   need_version=no
17893   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17894   soname_spec='${libname}${release}${major}$shared_ext'
17895   shlibpath_overrides_runpath=yes
17896   shlibpath_var=DYLD_LIBRARY_PATH
17897   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17898   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17899   if test "$GCC" = yes; then
17900     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"`
17901   else
17902     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17903   fi
17904   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17905   ;;
17906
17907 dgux*)
17908   version_type=linux
17909   need_lib_prefix=no
17910   need_version=no
17911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17912   soname_spec='${libname}${release}${shared_ext}$major'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   ;;
17915
17916 freebsd1*)
17917   dynamic_linker=no
17918   ;;
17919
17920 kfreebsd*-gnu*)
17921   version_type=linux
17922   need_lib_prefix=no
17923   need_version=no
17924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17925   soname_spec='${libname}${release}${shared_ext}$major'
17926   shlibpath_var=LD_LIBRARY_PATH
17927   shlibpath_overrides_runpath=no
17928   hardcode_into_libs=yes
17929   dynamic_linker='GNU ld.so'
17930   ;;
17931
17932 freebsd*)
17933   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17934   version_type=freebsd-$objformat
17935   case $version_type in
17936     freebsd-elf*)
17937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17938       need_version=no
17939       need_lib_prefix=no
17940       ;;
17941     freebsd-*)
17942       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17943       need_version=yes
17944       ;;
17945   esac
17946   shlibpath_var=LD_LIBRARY_PATH
17947   case $host_os in
17948   freebsd2*)
17949     shlibpath_overrides_runpath=yes
17950     ;;
17951   freebsd3.01* | freebsdelf3.01*)
17952     shlibpath_overrides_runpath=yes
17953     hardcode_into_libs=yes
17954     ;;
17955   *) # from 3.2 on
17956     shlibpath_overrides_runpath=no
17957     hardcode_into_libs=yes
17958     ;;
17959   esac
17960   ;;
17961
17962 gnu*)
17963   version_type=linux
17964   need_lib_prefix=no
17965   need_version=no
17966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17967   soname_spec='${libname}${release}${shared_ext}$major'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   hardcode_into_libs=yes
17970   ;;
17971
17972 hpux9* | hpux10* | hpux11*)
17973   # Give a soname corresponding to the major version so that dld.sl refuses to
17974   # link against other versions.
17975   version_type=sunos
17976   need_lib_prefix=no
17977   need_version=no
17978   case "$host_cpu" in
17979   ia64*)
17980     shrext='.so'
17981     hardcode_into_libs=yes
17982     dynamic_linker="$host_os dld.so"
17983     shlibpath_var=LD_LIBRARY_PATH
17984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17986     soname_spec='${libname}${release}${shared_ext}$major'
17987     if test "X$HPUX_IA64_MODE" = X32; then
17988       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17989     else
17990       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17991     fi
17992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17993     ;;
17994    hppa*64*)
17995      shrext='.sl'
17996      hardcode_into_libs=yes
17997      dynamic_linker="$host_os dld.sl"
17998      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17999      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001      soname_spec='${libname}${release}${shared_ext}$major'
18002      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18003      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18004      ;;
18005    *)
18006     shrext='.sl'
18007     dynamic_linker="$host_os dld.sl"
18008     shlibpath_var=SHLIB_PATH
18009     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011     soname_spec='${libname}${release}${shared_ext}$major'
18012     ;;
18013   esac
18014   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18015   postinstall_cmds='chmod 555 $lib'
18016   ;;
18017
18018 irix5* | irix6* | nonstopux*)
18019   case $host_os in
18020     nonstopux*) version_type=nonstopux ;;
18021     *)
18022         if test "$lt_cv_prog_gnu_ld" = yes; then
18023                 version_type=linux
18024         else
18025                 version_type=irix
18026         fi ;;
18027   esac
18028   need_lib_prefix=no
18029   need_version=no
18030   soname_spec='${libname}${release}${shared_ext}$major'
18031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18032   case $host_os in
18033   irix5* | nonstopux*)
18034     libsuff= shlibsuff=
18035     ;;
18036   *)
18037     case $LD in # libtool.m4 will add one of these switches to LD
18038     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18039       libsuff= shlibsuff= libmagic=32-bit;;
18040     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18041       libsuff=32 shlibsuff=N32 libmagic=N32;;
18042     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18043       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18044     *) libsuff= shlibsuff= libmagic=never-match;;
18045     esac
18046     ;;
18047   esac
18048   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18049   shlibpath_overrides_runpath=no
18050   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18051   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18052   hardcode_into_libs=yes
18053   ;;
18054
18055 # No shared lib support for Linux oldld, aout, or coff.
18056 linux*oldld* | linux*aout* | linux*coff*)
18057   dynamic_linker=no
18058   ;;
18059
18060 # This must be Linux ELF.
18061 linux*)
18062   version_type=linux
18063   need_lib_prefix=no
18064   need_version=no
18065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18066   soname_spec='${libname}${release}${shared_ext}$major'
18067   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18068   libsuff=
18069   if test "x$LINUX_64_MODE" = x64; then
18070     # Some platforms are per default 64-bit, so there's no /lib64
18071     if test -d /lib64 -a ! -h /lib64; then
18072       libsuff=64
18073     fi
18074   fi
18075   shlibpath_var=LD_LIBRARY_PATH
18076   shlibpath_overrides_runpath=no
18077   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18078   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18079   # This implies no fast_install, which is unacceptable.
18080   # Some rework will be needed to allow for fast_install
18081   # before this can be enabled.
18082   hardcode_into_libs=yes
18083
18084   # We used to test for /lib/ld.so.1 and disable shared libraries on
18085   # powerpc, because MkLinux only supported shared libraries with the
18086   # GNU dynamic linker.  Since this was broken with cross compilers,
18087   # most powerpc-linux boxes support dynamic linking these days and
18088   # people can always --disable-shared, the test was removed, and we
18089   # assume the GNU/Linux dynamic linker is in use.
18090   dynamic_linker='GNU/Linux ld.so'
18091   ;;
18092
18093 netbsd*)
18094   version_type=sunos
18095   need_lib_prefix=no
18096   need_version=no
18097   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18099     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18100     dynamic_linker='NetBSD (a.out) ld.so'
18101   else
18102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18103     soname_spec='${libname}${release}${shared_ext}$major'
18104     dynamic_linker='NetBSD ld.elf_so'
18105   fi
18106   shlibpath_var=LD_LIBRARY_PATH
18107   shlibpath_overrides_runpath=yes
18108   hardcode_into_libs=yes
18109   ;;
18110
18111 newsos6)
18112   version_type=linux
18113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18114   shlibpath_var=LD_LIBRARY_PATH
18115   shlibpath_overrides_runpath=yes
18116   ;;
18117
18118 nto-qnx*)
18119   version_type=linux
18120   need_lib_prefix=no
18121   need_version=no
18122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123   soname_spec='${libname}${release}${shared_ext}$major'
18124   shlibpath_var=LD_LIBRARY_PATH
18125   shlibpath_overrides_runpath=yes
18126   ;;
18127
18128 openbsd*)
18129   version_type=sunos
18130   need_lib_prefix=no
18131   need_version=no
18132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18134   shlibpath_var=LD_LIBRARY_PATH
18135   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18136     case $host_os in
18137       openbsd2.[89] | openbsd2.[89].*)
18138         shlibpath_overrides_runpath=no
18139         ;;
18140       *)
18141         shlibpath_overrides_runpath=yes
18142         ;;
18143       esac
18144   else
18145     shlibpath_overrides_runpath=yes
18146   fi
18147   ;;
18148
18149 os2*)
18150   libname_spec='$name'
18151   shrext=".dll"
18152   need_lib_prefix=no
18153   library_names_spec='$libname${shared_ext} $libname.a'
18154   dynamic_linker='OS/2 ld.exe'
18155   shlibpath_var=LIBPATH
18156   ;;
18157
18158 osf3* | osf4* | osf5*)
18159   version_type=osf
18160   need_lib_prefix=no
18161   need_version=no
18162   soname_spec='${libname}${release}${shared_ext}$major'
18163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164   shlibpath_var=LD_LIBRARY_PATH
18165   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18166   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18167   ;;
18168
18169 sco3.2v5*)
18170   version_type=osf
18171   soname_spec='${libname}${release}${shared_ext}$major'
18172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173   shlibpath_var=LD_LIBRARY_PATH
18174   ;;
18175
18176 solaris*)
18177   version_type=linux
18178   need_lib_prefix=no
18179   need_version=no
18180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181   soname_spec='${libname}${release}${shared_ext}$major'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   shlibpath_overrides_runpath=yes
18184   hardcode_into_libs=yes
18185   # ldd complains unless libraries are executable
18186   postinstall_cmds='chmod +x $lib'
18187   ;;
18188
18189 sunos4*)
18190   version_type=sunos
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18192   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=yes
18195   if test "$with_gnu_ld" = yes; then
18196     need_lib_prefix=no
18197   fi
18198   need_version=yes
18199   ;;
18200
18201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18202   version_type=linux
18203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204   soname_spec='${libname}${release}${shared_ext}$major'
18205   shlibpath_var=LD_LIBRARY_PATH
18206   case $host_vendor in
18207     sni)
18208       shlibpath_overrides_runpath=no
18209       need_lib_prefix=no
18210       export_dynamic_flag_spec='${wl}-Blargedynsym'
18211       runpath_var=LD_RUN_PATH
18212       ;;
18213     siemens)
18214       need_lib_prefix=no
18215       ;;
18216     motorola)
18217       need_lib_prefix=no
18218       need_version=no
18219       shlibpath_overrides_runpath=no
18220       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18221       ;;
18222   esac
18223   ;;
18224
18225 sysv4*MP*)
18226   if test -d /usr/nec ;then
18227     version_type=linux
18228     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18229     soname_spec='$libname${shared_ext}.$major'
18230     shlibpath_var=LD_LIBRARY_PATH
18231   fi
18232   ;;
18233
18234 uts4*)
18235   version_type=linux
18236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237   soname_spec='${libname}${release}${shared_ext}$major'
18238   shlibpath_var=LD_LIBRARY_PATH
18239   ;;
18240
18241 *)
18242   dynamic_linker=no
18243   ;;
18244 esac
18245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18246 echo "${ECHO_T}$dynamic_linker" >&6; }
18247 test "$dynamic_linker" = no && can_build_shared=no
18248
18249 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18250 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18251 hardcode_action_F77=
18252 if test -n "$hardcode_libdir_flag_spec_F77" || \
18253    test -n "$runpath_var F77" || \
18254    test "X$hardcode_automatic_F77"="Xyes" ; then
18255
18256   # We can hardcode non-existant directories.
18257   if test "$hardcode_direct_F77" != no &&
18258      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18259      # have to relink, otherwise we might link with an installed library
18260      # when we should be linking with a yet-to-be-installed one
18261      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18262      test "$hardcode_minus_L_F77" != no; then
18263     # Linking always hardcodes the temporary library directory.
18264     hardcode_action_F77=relink
18265   else
18266     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18267     hardcode_action_F77=immediate
18268   fi
18269 else
18270   # We cannot hardcode anything, or else we can only hardcode existing
18271   # directories.
18272   hardcode_action_F77=unsupported
18273 fi
18274 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18275 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18276
18277 if test "$hardcode_action_F77" = relink; then
18278   # Fast installation is not supported
18279   enable_fast_install=no
18280 elif test "$shlibpath_overrides_runpath" = yes ||
18281      test "$enable_shared" = no; then
18282   # Fast installation is not necessary
18283   enable_fast_install=needless
18284 fi
18285
18286 striplib=
18287 old_striplib=
18288 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18289 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18290 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18291   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18292   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18293   { echo "$as_me:$LINENO: result: yes" >&5
18294 echo "${ECHO_T}yes" >&6; }
18295 else
18296 # FIXME - insert some real tests, host_os isn't really good enough
18297   case $host_os in
18298    darwin*)
18299        if test -n "$STRIP" ; then
18300          striplib="$STRIP -x"
18301          { echo "$as_me:$LINENO: result: yes" >&5
18302 echo "${ECHO_T}yes" >&6; }
18303        else
18304   { echo "$as_me:$LINENO: result: no" >&5
18305 echo "${ECHO_T}no" >&6; }
18306 fi
18307        ;;
18308    *)
18309   { echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6; }
18311     ;;
18312   esac
18313 fi
18314
18315
18316
18317 # The else clause should only fire when bootstrapping the
18318 # libtool distribution, otherwise you forgot to ship ltmain.sh
18319 # with your package, and you will get complaints that there are
18320 # no rules to generate ltmain.sh.
18321 if test -f "$ltmain"; then
18322   # See if we are running on zsh, and set the options which allow our commands through
18323   # without removal of \ escapes.
18324   if test -n "${ZSH_VERSION+set}" ; then
18325     setopt NO_GLOB_SUBST
18326   fi
18327   # Now quote all the things that may contain metacharacters while being
18328   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18329   # variables and quote the copies for generation of the libtool script.
18330   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18331     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18332     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18333     deplibs_check_method reload_flag reload_cmds need_locks \
18334     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18335     lt_cv_sys_global_symbol_to_c_name_address \
18336     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18337     old_postinstall_cmds old_postuninstall_cmds \
18338     compiler_F77 \
18339     CC_F77 \
18340     LD_F77 \
18341     lt_prog_compiler_wl_F77 \
18342     lt_prog_compiler_pic_F77 \
18343     lt_prog_compiler_static_F77 \
18344     lt_prog_compiler_no_builtin_flag_F77 \
18345     export_dynamic_flag_spec_F77 \
18346     thread_safe_flag_spec_F77 \
18347     whole_archive_flag_spec_F77 \
18348     enable_shared_with_static_runtimes_F77 \
18349     old_archive_cmds_F77 \
18350     old_archive_from_new_cmds_F77 \
18351     predep_objects_F77 \
18352     postdep_objects_F77 \
18353     predeps_F77 \
18354     postdeps_F77 \
18355     compiler_lib_search_path_F77 \
18356     archive_cmds_F77 \
18357     archive_expsym_cmds_F77 \
18358     postinstall_cmds_F77 \
18359     postuninstall_cmds_F77 \
18360     old_archive_from_expsyms_cmds_F77 \
18361     allow_undefined_flag_F77 \
18362     no_undefined_flag_F77 \
18363     export_symbols_cmds_F77 \
18364     hardcode_libdir_flag_spec_F77 \
18365     hardcode_libdir_flag_spec_ld_F77 \
18366     hardcode_libdir_separator_F77 \
18367     hardcode_automatic_F77 \
18368     module_cmds_F77 \
18369     module_expsym_cmds_F77 \
18370     lt_cv_prog_compiler_c_o_F77 \
18371     exclude_expsyms_F77 \
18372     include_expsyms_F77; do
18373
18374     case $var in
18375     old_archive_cmds_F77 | \
18376     old_archive_from_new_cmds_F77 | \
18377     archive_cmds_F77 | \
18378     archive_expsym_cmds_F77 | \
18379     module_cmds_F77 | \
18380     module_expsym_cmds_F77 | \
18381     old_archive_from_expsyms_cmds_F77 | \
18382     export_symbols_cmds_F77 | \
18383     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18384     postinstall_cmds | postuninstall_cmds | \
18385     old_postinstall_cmds | old_postuninstall_cmds | \
18386     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18387       # Double-quote double-evaled strings.
18388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18389       ;;
18390     *)
18391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18392       ;;
18393     esac
18394   done
18395
18396   case $lt_echo in
18397   *'\$0 --fallback-echo"')
18398     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18399     ;;
18400   esac
18401
18402 cfgfile="$ofile"
18403
18404   cat <<__EOF__ >> "$cfgfile"
18405 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18406
18407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18408
18409 # Shell to use when invoking shell scripts.
18410 SHELL=$lt_SHELL
18411
18412 # Whether or not to build shared libraries.
18413 build_libtool_libs=$enable_shared
18414
18415 # Whether or not to build static libraries.
18416 build_old_libs=$enable_static
18417
18418 # Whether or not to add -lc for building shared libraries.
18419 build_libtool_need_lc=$archive_cmds_need_lc_F77
18420
18421 # Whether or not to disallow shared libs when runtime libs are static
18422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18423
18424 # Whether or not to optimize for fast installation.
18425 fast_install=$enable_fast_install
18426
18427 # The host system.
18428 host_alias=$host_alias
18429 host=$host
18430
18431 # An echo program that does not interpret backslashes.
18432 echo=$lt_echo
18433
18434 # The archiver.
18435 AR=$lt_AR
18436 AR_FLAGS=$lt_AR_FLAGS
18437
18438 # A C compiler.
18439 LTCC=$lt_LTCC
18440
18441 # A language-specific compiler.
18442 CC=$lt_compiler_F77
18443
18444 # Is the compiler the GNU C compiler?
18445 with_gcc=$GCC_F77
18446
18447 # An ERE matcher.
18448 EGREP=$lt_EGREP
18449
18450 # The linker used to build libraries.
18451 LD=$lt_LD_F77
18452
18453 # Whether we need hard or soft links.
18454 LN_S=$lt_LN_S
18455
18456 # A BSD-compatible nm program.
18457 NM=$lt_NM
18458
18459 # A symbol stripping program
18460 STRIP=$STRIP
18461
18462 # Used to examine libraries when file_magic_cmd begins "file"
18463 MAGIC_CMD=$MAGIC_CMD
18464
18465 # Used on cygwin: DLL creation program.
18466 DLLTOOL="$DLLTOOL"
18467
18468 # Used on cygwin: object dumper.
18469 OBJDUMP="$OBJDUMP"
18470
18471 # Used on cygwin: assembler.
18472 AS="$AS"
18473
18474 # The name of the directory that contains temporary libtool files.
18475 objdir=$objdir
18476
18477 # How to create reloadable object files.
18478 reload_flag=$lt_reload_flag
18479 reload_cmds=$lt_reload_cmds
18480
18481 # How to pass a linker flag through the compiler.
18482 wl=$lt_lt_prog_compiler_wl_F77
18483
18484 # Object file suffix (normally "o").
18485 objext="$ac_objext"
18486
18487 # Old archive suffix (normally "a").
18488 libext="$libext"
18489
18490 # Shared library suffix (normally ".so").
18491 shrext='$shrext'
18492
18493 # Executable file suffix (normally "").
18494 exeext="$exeext"
18495
18496 # Additional compiler flags for building library objects.
18497 pic_flag=$lt_lt_prog_compiler_pic_F77
18498 pic_mode=$pic_mode
18499
18500 # What is the maximum length of a command?
18501 max_cmd_len=$lt_cv_sys_max_cmd_len
18502
18503 # Does compiler simultaneously support -c and -o options?
18504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18505
18506 # Must we lock files when doing compilation ?
18507 need_locks=$lt_need_locks
18508
18509 # Do we need the lib prefix for modules?
18510 need_lib_prefix=$need_lib_prefix
18511
18512 # Do we need a version for libraries?
18513 need_version=$need_version
18514
18515 # Whether dlopen is supported.
18516 dlopen_support=$enable_dlopen
18517
18518 # Whether dlopen of programs is supported.
18519 dlopen_self=$enable_dlopen_self
18520
18521 # Whether dlopen of statically linked programs is supported.
18522 dlopen_self_static=$enable_dlopen_self_static
18523
18524 # Compiler flag to prevent dynamic linking.
18525 link_static_flag=$lt_lt_prog_compiler_static_F77
18526
18527 # Compiler flag to turn off builtin functions.
18528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18529
18530 # Compiler flag to allow reflexive dlopens.
18531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18532
18533 # Compiler flag to generate shared objects directly from archives.
18534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18535
18536 # Compiler flag to generate thread-safe objects.
18537 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18538
18539 # Library versioning type.
18540 version_type=$version_type
18541
18542 # Format of library name prefix.
18543 libname_spec=$lt_libname_spec
18544
18545 # List of archive names.  First name is the real one, the rest are links.
18546 # The last name is the one that the linker finds with -lNAME.
18547 library_names_spec=$lt_library_names_spec
18548
18549 # The coded name of the library, if different from the real name.
18550 soname_spec=$lt_soname_spec
18551
18552 # Commands used to build and install an old-style archive.
18553 RANLIB=$lt_RANLIB
18554 old_archive_cmds=$lt_old_archive_cmds_F77
18555 old_postinstall_cmds=$lt_old_postinstall_cmds
18556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18557
18558 # Create an old-style archive from a shared archive.
18559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18560
18561 # Create a temporary old-style archive to link instead of a shared archive.
18562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18563
18564 # Commands used to build and install a shared archive.
18565 archive_cmds=$lt_archive_cmds_F77
18566 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18567 postinstall_cmds=$lt_postinstall_cmds
18568 postuninstall_cmds=$lt_postuninstall_cmds
18569
18570 # Commands used to build a loadable module (assumed same as above if empty)
18571 module_cmds=$lt_module_cmds_F77
18572 module_expsym_cmds=$lt_module_expsym_cmds_F77
18573
18574 # Commands to strip libraries.
18575 old_striplib=$lt_old_striplib
18576 striplib=$lt_striplib
18577
18578 # Dependencies to place before the objects being linked to create a
18579 # shared library.
18580 predep_objects=$lt_predep_objects_F77
18581
18582 # Dependencies to place after the objects being linked to create a
18583 # shared library.
18584 postdep_objects=$lt_postdep_objects_F77
18585
18586 # Dependencies to place before the objects being linked to create a
18587 # shared library.
18588 predeps=$lt_predeps_F77
18589
18590 # Dependencies to place after the objects being linked to create a
18591 # shared library.
18592 postdeps=$lt_postdeps_F77
18593
18594 # The library search path used internally by the compiler when linking
18595 # a shared library.
18596 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18597
18598 # Method to check whether dependent libraries are shared objects.
18599 deplibs_check_method=$lt_deplibs_check_method
18600
18601 # Command to use when deplibs_check_method == file_magic.
18602 file_magic_cmd=$lt_file_magic_cmd
18603
18604 # Flag that allows shared libraries with undefined symbols to be built.
18605 allow_undefined_flag=$lt_allow_undefined_flag_F77
18606
18607 # Flag that forces no undefined symbols.
18608 no_undefined_flag=$lt_no_undefined_flag_F77
18609
18610 # Commands used to finish a libtool library installation in a directory.
18611 finish_cmds=$lt_finish_cmds
18612
18613 # Same as above, but a single script fragment to be evaled but not shown.
18614 finish_eval=$lt_finish_eval
18615
18616 # Take the output of nm and produce a listing of raw symbols and C names.
18617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18618
18619 # Transform the output of nm in a proper C declaration
18620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18621
18622 # Transform the output of nm in a C name address pair
18623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18624
18625 # This is the shared library runtime path variable.
18626 runpath_var=$runpath_var
18627
18628 # This is the shared library path variable.
18629 shlibpath_var=$shlibpath_var
18630
18631 # Is shlibpath searched before the hard-coded library search path?
18632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18633
18634 # How to hardcode a shared library path into an executable.
18635 hardcode_action=$hardcode_action_F77
18636
18637 # Whether we should hardcode library paths into libraries.
18638 hardcode_into_libs=$hardcode_into_libs
18639
18640 # Flag to hardcode \$libdir into a binary during linking.
18641 # This must work even if \$libdir does not exist.
18642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18643
18644 # If ld is used when linking, flag to hardcode \$libdir into
18645 # a binary during linking. This must work even if \$libdir does
18646 # not exist.
18647 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18648
18649 # Whether we need a single -rpath flag with a separated argument.
18650 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18651
18652 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18653 # resulting binary.
18654 hardcode_direct=$hardcode_direct_F77
18655
18656 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18657 # resulting binary.
18658 hardcode_minus_L=$hardcode_minus_L_F77
18659
18660 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18661 # the resulting binary.
18662 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18663
18664 # Set to yes if building a shared library automatically hardcodes DIR into the library
18665 # and all subsequent libraries and executables linked against it.
18666 hardcode_automatic=$hardcode_automatic_F77
18667
18668 # Variables whose values should be saved in libtool wrapper scripts and
18669 # restored at relink time.
18670 variables_saved_for_relink="$variables_saved_for_relink"
18671
18672 # Whether libtool must link a program against all its dependency libraries.
18673 link_all_deplibs=$link_all_deplibs_F77
18674
18675 # Compile-time system search path for libraries
18676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18677
18678 # Run-time system search path for libraries
18679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18680
18681 # Fix the shell variable \$srcfile for the compiler.
18682 fix_srcfile_path="$fix_srcfile_path_F77"
18683
18684 # Set to yes if exported symbols are required.
18685 always_export_symbols=$always_export_symbols_F77
18686
18687 # The commands to list exported symbols.
18688 export_symbols_cmds=$lt_export_symbols_cmds_F77
18689
18690 # The commands to extract the exported symbol list from a shared archive.
18691 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18692
18693 # Symbols that should not be listed in the preloaded symbols.
18694 exclude_expsyms=$lt_exclude_expsyms_F77
18695
18696 # Symbols that must always be exported.
18697 include_expsyms=$lt_include_expsyms_F77
18698
18699 # ### END LIBTOOL TAG CONFIG: $tagname
18700
18701 __EOF__
18702
18703
18704 else
18705   # If there is no Makefile yet, we rely on a make rule to execute
18706   # `config.status --recheck' to rerun these tests and create the
18707   # libtool script then.
18708   test -f Makefile && make "$ltmain"
18709 fi
18710
18711
18712 ac_ext=c
18713 ac_cpp='$CPP $CPPFLAGS'
18714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18717
18718 CC="$lt_save_CC"
18719
18720         else
18721           tagname=""
18722         fi
18723         ;;
18724
18725       GCJ)
18726         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18727
18728
18729 # Source file extension for Java test sources.
18730 ac_ext=java
18731
18732 # Object file extension for compiled Java test sources.
18733 objext=o
18734 objext_GCJ=$objext
18735
18736 # Code to be used in simple compile tests
18737 lt_simple_compile_test_code="class foo {}\n"
18738
18739 # Code to be used in simple link tests
18740 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18741
18742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18743
18744 # If no C compiler was specified, use CC.
18745 LTCC=${LTCC-"$CC"}
18746
18747 # Allow CC to be a program name with arguments.
18748 compiler=$CC
18749
18750
18751 # Allow CC to be a program name with arguments.
18752 lt_save_CC="$CC"
18753 CC=${GCJ-"gcj"}
18754 compiler=$CC
18755 compiler_GCJ=$CC
18756
18757 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18758 archive_cmds_need_lc_GCJ=no
18759
18760 ## CAVEAT EMPTOR:
18761 ## There is no encapsulation within the following macros, do not change
18762 ## the running order or otherwise move them around unless you know exactly
18763 ## what you are doing...
18764
18765 lt_prog_compiler_no_builtin_flag_GCJ=
18766
18767 if test "$GCC" = yes; then
18768   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18769
18770
18771 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18772 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18773 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18774   echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776   lt_cv_prog_compiler_rtti_exceptions=no
18777   ac_outfile=conftest.$ac_objext
18778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18779    lt_compiler_flag="-fno-rtti -fno-exceptions"
18780    # Insert the option either (1) after the last *FLAGS variable, or
18781    # (2) before a word containing "conftest.", or (3) at the end.
18782    # Note that $ac_compile itself does not contain backslashes and begins
18783    # with a dollar sign (not a hyphen), so the echo should work correctly.
18784    # The option is referenced via a variable to avoid confusing sed.
18785    lt_compile=`echo "$ac_compile" | $SED \
18786    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18788    -e 's:$: $lt_compiler_flag:'`
18789    (eval echo "\"\$as_me:18789: $lt_compile\"" >&5)
18790    (eval "$lt_compile" 2>conftest.err)
18791    ac_status=$?
18792    cat conftest.err >&5
18793    echo "$as_me:18793: \$? = $ac_status" >&5
18794    if (exit $ac_status) && test -s "$ac_outfile"; then
18795      # The compiler can only warn and ignore the option if not recognized
18796      # So say no if there are warnings
18797      if test ! -s conftest.err; then
18798        lt_cv_prog_compiler_rtti_exceptions=yes
18799      fi
18800    fi
18801    $rm conftest*
18802
18803 fi
18804 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18805 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18806
18807 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18808     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18809 else
18810     :
18811 fi
18812
18813 fi
18814
18815 lt_prog_compiler_wl_GCJ=
18816 lt_prog_compiler_pic_GCJ=
18817 lt_prog_compiler_static_GCJ=
18818
18819 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18820 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18821
18822   if test "$GCC" = yes; then
18823     lt_prog_compiler_wl_GCJ='-Wl,'
18824     lt_prog_compiler_static_GCJ='-static'
18825
18826     case $host_os in
18827       aix*)
18828       # All AIX code is PIC.
18829       if test "$host_cpu" = ia64; then
18830         # AIX 5 now supports IA64 processor
18831         lt_prog_compiler_static_GCJ='-Bstatic'
18832       fi
18833       ;;
18834
18835     amigaos*)
18836       # FIXME: we need at least 68020 code to build shared libraries, but
18837       # adding the `-m68020' flag to GCC prevents building anything better,
18838       # like `-m68040'.
18839       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18840       ;;
18841
18842     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18843       # PIC is the default for these OSes.
18844       ;;
18845
18846     mingw* | pw32* | os2*)
18847       # This hack is so that the source file can tell whether it is being
18848       # built for inclusion in a dll (and should export symbols for example).
18849       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18850       ;;
18851
18852     darwin* | rhapsody*)
18853       # PIC is the default on this platform
18854       # Common symbols not allowed in MH_DYLIB files
18855       lt_prog_compiler_pic_GCJ='-fno-common'
18856       ;;
18857
18858     msdosdjgpp*)
18859       # Just because we use GCC doesn't mean we suddenly get shared libraries
18860       # on systems that don't support them.
18861       lt_prog_compiler_can_build_shared_GCJ=no
18862       enable_shared=no
18863       ;;
18864
18865     sysv4*MP*)
18866       if test -d /usr/nec; then
18867         lt_prog_compiler_pic_GCJ=-Kconform_pic
18868       fi
18869       ;;
18870
18871     hpux*)
18872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18873       # not for PA HP-UX.
18874       case "$host_cpu" in
18875       hppa*64*|ia64*)
18876         # +Z the default
18877         ;;
18878       *)
18879         lt_prog_compiler_pic_GCJ='-fPIC'
18880         ;;
18881       esac
18882       ;;
18883
18884     *)
18885       lt_prog_compiler_pic_GCJ='-fPIC'
18886       ;;
18887     esac
18888   else
18889     # PORTME Check for flag to pass linker flags through the system compiler.
18890     case $host_os in
18891     aix*)
18892       lt_prog_compiler_wl_GCJ='-Wl,'
18893       if test "$host_cpu" = ia64; then
18894         # AIX 5 now supports IA64 processor
18895         lt_prog_compiler_static_GCJ='-Bstatic'
18896       else
18897         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18898       fi
18899       ;;
18900
18901     mingw* | pw32* | os2*)
18902       # This hack is so that the source file can tell whether it is being
18903       # built for inclusion in a dll (and should export symbols for example).
18904       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18905       ;;
18906
18907     hpux9* | hpux10* | hpux11*)
18908       lt_prog_compiler_wl_GCJ='-Wl,'
18909       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18910       # not for PA HP-UX.
18911       case "$host_cpu" in
18912       hppa*64*|ia64*)
18913         # +Z the default
18914         ;;
18915       *)
18916         lt_prog_compiler_pic_GCJ='+Z'
18917         ;;
18918       esac
18919       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18920       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18921       ;;
18922
18923     irix5* | irix6* | nonstopux*)
18924       lt_prog_compiler_wl_GCJ='-Wl,'
18925       # PIC (with -KPIC) is the default.
18926       lt_prog_compiler_static_GCJ='-non_shared'
18927       ;;
18928
18929     newsos6)
18930       lt_prog_compiler_pic_GCJ='-KPIC'
18931       lt_prog_compiler_static_GCJ='-Bstatic'
18932       ;;
18933
18934     linux*)
18935       case $CC in
18936       icc* | ecc*)
18937         lt_prog_compiler_wl_GCJ='-Wl,'
18938         lt_prog_compiler_pic_GCJ='-KPIC'
18939         lt_prog_compiler_static_GCJ='-static'
18940         ;;
18941       ccc*)
18942         lt_prog_compiler_wl_GCJ='-Wl,'
18943         # All Alpha code is PIC.
18944         lt_prog_compiler_static_GCJ='-non_shared'
18945         ;;
18946       esac
18947       ;;
18948
18949     osf3* | osf4* | osf5*)
18950       lt_prog_compiler_wl_GCJ='-Wl,'
18951       # All OSF/1 code is PIC.
18952       lt_prog_compiler_static_GCJ='-non_shared'
18953       ;;
18954
18955     sco3.2v5*)
18956       lt_prog_compiler_pic_GCJ='-Kpic'
18957       lt_prog_compiler_static_GCJ='-dn'
18958       ;;
18959
18960     solaris*)
18961       lt_prog_compiler_wl_GCJ='-Wl,'
18962       lt_prog_compiler_pic_GCJ='-KPIC'
18963       lt_prog_compiler_static_GCJ='-Bstatic'
18964       ;;
18965
18966     sunos4*)
18967       lt_prog_compiler_wl_GCJ='-Qoption ld '
18968       lt_prog_compiler_pic_GCJ='-PIC'
18969       lt_prog_compiler_static_GCJ='-Bstatic'
18970       ;;
18971
18972     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18973       lt_prog_compiler_wl_GCJ='-Wl,'
18974       lt_prog_compiler_pic_GCJ='-KPIC'
18975       lt_prog_compiler_static_GCJ='-Bstatic'
18976       ;;
18977
18978     sysv4*MP*)
18979       if test -d /usr/nec ;then
18980         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18981         lt_prog_compiler_static_GCJ='-Bstatic'
18982       fi
18983       ;;
18984
18985     uts4*)
18986       lt_prog_compiler_pic_GCJ='-pic'
18987       lt_prog_compiler_static_GCJ='-Bstatic'
18988       ;;
18989
18990     *)
18991       lt_prog_compiler_can_build_shared_GCJ=no
18992       ;;
18993     esac
18994   fi
18995
18996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18997 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18998
18999 #
19000 # Check to make sure the PIC flag actually works.
19001 #
19002 if test -n "$lt_prog_compiler_pic_GCJ"; then
19003
19004 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19005 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19006 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   lt_prog_compiler_pic_works_GCJ=no
19010   ac_outfile=conftest.$ac_objext
19011    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19012    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19013    # Insert the option either (1) after the last *FLAGS variable, or
19014    # (2) before a word containing "conftest.", or (3) at the end.
19015    # Note that $ac_compile itself does not contain backslashes and begins
19016    # with a dollar sign (not a hyphen), so the echo should work correctly.
19017    # The option is referenced via a variable to avoid confusing sed.
19018    lt_compile=`echo "$ac_compile" | $SED \
19019    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19021    -e 's:$: $lt_compiler_flag:'`
19022    (eval echo "\"\$as_me:19022: $lt_compile\"" >&5)
19023    (eval "$lt_compile" 2>conftest.err)
19024    ac_status=$?
19025    cat conftest.err >&5
19026    echo "$as_me:19026: \$? = $ac_status" >&5
19027    if (exit $ac_status) && test -s "$ac_outfile"; then
19028      # The compiler can only warn and ignore the option if not recognized
19029      # So say no if there are warnings
19030      if test ! -s conftest.err; then
19031        lt_prog_compiler_pic_works_GCJ=yes
19032      fi
19033    fi
19034    $rm conftest*
19035
19036 fi
19037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19038 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19039
19040 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19041     case $lt_prog_compiler_pic_GCJ in
19042      "" | " "*) ;;
19043      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19044      esac
19045 else
19046     lt_prog_compiler_pic_GCJ=
19047      lt_prog_compiler_can_build_shared_GCJ=no
19048 fi
19049
19050 fi
19051 case "$host_os" in
19052   # For platforms which do not support PIC, -DPIC is meaningless:
19053   *djgpp*)
19054     lt_prog_compiler_pic_GCJ=
19055     ;;
19056   *)
19057     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19058     ;;
19059 esac
19060
19061 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19063 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   lt_cv_prog_compiler_c_o_GCJ=no
19067    $rm -r conftest 2>/dev/null
19068    mkdir conftest
19069    cd conftest
19070    mkdir out
19071    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19072
19073    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19074    # that will create temporary files in the current directory regardless of
19075    # the output directory.  Thus, making CWD read-only will cause this test
19076    # to fail, enabling locking or at least warning the user not to do parallel
19077    # builds.
19078    chmod -w .
19079
19080    lt_compiler_flag="-o out/conftest2.$ac_objext"
19081    # Insert the option either (1) after the last *FLAGS variable, or
19082    # (2) before a word containing "conftest.", or (3) at the end.
19083    # Note that $ac_compile itself does not contain backslashes and begins
19084    # with a dollar sign (not a hyphen), so the echo should work correctly.
19085    lt_compile=`echo "$ac_compile" | $SED \
19086    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19087    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19088    -e 's:$: $lt_compiler_flag:'`
19089    (eval echo "\"\$as_me:19089: $lt_compile\"" >&5)
19090    (eval "$lt_compile" 2>out/conftest.err)
19091    ac_status=$?
19092    cat out/conftest.err >&5
19093    echo "$as_me:19093: \$? = $ac_status" >&5
19094    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19095    then
19096      # The compiler can only warn and ignore the option if not recognized
19097      # So say no if there are warnings
19098      if test ! -s out/conftest.err; then
19099        lt_cv_prog_compiler_c_o_GCJ=yes
19100      fi
19101    fi
19102    chmod u+w .
19103    $rm conftest* out/*
19104    rmdir out
19105    cd ..
19106    rmdir conftest
19107    $rm conftest*
19108
19109 fi
19110 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19111 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19112
19113
19114 hard_links="nottested"
19115 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19116   # do not overwrite the value of need_locks provided by the user
19117   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19118 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19119   hard_links=yes
19120   $rm conftest*
19121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19122   touch conftest.a
19123   ln conftest.a conftest.b 2>&5 || hard_links=no
19124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19125   { echo "$as_me:$LINENO: result: $hard_links" >&5
19126 echo "${ECHO_T}$hard_links" >&6; }
19127   if test "$hard_links" = no; then
19128     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19129 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19130     need_locks=warn
19131   fi
19132 else
19133   need_locks=no
19134 fi
19135
19136 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19138
19139   runpath_var=
19140   allow_undefined_flag_GCJ=
19141   enable_shared_with_static_runtimes_GCJ=no
19142   archive_cmds_GCJ=
19143   archive_expsym_cmds_GCJ=
19144   old_archive_From_new_cmds_GCJ=
19145   old_archive_from_expsyms_cmds_GCJ=
19146   export_dynamic_flag_spec_GCJ=
19147   whole_archive_flag_spec_GCJ=
19148   thread_safe_flag_spec_GCJ=
19149   hardcode_libdir_flag_spec_GCJ=
19150   hardcode_libdir_flag_spec_ld_GCJ=
19151   hardcode_libdir_separator_GCJ=
19152   hardcode_direct_GCJ=no
19153   hardcode_minus_L_GCJ=no
19154   hardcode_shlibpath_var_GCJ=unsupported
19155   link_all_deplibs_GCJ=unknown
19156   hardcode_automatic_GCJ=no
19157   module_cmds_GCJ=
19158   module_expsym_cmds_GCJ=
19159   always_export_symbols_GCJ=no
19160   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19161   # include_expsyms should be a list of space-separated symbols to be *always*
19162   # included in the symbol list
19163   include_expsyms_GCJ=
19164   # exclude_expsyms can be an extended regexp of symbols to exclude
19165   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19166   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19167   # as well as any symbol that contains `d'.
19168   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19169   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19170   # platforms (ab)use it in PIC code, but their linkers get confused if
19171   # the symbol is explicitly referenced.  Since portable code cannot
19172   # rely on this symbol name, it's probably fine to never include it in
19173   # preloaded symbol tables.
19174   extract_expsyms_cmds=
19175
19176   case $host_os in
19177   cygwin* | mingw* | pw32*)
19178     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19179     # When not using gcc, we currently assume that we are using
19180     # Microsoft Visual C++.
19181     if test "$GCC" != yes; then
19182       with_gnu_ld=no
19183     fi
19184     ;;
19185   openbsd*)
19186     with_gnu_ld=no
19187     ;;
19188   esac
19189
19190   ld_shlibs_GCJ=yes
19191   if test "$with_gnu_ld" = yes; then
19192     # If archive_cmds runs LD, not CC, wlarc should be empty
19193     wlarc='${wl}'
19194
19195     # See if GNU ld supports shared libraries.
19196     case $host_os in
19197     aix3* | aix4* | aix5*)
19198       # On AIX/PPC, the GNU linker is very broken
19199       if test "$host_cpu" != ia64; then
19200         ld_shlibs_GCJ=no
19201         cat <<EOF 1>&2
19202
19203 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19204 *** to be unable to reliably create shared libraries on AIX.
19205 *** Therefore, libtool is disabling shared libraries support.  If you
19206 *** really care for shared libraries, you may want to modify your PATH
19207 *** so that a non-GNU linker is found, and then restart.
19208
19209 EOF
19210       fi
19211       ;;
19212
19213     amigaos*)
19214       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)'
19215       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19216       hardcode_minus_L_GCJ=yes
19217
19218       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19219       # that the semantics of dynamic libraries on AmigaOS, at least up
19220       # to version 4, is to share data among multiple programs linked
19221       # with the same dynamic library.  Since this doesn't match the
19222       # behavior of shared libraries on other platforms, we can't use
19223       # them.
19224       ld_shlibs_GCJ=no
19225       ;;
19226
19227     beos*)
19228       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19229         allow_undefined_flag_GCJ=unsupported
19230         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19231         # support --undefined.  This deserves some investigation.  FIXME
19232         archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19233       else
19234         ld_shlibs_GCJ=no
19235       fi
19236       ;;
19237
19238     cygwin* | mingw* | pw32*)
19239       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19240       # as there is no search path for DLLs.
19241       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19242       allow_undefined_flag_GCJ=no
19243       always_export_symbols_GCJ=no
19244       enable_shared_with_static_runtimes_GCJ=yes
19245       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19246
19247       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19248         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19249         # If the export-symbols file already is a .def file (1st line
19250         # is EXPORTS), use it as is; otherwise, prepend...
19251         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19252           cp $export_symbols $output_objdir/$soname.def;
19253         else
19254           echo EXPORTS > $output_objdir/$soname.def;
19255           cat $export_symbols >> $output_objdir/$soname.def;
19256         fi~
19257         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19258       else
19259         ld_shlibs=no
19260       fi
19261       ;;
19262
19263     netbsd*)
19264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19265         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19266         wlarc=
19267       else
19268         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19269         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19270       fi
19271       ;;
19272
19273     solaris* | sysv5*)
19274       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19275         ld_shlibs_GCJ=no
19276         cat <<EOF 1>&2
19277
19278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19279 *** create shared libraries on Solaris systems.  Therefore, libtool
19280 *** is disabling shared libraries support.  We urge you to upgrade GNU
19281 *** binutils to release 2.9.1 or newer.  Another option is to modify
19282 *** your PATH or compiler configuration so that the native linker is
19283 *** used, and then restart.
19284
19285 EOF
19286       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19287         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19288         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19289       else
19290         ld_shlibs_GCJ=no
19291       fi
19292       ;;
19293
19294     sunos4*)
19295       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19296       wlarc=
19297       hardcode_direct_GCJ=yes
19298       hardcode_shlibpath_var_GCJ=no
19299       ;;
19300
19301     *)
19302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19303         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19304         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19305       else
19306         ld_shlibs_GCJ=no
19307       fi
19308       ;;
19309     esac
19310
19311     if test "$ld_shlibs_GCJ" = yes; then
19312       runpath_var=LD_RUN_PATH
19313       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19314       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19315       # ancient GNU ld didn't support --whole-archive et. al.
19316       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19317         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19318       else
19319         whole_archive_flag_spec_GCJ=
19320       fi
19321     fi
19322   else
19323     # PORTME fill in a description of your system's linker (not GNU ld)
19324     case $host_os in
19325     aix3*)
19326       allow_undefined_flag_GCJ=unsupported
19327       always_export_symbols_GCJ=yes
19328       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'
19329       # Note: this linker hardcodes the directories in LIBPATH if there
19330       # are no directories specified by -L.
19331       hardcode_minus_L_GCJ=yes
19332       if test "$GCC" = yes && test -z "$link_static_flag"; then
19333         # Neither direct hardcoding nor static linking is supported with a
19334         # broken collect2.
19335         hardcode_direct_GCJ=unsupported
19336       fi
19337       ;;
19338
19339     aix4* | aix5*)
19340       if test "$host_cpu" = ia64; then
19341         # On IA64, the linker does run time linking by default, so we don't
19342         # have to do anything special.
19343         aix_use_runtimelinking=no
19344         exp_sym_flag='-Bexport'
19345         no_entry_flag=""
19346       else
19347         # If we're using GNU nm, then we don't want the "-C" option.
19348         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19349         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19350           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'
19351         else
19352           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'
19353         fi
19354
19355         # KDE requires run time linking.  Make it the default.
19356         aix_use_runtimelinking=yes
19357         exp_sym_flag='-bexport'
19358         no_entry_flag='-bnoentry'
19359       fi
19360
19361       # When large executables or shared objects are built, AIX ld can
19362       # have problems creating the table of contents.  If linking a library
19363       # or program results in "error TOC overflow" add -mminimal-toc to
19364       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19365       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19366
19367       archive_cmds_GCJ=''
19368       hardcode_direct_GCJ=yes
19369       hardcode_libdir_separator_GCJ=':'
19370       link_all_deplibs_GCJ=yes
19371
19372       if test "$GCC" = yes; then
19373         case $host_os in aix4.012|aix4.012.*)
19374         # We only want to do this on AIX 4.2 and lower, the check
19375         # below for broken collect2 doesn't work under 4.3+
19376           collect2name=`${CC} -print-prog-name=collect2`
19377           if test -f "$collect2name" && \
19378            strings "$collect2name" | grep resolve_lib_name >/dev/null
19379           then
19380           # We have reworked collect2
19381           hardcode_direct_GCJ=yes
19382           else
19383           # We have old collect2
19384           hardcode_direct_GCJ=unsupported
19385           # It fails to find uninstalled libraries when the uninstalled
19386           # path is not listed in the libpath.  Setting hardcode_minus_L
19387           # to unsupported forces relinking
19388           hardcode_minus_L_GCJ=yes
19389           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19390           hardcode_libdir_separator_GCJ=
19391           fi
19392         esac
19393         shared_flag='-shared'
19394       else
19395         # not using gcc
19396         if test "$host_cpu" = ia64; then
19397         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19398         # chokes on -Wl,-G. The following line is correct:
19399           shared_flag='-G'
19400         else
19401         if test "$aix_use_runtimelinking" = yes; then
19402             shared_flag='-qmkshrobj ${wl}-G'
19403           else
19404             shared_flag='-qmkshrobj'
19405         fi
19406         fi
19407       fi
19408
19409       # Let the compiler handle the export list.
19410       always_export_symbols_GCJ=no
19411       if test "$aix_use_runtimelinking" = yes; then
19412         # Warning - without using the other runtime loading flags (-brtl),
19413         # -berok will link without error, but may produce a broken library.
19414         allow_undefined_flag_GCJ='-berok'
19415        # Determine the default libpath from the value encoded in an empty executable.
19416         cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422
19423 int
19424 main ()
19425 {
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_link") 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } && {
19445          test -z "$ac_c_werror_flag" ||
19446          test ! -s conftest.err
19447        } && test -s conftest$ac_exeext &&
19448        $as_test_x conftest$ac_exeext; then
19449
19450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19451 }'`
19452 # Check for a 64-bit object if we didn't find anything.
19453 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; }
19454 }'`; fi
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459
19460 fi
19461
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463       conftest$ac_exeext conftest.$ac_ext
19464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19465
19466         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19467         archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
19468         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19469        else
19470         if test "$host_cpu" = ia64; then
19471           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19472           allow_undefined_flag_GCJ="-z nodefs"
19473           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19474         else
19475          # Determine the default libpath from the value encoded in an empty executable.
19476          cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 int
19484 main ()
19485 {
19486
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_link") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } && {
19505          test -z "$ac_c_werror_flag" ||
19506          test ! -s conftest.err
19507        } && test -s conftest$ac_exeext &&
19508        $as_test_x conftest$ac_exeext; then
19509
19510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19511 }'`
19512 # Check for a 64-bit object if we didn't find anything.
19513 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; }
19514 }'`; fi
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519
19520 fi
19521
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523       conftest$ac_exeext conftest.$ac_ext
19524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19525
19526          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19527           # Warning - without using the other run time loading flags,
19528           # -berok will link without error, but may produce a broken library.
19529           no_undefined_flag_GCJ=' ${wl}-bernotok'
19530           allow_undefined_flag_GCJ=' ${wl}-berok'
19531           # -bexpall does not export symbols beginning with underscore (_)
19532           always_export_symbols_GCJ=yes
19533           # Exported symbols can be pulled into shared objects from archives
19534           whole_archive_flag_spec_GCJ=' '
19535           archive_cmds_need_lc_GCJ=yes
19536           # This is similar to how AIX traditionally builds it's shared libraries.
19537           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19538         fi
19539       fi
19540       ;;
19541
19542     amigaos*)
19543       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)'
19544       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19545       hardcode_minus_L_GCJ=yes
19546       # see comment about different semantics on the GNU ld section
19547       ld_shlibs_GCJ=no
19548       ;;
19549
19550     bsdi4*)
19551       export_dynamic_flag_spec_GCJ=-rdynamic
19552       ;;
19553
19554     cygwin* | mingw* | pw32*)
19555       # When not using gcc, we currently assume that we are using
19556       # Microsoft Visual C++.
19557       # hardcode_libdir_flag_spec is actually meaningless, as there is
19558       # no search path for DLLs.
19559       hardcode_libdir_flag_spec_GCJ=' '
19560       allow_undefined_flag_GCJ=no
19561       # Tell ltmain to make .lib files, not .a files.
19562       libext=lib
19563       # Tell ltmain to make .dll files, not .so files.
19564       shrext=".dll"
19565       # FIXME: Setting linknames here is a bad hack.
19566       archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19567       # The linker will automatically build a .lib file if we build a DLL.
19568       old_archive_From_new_cmds_GCJ='true'
19569       # FIXME: Should let the user specify the lib program.
19570       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19571       fix_srcfile_path='`cygpath -w "$srcfile"`'
19572       enable_shared_with_static_runtimes_GCJ=yes
19573       ;;
19574
19575     darwin* | rhapsody*)
19576     if test "$GXX" = yes ; then
19577       archive_cmds_need_lc_GCJ=no
19578       case "$host_os" in
19579       rhapsody* | darwin1.[012])
19580         allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
19581         ;;
19582       *) # Darwin 1.3 on
19583         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19584           allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19585         else
19586           case ${MACOSX_DEPLOYMENT_TARGET} in
19587             10.012)
19588               allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19589               ;;
19590             10.*)
19591               allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
19592               ;;
19593           esac
19594         fi
19595         ;;
19596       esac
19597         lt_int_apple_cc_single_mod=no
19598         output_verbose_link_cmd='echo'
19599         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19600           lt_int_apple_cc_single_mod=yes
19601         fi
19602         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19603           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
19604         else
19605         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
19606       fi
19607       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
19608       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19609         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19610           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19611         else
19612           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19613         fi
19614           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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19615       hardcode_direct_GCJ=no
19616       hardcode_automatic_GCJ=yes
19617       hardcode_shlibpath_var_GCJ=unsupported
19618       whole_archive_flag_spec_GCJ='-all_load $convenience'
19619       link_all_deplibs_GCJ=yes
19620     else
19621       ld_shlibs_GCJ=no
19622     fi
19623       ;;
19624
19625     dgux*)
19626       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19627       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19628       hardcode_shlibpath_var_GCJ=no
19629       ;;
19630
19631     freebsd1*)
19632       ld_shlibs_GCJ=no
19633       ;;
19634
19635     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19636     # support.  Future versions do this automatically, but an explicit c++rt0.o
19637     # does not break anything, and helps significantly (at the cost of a little
19638     # extra space).
19639     freebsd2.2*)
19640       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19641       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19642       hardcode_direct_GCJ=yes
19643       hardcode_shlibpath_var_GCJ=no
19644       ;;
19645
19646     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19647     freebsd2*)
19648       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19649       hardcode_direct_GCJ=yes
19650       hardcode_minus_L_GCJ=yes
19651       hardcode_shlibpath_var_GCJ=no
19652       ;;
19653
19654     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19655     freebsd* | kfreebsd*-gnu)
19656       archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
19657       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19658       hardcode_direct_GCJ=yes
19659       hardcode_shlibpath_var_GCJ=no
19660       ;;
19661
19662     hpux9*)
19663       if test "$GCC" = yes; then
19664         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19665       else
19666         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'
19667       fi
19668       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19669       hardcode_libdir_separator_GCJ=:
19670       hardcode_direct_GCJ=yes
19671
19672       # hardcode_minus_L: Not really in the search PATH,
19673       # but as the default location of the library.
19674       hardcode_minus_L_GCJ=yes
19675       export_dynamic_flag_spec_GCJ='${wl}-E'
19676       ;;
19677
19678     hpux10* | hpux11*)
19679       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19680         case "$host_cpu" in
19681         hppa*64*|ia64*)
19682           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19683           ;;
19684         *)
19685           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
19686           ;;
19687         esac
19688       else
19689         case "$host_cpu" in
19690         hppa*64*|ia64*)
19691           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19692           ;;
19693         *)
19694           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19695           ;;
19696         esac
19697       fi
19698       if test "$with_gnu_ld" = no; then
19699         case "$host_cpu" in
19700         hppa*64*)
19701           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19702           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19703           hardcode_libdir_separator_GCJ=:
19704           hardcode_direct_GCJ=no
19705           hardcode_shlibpath_var_GCJ=no
19706           ;;
19707         ia64*)
19708           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19709           hardcode_direct_GCJ=no
19710           hardcode_shlibpath_var_GCJ=no
19711
19712           # hardcode_minus_L: Not really in the search PATH,
19713           # but as the default location of the library.
19714           hardcode_minus_L_GCJ=yes
19715           ;;
19716         *)
19717           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19718           hardcode_libdir_separator_GCJ=:
19719           hardcode_direct_GCJ=yes
19720           export_dynamic_flag_spec_GCJ='${wl}-E'
19721
19722           # hardcode_minus_L: Not really in the search PATH,
19723           # but as the default location of the library.
19724           hardcode_minus_L_GCJ=yes
19725           ;;
19726         esac
19727       fi
19728       ;;
19729
19730     irix5* | irix6* | nonstopux*)
19731       if test "$GCC" = yes; then
19732         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19733       else
19734         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'
19735         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19736       fi
19737       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19738       hardcode_libdir_separator_GCJ=:
19739       link_all_deplibs_GCJ=yes
19740       ;;
19741
19742     netbsd*)
19743       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19744         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19745       else
19746         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19747       fi
19748       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19749       hardcode_direct_GCJ=yes
19750       hardcode_shlibpath_var_GCJ=no
19751       ;;
19752
19753     newsos6)
19754       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19755       hardcode_direct_GCJ=yes
19756       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19757       hardcode_libdir_separator_GCJ=:
19758       hardcode_shlibpath_var_GCJ=no
19759       ;;
19760
19761     openbsd*)
19762       hardcode_direct_GCJ=yes
19763       hardcode_shlibpath_var_GCJ=no
19764       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19765         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19766         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19767         export_dynamic_flag_spec_GCJ='${wl}-E'
19768       else
19769        case $host_os in
19770          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19771            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19772            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19773            ;;
19774          *)
19775            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19776            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19777            ;;
19778        esac
19779       fi
19780       ;;
19781
19782     os2*)
19783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19784       hardcode_minus_L_GCJ=yes
19785       allow_undefined_flag_GCJ=unsupported
19786       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
19787       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19788       ;;
19789
19790     osf3*)
19791       if test "$GCC" = yes; then
19792         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19793         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19794       else
19795         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19796         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'
19797       fi
19798       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19799       hardcode_libdir_separator_GCJ=:
19800       ;;
19801
19802     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19803       if test "$GCC" = yes; then
19804         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19805         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
19806         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19807       else
19808         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19809         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'
19810         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~
19811         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19812
19813         # Both c and cxx compiler support -rpath directly
19814         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19815       fi
19816       hardcode_libdir_separator_GCJ=:
19817       ;;
19818
19819     sco3.2v5*)
19820       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19821       hardcode_shlibpath_var_GCJ=no
19822       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19823       runpath_var=LD_RUN_PATH
19824       hardcode_runpath_var=yes
19825       ;;
19826
19827     solaris*)
19828       no_undefined_flag_GCJ=' -z text'
19829       if test "$GCC" = yes; then
19830         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19831         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19832           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
19833       else
19834         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19836         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19837       fi
19838       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19839       hardcode_shlibpath_var_GCJ=no
19840       case $host_os in
19841       solaris2.[0-5] | solaris2.[0-5].*) ;;
19842       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19843         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19844       esac
19845       link_all_deplibs_GCJ=yes
19846       ;;
19847
19848     sunos4*)
19849       if test "x$host_vendor" = xsequent; then
19850         # Use $CC to link under sequent, because it throws in some extra .o
19851         # files that make .init and .fini sections work.
19852         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
19853       else
19854         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19855       fi
19856       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19857       hardcode_direct_GCJ=yes
19858       hardcode_minus_L_GCJ=yes
19859       hardcode_shlibpath_var_GCJ=no
19860       ;;
19861
19862     sysv4)
19863       case $host_vendor in
19864         sni)
19865           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19866           hardcode_direct_GCJ=yes # is this really true???
19867         ;;
19868         siemens)
19869           ## LD is ld it makes a PLAMLIB
19870           ## CC just makes a GrossModule.
19871           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19872           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19873           hardcode_direct_GCJ=no
19874         ;;
19875         motorola)
19876           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19877           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19878         ;;
19879       esac
19880       runpath_var='LD_RUN_PATH'
19881       hardcode_shlibpath_var_GCJ=no
19882       ;;
19883
19884     sysv4.3*)
19885       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19886       hardcode_shlibpath_var_GCJ=no
19887       export_dynamic_flag_spec_GCJ='-Bexport'
19888       ;;
19889
19890     sysv4*MP*)
19891       if test -d /usr/nec; then
19892         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19893         hardcode_shlibpath_var_GCJ=no
19894         runpath_var=LD_RUN_PATH
19895         hardcode_runpath_var=yes
19896         ld_shlibs_GCJ=yes
19897       fi
19898       ;;
19899
19900     sysv4.2uw2*)
19901       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19902       hardcode_direct_GCJ=yes
19903       hardcode_minus_L_GCJ=no
19904       hardcode_shlibpath_var_GCJ=no
19905       hardcode_runpath_var=yes
19906       runpath_var=LD_RUN_PATH
19907       ;;
19908
19909    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19910       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19911       if test "$GCC" = yes; then
19912         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19913       else
19914         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19915       fi
19916       runpath_var='LD_RUN_PATH'
19917       hardcode_shlibpath_var_GCJ=no
19918       ;;
19919
19920     sysv5*)
19921       no_undefined_flag_GCJ=' -z text'
19922       # $CC -shared without GNU ld will not create a library from C++
19923       # object files and a static libstdc++, better avoid it by now
19924       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19925       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19926                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19927       hardcode_libdir_flag_spec_GCJ=
19928       hardcode_shlibpath_var_GCJ=no
19929       runpath_var='LD_RUN_PATH'
19930       ;;
19931
19932     uts4*)
19933       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19935       hardcode_shlibpath_var_GCJ=no
19936       ;;
19937
19938     *)
19939       ld_shlibs_GCJ=no
19940       ;;
19941     esac
19942   fi
19943
19944 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19945 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19946 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19947
19948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19949 if test "$GCC" = yes; then
19950   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19951 fi
19952
19953 #
19954 # Do we need to explicitly link libc?
19955 #
19956 case "x$archive_cmds_need_lc_GCJ" in
19957 x|xyes)
19958   # Assume -lc should be added
19959   archive_cmds_need_lc_GCJ=yes
19960
19961   if test "$enable_shared" = yes && test "$GCC" = yes; then
19962     case $archive_cmds_GCJ in
19963     *'~'*)
19964       # FIXME: we may have to deal with multi-command sequences.
19965       ;;
19966     '$CC '*)
19967       # Test whether the compiler implicitly links with -lc since on some
19968       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19969       # to ld, don't add -lc before -lgcc.
19970       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19971 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19972       $rm conftest*
19973       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974
19975       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976   (eval $ac_compile) 2>&5
19977   ac_status=$?
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } 2>conftest.err; then
19980         soname=conftest
19981         lib=conftest
19982         libobjs=conftest.$ac_objext
19983         deplibs=
19984         wl=$lt_prog_compiler_wl_GCJ
19985         compiler_flags=-v
19986         linker_flags=-v
19987         verstring=
19988         output_objdir=.
19989         libname=conftest
19990         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19991         allow_undefined_flag_GCJ=
19992         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19993   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }
19997         then
19998           archive_cmds_need_lc_GCJ=no
19999         else
20000           archive_cmds_need_lc_GCJ=yes
20001         fi
20002         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20003       else
20004         cat conftest.err 1>&5
20005       fi
20006       $rm conftest*
20007       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20008 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20009       ;;
20010     esac
20011   fi
20012   ;;
20013 esac
20014
20015 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20016 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20017 library_names_spec=
20018 libname_spec='lib$name'
20019 soname_spec=
20020 shrext=".so"
20021 postinstall_cmds=
20022 postuninstall_cmds=
20023 finish_cmds=
20024 finish_eval=
20025 shlibpath_var=
20026 shlibpath_overrides_runpath=unknown
20027 version_type=none
20028 dynamic_linker="$host_os ld.so"
20029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20031 need_lib_prefix=unknown
20032 hardcode_into_libs=no
20033
20034 # when you set need_version to no, make sure it does not cause -set_version
20035 # flags to be left without arguments
20036 need_version=unknown
20037
20038 case $host_os in
20039 aix3*)
20040   version_type=linux
20041   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20042   shlibpath_var=LIBPATH
20043
20044   # AIX 3 has no versioning support, so we append a major version to the name.
20045   soname_spec='${libname}${release}${shared_ext}$major'
20046   ;;
20047
20048 aix4* | aix5*)
20049   version_type=linux
20050   need_lib_prefix=no
20051   need_version=no
20052   hardcode_into_libs=yes
20053   if test "$host_cpu" = ia64; then
20054     # AIX 5 supports IA64
20055     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20056     shlibpath_var=LD_LIBRARY_PATH
20057   else
20058     # With GCC up to 2.95.x, collect2 would create an import file
20059     # for dependence libraries.  The import file would start with
20060     # the line `#! .'.  This would cause the generated library to
20061     # depend on `.', always an invalid library.  This was fixed in
20062     # development snapshots of GCC prior to 3.0.
20063     case $host_os in
20064       aix4 | aix4.[01] | aix4.[01].*)
20065       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20066            echo ' yes '
20067            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20068         :
20069       else
20070         can_build_shared=no
20071       fi
20072       ;;
20073     esac
20074     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20075     # soname into executable. Probably we can add versioning support to
20076     # collect2, so additional links can be useful in future.
20077     if test "$aix_use_runtimelinking" = yes; then
20078       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20079       # instead of lib<name>.a to let people know that these are not
20080       # typical AIX shared libraries.
20081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20082     else
20083       # We preserve .a as extension for shared libraries through AIX4.2
20084       # and later when we are not doing run time linking.
20085       library_names_spec='${libname}${release}.a $libname.a'
20086       soname_spec='${libname}${release}${shared_ext}$major'
20087     fi
20088     shlibpath_var=LIBPATH
20089   fi
20090   ;;
20091
20092 amigaos*)
20093   library_names_spec='$libname.ixlibrary $libname.a'
20094   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20095   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'
20096   ;;
20097
20098 beos*)
20099   library_names_spec='${libname}${shared_ext}'
20100   dynamic_linker="$host_os ld.so"
20101   shlibpath_var=LIBRARY_PATH
20102   ;;
20103
20104 bsdi4*)
20105   version_type=linux
20106   need_version=no
20107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20108   soname_spec='${libname}${release}${shared_ext}$major'
20109   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20110   shlibpath_var=LD_LIBRARY_PATH
20111   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20112   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20113   # the default ld.so.conf also contains /usr/contrib/lib and
20114   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20115   # libtool to hard-code these into programs
20116   ;;
20117
20118 cygwin* | mingw* | pw32*)
20119   version_type=windows
20120   shrext=".dll"
20121   need_version=no
20122   need_lib_prefix=no
20123
20124   case $GCC,$host_os in
20125   yes,cygwin* | yes,mingw* | yes,pw32*)
20126     library_names_spec='$libname.dll.a'
20127     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20128     postinstall_cmds='base_file=`basename \${file}`~
20129       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20130       dldir=$destdir/`dirname \$dlpath`~
20131       test -d \$dldir || mkdir -p \$dldir~
20132       $install_prog $dir/$dlname \$dldir/$dlname'
20133     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20134       dlpath=$dir/\$dldll~
20135        $rm \$dlpath'
20136     shlibpath_overrides_runpath=yes
20137
20138     case $host_os in
20139     cygwin*)
20140       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20141       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20142       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20143       ;;
20144     mingw*)
20145       # MinGW DLLs use traditional 'lib' prefix
20146       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20147       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20148       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20149         # It is most probably a Windows format PATH printed by
20150         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20151         # path with ; separators, and with drive letters. We can handle the
20152         # drive letters (cygwin fileutils understands them), so leave them,
20153         # especially as we might pass files found there to a mingw objdump,
20154         # which wouldn't understand a cygwinified path. Ahh.
20155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20156       else
20157         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20158       fi
20159       ;;
20160     pw32*)
20161       # pw32 DLLs use 'pw' prefix rather than 'lib'
20162       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20163       ;;
20164     esac
20165     ;;
20166
20167   *)
20168     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20169     ;;
20170   esac
20171   dynamic_linker='Win32 ld.exe'
20172   # FIXME: first we should search . and the directory the executable is in
20173   shlibpath_var=PATH
20174   ;;
20175
20176 darwin* | rhapsody*)
20177   dynamic_linker="$host_os dyld"
20178   version_type=darwin
20179   need_lib_prefix=no
20180   need_version=no
20181   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20182   soname_spec='${libname}${release}${major}$shared_ext'
20183   shlibpath_overrides_runpath=yes
20184   shlibpath_var=DYLD_LIBRARY_PATH
20185   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20186   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20187   if test "$GCC" = yes; then
20188     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"`
20189   else
20190     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20191   fi
20192   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20193   ;;
20194
20195 dgux*)
20196   version_type=linux
20197   need_lib_prefix=no
20198   need_version=no
20199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20200   soname_spec='${libname}${release}${shared_ext}$major'
20201   shlibpath_var=LD_LIBRARY_PATH
20202   ;;
20203
20204 freebsd1*)
20205   dynamic_linker=no
20206   ;;
20207
20208 kfreebsd*-gnu*)
20209   version_type=linux
20210   need_lib_prefix=no
20211   need_version=no
20212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20213   soname_spec='${libname}${release}${shared_ext}$major'
20214   shlibpath_var=LD_LIBRARY_PATH
20215   shlibpath_overrides_runpath=no
20216   hardcode_into_libs=yes
20217   dynamic_linker='GNU ld.so'
20218   ;;
20219
20220 freebsd*)
20221   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20222   version_type=freebsd-$objformat
20223   case $version_type in
20224     freebsd-elf*)
20225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20226       need_version=no
20227       need_lib_prefix=no
20228       ;;
20229     freebsd-*)
20230       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20231       need_version=yes
20232       ;;
20233   esac
20234   shlibpath_var=LD_LIBRARY_PATH
20235   case $host_os in
20236   freebsd2*)
20237     shlibpath_overrides_runpath=yes
20238     ;;
20239   freebsd3.01* | freebsdelf3.01*)
20240     shlibpath_overrides_runpath=yes
20241     hardcode_into_libs=yes
20242     ;;
20243   *) # from 3.2 on
20244     shlibpath_overrides_runpath=no
20245     hardcode_into_libs=yes
20246     ;;
20247   esac
20248   ;;
20249
20250 gnu*)
20251   version_type=linux
20252   need_lib_prefix=no
20253   need_version=no
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   shlibpath_var=LD_LIBRARY_PATH
20257   hardcode_into_libs=yes
20258   ;;
20259
20260 hpux9* | hpux10* | hpux11*)
20261   # Give a soname corresponding to the major version so that dld.sl refuses to
20262   # link against other versions.
20263   version_type=sunos
20264   need_lib_prefix=no
20265   need_version=no
20266   case "$host_cpu" in
20267   ia64*)
20268     shrext='.so'
20269     hardcode_into_libs=yes
20270     dynamic_linker="$host_os dld.so"
20271     shlibpath_var=LD_LIBRARY_PATH
20272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20274     soname_spec='${libname}${release}${shared_ext}$major'
20275     if test "X$HPUX_IA64_MODE" = X32; then
20276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20277     else
20278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20279     fi
20280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20281     ;;
20282    hppa*64*)
20283      shrext='.sl'
20284      hardcode_into_libs=yes
20285      dynamic_linker="$host_os dld.sl"
20286      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20287      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289      soname_spec='${libname}${release}${shared_ext}$major'
20290      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20291      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20292      ;;
20293    *)
20294     shrext='.sl'
20295     dynamic_linker="$host_os dld.sl"
20296     shlibpath_var=SHLIB_PATH
20297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299     soname_spec='${libname}${release}${shared_ext}$major'
20300     ;;
20301   esac
20302   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20303   postinstall_cmds='chmod 555 $lib'
20304   ;;
20305
20306 irix5* | irix6* | nonstopux*)
20307   case $host_os in
20308     nonstopux*) version_type=nonstopux ;;
20309     *)
20310         if test "$lt_cv_prog_gnu_ld" = yes; then
20311                 version_type=linux
20312         else
20313                 version_type=irix
20314         fi ;;
20315   esac
20316   need_lib_prefix=no
20317   need_version=no
20318   soname_spec='${libname}${release}${shared_ext}$major'
20319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20320   case $host_os in
20321   irix5* | nonstopux*)
20322     libsuff= shlibsuff=
20323     ;;
20324   *)
20325     case $LD in # libtool.m4 will add one of these switches to LD
20326     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20327       libsuff= shlibsuff= libmagic=32-bit;;
20328     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20329       libsuff=32 shlibsuff=N32 libmagic=N32;;
20330     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20331       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20332     *) libsuff= shlibsuff= libmagic=never-match;;
20333     esac
20334     ;;
20335   esac
20336   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20337   shlibpath_overrides_runpath=no
20338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20340   hardcode_into_libs=yes
20341   ;;
20342
20343 # No shared lib support for Linux oldld, aout, or coff.
20344 linux*oldld* | linux*aout* | linux*coff*)
20345   dynamic_linker=no
20346   ;;
20347
20348 # This must be Linux ELF.
20349 linux*)
20350   version_type=linux
20351   need_lib_prefix=no
20352   need_version=no
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354   soname_spec='${libname}${release}${shared_ext}$major'
20355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20356   libsuff=
20357   if test "x$LINUX_64_MODE" = x64; then
20358     # Some platforms are per default 64-bit, so there's no /lib64
20359     if test -d /lib64 -a ! -h /lib64; then
20360       libsuff=64
20361     fi
20362   fi
20363   shlibpath_var=LD_LIBRARY_PATH
20364   shlibpath_overrides_runpath=no
20365   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20366   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20367   # This implies no fast_install, which is unacceptable.
20368   # Some rework will be needed to allow for fast_install
20369   # before this can be enabled.
20370   hardcode_into_libs=yes
20371
20372   # We used to test for /lib/ld.so.1 and disable shared libraries on
20373   # powerpc, because MkLinux only supported shared libraries with the
20374   # GNU dynamic linker.  Since this was broken with cross compilers,
20375   # most powerpc-linux boxes support dynamic linking these days and
20376   # people can always --disable-shared, the test was removed, and we
20377   # assume the GNU/Linux dynamic linker is in use.
20378   dynamic_linker='GNU/Linux ld.so'
20379   ;;
20380
20381 netbsd*)
20382   version_type=sunos
20383   need_lib_prefix=no
20384   need_version=no
20385   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20387     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20388     dynamic_linker='NetBSD (a.out) ld.so'
20389   else
20390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20391     soname_spec='${libname}${release}${shared_ext}$major'
20392     dynamic_linker='NetBSD ld.elf_so'
20393   fi
20394   shlibpath_var=LD_LIBRARY_PATH
20395   shlibpath_overrides_runpath=yes
20396   hardcode_into_libs=yes
20397   ;;
20398
20399 newsos6)
20400   version_type=linux
20401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402   shlibpath_var=LD_LIBRARY_PATH
20403   shlibpath_overrides_runpath=yes
20404   ;;
20405
20406 nto-qnx*)
20407   version_type=linux
20408   need_lib_prefix=no
20409   need_version=no
20410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411   soname_spec='${libname}${release}${shared_ext}$major'
20412   shlibpath_var=LD_LIBRARY_PATH
20413   shlibpath_overrides_runpath=yes
20414   ;;
20415
20416 openbsd*)
20417   version_type=sunos
20418   need_lib_prefix=no
20419   need_version=no
20420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20422   shlibpath_var=LD_LIBRARY_PATH
20423   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20424     case $host_os in
20425       openbsd2.[89] | openbsd2.[89].*)
20426         shlibpath_overrides_runpath=no
20427         ;;
20428       *)
20429         shlibpath_overrides_runpath=yes
20430         ;;
20431       esac
20432   else
20433     shlibpath_overrides_runpath=yes
20434   fi
20435   ;;
20436
20437 os2*)
20438   libname_spec='$name'
20439   shrext=".dll"
20440   need_lib_prefix=no
20441   library_names_spec='$libname${shared_ext} $libname.a'
20442   dynamic_linker='OS/2 ld.exe'
20443   shlibpath_var=LIBPATH
20444   ;;
20445
20446 osf3* | osf4* | osf5*)
20447   version_type=osf
20448   need_lib_prefix=no
20449   need_version=no
20450   soname_spec='${libname}${release}${shared_ext}$major'
20451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20452   shlibpath_var=LD_LIBRARY_PATH
20453   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20454   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20455   ;;
20456
20457 sco3.2v5*)
20458   version_type=osf
20459   soname_spec='${libname}${release}${shared_ext}$major'
20460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461   shlibpath_var=LD_LIBRARY_PATH
20462   ;;
20463
20464 solaris*)
20465   version_type=linux
20466   need_lib_prefix=no
20467   need_version=no
20468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469   soname_spec='${libname}${release}${shared_ext}$major'
20470   shlibpath_var=LD_LIBRARY_PATH
20471   shlibpath_overrides_runpath=yes
20472   hardcode_into_libs=yes
20473   # ldd complains unless libraries are executable
20474   postinstall_cmds='chmod +x $lib'
20475   ;;
20476
20477 sunos4*)
20478   version_type=sunos
20479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20480   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20481   shlibpath_var=LD_LIBRARY_PATH
20482   shlibpath_overrides_runpath=yes
20483   if test "$with_gnu_ld" = yes; then
20484     need_lib_prefix=no
20485   fi
20486   need_version=yes
20487   ;;
20488
20489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20490   version_type=linux
20491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20492   soname_spec='${libname}${release}${shared_ext}$major'
20493   shlibpath_var=LD_LIBRARY_PATH
20494   case $host_vendor in
20495     sni)
20496       shlibpath_overrides_runpath=no
20497       need_lib_prefix=no
20498       export_dynamic_flag_spec='${wl}-Blargedynsym'
20499       runpath_var=LD_RUN_PATH
20500       ;;
20501     siemens)
20502       need_lib_prefix=no
20503       ;;
20504     motorola)
20505       need_lib_prefix=no
20506       need_version=no
20507       shlibpath_overrides_runpath=no
20508       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20509       ;;
20510   esac
20511   ;;
20512
20513 sysv4*MP*)
20514   if test -d /usr/nec ;then
20515     version_type=linux
20516     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20517     soname_spec='$libname${shared_ext}.$major'
20518     shlibpath_var=LD_LIBRARY_PATH
20519   fi
20520   ;;
20521
20522 uts4*)
20523   version_type=linux
20524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525   soname_spec='${libname}${release}${shared_ext}$major'
20526   shlibpath_var=LD_LIBRARY_PATH
20527   ;;
20528
20529 *)
20530   dynamic_linker=no
20531   ;;
20532 esac
20533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20534 echo "${ECHO_T}$dynamic_linker" >&6; }
20535 test "$dynamic_linker" = no && can_build_shared=no
20536
20537 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20539 hardcode_action_GCJ=
20540 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20541    test -n "$runpath_var GCJ" || \
20542    test "X$hardcode_automatic_GCJ"="Xyes" ; then
20543
20544   # We can hardcode non-existant directories.
20545   if test "$hardcode_direct_GCJ" != no &&
20546      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20547      # have to relink, otherwise we might link with an installed library
20548      # when we should be linking with a yet-to-be-installed one
20549      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20550      test "$hardcode_minus_L_GCJ" != no; then
20551     # Linking always hardcodes the temporary library directory.
20552     hardcode_action_GCJ=relink
20553   else
20554     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20555     hardcode_action_GCJ=immediate
20556   fi
20557 else
20558   # We cannot hardcode anything, or else we can only hardcode existing
20559   # directories.
20560   hardcode_action_GCJ=unsupported
20561 fi
20562 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20563 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20564
20565 if test "$hardcode_action_GCJ" = relink; then
20566   # Fast installation is not supported
20567   enable_fast_install=no
20568 elif test "$shlibpath_overrides_runpath" = yes ||
20569      test "$enable_shared" = no; then
20570   # Fast installation is not necessary
20571   enable_fast_install=needless
20572 fi
20573
20574 striplib=
20575 old_striplib=
20576 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20577 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20578 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20579   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20580   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20581   { echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6; }
20583 else
20584 # FIXME - insert some real tests, host_os isn't really good enough
20585   case $host_os in
20586    darwin*)
20587        if test -n "$STRIP" ; then
20588          striplib="$STRIP -x"
20589          { echo "$as_me:$LINENO: result: yes" >&5
20590 echo "${ECHO_T}yes" >&6; }
20591        else
20592   { echo "$as_me:$LINENO: result: no" >&5
20593 echo "${ECHO_T}no" >&6; }
20594 fi
20595        ;;
20596    *)
20597   { echo "$as_me:$LINENO: result: no" >&5
20598 echo "${ECHO_T}no" >&6; }
20599     ;;
20600   esac
20601 fi
20602
20603 if test "x$enable_dlopen" != xyes; then
20604   enable_dlopen=unknown
20605   enable_dlopen_self=unknown
20606   enable_dlopen_self_static=unknown
20607 else
20608   lt_cv_dlopen=no
20609   lt_cv_dlopen_libs=
20610
20611   case $host_os in
20612   beos*)
20613     lt_cv_dlopen="load_add_on"
20614     lt_cv_dlopen_libs=
20615     lt_cv_dlopen_self=yes
20616     ;;
20617
20618   mingw* | pw32*)
20619     lt_cv_dlopen="LoadLibrary"
20620     lt_cv_dlopen_libs=
20621    ;;
20622
20623   cygwin*)
20624     lt_cv_dlopen="dlopen"
20625     lt_cv_dlopen_libs=
20626    ;;
20627
20628   darwin*)
20629   # if libdl is installed we need to link against it
20630     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20633   echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635   ac_check_lib_save_LIBS=$LIBS
20636 LIBS="-ldl  $LIBS"
20637 cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643
20644 /* Override any GCC internal prototype to avoid an error.
20645    Use char because int might match the return type of a GCC
20646    builtin and then its argument prototype would still apply.  */
20647 #ifdef __cplusplus
20648 extern "C"
20649 #endif
20650 char dlopen ();
20651 int
20652 main ()
20653 {
20654 return dlopen ();
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (ac_try="$ac_link"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_link") 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } && {
20673          test -z "$ac_c_werror_flag" ||
20674          test ! -s conftest.err
20675        } && test -s conftest$ac_exeext &&
20676        $as_test_x conftest$ac_exeext; then
20677   ac_cv_lib_dl_dlopen=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682         ac_cv_lib_dl_dlopen=no
20683 fi
20684
20685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20686       conftest$ac_exeext conftest.$ac_ext
20687 LIBS=$ac_check_lib_save_LIBS
20688 fi
20689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20691 if test $ac_cv_lib_dl_dlopen = yes; then
20692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20693 else
20694
20695     lt_cv_dlopen="dyld"
20696     lt_cv_dlopen_libs=
20697     lt_cv_dlopen_self=yes
20698
20699 fi
20700
20701    ;;
20702
20703   *)
20704     { echo "$as_me:$LINENO: checking for shl_load" >&5
20705 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20706 if test "${ac_cv_func_shl_load+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20717 #define shl_load innocuous_shl_load
20718
20719 /* System header to define __stub macros and hopefully few prototypes,
20720     which can conflict with char shl_load (); below.
20721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20722     <limits.h> exists even on freestanding compilers.  */
20723
20724 #ifdef __STDC__
20725 # include <limits.h>
20726 #else
20727 # include <assert.h>
20728 #endif
20729
20730 #undef shl_load
20731
20732 /* Override any GCC internal prototype to avoid an error.
20733    Use char because int might match the return type of a GCC
20734    builtin and then its argument prototype would still apply.  */
20735 #ifdef __cplusplus
20736 extern "C"
20737 #endif
20738 char shl_load ();
20739 /* The GNU C library defines this for functions which it implements
20740     to always fail with ENOSYS.  Some functions are actually named
20741     something starting with __ and the normal name is an alias.  */
20742 #if defined __stub_shl_load || defined __stub___shl_load
20743 choke me
20744 #endif
20745
20746 int
20747 main ()
20748 {
20749 return shl_load ();
20750   ;
20751   return 0;
20752 }
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758   *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761   (eval "$ac_link") 2>conftest.er1
20762   ac_status=$?
20763   grep -v '^ *+' conftest.er1 >conftest.err
20764   rm -f conftest.er1
20765   cat conftest.err >&5
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); } && {
20768          test -z "$ac_c_werror_flag" ||
20769          test ! -s conftest.err
20770        } && test -s conftest$ac_exeext &&
20771        $as_test_x conftest$ac_exeext; then
20772   ac_cv_func_shl_load=yes
20773 else
20774   echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20776
20777         ac_cv_func_shl_load=no
20778 fi
20779
20780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20781       conftest$ac_exeext conftest.$ac_ext
20782 fi
20783 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20784 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20785 if test $ac_cv_func_shl_load = yes; then
20786   lt_cv_dlopen="shl_load"
20787 else
20788   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   ac_check_lib_save_LIBS=$LIBS
20794 LIBS="-ldld  $LIBS"
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801
20802 /* Override any GCC internal prototype to avoid an error.
20803    Use char because int might match the return type of a GCC
20804    builtin and then its argument prototype would still apply.  */
20805 #ifdef __cplusplus
20806 extern "C"
20807 #endif
20808 char shl_load ();
20809 int
20810 main ()
20811 {
20812 return shl_load ();
20813   ;
20814   return 0;
20815 }
20816 _ACEOF
20817 rm -f conftest.$ac_objext conftest$ac_exeext
20818 if { (ac_try="$ac_link"
20819 case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_link") 2>conftest.er1
20825   ac_status=$?
20826   grep -v '^ *+' conftest.er1 >conftest.err
20827   rm -f conftest.er1
20828   cat conftest.err >&5
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } && {
20831          test -z "$ac_c_werror_flag" ||
20832          test ! -s conftest.err
20833        } && test -s conftest$ac_exeext &&
20834        $as_test_x conftest$ac_exeext; then
20835   ac_cv_lib_dld_shl_load=yes
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840         ac_cv_lib_dld_shl_load=no
20841 fi
20842
20843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20844       conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20846 fi
20847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20849 if test $ac_cv_lib_dld_shl_load = yes; then
20850   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20851 else
20852   { echo "$as_me:$LINENO: checking for dlopen" >&5
20853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20854 if test "${ac_cv_func_dlopen+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857   cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20865 #define dlopen innocuous_dlopen
20866
20867 /* System header to define __stub macros and hopefully few prototypes,
20868     which can conflict with char dlopen (); below.
20869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20870     <limits.h> exists even on freestanding compilers.  */
20871
20872 #ifdef __STDC__
20873 # include <limits.h>
20874 #else
20875 # include <assert.h>
20876 #endif
20877
20878 #undef dlopen
20879
20880 /* Override any GCC internal prototype to avoid an error.
20881    Use char because int might match the return type of a GCC
20882    builtin and then its argument prototype would still apply.  */
20883 #ifdef __cplusplus
20884 extern "C"
20885 #endif
20886 char dlopen ();
20887 /* The GNU C library defines this for functions which it implements
20888     to always fail with ENOSYS.  Some functions are actually named
20889     something starting with __ and the normal name is an alias.  */
20890 #if defined __stub_dlopen || defined __stub___dlopen
20891 choke me
20892 #endif
20893
20894 int
20895 main ()
20896 {
20897 return dlopen ();
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (ac_try="$ac_link"
20904 case "(($ac_try" in
20905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906   *) ac_try_echo=$ac_try;;
20907 esac
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909   (eval "$ac_link") 2>conftest.er1
20910   ac_status=$?
20911   grep -v '^ *+' conftest.er1 >conftest.err
20912   rm -f conftest.er1
20913   cat conftest.err >&5
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); } && {
20916          test -z "$ac_c_werror_flag" ||
20917          test ! -s conftest.err
20918        } && test -s conftest$ac_exeext &&
20919        $as_test_x conftest$ac_exeext; then
20920   ac_cv_func_dlopen=yes
20921 else
20922   echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925         ac_cv_func_dlopen=no
20926 fi
20927
20928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20929       conftest$ac_exeext conftest.$ac_ext
20930 fi
20931 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20932 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
20933 if test $ac_cv_func_dlopen = yes; then
20934   lt_cv_dlopen="dlopen"
20935 else
20936   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941   ac_check_lib_save_LIBS=$LIBS
20942 LIBS="-ldl  $LIBS"
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949
20950 /* Override any GCC internal prototype to avoid an error.
20951    Use char because int might match the return type of a GCC
20952    builtin and then its argument prototype would still apply.  */
20953 #ifdef __cplusplus
20954 extern "C"
20955 #endif
20956 char dlopen ();
20957 int
20958 main ()
20959 {
20960 return dlopen ();
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext conftest$ac_exeext
20966 if { (ac_try="$ac_link"
20967 case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_link") 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } && {
20979          test -z "$ac_c_werror_flag" ||
20980          test ! -s conftest.err
20981        } && test -s conftest$ac_exeext &&
20982        $as_test_x conftest$ac_exeext; then
20983   ac_cv_lib_dl_dlopen=yes
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         ac_cv_lib_dl_dlopen=no
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20992       conftest$ac_exeext conftest.$ac_ext
20993 LIBS=$ac_check_lib_save_LIBS
20994 fi
20995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20997 if test $ac_cv_lib_dl_dlopen = yes; then
20998   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20999 else
21000   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21001 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
21002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005   ac_check_lib_save_LIBS=$LIBS
21006 LIBS="-lsvld  $LIBS"
21007 cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013
21014 /* Override any GCC internal prototype to avoid an error.
21015    Use char because int might match the return type of a GCC
21016    builtin and then its argument prototype would still apply.  */
21017 #ifdef __cplusplus
21018 extern "C"
21019 #endif
21020 char dlopen ();
21021 int
21022 main ()
21023 {
21024 return dlopen ();
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext conftest$ac_exeext
21030 if { (ac_try="$ac_link"
21031 case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_link") 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } && {
21043          test -z "$ac_c_werror_flag" ||
21044          test ! -s conftest.err
21045        } && test -s conftest$ac_exeext &&
21046        $as_test_x conftest$ac_exeext; then
21047   ac_cv_lib_svld_dlopen=yes
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         ac_cv_lib_svld_dlopen=no
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21056       conftest$ac_exeext conftest.$ac_ext
21057 LIBS=$ac_check_lib_save_LIBS
21058 fi
21059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21061 if test $ac_cv_lib_svld_dlopen = yes; then
21062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21063 else
21064   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21065 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-ldld  $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077
21078 /* Override any GCC internal prototype to avoid an error.
21079    Use char because int might match the return type of a GCC
21080    builtin and then its argument prototype would still apply.  */
21081 #ifdef __cplusplus
21082 extern "C"
21083 #endif
21084 char dld_link ();
21085 int
21086 main ()
21087 {
21088 return dld_link ();
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest$ac_exeext &&
21110        $as_test_x conftest$ac_exeext; then
21111   ac_cv_lib_dld_dld_link=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116         ac_cv_lib_dld_dld_link=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120       conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21122 fi
21123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21125 if test $ac_cv_lib_dld_dld_link = yes; then
21126   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21127 fi
21128
21129
21130 fi
21131
21132
21133 fi
21134
21135
21136 fi
21137
21138
21139 fi
21140
21141
21142 fi
21143
21144     ;;
21145   esac
21146
21147   if test "x$lt_cv_dlopen" != xno; then
21148     enable_dlopen=yes
21149   else
21150     enable_dlopen=no
21151   fi
21152
21153   case $lt_cv_dlopen in
21154   dlopen)
21155     save_CPPFLAGS="$CPPFLAGS"
21156     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21157
21158     save_LDFLAGS="$LDFLAGS"
21159     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21160
21161     save_LIBS="$LIBS"
21162     LIBS="$lt_cv_dlopen_libs $LIBS"
21163
21164     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
21166 if test "${lt_cv_dlopen_self+set}" = set; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169           if test "$cross_compiling" = yes; then :
21170   lt_cv_dlopen_self=cross
21171 else
21172   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21173   lt_status=$lt_dlunknown
21174   cat > conftest.$ac_ext <<EOF
21175 #line 21175 "configure"
21176 #include "confdefs.h"
21177
21178 #if HAVE_DLFCN_H
21179 #include <dlfcn.h>
21180 #endif
21181
21182 #include <stdio.h>
21183
21184 #ifdef RTLD_GLOBAL
21185 #  define LT_DLGLOBAL           RTLD_GLOBAL
21186 #else
21187 #  ifdef DL_GLOBAL
21188 #    define LT_DLGLOBAL         DL_GLOBAL
21189 #  else
21190 #    define LT_DLGLOBAL         0
21191 #  endif
21192 #endif
21193
21194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21195    find out it does not work in some platform. */
21196 #ifndef LT_DLLAZY_OR_NOW
21197 #  ifdef RTLD_LAZY
21198 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21199 #  else
21200 #    ifdef DL_LAZY
21201 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21202 #    else
21203 #      ifdef RTLD_NOW
21204 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21205 #      else
21206 #        ifdef DL_NOW
21207 #          define LT_DLLAZY_OR_NOW      DL_NOW
21208 #        else
21209 #          define LT_DLLAZY_OR_NOW      0
21210 #        endif
21211 #      endif
21212 #    endif
21213 #  endif
21214 #endif
21215
21216 #ifdef __cplusplus
21217 extern "C" void exit (int);
21218 #endif
21219
21220 void fnord() { int i=42;}
21221 int main ()
21222 {
21223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21224   int status = $lt_dlunknown;
21225
21226   if (self)
21227     {
21228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21229       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21230       /* dlclose (self); */
21231     }
21232
21233     exit (status);
21234 }
21235 EOF
21236   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21237   (eval $ac_link) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21241     (./conftest; exit; ) 2>/dev/null
21242     lt_status=$?
21243     case x$lt_status in
21244       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21245       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21246       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21247     esac
21248   else :
21249     # compilation failed
21250     lt_cv_dlopen_self=no
21251   fi
21252 fi
21253 rm -fr conftest*
21254
21255
21256 fi
21257 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21259
21260     if test "x$lt_cv_dlopen_self" = xyes; then
21261       LDFLAGS="$LDFLAGS $link_static_flag"
21262       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21264 if test "${lt_cv_dlopen_self_static+set}" = set; then
21265   echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267           if test "$cross_compiling" = yes; then :
21268   lt_cv_dlopen_self_static=cross
21269 else
21270   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21271   lt_status=$lt_dlunknown
21272   cat > conftest.$ac_ext <<EOF
21273 #line 21273 "configure"
21274 #include "confdefs.h"
21275
21276 #if HAVE_DLFCN_H
21277 #include <dlfcn.h>
21278 #endif
21279
21280 #include <stdio.h>
21281
21282 #ifdef RTLD_GLOBAL
21283 #  define LT_DLGLOBAL           RTLD_GLOBAL
21284 #else
21285 #  ifdef DL_GLOBAL
21286 #    define LT_DLGLOBAL         DL_GLOBAL
21287 #  else
21288 #    define LT_DLGLOBAL         0
21289 #  endif
21290 #endif
21291
21292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21293    find out it does not work in some platform. */
21294 #ifndef LT_DLLAZY_OR_NOW
21295 #  ifdef RTLD_LAZY
21296 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21297 #  else
21298 #    ifdef DL_LAZY
21299 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21300 #    else
21301 #      ifdef RTLD_NOW
21302 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21303 #      else
21304 #        ifdef DL_NOW
21305 #          define LT_DLLAZY_OR_NOW      DL_NOW
21306 #        else
21307 #          define LT_DLLAZY_OR_NOW      0
21308 #        endif
21309 #      endif
21310 #    endif
21311 #  endif
21312 #endif
21313
21314 #ifdef __cplusplus
21315 extern "C" void exit (int);
21316 #endif
21317
21318 void fnord() { int i=42;}
21319 int main ()
21320 {
21321   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21322   int status = $lt_dlunknown;
21323
21324   if (self)
21325     {
21326       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21327       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21328       /* dlclose (self); */
21329     }
21330
21331     exit (status);
21332 }
21333 EOF
21334   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335   (eval $ac_link) 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21339     (./conftest; exit; ) 2>/dev/null
21340     lt_status=$?
21341     case x$lt_status in
21342       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21343       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21344       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21345     esac
21346   else :
21347     # compilation failed
21348     lt_cv_dlopen_self_static=no
21349   fi
21350 fi
21351 rm -fr conftest*
21352
21353
21354 fi
21355 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21356 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21357     fi
21358
21359     CPPFLAGS="$save_CPPFLAGS"
21360     LDFLAGS="$save_LDFLAGS"
21361     LIBS="$save_LIBS"
21362     ;;
21363   esac
21364
21365   case $lt_cv_dlopen_self in
21366   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21367   *) enable_dlopen_self=unknown ;;
21368   esac
21369
21370   case $lt_cv_dlopen_self_static in
21371   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21372   *) enable_dlopen_self_static=unknown ;;
21373   esac
21374 fi
21375
21376
21377 # The else clause should only fire when bootstrapping the
21378 # libtool distribution, otherwise you forgot to ship ltmain.sh
21379 # with your package, and you will get complaints that there are
21380 # no rules to generate ltmain.sh.
21381 if test -f "$ltmain"; then
21382   # See if we are running on zsh, and set the options which allow our commands through
21383   # without removal of \ escapes.
21384   if test -n "${ZSH_VERSION+set}" ; then
21385     setopt NO_GLOB_SUBST
21386   fi
21387   # Now quote all the things that may contain metacharacters while being
21388   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21389   # variables and quote the copies for generation of the libtool script.
21390   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21391     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21392     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21393     deplibs_check_method reload_flag reload_cmds need_locks \
21394     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21395     lt_cv_sys_global_symbol_to_c_name_address \
21396     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21397     old_postinstall_cmds old_postuninstall_cmds \
21398     compiler_GCJ \
21399     CC_GCJ \
21400     LD_GCJ \
21401     lt_prog_compiler_wl_GCJ \
21402     lt_prog_compiler_pic_GCJ \
21403     lt_prog_compiler_static_GCJ \
21404     lt_prog_compiler_no_builtin_flag_GCJ \
21405     export_dynamic_flag_spec_GCJ \
21406     thread_safe_flag_spec_GCJ \
21407     whole_archive_flag_spec_GCJ \
21408     enable_shared_with_static_runtimes_GCJ \
21409     old_archive_cmds_GCJ \
21410     old_archive_from_new_cmds_GCJ \
21411     predep_objects_GCJ \
21412     postdep_objects_GCJ \
21413     predeps_GCJ \
21414     postdeps_GCJ \
21415     compiler_lib_search_path_GCJ \
21416     archive_cmds_GCJ \
21417     archive_expsym_cmds_GCJ \
21418     postinstall_cmds_GCJ \
21419     postuninstall_cmds_GCJ \
21420     old_archive_from_expsyms_cmds_GCJ \
21421     allow_undefined_flag_GCJ \
21422     no_undefined_flag_GCJ \
21423     export_symbols_cmds_GCJ \
21424     hardcode_libdir_flag_spec_GCJ \
21425     hardcode_libdir_flag_spec_ld_GCJ \
21426     hardcode_libdir_separator_GCJ \
21427     hardcode_automatic_GCJ \
21428     module_cmds_GCJ \
21429     module_expsym_cmds_GCJ \
21430     lt_cv_prog_compiler_c_o_GCJ \
21431     exclude_expsyms_GCJ \
21432     include_expsyms_GCJ; do
21433
21434     case $var in
21435     old_archive_cmds_GCJ | \
21436     old_archive_from_new_cmds_GCJ | \
21437     archive_cmds_GCJ | \
21438     archive_expsym_cmds_GCJ | \
21439     module_cmds_GCJ | \
21440     module_expsym_cmds_GCJ | \
21441     old_archive_from_expsyms_cmds_GCJ | \
21442     export_symbols_cmds_GCJ | \
21443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21444     postinstall_cmds | postuninstall_cmds | \
21445     old_postinstall_cmds | old_postuninstall_cmds | \
21446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21447       # Double-quote double-evaled strings.
21448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21449       ;;
21450     *)
21451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21452       ;;
21453     esac
21454   done
21455
21456   case $lt_echo in
21457   *'\$0 --fallback-echo"')
21458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21459     ;;
21460   esac
21461
21462 cfgfile="$ofile"
21463
21464   cat <<__EOF__ >> "$cfgfile"
21465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21466
21467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21468
21469 # Shell to use when invoking shell scripts.
21470 SHELL=$lt_SHELL
21471
21472 # Whether or not to build shared libraries.
21473 build_libtool_libs=$enable_shared
21474
21475 # Whether or not to build static libraries.
21476 build_old_libs=$enable_static
21477
21478 # Whether or not to add -lc for building shared libraries.
21479 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21480
21481 # Whether or not to disallow shared libs when runtime libs are static
21482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21483
21484 # Whether or not to optimize for fast installation.
21485 fast_install=$enable_fast_install
21486
21487 # The host system.
21488 host_alias=$host_alias
21489 host=$host
21490
21491 # An echo program that does not interpret backslashes.
21492 echo=$lt_echo
21493
21494 # The archiver.
21495 AR=$lt_AR
21496 AR_FLAGS=$lt_AR_FLAGS
21497
21498 # A C compiler.
21499 LTCC=$lt_LTCC
21500
21501 # A language-specific compiler.
21502 CC=$lt_compiler_GCJ
21503
21504 # Is the compiler the GNU C compiler?
21505 with_gcc=$GCC_GCJ
21506
21507 # An ERE matcher.
21508 EGREP=$lt_EGREP
21509
21510 # The linker used to build libraries.
21511 LD=$lt_LD_GCJ
21512
21513 # Whether we need hard or soft links.
21514 LN_S=$lt_LN_S
21515
21516 # A BSD-compatible nm program.
21517 NM=$lt_NM
21518
21519 # A symbol stripping program
21520 STRIP=$STRIP
21521
21522 # Used to examine libraries when file_magic_cmd begins "file"
21523 MAGIC_CMD=$MAGIC_CMD
21524
21525 # Used on cygwin: DLL creation program.
21526 DLLTOOL="$DLLTOOL"
21527
21528 # Used on cygwin: object dumper.
21529 OBJDUMP="$OBJDUMP"
21530
21531 # Used on cygwin: assembler.
21532 AS="$AS"
21533
21534 # The name of the directory that contains temporary libtool files.
21535 objdir=$objdir
21536
21537 # How to create reloadable object files.
21538 reload_flag=$lt_reload_flag
21539 reload_cmds=$lt_reload_cmds
21540
21541 # How to pass a linker flag through the compiler.
21542 wl=$lt_lt_prog_compiler_wl_GCJ
21543
21544 # Object file suffix (normally "o").
21545 objext="$ac_objext"
21546
21547 # Old archive suffix (normally "a").
21548 libext="$libext"
21549
21550 # Shared library suffix (normally ".so").
21551 shrext='$shrext'
21552
21553 # Executable file suffix (normally "").
21554 exeext="$exeext"
21555
21556 # Additional compiler flags for building library objects.
21557 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21558 pic_mode=$pic_mode
21559
21560 # What is the maximum length of a command?
21561 max_cmd_len=$lt_cv_sys_max_cmd_len
21562
21563 # Does compiler simultaneously support -c and -o options?
21564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21565
21566 # Must we lock files when doing compilation ?
21567 need_locks=$lt_need_locks
21568
21569 # Do we need the lib prefix for modules?
21570 need_lib_prefix=$need_lib_prefix
21571
21572 # Do we need a version for libraries?
21573 need_version=$need_version
21574
21575 # Whether dlopen is supported.
21576 dlopen_support=$enable_dlopen
21577
21578 # Whether dlopen of programs is supported.
21579 dlopen_self=$enable_dlopen_self
21580
21581 # Whether dlopen of statically linked programs is supported.
21582 dlopen_self_static=$enable_dlopen_self_static
21583
21584 # Compiler flag to prevent dynamic linking.
21585 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21586
21587 # Compiler flag to turn off builtin functions.
21588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21589
21590 # Compiler flag to allow reflexive dlopens.
21591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21592
21593 # Compiler flag to generate shared objects directly from archives.
21594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21595
21596 # Compiler flag to generate thread-safe objects.
21597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21598
21599 # Library versioning type.
21600 version_type=$version_type
21601
21602 # Format of library name prefix.
21603 libname_spec=$lt_libname_spec
21604
21605 # List of archive names.  First name is the real one, the rest are links.
21606 # The last name is the one that the linker finds with -lNAME.
21607 library_names_spec=$lt_library_names_spec
21608
21609 # The coded name of the library, if different from the real name.
21610 soname_spec=$lt_soname_spec
21611
21612 # Commands used to build and install an old-style archive.
21613 RANLIB=$lt_RANLIB
21614 old_archive_cmds=$lt_old_archive_cmds_GCJ
21615 old_postinstall_cmds=$lt_old_postinstall_cmds
21616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21617
21618 # Create an old-style archive from a shared archive.
21619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21620
21621 # Create a temporary old-style archive to link instead of a shared archive.
21622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21623
21624 # Commands used to build and install a shared archive.
21625 archive_cmds=$lt_archive_cmds_GCJ
21626 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21627 postinstall_cmds=$lt_postinstall_cmds
21628 postuninstall_cmds=$lt_postuninstall_cmds
21629
21630 # Commands used to build a loadable module (assumed same as above if empty)
21631 module_cmds=$lt_module_cmds_GCJ
21632 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21633
21634 # Commands to strip libraries.
21635 old_striplib=$lt_old_striplib
21636 striplib=$lt_striplib
21637
21638 # Dependencies to place before the objects being linked to create a
21639 # shared library.
21640 predep_objects=$lt_predep_objects_GCJ
21641
21642 # Dependencies to place after the objects being linked to create a
21643 # shared library.
21644 postdep_objects=$lt_postdep_objects_GCJ
21645
21646 # Dependencies to place before the objects being linked to create a
21647 # shared library.
21648 predeps=$lt_predeps_GCJ
21649
21650 # Dependencies to place after the objects being linked to create a
21651 # shared library.
21652 postdeps=$lt_postdeps_GCJ
21653
21654 # The library search path used internally by the compiler when linking
21655 # a shared library.
21656 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21657
21658 # Method to check whether dependent libraries are shared objects.
21659 deplibs_check_method=$lt_deplibs_check_method
21660
21661 # Command to use when deplibs_check_method == file_magic.
21662 file_magic_cmd=$lt_file_magic_cmd
21663
21664 # Flag that allows shared libraries with undefined symbols to be built.
21665 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21666
21667 # Flag that forces no undefined symbols.
21668 no_undefined_flag=$lt_no_undefined_flag_GCJ
21669
21670 # Commands used to finish a libtool library installation in a directory.
21671 finish_cmds=$lt_finish_cmds
21672
21673 # Same as above, but a single script fragment to be evaled but not shown.
21674 finish_eval=$lt_finish_eval
21675
21676 # Take the output of nm and produce a listing of raw symbols and C names.
21677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21678
21679 # Transform the output of nm in a proper C declaration
21680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21681
21682 # Transform the output of nm in a C name address pair
21683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21684
21685 # This is the shared library runtime path variable.
21686 runpath_var=$runpath_var
21687
21688 # This is the shared library path variable.
21689 shlibpath_var=$shlibpath_var
21690
21691 # Is shlibpath searched before the hard-coded library search path?
21692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21693
21694 # How to hardcode a shared library path into an executable.
21695 hardcode_action=$hardcode_action_GCJ
21696
21697 # Whether we should hardcode library paths into libraries.
21698 hardcode_into_libs=$hardcode_into_libs
21699
21700 # Flag to hardcode \$libdir into a binary during linking.
21701 # This must work even if \$libdir does not exist.
21702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21703
21704 # If ld is used when linking, flag to hardcode \$libdir into
21705 # a binary during linking. This must work even if \$libdir does
21706 # not exist.
21707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21708
21709 # Whether we need a single -rpath flag with a separated argument.
21710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21711
21712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21713 # resulting binary.
21714 hardcode_direct=$hardcode_direct_GCJ
21715
21716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21717 # resulting binary.
21718 hardcode_minus_L=$hardcode_minus_L_GCJ
21719
21720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21721 # the resulting binary.
21722 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21723
21724 # Set to yes if building a shared library automatically hardcodes DIR into the library
21725 # and all subsequent libraries and executables linked against it.
21726 hardcode_automatic=$hardcode_automatic_GCJ
21727
21728 # Variables whose values should be saved in libtool wrapper scripts and
21729 # restored at relink time.
21730 variables_saved_for_relink="$variables_saved_for_relink"
21731
21732 # Whether libtool must link a program against all its dependency libraries.
21733 link_all_deplibs=$link_all_deplibs_GCJ
21734
21735 # Compile-time system search path for libraries
21736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21737
21738 # Run-time system search path for libraries
21739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21740
21741 # Fix the shell variable \$srcfile for the compiler.
21742 fix_srcfile_path="$fix_srcfile_path_GCJ"
21743
21744 # Set to yes if exported symbols are required.
21745 always_export_symbols=$always_export_symbols_GCJ
21746
21747 # The commands to list exported symbols.
21748 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21749
21750 # The commands to extract the exported symbol list from a shared archive.
21751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21752
21753 # Symbols that should not be listed in the preloaded symbols.
21754 exclude_expsyms=$lt_exclude_expsyms_GCJ
21755
21756 # Symbols that must always be exported.
21757 include_expsyms=$lt_include_expsyms_GCJ
21758
21759 # ### END LIBTOOL TAG CONFIG: $tagname
21760
21761 __EOF__
21762
21763
21764 else
21765   # If there is no Makefile yet, we rely on a make rule to execute
21766   # `config.status --recheck' to rerun these tests and create the
21767   # libtool script then.
21768   test -f Makefile && make "$ltmain"
21769 fi
21770
21771
21772 ac_ext=c
21773 ac_cpp='$CPP $CPPFLAGS'
21774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21777
21778 CC="$lt_save_CC"
21779
21780         else
21781           tagname=""
21782         fi
21783         ;;
21784
21785       RC)
21786
21787
21788 # Source file extension for RC test sources.
21789 ac_ext=rc
21790
21791 # Object file extension for compiled RC test sources.
21792 objext=o
21793 objext_RC=$objext
21794
21795 # Code to be used in simple compile tests
21796 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21797
21798 # Code to be used in simple link tests
21799 lt_simple_link_test_code="$lt_simple_compile_test_code"
21800
21801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21802
21803 # If no C compiler was specified, use CC.
21804 LTCC=${LTCC-"$CC"}
21805
21806 # Allow CC to be a program name with arguments.
21807 compiler=$CC
21808
21809
21810 # Allow CC to be a program name with arguments.
21811 lt_save_CC="$CC"
21812 CC=${RC-"windres"}
21813 compiler=$CC
21814 compiler_RC=$CC
21815 lt_cv_prog_compiler_c_o_RC=yes
21816
21817 # The else clause should only fire when bootstrapping the
21818 # libtool distribution, otherwise you forgot to ship ltmain.sh
21819 # with your package, and you will get complaints that there are
21820 # no rules to generate ltmain.sh.
21821 if test -f "$ltmain"; then
21822   # See if we are running on zsh, and set the options which allow our commands through
21823   # without removal of \ escapes.
21824   if test -n "${ZSH_VERSION+set}" ; then
21825     setopt NO_GLOB_SUBST
21826   fi
21827   # Now quote all the things that may contain metacharacters while being
21828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21829   # variables and quote the copies for generation of the libtool script.
21830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21831     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21832     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21833     deplibs_check_method reload_flag reload_cmds need_locks \
21834     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21835     lt_cv_sys_global_symbol_to_c_name_address \
21836     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21837     old_postinstall_cmds old_postuninstall_cmds \
21838     compiler_RC \
21839     CC_RC \
21840     LD_RC \
21841     lt_prog_compiler_wl_RC \
21842     lt_prog_compiler_pic_RC \
21843     lt_prog_compiler_static_RC \
21844     lt_prog_compiler_no_builtin_flag_RC \
21845     export_dynamic_flag_spec_RC \
21846     thread_safe_flag_spec_RC \
21847     whole_archive_flag_spec_RC \
21848     enable_shared_with_static_runtimes_RC \
21849     old_archive_cmds_RC \
21850     old_archive_from_new_cmds_RC \
21851     predep_objects_RC \
21852     postdep_objects_RC \
21853     predeps_RC \
21854     postdeps_RC \
21855     compiler_lib_search_path_RC \
21856     archive_cmds_RC \
21857     archive_expsym_cmds_RC \
21858     postinstall_cmds_RC \
21859     postuninstall_cmds_RC \
21860     old_archive_from_expsyms_cmds_RC \
21861     allow_undefined_flag_RC \
21862     no_undefined_flag_RC \
21863     export_symbols_cmds_RC \
21864     hardcode_libdir_flag_spec_RC \
21865     hardcode_libdir_flag_spec_ld_RC \
21866     hardcode_libdir_separator_RC \
21867     hardcode_automatic_RC \
21868     module_cmds_RC \
21869     module_expsym_cmds_RC \
21870     lt_cv_prog_compiler_c_o_RC \
21871     exclude_expsyms_RC \
21872     include_expsyms_RC; do
21873
21874     case $var in
21875     old_archive_cmds_RC | \
21876     old_archive_from_new_cmds_RC | \
21877     archive_cmds_RC | \
21878     archive_expsym_cmds_RC | \
21879     module_cmds_RC | \
21880     module_expsym_cmds_RC | \
21881     old_archive_from_expsyms_cmds_RC | \
21882     export_symbols_cmds_RC | \
21883     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21884     postinstall_cmds | postuninstall_cmds | \
21885     old_postinstall_cmds | old_postuninstall_cmds | \
21886     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21887       # Double-quote double-evaled strings.
21888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21889       ;;
21890     *)
21891       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21892       ;;
21893     esac
21894   done
21895
21896   case $lt_echo in
21897   *'\$0 --fallback-echo"')
21898     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21899     ;;
21900   esac
21901
21902 cfgfile="$ofile"
21903
21904   cat <<__EOF__ >> "$cfgfile"
21905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21906
21907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21908
21909 # Shell to use when invoking shell scripts.
21910 SHELL=$lt_SHELL
21911
21912 # Whether or not to build shared libraries.
21913 build_libtool_libs=$enable_shared
21914
21915 # Whether or not to build static libraries.
21916 build_old_libs=$enable_static
21917
21918 # Whether or not to add -lc for building shared libraries.
21919 build_libtool_need_lc=$archive_cmds_need_lc_RC
21920
21921 # Whether or not to disallow shared libs when runtime libs are static
21922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21923
21924 # Whether or not to optimize for fast installation.
21925 fast_install=$enable_fast_install
21926
21927 # The host system.
21928 host_alias=$host_alias
21929 host=$host
21930
21931 # An echo program that does not interpret backslashes.
21932 echo=$lt_echo
21933
21934 # The archiver.
21935 AR=$lt_AR
21936 AR_FLAGS=$lt_AR_FLAGS
21937
21938 # A C compiler.
21939 LTCC=$lt_LTCC
21940
21941 # A language-specific compiler.
21942 CC=$lt_compiler_RC
21943
21944 # Is the compiler the GNU C compiler?
21945 with_gcc=$GCC_RC
21946
21947 # An ERE matcher.
21948 EGREP=$lt_EGREP
21949
21950 # The linker used to build libraries.
21951 LD=$lt_LD_RC
21952
21953 # Whether we need hard or soft links.
21954 LN_S=$lt_LN_S
21955
21956 # A BSD-compatible nm program.
21957 NM=$lt_NM
21958
21959 # A symbol stripping program
21960 STRIP=$STRIP
21961
21962 # Used to examine libraries when file_magic_cmd begins "file"
21963 MAGIC_CMD=$MAGIC_CMD
21964
21965 # Used on cygwin: DLL creation program.
21966 DLLTOOL="$DLLTOOL"
21967
21968 # Used on cygwin: object dumper.
21969 OBJDUMP="$OBJDUMP"
21970
21971 # Used on cygwin: assembler.
21972 AS="$AS"
21973
21974 # The name of the directory that contains temporary libtool files.
21975 objdir=$objdir
21976
21977 # How to create reloadable object files.
21978 reload_flag=$lt_reload_flag
21979 reload_cmds=$lt_reload_cmds
21980
21981 # How to pass a linker flag through the compiler.
21982 wl=$lt_lt_prog_compiler_wl_RC
21983
21984 # Object file suffix (normally "o").
21985 objext="$ac_objext"
21986
21987 # Old archive suffix (normally "a").
21988 libext="$libext"
21989
21990 # Shared library suffix (normally ".so").
21991 shrext='$shrext'
21992
21993 # Executable file suffix (normally "").
21994 exeext="$exeext"
21995
21996 # Additional compiler flags for building library objects.
21997 pic_flag=$lt_lt_prog_compiler_pic_RC
21998 pic_mode=$pic_mode
21999
22000 # What is the maximum length of a command?
22001 max_cmd_len=$lt_cv_sys_max_cmd_len
22002
22003 # Does compiler simultaneously support -c and -o options?
22004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22005
22006 # Must we lock files when doing compilation ?
22007 need_locks=$lt_need_locks
22008
22009 # Do we need the lib prefix for modules?
22010 need_lib_prefix=$need_lib_prefix
22011
22012 # Do we need a version for libraries?
22013 need_version=$need_version
22014
22015 # Whether dlopen is supported.
22016 dlopen_support=$enable_dlopen
22017
22018 # Whether dlopen of programs is supported.
22019 dlopen_self=$enable_dlopen_self
22020
22021 # Whether dlopen of statically linked programs is supported.
22022 dlopen_self_static=$enable_dlopen_self_static
22023
22024 # Compiler flag to prevent dynamic linking.
22025 link_static_flag=$lt_lt_prog_compiler_static_RC
22026
22027 # Compiler flag to turn off builtin functions.
22028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22029
22030 # Compiler flag to allow reflexive dlopens.
22031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22032
22033 # Compiler flag to generate shared objects directly from archives.
22034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22035
22036 # Compiler flag to generate thread-safe objects.
22037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22038
22039 # Library versioning type.
22040 version_type=$version_type
22041
22042 # Format of library name prefix.
22043 libname_spec=$lt_libname_spec
22044
22045 # List of archive names.  First name is the real one, the rest are links.
22046 # The last name is the one that the linker finds with -lNAME.
22047 library_names_spec=$lt_library_names_spec
22048
22049 # The coded name of the library, if different from the real name.
22050 soname_spec=$lt_soname_spec
22051
22052 # Commands used to build and install an old-style archive.
22053 RANLIB=$lt_RANLIB
22054 old_archive_cmds=$lt_old_archive_cmds_RC
22055 old_postinstall_cmds=$lt_old_postinstall_cmds
22056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22057
22058 # Create an old-style archive from a shared archive.
22059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22060
22061 # Create a temporary old-style archive to link instead of a shared archive.
22062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22063
22064 # Commands used to build and install a shared archive.
22065 archive_cmds=$lt_archive_cmds_RC
22066 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22067 postinstall_cmds=$lt_postinstall_cmds
22068 postuninstall_cmds=$lt_postuninstall_cmds
22069
22070 # Commands used to build a loadable module (assumed same as above if empty)
22071 module_cmds=$lt_module_cmds_RC
22072 module_expsym_cmds=$lt_module_expsym_cmds_RC
22073
22074 # Commands to strip libraries.
22075 old_striplib=$lt_old_striplib
22076 striplib=$lt_striplib
22077
22078 # Dependencies to place before the objects being linked to create a
22079 # shared library.
22080 predep_objects=$lt_predep_objects_RC
22081
22082 # Dependencies to place after the objects being linked to create a
22083 # shared library.
22084 postdep_objects=$lt_postdep_objects_RC
22085
22086 # Dependencies to place before the objects being linked to create a
22087 # shared library.
22088 predeps=$lt_predeps_RC
22089
22090 # Dependencies to place after the objects being linked to create a
22091 # shared library.
22092 postdeps=$lt_postdeps_RC
22093
22094 # The library search path used internally by the compiler when linking
22095 # a shared library.
22096 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22097
22098 # Method to check whether dependent libraries are shared objects.
22099 deplibs_check_method=$lt_deplibs_check_method
22100
22101 # Command to use when deplibs_check_method == file_magic.
22102 file_magic_cmd=$lt_file_magic_cmd
22103
22104 # Flag that allows shared libraries with undefined symbols to be built.
22105 allow_undefined_flag=$lt_allow_undefined_flag_RC
22106
22107 # Flag that forces no undefined symbols.
22108 no_undefined_flag=$lt_no_undefined_flag_RC
22109
22110 # Commands used to finish a libtool library installation in a directory.
22111 finish_cmds=$lt_finish_cmds
22112
22113 # Same as above, but a single script fragment to be evaled but not shown.
22114 finish_eval=$lt_finish_eval
22115
22116 # Take the output of nm and produce a listing of raw symbols and C names.
22117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22118
22119 # Transform the output of nm in a proper C declaration
22120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22121
22122 # Transform the output of nm in a C name address pair
22123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22124
22125 # This is the shared library runtime path variable.
22126 runpath_var=$runpath_var
22127
22128 # This is the shared library path variable.
22129 shlibpath_var=$shlibpath_var
22130
22131 # Is shlibpath searched before the hard-coded library search path?
22132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22133
22134 # How to hardcode a shared library path into an executable.
22135 hardcode_action=$hardcode_action_RC
22136
22137 # Whether we should hardcode library paths into libraries.
22138 hardcode_into_libs=$hardcode_into_libs
22139
22140 # Flag to hardcode \$libdir into a binary during linking.
22141 # This must work even if \$libdir does not exist.
22142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22143
22144 # If ld is used when linking, flag to hardcode \$libdir into
22145 # a binary during linking. This must work even if \$libdir does
22146 # not exist.
22147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22148
22149 # Whether we need a single -rpath flag with a separated argument.
22150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22151
22152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22153 # resulting binary.
22154 hardcode_direct=$hardcode_direct_RC
22155
22156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22157 # resulting binary.
22158 hardcode_minus_L=$hardcode_minus_L_RC
22159
22160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22161 # the resulting binary.
22162 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22163
22164 # Set to yes if building a shared library automatically hardcodes DIR into the library
22165 # and all subsequent libraries and executables linked against it.
22166 hardcode_automatic=$hardcode_automatic_RC
22167
22168 # Variables whose values should be saved in libtool wrapper scripts and
22169 # restored at relink time.
22170 variables_saved_for_relink="$variables_saved_for_relink"
22171
22172 # Whether libtool must link a program against all its dependency libraries.
22173 link_all_deplibs=$link_all_deplibs_RC
22174
22175 # Compile-time system search path for libraries
22176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22177
22178 # Run-time system search path for libraries
22179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22180
22181 # Fix the shell variable \$srcfile for the compiler.
22182 fix_srcfile_path="$fix_srcfile_path_RC"
22183
22184 # Set to yes if exported symbols are required.
22185 always_export_symbols=$always_export_symbols_RC
22186
22187 # The commands to list exported symbols.
22188 export_symbols_cmds=$lt_export_symbols_cmds_RC
22189
22190 # The commands to extract the exported symbol list from a shared archive.
22191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22192
22193 # Symbols that should not be listed in the preloaded symbols.
22194 exclude_expsyms=$lt_exclude_expsyms_RC
22195
22196 # Symbols that must always be exported.
22197 include_expsyms=$lt_include_expsyms_RC
22198
22199 # ### END LIBTOOL TAG CONFIG: $tagname
22200
22201 __EOF__
22202
22203
22204 else
22205   # If there is no Makefile yet, we rely on a make rule to execute
22206   # `config.status --recheck' to rerun these tests and create the
22207   # libtool script then.
22208   test -f Makefile && make "$ltmain"
22209 fi
22210
22211
22212 ac_ext=c
22213 ac_cpp='$CPP $CPPFLAGS'
22214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22217
22218 CC="$lt_save_CC"
22219
22220         ;;
22221
22222       *)
22223         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22224 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22225    { (exit 1); exit 1; }; }
22226         ;;
22227       esac
22228
22229       # Append the new tag name to the list of available tags.
22230       if test -n "$tagname" ; then
22231       available_tags="$available_tags $tagname"
22232     fi
22233     fi
22234   done
22235   IFS="$lt_save_ifs"
22236
22237   # Now substitute the updated list of available tags.
22238   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22239     mv "${ofile}T" "$ofile"
22240     chmod +x "$ofile"
22241   else
22242     rm -f "${ofile}T"
22243     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22244 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22245    { (exit 1); exit 1; }; }
22246   fi
22247 fi
22248
22249
22250
22251 # This can be used to rebuild libtool when needed
22252 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22253
22254 # Always use our own libtool.
22255 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22256
22257 # Prevent multiple expansion
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292 LIBTOOL_SHELL="/bin/sh ./libtool"
22293 #  LIBTOOL="$LIBTOOL --silent"
22294 KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22295
22296
22297 # This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
22298 KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
22299
22300
22301 # we patch configure quite some so we better keep that consistent for incremental runs
22302 AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22303
22304
22305
22306
22307
22308
22309 all_libraries="$all_libraries $USER_LDFLAGS"
22310 all_includes="$all_includes $USER_INCLUDES"
22311
22312
22313
22314
22315
22316 #AM_INIT_AUTOMAKE(taglib,1.0)
22317
22318
22319
22320
22321
22322 if test "${ac_cv_header_zlib_h+set}" = set; then
22323   { echo "$as_me:$LINENO: checking for zlib.h" >&5
22324 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22325 if test "${ac_cv_header_zlib_h+set}" = set; then
22326   echo $ECHO_N "(cached) $ECHO_C" >&6
22327 fi
22328 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22329 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22330 else
22331   # Is the header compilable?
22332 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
22333 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 $ac_includes_default
22341 #include <zlib.h>
22342 _ACEOF
22343 rm -f conftest.$ac_objext
22344 if { (ac_try="$ac_compile"
22345 case "(($ac_try" in
22346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347   *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350   (eval "$ac_compile") 2>conftest.er1
22351   ac_status=$?
22352   grep -v '^ *+' conftest.er1 >conftest.err
22353   rm -f conftest.er1
22354   cat conftest.err >&5
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); } && {
22357          test -z "$ac_c_werror_flag" ||
22358          test ! -s conftest.err
22359        } && test -s conftest.$ac_objext; then
22360   ac_header_compiler=yes
22361 else
22362   echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365         ac_header_compiler=no
22366 fi
22367
22368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22370 echo "${ECHO_T}$ac_header_compiler" >&6; }
22371
22372 # Is the header present?
22373 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
22374 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h.  */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h.  */
22381 #include <zlib.h>
22382 _ACEOF
22383 if { (ac_try="$ac_cpp conftest.$ac_ext"
22384 case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22390   ac_status=$?
22391   grep -v '^ *+' conftest.er1 >conftest.err
22392   rm -f conftest.er1
22393   cat conftest.err >&5
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } >/dev/null && {
22396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22397          test ! -s conftest.err
22398        }; then
22399   ac_header_preproc=yes
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404   ac_header_preproc=no
22405 fi
22406
22407 rm -f conftest.err conftest.$ac_ext
22408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22409 echo "${ECHO_T}$ac_header_preproc" >&6; }
22410
22411 # So?  What about this header?
22412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22413   yes:no: )
22414     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22415 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22416     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22417 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22418     ac_header_preproc=yes
22419     ;;
22420   no:yes:* )
22421     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22422 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22423     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22424 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22425     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22426 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22427     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22428 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22429     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22430 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22431     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22432 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22433
22434     ;;
22435 esac
22436 { echo "$as_me:$LINENO: checking for zlib.h" >&5
22437 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22438 if test "${ac_cv_header_zlib_h+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   ac_cv_header_zlib_h=$ac_header_preproc
22442 fi
22443 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22444 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22445
22446 fi
22447 if test $ac_cv_header_zlib_h = yes; then
22448
22449
22450 cat >>confdefs.h <<\_ACEOF
22451 #define HAVE_ZLIB 1
22452 _ACEOF
22453
22454         have_zlib=true
22455
22456 else
22457
22458
22459 cat >>confdefs.h <<\_ACEOF
22460 #define HAVE_ZLIB 0
22461 _ACEOF
22462
22463         have_zlib=false
22464
22465 fi
22466
22467
22468  if test x$have_zlib = xtrue; then
22469   link_zlib_TRUE=
22470   link_zlib_FALSE='#'
22471 else
22472   link_zlib_TRUE='#'
22473   link_zlib_FALSE=
22474 fi
22475
22476
22477
22478
22479
22480
22481
22482  ac_ext=cpp
22483 ac_cpp='$CXXCPP $CPPFLAGS'
22484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22487
22488 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22489
22490
22491
22492 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
22493   { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
22494 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
22495 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 fi
22498 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
22499 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
22500 else
22501   # Is the header compilable?
22502 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h usability" >&5
22503 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h usability... $ECHO_C" >&6; }
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 $ac_includes_default
22511 #include <cppunit/extensions/HelperMacros.h>
22512 _ACEOF
22513 rm -f conftest.$ac_objext
22514 if { (ac_try="$ac_compile"
22515 case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_compile") 2>conftest.er1
22521   ac_status=$?
22522   grep -v '^ *+' conftest.er1 >conftest.err
22523   rm -f conftest.er1
22524   cat conftest.err >&5
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } && {
22527          test -z "$ac_cxx_werror_flag" ||
22528          test ! -s conftest.err
22529        } && test -s conftest.$ac_objext; then
22530   ac_header_compiler=yes
22531 else
22532   echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535         ac_header_compiler=no
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22540 echo "${ECHO_T}$ac_header_compiler" >&6; }
22541
22542 # Is the header present?
22543 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h presence" >&5
22544 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h presence... $ECHO_C" >&6; }
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 #include <cppunit/extensions/HelperMacros.h>
22552 _ACEOF
22553 if { (ac_try="$ac_cpp conftest.$ac_ext"
22554 case "(($ac_try" in
22555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556   *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22560   ac_status=$?
22561   grep -v '^ *+' conftest.er1 >conftest.err
22562   rm -f conftest.er1
22563   cat conftest.err >&5
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); } >/dev/null && {
22566          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22567          test ! -s conftest.err
22568        }; then
22569   ac_header_preproc=yes
22570 else
22571   echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574   ac_header_preproc=no
22575 fi
22576
22577 rm -f conftest.err conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22579 echo "${ECHO_T}$ac_header_preproc" >&6; }
22580
22581 # So?  What about this header?
22582 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22583   yes:no: )
22584     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22585 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22586     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&5
22587 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&2;}
22588     ac_header_preproc=yes
22589     ;;
22590   no:yes:* )
22591     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&5
22592 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&2;}
22593     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h:     check for missing prerequisite headers?" >&5
22594 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h:     check for missing prerequisite headers?" >&2;}
22595     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&5
22596 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&2;}
22597     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22598 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22599     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&5
22600 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&2;}
22601     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&5
22602 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&2;}
22603
22604     ;;
22605 esac
22606 { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
22607 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
22608 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
22609   echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611   ac_cv_header_cppunit_extensions_HelperMacros_h=$ac_header_preproc
22612 fi
22613 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
22614 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
22615
22616 fi
22617 if test $ac_cv_header_cppunit_extensions_HelperMacros_h = yes; then
22618
22619
22620 cat >>confdefs.h <<\_ACEOF
22621 #define HAVE_CPPUNIT 1
22622 _ACEOF
22623
22624         have_cppunit=true
22625
22626 else
22627
22628
22629 cat >>confdefs.h <<\_ACEOF
22630 #define HAVE_CPPUNIT 0
22631 _ACEOF
22632
22633         have_cppunit=false
22634
22635 fi
22636
22637
22638 ac_ext=c
22639 ac_cpp='$CPP $CPPFLAGS'
22640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22643
22644  if test x$have_cppunit = xtrue; then
22645   build_tests_TRUE=
22646   build_tests_FALSE='#'
22647 else
22648   build_tests_TRUE='#'
22649   build_tests_FALSE=
22650 fi
22651
22652
22653
22654
22655 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
22656 TOPSUBDIRS=""
22657
22658 if test ! -s $srcdir/subdirs; then
22659     files=`cd $srcdir && ls -1`
22660   dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
22661   for i in $dirs; do
22662     echo $i >> $srcdir/subdirs
22663   done
22664 fi
22665
22666 ac_topsubdirs=
22667 if test -s $srcdir/inst-apps; then
22668   ac_topsubdirs="`cat $srcdir/inst-apps`"
22669 elif test -s $srcdir/subdirs; then
22670   ac_topsubdirs="`cat $srcdir/subdirs`"
22671 fi
22672
22673 for i in $ac_topsubdirs; do
22674   { echo "$as_me:$LINENO: checking if $i should be compiled" >&5
22675 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
22676   if test -d $srcdir/$i; then
22677     install_it="yes"
22678     for j in $DO_NOT_COMPILE; do
22679       if test $i = $j; then
22680         install_it="no"
22681       fi
22682     done
22683   else
22684     install_it="no"
22685   fi
22686   { echo "$as_me:$LINENO: result: $install_it" >&5
22687 echo "${ECHO_T}$install_it" >&6; }
22688   vari=`echo $i | sed -e 's,[-+.@],_,g'`
22689   if test $install_it = "yes"; then
22690     TOPSUBDIRS="$TOPSUBDIRS $i"
22691     eval "$vari""_SUBDIR_included=yes"
22692   else
22693     eval "$vari""_SUBDIR_included=no"
22694   fi
22695 done
22696
22697
22698
22699 ac_config_files="$ac_config_files Makefile"
22700
22701 ac_config_files="$ac_config_files bindings/Makefile"
22702
22703 ac_config_files="$ac_config_files bindings/c/Makefile"
22704
22705 ac_config_files="$ac_config_files examples/Makefile"
22706
22707 ac_config_files="$ac_config_files taglib/Makefile"
22708
22709 ac_config_files="$ac_config_files taglib/ape/Makefile"
22710
22711 ac_config_files="$ac_config_files taglib/flac/Makefile"
22712
22713 ac_config_files="$ac_config_files taglib/mpc/Makefile"
22714
22715 ac_config_files="$ac_config_files taglib/mpeg/Makefile"
22716
22717 ac_config_files="$ac_config_files taglib/mpeg/id3v1/Makefile"
22718
22719 ac_config_files="$ac_config_files taglib/mpeg/id3v2/Makefile"
22720
22721 ac_config_files="$ac_config_files taglib/mpeg/id3v2/frames/Makefile"
22722
22723 ac_config_files="$ac_config_files taglib/ogg/Makefile"
22724
22725 ac_config_files="$ac_config_files taglib/ogg/flac/Makefile"
22726
22727 ac_config_files="$ac_config_files taglib/ogg/speex/Makefile"
22728
22729 ac_config_files="$ac_config_files taglib/ogg/vorbis/Makefile"
22730
22731 ac_config_files="$ac_config_files taglib/toolkit/Makefile"
22732
22733 ac_config_files="$ac_config_files taglib/trueaudio/Makefile"
22734
22735 ac_config_files="$ac_config_files taglib/wavpack/Makefile"
22736
22737 ac_config_files="$ac_config_files tests/Makefile"
22738
22739 ac_config_files="$ac_config_files taglib-config"
22740
22741 ac_config_files="$ac_config_files taglib.pc"
22742
22743 ac_config_files="$ac_config_files bindings/c/taglib_c.pc"
22744
22745 cat >confcache <<\_ACEOF
22746 # This file is a shell script that caches the results of configure
22747 # tests run on this system so they can be shared between configure
22748 # scripts and configure runs, see configure's option --config-cache.
22749 # It is not useful on other systems.  If it contains results you don't
22750 # want to keep, you may remove or edit it.
22751 #
22752 # config.status only pays attention to the cache file if you give it
22753 # the --recheck option to rerun configure.
22754 #
22755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22757 # following values.
22758
22759 _ACEOF
22760
22761 # The following way of writing the cache mishandles newlines in values,
22762 # but we know of no workaround that is simple, portable, and efficient.
22763 # So, we kill variables containing newlines.
22764 # Ultrix sh set writes to stderr and can't be redirected directly,
22765 # and sets the high bit in the cache file unless we assign to the vars.
22766 (
22767   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22768     eval ac_val=\$$ac_var
22769     case $ac_val in #(
22770     *${as_nl}*)
22771       case $ac_var in #(
22772       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22774       esac
22775       case $ac_var in #(
22776       _ | IFS | as_nl) ;; #(
22777       *) $as_unset $ac_var ;;
22778       esac ;;
22779     esac
22780   done
22781
22782   (set) 2>&1 |
22783     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22784     *${as_nl}ac_space=\ *)
22785       # `set' does not quote correctly, so add quotes (double-quote
22786       # substitution turns \\\\ into \\, and sed turns \\ into \).
22787       sed -n \
22788         "s/'/'\\\\''/g;
22789           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22790       ;; #(
22791     *)
22792       # `set' quotes correctly as required by POSIX, so do not add quotes.
22793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22794       ;;
22795     esac |
22796     sort
22797 ) |
22798   sed '
22799      /^ac_cv_env_/b end
22800      t clear
22801      :clear
22802      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22803      t end
22804      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22805      :end' >>confcache
22806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22807   if test -w "$cache_file"; then
22808     test "x$cache_file" != "x/dev/null" &&
22809       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22810 echo "$as_me: updating cache $cache_file" >&6;}
22811     cat confcache >$cache_file
22812   else
22813     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22814 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22815   fi
22816 fi
22817 rm -f confcache
22818
22819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22820 # Let make expand exec_prefix.
22821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22822
22823 DEFS=-DHAVE_CONFIG_H
22824
22825 ac_libobjs=
22826 ac_ltlibobjs=
22827 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22828   # 1. Remove the extension, and $U if already installed.
22829   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22830   ac_i=`echo "$ac_i" | sed "$ac_script"`
22831   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22832   #    will be set to the directory where LIBOBJS objects are built.
22833   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22834   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22835 done
22836 LIBOBJS=$ac_libobjs
22837
22838 LTLIBOBJS=$ac_ltlibobjs
22839
22840
22841 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22842   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22843 Usually this means the macro was only invoked conditionally." >&5
22844 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22845 Usually this means the macro was only invoked conditionally." >&2;}
22846    { (exit 1); exit 1; }; }
22847 fi
22848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22849   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22850 Usually this means the macro was only invoked conditionally." >&5
22851 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22852 Usually this means the macro was only invoked conditionally." >&2;}
22853    { (exit 1); exit 1; }; }
22854 fi
22855 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22856   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22857 Usually this means the macro was only invoked conditionally." >&5
22858 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22859 Usually this means the macro was only invoked conditionally." >&2;}
22860    { (exit 1); exit 1; }; }
22861 fi
22862 if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
22863   { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
22864 Usually this means the macro was only invoked conditionally." >&5
22865 echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
22866 Usually this means the macro was only invoked conditionally." >&2;}
22867    { (exit 1); exit 1; }; }
22868 fi
22869 if test -z "${link_zlib_TRUE}" && test -z "${link_zlib_FALSE}"; then
22870   { { echo "$as_me:$LINENO: error: conditional \"link_zlib\" was never defined.
22871 Usually this means the macro was only invoked conditionally." >&5
22872 echo "$as_me: error: conditional \"link_zlib\" was never defined.
22873 Usually this means the macro was only invoked conditionally." >&2;}
22874    { (exit 1); exit 1; }; }
22875 fi
22876 if test -z "${build_tests_TRUE}" && test -z "${build_tests_FALSE}"; then
22877   { { echo "$as_me:$LINENO: error: conditional \"build_tests\" was never defined.
22878 Usually this means the macro was only invoked conditionally." >&5
22879 echo "$as_me: error: conditional \"build_tests\" was never defined.
22880 Usually this means the macro was only invoked conditionally." >&2;}
22881    { (exit 1); exit 1; }; }
22882 fi
22883
22884 : ${CONFIG_STATUS=./config.status}
22885 ac_clean_files_save=$ac_clean_files
22886 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22887 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22888 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22889 cat >$CONFIG_STATUS <<_ACEOF
22890 #! $SHELL
22891 # Generated by $as_me.
22892 # Run this file to recreate the current configuration.
22893 # Compiler output produced by configure, useful for debugging
22894 # configure, is in config.log if it exists.
22895
22896 debug=false
22897 ac_cs_recheck=false
22898 ac_cs_silent=false
22899 SHELL=\${CONFIG_SHELL-$SHELL}
22900 _ACEOF
22901
22902 cat >>$CONFIG_STATUS <<\_ACEOF
22903 ## --------------------- ##
22904 ## M4sh Initialization.  ##
22905 ## --------------------- ##
22906
22907 # Be more Bourne compatible
22908 DUALCASE=1; export DUALCASE # for MKS sh
22909 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22910   emulate sh
22911   NULLCMD=:
22912   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22913   # is contrary to our usage.  Disable this feature.
22914   alias -g '${1+"$@"}'='"$@"'
22915   setopt NO_GLOB_SUBST
22916 else
22917   case `(set -o) 2>/dev/null` in
22918   *posix*) set -o posix ;;
22919 esac
22920
22921 fi
22922
22923
22924
22925
22926 # PATH needs CR
22927 # Avoid depending upon Character Ranges.
22928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22931 as_cr_digits='0123456789'
22932 as_cr_alnum=$as_cr_Letters$as_cr_digits
22933
22934 # The user is always right.
22935 if test "${PATH_SEPARATOR+set}" != set; then
22936   echo "#! /bin/sh" >conf$$.sh
22937   echo  "exit 0"   >>conf$$.sh
22938   chmod +x conf$$.sh
22939   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22940     PATH_SEPARATOR=';'
22941   else
22942     PATH_SEPARATOR=:
22943   fi
22944   rm -f conf$$.sh
22945 fi
22946
22947 # Support unset when possible.
22948 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22949   as_unset=unset
22950 else
22951   as_unset=false
22952 fi
22953
22954
22955 # IFS
22956 # We need space, tab and new line, in precisely that order.  Quoting is
22957 # there to prevent editors from complaining about space-tab.
22958 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22959 # splitting by setting IFS to empty value.)
22960 as_nl='
22961 '
22962 IFS=" ""        $as_nl"
22963
22964 # Find who we are.  Look in the path if we contain no directory separator.
22965 case $0 in
22966   *[\\/]* ) as_myself=$0 ;;
22967   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22969 do
22970   IFS=$as_save_IFS
22971   test -z "$as_dir" && as_dir=.
22972   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22973 done
22974 IFS=$as_save_IFS
22975
22976      ;;
22977 esac
22978 # We did not find ourselves, most probably we were run as `sh COMMAND'
22979 # in which case we are not to be found in the path.
22980 if test "x$as_myself" = x; then
22981   as_myself=$0
22982 fi
22983 if test ! -f "$as_myself"; then
22984   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22985   { (exit 1); exit 1; }
22986 fi
22987
22988 # Work around bugs in pre-3.0 UWIN ksh.
22989 for as_var in ENV MAIL MAILPATH
22990 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22991 done
22992 PS1='$ '
22993 PS2='> '
22994 PS4='+ '
22995
22996 # NLS nuisances.
22997 for as_var in \
22998   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22999   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23000   LC_TELEPHONE LC_TIME
23001 do
23002   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23003     eval $as_var=C; export $as_var
23004   else
23005     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23006   fi
23007 done
23008
23009 # Required to use basename.
23010 if expr a : '\(a\)' >/dev/null 2>&1 &&
23011    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23012   as_expr=expr
23013 else
23014   as_expr=false
23015 fi
23016
23017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23018   as_basename=basename
23019 else
23020   as_basename=false
23021 fi
23022
23023
23024 # Name of the executable.
23025 as_me=`$as_basename -- "$0" ||
23026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23027          X"$0" : 'X\(//\)$' \| \
23028          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23029 echo X/"$0" |
23030     sed '/^.*\/\([^/][^/]*\)\/*$/{
23031             s//\1/
23032             q
23033           }
23034           /^X\/\(\/\/\)$/{
23035             s//\1/
23036             q
23037           }
23038           /^X\/\(\/\).*/{
23039             s//\1/
23040             q
23041           }
23042           s/.*/./; q'`
23043
23044 # CDPATH.
23045 $as_unset CDPATH
23046
23047
23048
23049   as_lineno_1=$LINENO
23050   as_lineno_2=$LINENO
23051   test "x$as_lineno_1" != "x$as_lineno_2" &&
23052   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23053
23054   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23055   # uniformly replaced by the line number.  The first 'sed' inserts a
23056   # line-number line after each line using $LINENO; the second 'sed'
23057   # does the real work.  The second script uses 'N' to pair each
23058   # line-number line with the line containing $LINENO, and appends
23059   # trailing '-' during substitution so that $LINENO is not a special
23060   # case at line end.
23061   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23062   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23063   # E. McMahon (1931-1989) for sed's syntax.  :-)
23064   sed -n '
23065     p
23066     /[$]LINENO/=
23067   ' <$as_myself |
23068     sed '
23069       s/[$]LINENO.*/&-/
23070       t lineno
23071       b
23072       :lineno
23073       N
23074       :loop
23075       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23076       t loop
23077       s/-\n.*//
23078     ' >$as_me.lineno &&
23079   chmod +x "$as_me.lineno" ||
23080     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23081    { (exit 1); exit 1; }; }
23082
23083   # Don't try to exec as it changes $[0], causing all sort of problems
23084   # (the dirname of $[0] is not the place where we might find the
23085   # original and so on.  Autoconf is especially sensitive to this).
23086   . "./$as_me.lineno"
23087   # Exit status is that of the last command.
23088   exit
23089 }
23090
23091
23092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23093   as_dirname=dirname
23094 else
23095   as_dirname=false
23096 fi
23097
23098 ECHO_C= ECHO_N= ECHO_T=
23099 case `echo -n x` in
23100 -n*)
23101   case `echo 'x\c'` in
23102   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23103   *)   ECHO_C='\c';;
23104   esac;;
23105 *)
23106   ECHO_N='-n';;
23107 esac
23108
23109 if expr a : '\(a\)' >/dev/null 2>&1 &&
23110    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23111   as_expr=expr
23112 else
23113   as_expr=false
23114 fi
23115
23116 rm -f conf$$ conf$$.exe conf$$.file
23117 if test -d conf$$.dir; then
23118   rm -f conf$$.dir/conf$$.file
23119 else
23120   rm -f conf$$.dir
23121   mkdir conf$$.dir
23122 fi
23123 echo >conf$$.file
23124 if ln -s conf$$.file conf$$ 2>/dev/null; then
23125   as_ln_s='ln -s'
23126   # ... but there are two gotchas:
23127   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23128   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23129   # In both cases, we have to default to `cp -p'.
23130   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23131     as_ln_s='cp -p'
23132 elif ln conf$$.file conf$$ 2>/dev/null; then
23133   as_ln_s=ln
23134 else
23135   as_ln_s='cp -p'
23136 fi
23137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23138 rmdir conf$$.dir 2>/dev/null
23139
23140 if mkdir -p . 2>/dev/null; then
23141   as_mkdir_p=:
23142 else
23143   test -d ./-p && rmdir ./-p
23144   as_mkdir_p=false
23145 fi
23146
23147 if test -x / >/dev/null 2>&1; then
23148   as_test_x='test -x'
23149 else
23150   if ls -dL / >/dev/null 2>&1; then
23151     as_ls_L_option=L
23152   else
23153     as_ls_L_option=
23154   fi
23155   as_test_x='
23156     eval sh -c '\''
23157       if test -d "$1"; then
23158         test -d "$1/.";
23159       else
23160         case $1 in
23161         -*)set "./$1";;
23162         esac;
23163         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23164         ???[sx]*):;;*)false;;esac;fi
23165     '\'' sh
23166   '
23167 fi
23168 as_executable_p=$as_test_x
23169
23170 # Sed expression to map a string onto a valid CPP name.
23171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23172
23173 # Sed expression to map a string onto a valid variable name.
23174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23175
23176
23177 exec 6>&1
23178
23179 # Save the log message, to keep $[0] and so on meaningful, and to
23180 # report actual input values of CONFIG_FILES etc. instead of their
23181 # values after options handling.
23182 ac_log="
23183 This file was extended by $as_me, which was
23184 generated by GNU Autoconf 2.61.  Invocation command line was
23185
23186   CONFIG_FILES    = $CONFIG_FILES
23187   CONFIG_HEADERS  = $CONFIG_HEADERS
23188   CONFIG_LINKS    = $CONFIG_LINKS
23189   CONFIG_COMMANDS = $CONFIG_COMMANDS
23190   $ $0 $@
23191
23192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23193 "
23194
23195 _ACEOF
23196
23197 cat >>$CONFIG_STATUS <<_ACEOF
23198 # Files that config.status was made for.
23199 config_files="$ac_config_files"
23200 config_headers="$ac_config_headers"
23201 config_commands="$ac_config_commands"
23202
23203 _ACEOF
23204
23205 cat >>$CONFIG_STATUS <<\_ACEOF
23206 ac_cs_usage="\
23207 \`$as_me' instantiates files from templates according to the
23208 current configuration.
23209
23210 Usage: $0 [OPTIONS] [FILE]...
23211
23212   -h, --help       print this help, then exit
23213   -V, --version    print version number and configuration settings, then exit
23214   -q, --quiet      do not print progress messages
23215   -d, --debug      don't remove temporary files
23216       --recheck    update $as_me by reconfiguring in the same conditions
23217   --file=FILE[:TEMPLATE]
23218                    instantiate the configuration file FILE
23219   --header=FILE[:TEMPLATE]
23220                    instantiate the configuration header FILE
23221
23222 Configuration files:
23223 $config_files
23224
23225 Configuration headers:
23226 $config_headers
23227
23228 Configuration commands:
23229 $config_commands
23230
23231 Report bugs to <bug-autoconf@gnu.org>."
23232
23233 _ACEOF
23234 cat >>$CONFIG_STATUS <<_ACEOF
23235 ac_cs_version="\\
23236 config.status
23237 configured by $0, generated by GNU Autoconf 2.61,
23238   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23239
23240 Copyright (C) 2006 Free Software Foundation, Inc.
23241 This config.status script is free software; the Free Software Foundation
23242 gives unlimited permission to copy, distribute and modify it."
23243
23244 ac_pwd='$ac_pwd'
23245 srcdir='$srcdir'
23246 INSTALL='$INSTALL'
23247 MKDIR_P='$MKDIR_P'
23248 _ACEOF
23249
23250 cat >>$CONFIG_STATUS <<\_ACEOF
23251 # If no file are specified by the user, then we need to provide default
23252 # value.  By we need to know if files were specified by the user.
23253 ac_need_defaults=:
23254 while test $# != 0
23255 do
23256   case $1 in
23257   --*=*)
23258     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23259     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23260     ac_shift=:
23261     ;;
23262   *)
23263     ac_option=$1
23264     ac_optarg=$2
23265     ac_shift=shift
23266     ;;
23267   esac
23268
23269   case $ac_option in
23270   # Handling of the options.
23271   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23272     ac_cs_recheck=: ;;
23273   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23274     echo "$ac_cs_version"; exit ;;
23275   --debug | --debu | --deb | --de | --d | -d )
23276     debug=: ;;
23277   --file | --fil | --fi | --f )
23278     $ac_shift
23279     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23280     ac_need_defaults=false;;
23281   --header | --heade | --head | --hea )
23282     $ac_shift
23283     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23284     ac_need_defaults=false;;
23285   --he | --h)
23286     # Conflict between --help and --header
23287     { echo "$as_me: error: ambiguous option: $1
23288 Try \`$0 --help' for more information." >&2
23289    { (exit 1); exit 1; }; };;
23290   --help | --hel | -h )
23291     echo "$ac_cs_usage"; exit ;;
23292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23293   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23294     ac_cs_silent=: ;;
23295
23296   # This is an error.
23297   -*) { echo "$as_me: error: unrecognized option: $1
23298 Try \`$0 --help' for more information." >&2
23299    { (exit 1); exit 1; }; } ;;
23300
23301   *) ac_config_targets="$ac_config_targets $1"
23302      ac_need_defaults=false ;;
23303
23304   esac
23305   shift
23306 done
23307
23308 ac_configure_extra_args=
23309
23310 if $ac_cs_silent; then
23311   exec 6>/dev/null
23312   ac_configure_extra_args="$ac_configure_extra_args --silent"
23313 fi
23314
23315 _ACEOF
23316 cat >>$CONFIG_STATUS <<_ACEOF
23317 if \$ac_cs_recheck; then
23318   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23319   CONFIG_SHELL=$SHELL
23320   export CONFIG_SHELL
23321   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23322 fi
23323
23324 _ACEOF
23325 cat >>$CONFIG_STATUS <<\_ACEOF
23326 exec 5>>config.log
23327 {
23328   echo
23329   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23330 ## Running $as_me. ##
23331 _ASBOX
23332   echo "$ac_log"
23333 } >&5
23334
23335 _ACEOF
23336 cat >>$CONFIG_STATUS <<_ACEOF
23337 #
23338 # INIT-COMMANDS
23339 #
23340 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23341
23342 _ACEOF
23343
23344 cat >>$CONFIG_STATUS <<\_ACEOF
23345
23346 # Handling of arguments.
23347 for ac_config_target in $ac_config_targets
23348 do
23349   case $ac_config_target in
23350     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23351     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23352     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23353     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
23354     "bindings/c/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/c/Makefile" ;;
23355     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23356     "taglib/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/Makefile" ;;
23357     "taglib/ape/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/ape/Makefile" ;;
23358     "taglib/flac/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/flac/Makefile" ;;
23359     "taglib/mpc/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/mpc/Makefile" ;;
23360     "taglib/mpeg/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/mpeg/Makefile" ;;
23361     "taglib/mpeg/id3v1/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/mpeg/id3v1/Makefile" ;;
23362     "taglib/mpeg/id3v2/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/mpeg/id3v2/Makefile" ;;
23363     "taglib/mpeg/id3v2/frames/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/mpeg/id3v2/frames/Makefile" ;;
23364     "taglib/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/ogg/Makefile" ;;
23365     "taglib/ogg/flac/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/ogg/flac/Makefile" ;;
23366     "taglib/ogg/speex/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/ogg/speex/Makefile" ;;
23367     "taglib/ogg/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/ogg/vorbis/Makefile" ;;
23368     "taglib/toolkit/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/toolkit/Makefile" ;;
23369     "taglib/trueaudio/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/trueaudio/Makefile" ;;
23370     "taglib/wavpack/Makefile") CONFIG_FILES="$CONFIG_FILES taglib/wavpack/Makefile" ;;
23371     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23372     "taglib-config") CONFIG_FILES="$CONFIG_FILES taglib-config" ;;
23373     "taglib.pc") CONFIG_FILES="$CONFIG_FILES taglib.pc" ;;
23374     "bindings/c/taglib_c.pc") CONFIG_FILES="$CONFIG_FILES bindings/c/taglib_c.pc" ;;
23375
23376   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23377 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23378    { (exit 1); exit 1; }; };;
23379   esac
23380 done
23381
23382
23383 # If the user did not use the arguments to specify the items to instantiate,
23384 # then the envvar interface is used.  Set only those that are not.
23385 # We use the long form for the default assignment because of an extremely
23386 # bizarre bug on SunOS 4.1.3.
23387 if $ac_need_defaults; then
23388   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23389   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23390   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23391 fi
23392
23393 # Have a temporary directory for convenience.  Make it in the build tree
23394 # simply because there is no reason against having it here, and in addition,
23395 # creating and moving files from /tmp can sometimes cause problems.
23396 # Hook for its removal unless debugging.
23397 # Note that there is a small window in which the directory will not be cleaned:
23398 # after its creation but before its name has been assigned to `$tmp'.
23399 $debug ||
23400 {
23401   tmp=
23402   trap 'exit_status=$?
23403   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23404 ' 0
23405   trap '{ (exit 1); exit 1; }' 1 2 13 15
23406 }
23407 # Create a (secure) tmp directory for tmp files.
23408
23409 {
23410   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23411   test -n "$tmp" && test -d "$tmp"
23412 }  ||
23413 {
23414   tmp=./conf$$-$RANDOM
23415   (umask 077 && mkdir "$tmp")
23416 } ||
23417 {
23418    echo "$me: cannot create a temporary directory in ." >&2
23419    { (exit 1); exit 1; }
23420 }
23421
23422 #
23423 # Set up the sed scripts for CONFIG_FILES section.
23424 #
23425
23426 # No need to generate the scripts if there are no CONFIG_FILES.
23427 # This happens for instance when ./config.status config.h
23428 if test -n "$CONFIG_FILES"; then
23429
23430 _ACEOF
23431
23432
23433
23434 ac_delim='%!_!# '
23435 for ac_last_try in false false false false false :; do
23436   cat >conf$$subs.sed <<_ACEOF
23437 SHELL!$SHELL$ac_delim
23438 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23439 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23440 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23441 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23442 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23443 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23444 exec_prefix!$exec_prefix$ac_delim
23445 prefix!$prefix$ac_delim
23446 program_transform_name!$program_transform_name$ac_delim
23447 bindir!$bindir$ac_delim
23448 sbindir!$sbindir$ac_delim
23449 libexecdir!$libexecdir$ac_delim
23450 datarootdir!$datarootdir$ac_delim
23451 datadir!$datadir$ac_delim
23452 sysconfdir!$sysconfdir$ac_delim
23453 sharedstatedir!$sharedstatedir$ac_delim
23454 localstatedir!$localstatedir$ac_delim
23455 includedir!$includedir$ac_delim
23456 oldincludedir!$oldincludedir$ac_delim
23457 docdir!$docdir$ac_delim
23458 infodir!$infodir$ac_delim
23459 htmldir!$htmldir$ac_delim
23460 dvidir!$dvidir$ac_delim
23461 pdfdir!$pdfdir$ac_delim
23462 psdir!$psdir$ac_delim
23463 libdir!$libdir$ac_delim
23464 localedir!$localedir$ac_delim
23465 mandir!$mandir$ac_delim
23466 DEFS!$DEFS$ac_delim
23467 ECHO_C!$ECHO_C$ac_delim
23468 ECHO_N!$ECHO_N$ac_delim
23469 ECHO_T!$ECHO_T$ac_delim
23470 LIBS!$LIBS$ac_delim
23471 build_alias!$build_alias$ac_delim
23472 host_alias!$host_alias$ac_delim
23473 target_alias!$target_alias$ac_delim
23474 build!$build$ac_delim
23475 build_cpu!$build_cpu$ac_delim
23476 build_vendor!$build_vendor$ac_delim
23477 build_os!$build_os$ac_delim
23478 host!$host$ac_delim
23479 host_cpu!$host_cpu$ac_delim
23480 host_vendor!$host_vendor$ac_delim
23481 host_os!$host_os$ac_delim
23482 target!$target$ac_delim
23483 target_cpu!$target_cpu$ac_delim
23484 target_vendor!$target_vendor$ac_delim
23485 target_os!$target_os$ac_delim
23486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23488 INSTALL_DATA!$INSTALL_DATA$ac_delim
23489 am__isrc!$am__isrc$ac_delim
23490 CYGPATH_W!$CYGPATH_W$ac_delim
23491 PACKAGE!$PACKAGE$ac_delim
23492 VERSION!$VERSION$ac_delim
23493 ACLOCAL!$ACLOCAL$ac_delim
23494 AUTOCONF!$AUTOCONF$ac_delim
23495 AUTOMAKE!$AUTOMAKE$ac_delim
23496 AUTOHEADER!$AUTOHEADER$ac_delim
23497 MAKEINFO!$MAKEINFO$ac_delim
23498 install_sh!$install_sh$ac_delim
23499 STRIP!$STRIP$ac_delim
23500 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23501 mkdir_p!$mkdir_p$ac_delim
23502 AWK!$AWK$ac_delim
23503 SET_MAKE!$SET_MAKE$ac_delim
23504 am__leading_dot!$am__leading_dot$ac_delim
23505 AMTAR!$AMTAR$ac_delim
23506 am__tar!$am__tar$ac_delim
23507 am__untar!$am__untar$ac_delim
23508 CONF_FILES!$CONF_FILES$ac_delim
23509 CC!$CC$ac_delim
23510 CFLAGS!$CFLAGS$ac_delim
23511 LDFLAGS!$LDFLAGS$ac_delim
23512 CPPFLAGS!$CPPFLAGS$ac_delim
23513 ac_ct_CC!$ac_ct_CC$ac_delim
23514 EXEEXT!$EXEEXT$ac_delim
23515 OBJEXT!$OBJEXT$ac_delim
23516 DEPDIR!$DEPDIR$ac_delim
23517 am__include!$am__include$ac_delim
23518 am__quote!$am__quote$ac_delim
23519 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23520 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23521 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23522 CCDEPMODE!$CCDEPMODE$ac_delim
23523 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23524 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23525 CPP!$CPP$ac_delim
23526 CXX!$CXX$ac_delim
23527 CXXFLAGS!$CXXFLAGS$ac_delim
23528 ac_ct_CXX!$ac_ct_CXX$ac_delim
23529 CXXDEPMODE!$CXXDEPMODE$ac_delim
23530 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23531 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23532 WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
23533 HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
23534 _ACEOF
23535
23536   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23537     break
23538   elif $ac_last_try; then
23539     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23540 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23541    { (exit 1); exit 1; }; }
23542   else
23543     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23544   fi
23545 done
23546
23547 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23548 if test -n "$ac_eof"; then
23549   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23550   ac_eof=`expr $ac_eof + 1`
23551 fi
23552
23553 cat >>$CONFIG_STATUS <<_ACEOF
23554 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23556 _ACEOF
23557 sed '
23558 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23559 s/^/s,@/; s/!/@,|#_!!_#|/
23560 :n
23561 t n
23562 s/'"$ac_delim"'$/,g/; t
23563 s/$/\\/; p
23564 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23565 ' >>$CONFIG_STATUS <conf$$subs.sed
23566 rm -f conf$$subs.sed
23567 cat >>$CONFIG_STATUS <<_ACEOF
23568 CEOF$ac_eof
23569 _ACEOF
23570
23571
23572 ac_delim='%!_!# '
23573 for ac_last_try in false false false false false :; do
23574   cat >conf$$subs.sed <<_ACEOF
23575 unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
23576 unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
23577 USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
23578 USE_RTTI!$USE_RTTI$ac_delim
23579 CXXCPP!$CXXCPP$ac_delim
23580 NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
23581 NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
23582 ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
23583 LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
23584 LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
23585 KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
23586 KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
23587 KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
23588 KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
23589 KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
23590 KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
23591 KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
23592 GREP!$GREP$ac_delim
23593 EGREP!$EGREP$ac_delim
23594 LN_S!$LN_S$ac_delim
23595 ECHO!$ECHO$ac_delim
23596 AR!$AR$ac_delim
23597 RANLIB!$RANLIB$ac_delim
23598 F77!$F77$ac_delim
23599 FFLAGS!$FFLAGS$ac_delim
23600 ac_ct_F77!$ac_ct_F77$ac_delim
23601 LIBTOOL!$LIBTOOL$ac_delim
23602 KDE_PLUGIN!$KDE_PLUGIN$ac_delim
23603 KDE_CHECK_PLUGIN!$KDE_CHECK_PLUGIN$ac_delim
23604 all_includes!$all_includes$ac_delim
23605 all_libraries!$all_libraries$ac_delim
23606 AUTODIRS!$AUTODIRS$ac_delim
23607 link_zlib_TRUE!$link_zlib_TRUE$ac_delim
23608 link_zlib_FALSE!$link_zlib_FALSE$ac_delim
23609 build_tests_TRUE!$build_tests_TRUE$ac_delim
23610 build_tests_FALSE!$build_tests_FALSE$ac_delim
23611 TOPSUBDIRS!$TOPSUBDIRS$ac_delim
23612 LIBOBJS!$LIBOBJS$ac_delim
23613 LTLIBOBJS!$LTLIBOBJS$ac_delim
23614 _ACEOF
23615
23616   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
23617     break
23618   elif $ac_last_try; then
23619     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23620 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23621    { (exit 1); exit 1; }; }
23622   else
23623     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23624   fi
23625 done
23626
23627 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23628 if test -n "$ac_eof"; then
23629   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23630   ac_eof=`expr $ac_eof + 1`
23631 fi
23632
23633 cat >>$CONFIG_STATUS <<_ACEOF
23634 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23636 _ACEOF
23637 sed '
23638 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23639 s/^/s,@/; s/!/@,|#_!!_#|/
23640 :n
23641 t n
23642 s/'"$ac_delim"'$/,g/; t
23643 s/$/\\/; p
23644 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23645 ' >>$CONFIG_STATUS <conf$$subs.sed
23646 rm -f conf$$subs.sed
23647 cat >>$CONFIG_STATUS <<_ACEOF
23648 :end
23649 s/|#_!!_#|//g
23650 CEOF$ac_eof
23651 _ACEOF
23652
23653
23654 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23655 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23656 # trailing colons and then remove the whole line if VPATH becomes empty
23657 # (actually we leave an empty line to preserve line numbers).
23658 if test "x$srcdir" = x.; then
23659   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23660 s/:*\$(srcdir):*/:/
23661 s/:*\${srcdir}:*/:/
23662 s/:*@srcdir@:*/:/
23663 s/^\([^=]*=[     ]*\):*/\1/
23664 s/:*$//
23665 s/^[^=]*=[       ]*$//
23666 }'
23667 fi
23668
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 fi # test -n "$CONFIG_FILES"
23671
23672
23673 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23674 do
23675   case $ac_tag in
23676   :[FHLC]) ac_mode=$ac_tag; continue;;
23677   esac
23678   case $ac_mode$ac_tag in
23679   :[FHL]*:*);;
23680   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23681 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23682    { (exit 1); exit 1; }; };;
23683   :[FH]-) ac_tag=-:-;;
23684   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23685   esac
23686   ac_save_IFS=$IFS
23687   IFS=:
23688   set x $ac_tag
23689   IFS=$ac_save_IFS
23690   shift
23691   ac_file=$1
23692   shift
23693
23694   case $ac_mode in
23695   :L) ac_source=$1;;
23696   :[FH])
23697     ac_file_inputs=
23698     for ac_f
23699     do
23700       case $ac_f in
23701       -) ac_f="$tmp/stdin";;
23702       *) # Look for the file first in the build tree, then in the source tree
23703          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23704          # because $ac_f cannot contain `:'.
23705          test -f "$ac_f" ||
23706            case $ac_f in
23707            [\\/$]*) false;;
23708            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23709            esac ||
23710            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23711 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23712    { (exit 1); exit 1; }; };;
23713       esac
23714       ac_file_inputs="$ac_file_inputs $ac_f"
23715     done
23716
23717     # Let's still pretend it is `configure' which instantiates (i.e., don't
23718     # use $as_me), people would be surprised to read:
23719     #    /* config.h.  Generated by config.status.  */
23720     configure_input="Generated from "`IFS=:
23721           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23722     if test x"$ac_file" != x-; then
23723       configure_input="$ac_file.  $configure_input"
23724       { echo "$as_me:$LINENO: creating $ac_file" >&5
23725 echo "$as_me: creating $ac_file" >&6;}
23726     fi
23727
23728     case $ac_tag in
23729     *:-:* | *:-) cat >"$tmp/stdin";;
23730     esac
23731     ;;
23732   esac
23733
23734   ac_dir=`$as_dirname -- "$ac_file" ||
23735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736          X"$ac_file" : 'X\(//\)[^/]' \| \
23737          X"$ac_file" : 'X\(//\)$' \| \
23738          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23739 echo X"$ac_file" |
23740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741             s//\1/
23742             q
23743           }
23744           /^X\(\/\/\)[^/].*/{
23745             s//\1/
23746             q
23747           }
23748           /^X\(\/\/\)$/{
23749             s//\1/
23750             q
23751           }
23752           /^X\(\/\).*/{
23753             s//\1/
23754             q
23755           }
23756           s/.*/./; q'`
23757   { as_dir="$ac_dir"
23758   case $as_dir in #(
23759   -*) as_dir=./$as_dir;;
23760   esac
23761   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23762     as_dirs=
23763     while :; do
23764       case $as_dir in #(
23765       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23766       *) as_qdir=$as_dir;;
23767       esac
23768       as_dirs="'$as_qdir' $as_dirs"
23769       as_dir=`$as_dirname -- "$as_dir" ||
23770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23771          X"$as_dir" : 'X\(//\)[^/]' \| \
23772          X"$as_dir" : 'X\(//\)$' \| \
23773          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23774 echo X"$as_dir" |
23775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23776             s//\1/
23777             q
23778           }
23779           /^X\(\/\/\)[^/].*/{
23780             s//\1/
23781             q
23782           }
23783           /^X\(\/\/\)$/{
23784             s//\1/
23785             q
23786           }
23787           /^X\(\/\).*/{
23788             s//\1/
23789             q
23790           }
23791           s/.*/./; q'`
23792       test -d "$as_dir" && break
23793     done
23794     test -z "$as_dirs" || eval "mkdir $as_dirs"
23795   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23796 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23797    { (exit 1); exit 1; }; }; }
23798   ac_builddir=.
23799
23800 case "$ac_dir" in
23801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802 *)
23803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23804   # A ".." for each directory in $ac_dir_suffix.
23805   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23806   case $ac_top_builddir_sub in
23807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23809   esac ;;
23810 esac
23811 ac_abs_top_builddir=$ac_pwd
23812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23813 # for backward compatibility:
23814 ac_top_builddir=$ac_top_build_prefix
23815
23816 case $srcdir in
23817   .)  # We are building in place.
23818     ac_srcdir=.
23819     ac_top_srcdir=$ac_top_builddir_sub
23820     ac_abs_top_srcdir=$ac_pwd ;;
23821   [\\/]* | ?:[\\/]* )  # Absolute name.
23822     ac_srcdir=$srcdir$ac_dir_suffix;
23823     ac_top_srcdir=$srcdir
23824     ac_abs_top_srcdir=$srcdir ;;
23825   *) # Relative name.
23826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23827     ac_top_srcdir=$ac_top_build_prefix$srcdir
23828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23829 esac
23830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23831
23832
23833   case $ac_mode in
23834   :F)
23835   #
23836   # CONFIG_FILE
23837   #
23838
23839   case $INSTALL in
23840   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23841   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23842   esac
23843   ac_MKDIR_P=$MKDIR_P
23844   case $MKDIR_P in
23845   [\\/$]* | ?:[\\/]* ) ;;
23846   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23847   esac
23848 _ACEOF
23849
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 # If the template does not know about datarootdir, expand it.
23852 # FIXME: This hack should be removed a few years after 2.60.
23853 ac_datarootdir_hack=; ac_datarootdir_seen=
23854
23855 case `sed -n '/datarootdir/ {
23856   p
23857   q
23858 }
23859 /@datadir@/p
23860 /@docdir@/p
23861 /@infodir@/p
23862 /@localedir@/p
23863 /@mandir@/p
23864 ' $ac_file_inputs` in
23865 *datarootdir*) ac_datarootdir_seen=yes;;
23866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23867   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23868 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23869 _ACEOF
23870 cat >>$CONFIG_STATUS <<_ACEOF
23871   ac_datarootdir_hack='
23872   s&@datadir@&$datadir&g
23873   s&@docdir@&$docdir&g
23874   s&@infodir@&$infodir&g
23875   s&@localedir@&$localedir&g
23876   s&@mandir@&$mandir&g
23877     s&\\\${datarootdir}&$datarootdir&g' ;;
23878 esac
23879 _ACEOF
23880
23881 # Neutralize VPATH when `$srcdir' = `.'.
23882 # Shell code in configure.ac might set extrasub.
23883 # FIXME: do we really want to maintain this feature?
23884 cat >>$CONFIG_STATUS <<_ACEOF
23885   sed "$ac_vpsub
23886 $extrasub
23887 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 :t
23890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23891 s&@configure_input@&$configure_input&;t t
23892 s&@top_builddir@&$ac_top_builddir_sub&;t t
23893 s&@srcdir@&$ac_srcdir&;t t
23894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23895 s&@top_srcdir@&$ac_top_srcdir&;t t
23896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23897 s&@builddir@&$ac_builddir&;t t
23898 s&@abs_builddir@&$ac_abs_builddir&;t t
23899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23900 s&@INSTALL@&$ac_INSTALL&;t t
23901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23902 $ac_datarootdir_hack
23903 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23904
23905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23906   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23907   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23908   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23909 which seems to be undefined.  Please make sure it is defined." >&5
23910 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23911 which seems to be undefined.  Please make sure it is defined." >&2;}
23912
23913   rm -f "$tmp/stdin"
23914   case $ac_file in
23915   -) cat "$tmp/out"; rm -f "$tmp/out";;
23916   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23917   esac
23918  ;;
23919   :H)
23920   #
23921   # CONFIG_HEADER
23922   #
23923 _ACEOF
23924
23925 # Transform confdefs.h into a sed script `conftest.defines', that
23926 # substitutes the proper values into config.h.in to produce config.h.
23927 rm -f conftest.defines conftest.tail
23928 # First, append a space to every undef/define line, to ease matching.
23929 echo 's/$/ /' >conftest.defines
23930 # Then, protect against being on the right side of a sed subst, or in
23931 # an unquoted here document, in config.status.  If some macros were
23932 # called several times there might be several #defines for the same
23933 # symbol, which is useless.  But do not sort them, since the last
23934 # AC_DEFINE must be honored.
23935 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23936 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23937 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23938 # PARAMS is the parameter list in the macro definition--in most cases, it's
23939 # just an empty string.
23940 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23941 ac_dB='\\)[      (].*,\\1define\\2'
23942 ac_dC=' '
23943 ac_dD=' ,'
23944
23945 uniq confdefs.h |
23946   sed -n '
23947         t rset
23948         :rset
23949         s/^[     ]*#[    ]*define[       ][      ]*//
23950         t ok
23951         d
23952         :ok
23953         s/[\\&,]/\\&/g
23954         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23955         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23956   ' >>conftest.defines
23957
23958 # Remove the space that was appended to ease matching.
23959 # Then replace #undef with comments.  This is necessary, for
23960 # example, in the case of _POSIX_SOURCE, which is predefined and required
23961 # on some systems where configure will not decide to define it.
23962 # (The regexp can be short, since the line contains either #define or #undef.)
23963 echo 's/ $//
23964 s,^[     #]*u.*,/* & */,' >>conftest.defines
23965
23966 # Break up conftest.defines:
23967 ac_max_sed_lines=50
23968
23969 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23970 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23971 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23972 # et cetera.
23973 ac_in='$ac_file_inputs'
23974 ac_out='"$tmp/out1"'
23975 ac_nxt='"$tmp/out2"'
23976
23977 while :
23978 do
23979   # Write a here document:
23980     cat >>$CONFIG_STATUS <<_ACEOF
23981     # First, check the format of the line:
23982     cat >"\$tmp/defines.sed" <<\\CEOF
23983 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23984 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23985 b
23986 :def
23987 _ACEOF
23988   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23989   echo 'CEOF
23990     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23991   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23992   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23993   grep . conftest.tail >/dev/null || break
23994   rm -f conftest.defines
23995   mv conftest.tail conftest.defines
23996 done
23997 rm -f conftest.defines conftest.tail
23998
23999 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001   if test x"$ac_file" != x-; then
24002     echo "/* $configure_input  */" >"$tmp/config.h"
24003     cat "$ac_result" >>"$tmp/config.h"
24004     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24005       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24006 echo "$as_me: $ac_file is unchanged" >&6;}
24007     else
24008       rm -f $ac_file
24009       mv "$tmp/config.h" $ac_file
24010     fi
24011   else
24012     echo "/* $configure_input  */"
24013     cat "$ac_result"
24014   fi
24015   rm -f "$tmp/out12"
24016 # Compute $ac_file's index in $config_headers.
24017 _am_stamp_count=1
24018 for _am_header in $config_headers :; do
24019   case $_am_header in
24020     $ac_file | $ac_file:* )
24021       break ;;
24022     * )
24023       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24024   esac
24025 done
24026 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24027 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24028          X$ac_file : 'X\(//\)[^/]' \| \
24029          X$ac_file : 'X\(//\)$' \| \
24030          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24031 echo X$ac_file |
24032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24033             s//\1/
24034             q
24035           }
24036           /^X\(\/\/\)[^/].*/{
24037             s//\1/
24038             q
24039           }
24040           /^X\(\/\/\)$/{
24041             s//\1/
24042             q
24043           }
24044           /^X\(\/\).*/{
24045             s//\1/
24046             q
24047           }
24048           s/.*/./; q'`/stamp-h$_am_stamp_count
24049  ;;
24050
24051   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24052 echo "$as_me: executing $ac_file commands" >&6;}
24053  ;;
24054   esac
24055
24056
24057   case $ac_file$ac_mode in
24058     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24059   # Strip MF so we end up with the name of the file.
24060   mf=`echo "$mf" | sed -e 's/:.*$//'`
24061   # Check whether this is an Automake generated Makefile or not.
24062   # We used to match only the files named `Makefile.in', but
24063   # some people rename them; so instead we look at the file content.
24064   # Grep'ing the first line is not enough: some people post-process
24065   # each Makefile.in and add a new line on top of each file to say so.
24066   # Grep'ing the whole file is not good either: AIX grep has a line
24067   # limit of 2048, but all sed's we know have understand at least 4000.
24068   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24069     dirpart=`$as_dirname -- "$mf" ||
24070 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24071          X"$mf" : 'X\(//\)[^/]' \| \
24072          X"$mf" : 'X\(//\)$' \| \
24073          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24074 echo X"$mf" |
24075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24076             s//\1/
24077             q
24078           }
24079           /^X\(\/\/\)[^/].*/{
24080             s//\1/
24081             q
24082           }
24083           /^X\(\/\/\)$/{
24084             s//\1/
24085             q
24086           }
24087           /^X\(\/\).*/{
24088             s//\1/
24089             q
24090           }
24091           s/.*/./; q'`
24092   else
24093     continue
24094   fi
24095   # Extract the definition of DEPDIR, am__include, and am__quote
24096   # from the Makefile without running `make'.
24097   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24098   test -z "$DEPDIR" && continue
24099   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24100   test -z "am__include" && continue
24101   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24102   # When using ansi2knr, U may be empty or an underscore; expand it
24103   U=`sed -n 's/^U = //p' < "$mf"`
24104   # Find all dependency output files, they are included files with
24105   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24106   # simplest approach to changing $(DEPDIR) to its actual value in the
24107   # expansion.
24108   for file in `sed -n "
24109     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24110        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24111     # Make sure the directory exists.
24112     test -f "$dirpart/$file" && continue
24113     fdir=`$as_dirname -- "$file" ||
24114 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24115          X"$file" : 'X\(//\)[^/]' \| \
24116          X"$file" : 'X\(//\)$' \| \
24117          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24118 echo X"$file" |
24119     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24120             s//\1/
24121             q
24122           }
24123           /^X\(\/\/\)[^/].*/{
24124             s//\1/
24125             q
24126           }
24127           /^X\(\/\/\)$/{
24128             s//\1/
24129             q
24130           }
24131           /^X\(\/\).*/{
24132             s//\1/
24133             q
24134           }
24135           s/.*/./; q'`
24136     { as_dir=$dirpart/$fdir
24137   case $as_dir in #(
24138   -*) as_dir=./$as_dir;;
24139   esac
24140   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24141     as_dirs=
24142     while :; do
24143       case $as_dir in #(
24144       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24145       *) as_qdir=$as_dir;;
24146       esac
24147       as_dirs="'$as_qdir' $as_dirs"
24148       as_dir=`$as_dirname -- "$as_dir" ||
24149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24150          X"$as_dir" : 'X\(//\)[^/]' \| \
24151          X"$as_dir" : 'X\(//\)$' \| \
24152          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24153 echo X"$as_dir" |
24154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24155             s//\1/
24156             q
24157           }
24158           /^X\(\/\/\)[^/].*/{
24159             s//\1/
24160             q
24161           }
24162           /^X\(\/\/\)$/{
24163             s//\1/
24164             q
24165           }
24166           /^X\(\/\).*/{
24167             s//\1/
24168             q
24169           }
24170           s/.*/./; q'`
24171       test -d "$as_dir" && break
24172     done
24173     test -z "$as_dirs" || eval "mkdir $as_dirs"
24174   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24175 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24176    { (exit 1); exit 1; }; }; }
24177     # echo "creating $dirpart/$file"
24178     echo '# dummy' > "$dirpart/$file"
24179   done
24180 done
24181  ;;
24182
24183   esac
24184 done # for ac_tag
24185
24186
24187 { (exit 0); exit 0; }
24188 _ACEOF
24189 if test "x$with_fast_perl" = "xyes"; then    
24190   perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
24191     || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
24192   rm -f $CONFIG_STATUS.bak
24193 fi    
24194 chmod +x $CONFIG_STATUS
24195 ac_clean_files=$ac_clean_files_save
24196
24197
24198 # configure is writing to config.log, and then calls config.status.
24199 # config.status does its own redirection, appending to config.log.
24200 # Unfortunately, on DOS this fails, as config.log is still kept open
24201 # by configure, so config.status won't be able to write to it; its
24202 # output is simply discarded.  So we exec the FD to /dev/null,
24203 # effectively closing config.log, so it can be properly (re)opened and
24204 # appended to by config.status.  When coming back to configure, we
24205 # need to make the FD available again.
24206 if test "$no_create" != yes; then
24207   ac_cs_success=:
24208   ac_config_status_args=
24209   test "$silent" = yes &&
24210     ac_config_status_args="$ac_config_status_args --quiet"
24211   exec 5>/dev/null
24212   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24213   exec 5>>config.log
24214   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24215   # would make configure fail if this is the last instruction.
24216   $ac_cs_success || { (exit 1); exit 1; }
24217 fi
24218
24219 if test "x$have_zlib" = "xfalse"; then
24220         echo "**************************************************"
24221         echo "*"
24222         echo "* You don't seem to have libz / zlib.h installed."
24223         echo "* Compressed frames have been disabled."
24224         echo "*"
24225         echo "**************************************************"
24226 fi
24227 # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
24228 if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
24229   # And if so, warn when they don't match
24230   if test "$kde_libs_prefix" != "$given_prefix"; then
24231     # And if kde doesn't know about the prefix yet
24232     echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
24233     if test $? -ne 0; then
24234       echo ""
24235       echo "Warning: you chose to install this package in $given_prefix,"
24236       echo "but KDE was found in $kde_libs_prefix."
24237       echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
24238       echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
24239       echo "Then restart KDE."
24240       echo ""
24241     fi
24242   fi
24243 fi
24244
24245 if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
24246   echo ""
24247   echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
24248   echo "was not included. Therefore, GCC symbol visibility support remains disabled."
24249   echo ""
24250   echo "For better performance, consider including the Qt visibility supporting patch"
24251   echo "located at:"
24252   echo ""
24253   echo "http://bugs.kde.org/show_bug.cgi?id=109386"
24254   echo ""
24255   echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
24256   echo "everything will continue to work just fine without it."
24257   echo ""
24258 fi
24259
24260 if test "$all_tests" = "bad"; then
24261   if test ! "$cache_file" = "/dev/null"; then
24262     echo ""
24263     echo "Please remove the file $cache_file after changing your setup"
24264     echo "so that configure will find the changes next time."
24265     echo ""
24266   fi
24267 else
24268   echo ""
24269   echo "Good - your configure finished. Start make now"
24270   echo ""
24271 fi