Uploaded initial version.
[guivpn] / trunk / vpngui / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for osso-statusbar-sync 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='osso-statusbar-sync'
728 PACKAGE_TARNAME='osso-statusbar-sync'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='osso-statusbar-sync 0.1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 AMTAR
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 CC
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 DEPDIR
833 am__include
834 am__quote
835 AMDEP_TRUE
836 AMDEP_FALSE
837 AMDEPBACKSLASH
838 CCDEPMODE
839 am__fastdepCC_TRUE
840 am__fastdepCC_FALSE
841 CPP
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 CXXDEPMODE
846 am__fastdepCXX_TRUE
847 am__fastdepCXX_FALSE
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 CXXCPP
863 F77
864 FFLAGS
865 ac_ct_F77
866 LIBTOOL
867 GETTEXT_PACKAGE
868 USE_NLS
869 MSGFMT
870 MSGFMT_OPTS
871 GMSGFMT
872 XGETTEXT
873 CATALOGS
874 CATOBJEXT
875 DATADIRNAME
876 GMOFILES
877 INSTOBJEXT
878 INTLLIBS
879 PO_IN_DATADIR_TRUE
880 PO_IN_DATADIR_FALSE
881 POFILES
882 POSUB
883 MKINSTALLDIRS
884 DEBUG_TRUE
885 DEBUG_FALSE
886 PKG_CONFIG
887 LIBHILDONDESKTOP_CFLAGS
888 LIBHILDONDESKTOP_LIBS
889 CONIC_CFLAGS
890 CONIC_LIBS
891 STATUSBAR_SYNC_CFLAGS
892 STATUSBAR_SYNC_LIBS
893 pixmapsdir
894 hildonpixmapdir
895 hildondesktoplibdir
896 hildonstatusmenudesktopentrydir
897 ALL_LINGUAS
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901       ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CXXCPP
914 F77
915 FFLAGS
916 PKG_CONFIG
917 LIBHILDONDESKTOP_CFLAGS
918 LIBHILDONDESKTOP_LIBS
919 CONIC_CFLAGS
920 CONIC_LIBS
921 STATUSBAR_SYNC_CFLAGS
922 STATUSBAR_SYNC_LIBS'
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_TARNAME}'
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 osso-statusbar-sync 0.1 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/osso-statusbar-sync]
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 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494   case $ac_init_help in
1495      short | recursive ) echo "Configuration of osso-statusbar-sync 0.1:";;
1496    esac
1497   cat <<\_ACEOF
1498
1499 Optional Features:
1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502   --disable-dependency-tracking  speeds up one-time build
1503   --enable-dependency-tracking   do not reject slow dependency extractors
1504   --enable-shared[=PKGS]  build shared libraries [default=yes]
1505   --enable-static[=PKGS]  build static libraries [default=yes]
1506   --enable-fast-install[=PKGS]
1507                           optimize for fast installation [default=yes]
1508   --disable-libtool-lock  avoid locking (might break parallel builds)
1509   --enable-debug          Enable debug [default=false]
1510
1511 Optional Packages:
1512   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515   --with-pic              try to use only PIC/non-PIC objects [default=use
1516                           both]
1517   --with-tags[=TAGS]      include additional configurations [automatic]
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CPP         C preprocessor
1528   CXX         C++ compiler command
1529   CXXFLAGS    C++ compiler flags
1530   CXXCPP      C++ preprocessor
1531   F77         Fortran 77 compiler command
1532   FFLAGS      Fortran 77 compiler flags
1533   PKG_CONFIG  path to pkg-config utility
1534   LIBHILDONDESKTOP_CFLAGS
1535               C compiler flags for LIBHILDONDESKTOP, overriding pkg-config
1536   LIBHILDONDESKTOP_LIBS
1537               linker flags for LIBHILDONDESKTOP, overriding pkg-config
1538   CONIC_CFLAGS
1539               C compiler flags for CONIC, overriding pkg-config
1540   CONIC_LIBS  linker flags for CONIC, overriding pkg-config
1541   STATUSBAR_SYNC_CFLAGS
1542               C compiler flags for STATUSBAR_SYNC, overriding pkg-config
1543   STATUSBAR_SYNC_LIBS
1544               linker flags for STATUSBAR_SYNC, overriding pkg-config
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554   # If there are subdirs, report their specific --help.
1555   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556     test -d "$ac_dir" || continue
1557     ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1563   # A ".." for each directory in $ac_dir_suffix.
1564   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1565   case $ac_top_builddir_sub in
1566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568   esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576   .)  # We are building in place.
1577     ac_srcdir=.
1578     ac_top_srcdir=$ac_top_builddir_sub
1579     ac_abs_top_srcdir=$ac_pwd ;;
1580   [\\/]* | ?:[\\/]* )  # Absolute name.
1581     ac_srcdir=$srcdir$ac_dir_suffix;
1582     ac_top_srcdir=$srcdir
1583     ac_abs_top_srcdir=$srcdir ;;
1584   *) # Relative name.
1585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586     ac_top_srcdir=$ac_top_build_prefix$srcdir
1587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591     cd "$ac_dir" || { ac_status=$?; continue; }
1592     # Check for guested configure.
1593     if test -f "$ac_srcdir/configure.gnu"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596     elif test -f "$ac_srcdir/configure"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure" --help=recursive
1599     else
1600       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601     fi || ac_status=$?
1602     cd "$ac_pwd" || { ac_status=$?; break; }
1603   done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608   cat <<\_ACEOF
1609 osso-statusbar-sync configure 0.1
1610 generated by GNU Autoconf 2.61
1611
1612 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619 cat >config.log <<_ACEOF
1620 This file contains any messages produced by compilers while
1621 running configure, to aid debugging if configure makes a mistake.
1622
1623 It was created by osso-statusbar-sync $as_me 0.1, which was
1624 generated by GNU Autoconf 2.61.  Invocation command line was
1625
1626   $ $0 $@
1627
1628 _ACEOF
1629 exec 5>>config.log
1630 {
1631 cat <<_ASUNAME
1632 ## --------- ##
1633 ## Platform. ##
1634 ## --------- ##
1635
1636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1641
1642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1643 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1644
1645 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1646 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1648 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1649 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1650 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1651 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1652
1653 _ASUNAME
1654
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   echo "PATH: $as_dir"
1661 done
1662 IFS=$as_save_IFS
1663
1664 } >&5
1665
1666 cat >&5 <<_ACEOF
1667
1668
1669 ## ----------- ##
1670 ## Core tests. ##
1671 ## ----------- ##
1672
1673 _ACEOF
1674
1675
1676 # Keep a trace of the command line.
1677 # Strip out --no-create and --no-recursion so they do not pile up.
1678 # Strip out --silent because we don't want to record it for future runs.
1679 # Also quote any args containing shell meta-characters.
1680 # Make two passes to allow for proper duplicate-argument suppression.
1681 ac_configure_args=
1682 ac_configure_args0=
1683 ac_configure_args1=
1684 ac_must_keep_next=false
1685 for ac_pass in 1 2
1686 do
1687   for ac_arg
1688   do
1689     case $ac_arg in
1690     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1691     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1692     | -silent | --silent | --silen | --sile | --sil)
1693       continue ;;
1694     *\'*)
1695       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696     esac
1697     case $ac_pass in
1698     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1699     2)
1700       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1701       if test $ac_must_keep_next = true; then
1702         ac_must_keep_next=false # Got value, back to normal.
1703       else
1704         case $ac_arg in
1705           *=* | --config-cache | -C | -disable-* | --disable-* \
1706           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1707           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1708           | -with-* | --with-* | -without-* | --without-* | --x)
1709             case "$ac_configure_args0 " in
1710               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711             esac
1712             ;;
1713           -* ) ac_must_keep_next=true ;;
1714         esac
1715       fi
1716       ac_configure_args="$ac_configure_args '$ac_arg'"
1717       ;;
1718     esac
1719   done
1720 done
1721 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1722 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1723
1724 # When interrupted or exit'd, cleanup temporary files, and complete
1725 # config.log.  We remove comments because anyway the quotes in there
1726 # would cause problems or look ugly.
1727 # WARNING: Use '\'' to represent an apostrophe within the trap.
1728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1729 trap 'exit_status=$?
1730   # Save into config.log some information that might help in debugging.
1731   {
1732     echo
1733
1734     cat <<\_ASBOX
1735 ## ---------------- ##
1736 ## Cache variables. ##
1737 ## ---------------- ##
1738 _ASBOX
1739     echo
1740     # The following way of writing the cache mishandles newlines in values,
1741 (
1742   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1743     eval ac_val=\$$ac_var
1744     case $ac_val in #(
1745     *${as_nl}*)
1746       case $ac_var in #(
1747       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1748 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1749       esac
1750       case $ac_var in #(
1751       _ | IFS | as_nl) ;; #(
1752       *) $as_unset $ac_var ;;
1753       esac ;;
1754     esac
1755   done
1756   (set) 2>&1 |
1757     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1758     *${as_nl}ac_space=\ *)
1759       sed -n \
1760         "s/'\''/'\''\\\\'\'''\''/g;
1761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1762       ;; #(
1763     *)
1764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765       ;;
1766     esac |
1767     sort
1768 )
1769     echo
1770
1771     cat <<\_ASBOX
1772 ## ----------------- ##
1773 ## Output variables. ##
1774 ## ----------------- ##
1775 _ASBOX
1776     echo
1777     for ac_var in $ac_subst_vars
1778     do
1779       eval ac_val=\$$ac_var
1780       case $ac_val in
1781       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782       esac
1783       echo "$ac_var='\''$ac_val'\''"
1784     done | sort
1785     echo
1786
1787     if test -n "$ac_subst_files"; then
1788       cat <<\_ASBOX
1789 ## ------------------- ##
1790 ## File substitutions. ##
1791 ## ------------------- ##
1792 _ASBOX
1793       echo
1794       for ac_var in $ac_subst_files
1795       do
1796         eval ac_val=\$$ac_var
1797         case $ac_val in
1798         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799         esac
1800         echo "$ac_var='\''$ac_val'\''"
1801       done | sort
1802       echo
1803     fi
1804
1805     if test -s confdefs.h; then
1806       cat <<\_ASBOX
1807 ## ----------- ##
1808 ## confdefs.h. ##
1809 ## ----------- ##
1810 _ASBOX
1811       echo
1812       cat confdefs.h
1813       echo
1814     fi
1815     test "$ac_signal" != 0 &&
1816       echo "$as_me: caught signal $ac_signal"
1817     echo "$as_me: exit $exit_status"
1818   } >&5
1819   rm -f core *.core core.conftest.* &&
1820     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1821     exit $exit_status
1822 ' 0
1823 for ac_signal in 1 2 13 15; do
1824   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1825 done
1826 ac_signal=0
1827
1828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1829 rm -f -r conftest* confdefs.h
1830
1831 # Predefined preprocessor variables.
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_NAME "$PACKAGE_NAME"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_STRING "$PACKAGE_STRING"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1855 _ACEOF
1856
1857
1858 # Let the site file select an alternate cache file if it wants to.
1859 # Prefer explicitly selected file to automatically selected ones.
1860 if test -n "$CONFIG_SITE"; then
1861   set x "$CONFIG_SITE"
1862 elif test "x$prefix" != xNONE; then
1863   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1864 else
1865   set x "$ac_default_prefix/share/config.site" \
1866         "$ac_default_prefix/etc/config.site"
1867 fi
1868 shift
1869 for ac_site_file
1870 do
1871   if test -r "$ac_site_file"; then
1872     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 echo "$as_me: loading site script $ac_site_file" >&6;}
1874     sed 's/^/| /' "$ac_site_file" >&5
1875     . "$ac_site_file"
1876   fi
1877 done
1878
1879 if test -r "$cache_file"; then
1880   # Some versions of bash will fail to source /dev/null (special
1881   # files actually), so we avoid doing that.
1882   if test -f "$cache_file"; then
1883     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 echo "$as_me: loading cache $cache_file" >&6;}
1885     case $cache_file in
1886       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887       *)                      . "./$cache_file";;
1888     esac
1889   fi
1890 else
1891   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 echo "$as_me: creating cache $cache_file" >&6;}
1893   >$cache_file
1894 fi
1895
1896 # Check that the precious variables saved in the cache have kept the same
1897 # value.
1898 ac_cache_corrupted=false
1899 for ac_var in $ac_precious_vars; do
1900   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901   eval ac_new_set=\$ac_env_${ac_var}_set
1902   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903   eval ac_new_val=\$ac_env_${ac_var}_value
1904   case $ac_old_set,$ac_new_set in
1905     set,)
1906       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1908       ac_cache_corrupted=: ;;
1909     ,set)
1910       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1912       ac_cache_corrupted=: ;;
1913     ,);;
1914     *)
1915       if test "x$ac_old_val" != "x$ac_new_val"; then
1916         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1917 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1918         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1919 echo "$as_me:   former value:  $ac_old_val" >&2;}
1920         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1921 echo "$as_me:   current value: $ac_new_val" >&2;}
1922         ac_cache_corrupted=:
1923       fi;;
1924   esac
1925   # Pass precious variables to config.status.
1926   if test "$ac_new_set" = set; then
1927     case $ac_new_val in
1928     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929     *) ac_arg=$ac_var=$ac_new_val ;;
1930     esac
1931     case " $ac_configure_args " in
1932       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1933       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934     esac
1935   fi
1936 done
1937 if $ac_cache_corrupted; then
1938   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1939 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1940   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1941 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
1975
1976 #AC_CONFIG_AUX_DIR([build-aux])
1977 am__api_version="1.8"
1978 ac_aux_dir=
1979 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1980   if test -f "$ac_dir/install-sh"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/install-sh -c"
1983     break
1984   elif test -f "$ac_dir/install.sh"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/install.sh -c"
1987     break
1988   elif test -f "$ac_dir/shtool"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/shtool install -c"
1991     break
1992   fi
1993 done
1994 if test -z "$ac_aux_dir"; then
1995   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1996 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 # These three variables are undocumented and unsupported,
2001 # and are intended to be withdrawn in a future Autoconf release.
2002 # They can cause serious problems if a builder's source tree is in a directory
2003 # whose full name contains unusual characters.
2004 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2005 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2006 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2007
2008
2009 # Find a good install program.  We prefer a C program (faster),
2010 # so one script is as good as another.  But avoid the broken or
2011 # incompatible versions:
2012 # SysV /etc/install, /usr/sbin/install
2013 # SunOS /usr/etc/install
2014 # IRIX /sbin/install
2015 # AIX /bin/install
2016 # AmigaOS /C/install, which installs bootblocks on floppy discs
2017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2020 # OS/2's system install, which has a completely different semantic
2021 # ./install, which can be erroneously created by make from ./install.sh.
2022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2024 if test -z "$INSTALL"; then
2025 if test "${ac_cv_path_install+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031   IFS=$as_save_IFS
2032   test -z "$as_dir" && as_dir=.
2033   # Account for people who put trailing slashes in PATH elements.
2034 case $as_dir/ in
2035   ./ | .// | /cC/* | \
2036   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2037   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2038   /usr/ucb/* ) ;;
2039   *)
2040     # OSF1 and SCO ODT 3.0 have their own names for install.
2041     # Don't use installbsd from OSF since it installs stuff as root
2042     # by default.
2043     for ac_prog in ginstall scoinst install; do
2044       for ac_exec_ext in '' $ac_executable_extensions; do
2045         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2046           if test $ac_prog = install &&
2047             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048             # AIX install.  It has an incompatible calling convention.
2049             :
2050           elif test $ac_prog = install &&
2051             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052             # program-specific install script used by HP pwplus--don't use.
2053             :
2054           else
2055             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2056             break 3
2057           fi
2058         fi
2059       done
2060     done
2061     ;;
2062 esac
2063 done
2064 IFS=$as_save_IFS
2065
2066
2067 fi
2068   if test "${ac_cv_path_install+set}" = set; then
2069     INSTALL=$ac_cv_path_install
2070   else
2071     # As a last resort, use the slow shell script.  Don't cache a
2072     # value for INSTALL within a source directory, because that will
2073     # break other packages using the cache if that directory is
2074     # removed, or if the value is a relative name.
2075     INSTALL=$ac_install_sh
2076   fi
2077 fi
2078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2079 echo "${ECHO_T}$INSTALL" >&6; }
2080
2081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2082 # It thinks the first close brace ends the variable substitution.
2083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2084
2085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2086
2087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2088
2089 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2090 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2091 # Just in case
2092 sleep 1
2093 echo timestamp > conftest.file
2094 # Do `set' in a subshell so we don't clobber the current shell's
2095 # arguments.  Must try -L first in case configure is actually a
2096 # symlink; some systems play weird games with the mod time of symlinks
2097 # (eg FreeBSD returns the mod time of the symlink's containing
2098 # directory).
2099 if (
2100    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2101    if test "$*" = "X"; then
2102       # -L didn't work.
2103       set X `ls -t $srcdir/configure conftest.file`
2104    fi
2105    rm -f conftest.file
2106    if test "$*" != "X $srcdir/configure conftest.file" \
2107       && test "$*" != "X conftest.file $srcdir/configure"; then
2108
2109       # If neither matched, then we have a broken ls.  This can happen
2110       # if, for instance, CONFIG_SHELL is bash and it inherits a
2111       # broken ls alias from the environment.  This has actually
2112       # happened.  Such a system could not be considered "sane".
2113       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2114 alias in your environment" >&5
2115 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2116 alias in your environment" >&2;}
2117    { (exit 1); exit 1; }; }
2118    fi
2119
2120    test "$2" = conftest.file
2121    )
2122 then
2123    # Ok.
2124    :
2125 else
2126    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2127 Check your system clock" >&5
2128 echo "$as_me: error: newly created file is older than distributed files!
2129 Check your system clock" >&2;}
2130    { (exit 1); exit 1; }; }
2131 fi
2132 { echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6; }
2134 test "$program_prefix" != NONE &&
2135   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2136 # Use a double $ so make ignores it.
2137 test "$program_suffix" != NONE &&
2138   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2139 # Double any \ or $.  echo might interpret backslashes.
2140 # By default was `s,x,x', remove it if useless.
2141 cat <<\_ACEOF >conftest.sed
2142 s/[\\$]/&&/g;s/;s,x,x,$//
2143 _ACEOF
2144 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2145 rm -f conftest.sed
2146
2147 # expand $ac_aux_dir to an absolute path
2148 am_aux_dir=`cd $ac_aux_dir && pwd`
2149
2150 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2151 # Use eval to expand $SHELL
2152 if eval "$MISSING --run true"; then
2153   am_missing_run="$MISSING --run "
2154 else
2155   am_missing_run=
2156   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2157 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2158 fi
2159
2160 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2161   # Keeping the `.' argument allows $(mkdir_p) to be used without
2162   # argument.  Indeed, we sometimes output rules like
2163   #   $(mkdir_p) $(somedir)
2164   # where $(somedir) is conditionally defined.
2165   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2166   # expensive solution, as it forces Make to start a sub-shell.)
2167   mkdir_p='mkdir -p -- .'
2168 else
2169   # On NextStep and OpenStep, the `mkdir' command does not
2170   # recognize any option.  It will interpret all options as
2171   # directories to create, and then abort because `.' already
2172   # exists.
2173   for d in ./-p ./--version;
2174   do
2175     test -d $d && rmdir $d
2176   done
2177   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2178   if test -f "$ac_aux_dir/mkinstalldirs"; then
2179     mkdir_p='$(mkinstalldirs)'
2180   else
2181     mkdir_p='$(install_sh) -d'
2182   fi
2183 fi
2184
2185 for ac_prog in gawk mawk nawk awk
2186 do
2187   # Extract the first word of "$ac_prog", so it can be a program name with args.
2188 set dummy $ac_prog; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_AWK+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test -n "$AWK"; then
2195   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200   IFS=$as_save_IFS
2201   test -z "$as_dir" && as_dir=.
2202   for ac_exec_ext in '' $ac_executable_extensions; do
2203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204     ac_cv_prog_AWK="$ac_prog"
2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206     break 2
2207   fi
2208 done
2209 done
2210 IFS=$as_save_IFS
2211
2212 fi
2213 fi
2214 AWK=$ac_cv_prog_AWK
2215 if test -n "$AWK"; then
2216   { echo "$as_me:$LINENO: result: $AWK" >&5
2217 echo "${ECHO_T}$AWK" >&6; }
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 fi
2222
2223
2224   test -n "$AWK" && break
2225 done
2226
2227 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2228 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2229 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2230 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   cat >conftest.make <<\_ACEOF
2234 SHELL = /bin/sh
2235 all:
2236         @echo '@@@%%%=$(MAKE)=@@@%%%'
2237 _ACEOF
2238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2240   *@@@%%%=?*=@@@%%%*)
2241     eval ac_cv_prog_make_${ac_make}_set=yes;;
2242   *)
2243     eval ac_cv_prog_make_${ac_make}_set=no;;
2244 esac
2245 rm -f conftest.make
2246 fi
2247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2248   { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2250   SET_MAKE=
2251 else
2252   { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2254   SET_MAKE="MAKE=${MAKE-make}"
2255 fi
2256
2257 rm -rf .tst 2>/dev/null
2258 mkdir .tst 2>/dev/null
2259 if test -d .tst; then
2260   am__leading_dot=.
2261 else
2262   am__leading_dot=_
2263 fi
2264 rmdir .tst 2>/dev/null
2265
2266 # test to see if srcdir already configured
2267 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2268    test -f $srcdir/config.status; then
2269   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271    { (exit 1); exit 1; }; }
2272 fi
2273
2274 # test whether we have cygpath
2275 if test -z "$CYGPATH_W"; then
2276   if (cygpath --version) >/dev/null 2>/dev/null; then
2277     CYGPATH_W='cygpath -w'
2278   else
2279     CYGPATH_W=echo
2280   fi
2281 fi
2282
2283
2284 # Define the identity of the package.
2285  PACKAGE='osso-statusbar-sync'
2286  VERSION='0.1'
2287
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE "$PACKAGE"
2291 _ACEOF
2292
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define VERSION "$VERSION"
2296 _ACEOF
2297
2298 # Some tools Automake needs.
2299
2300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2301
2302
2303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2304
2305
2306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2307
2308
2309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2310
2311
2312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2313
2314
2315 AMTAR=${AMTAR-"${am_missing_run}tar"}
2316
2317 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2318
2319 # Installed binaries are usually stripped using `strip' when the user
2320 # run `make install-strip'.  However `strip' might not be the right
2321 # tool to use in cross-compilation environments, therefore Automake
2322 # will honor the `STRIP' environment variable to overrule this program.
2323 if test "$cross_compiling" != no; then
2324   if test -n "$ac_tool_prefix"; then
2325   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}strip; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_STRIP+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$STRIP"; then
2333   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 STRIP=$ac_cv_prog_STRIP
2353 if test -n "$STRIP"; then
2354   { echo "$as_me:$LINENO: result: $STRIP" >&5
2355 echo "${ECHO_T}$STRIP" >&6; }
2356 else
2357   { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2359 fi
2360
2361
2362 fi
2363 if test -z "$ac_cv_prog_STRIP"; then
2364   ac_ct_STRIP=$STRIP
2365   # Extract the first word of "strip", so it can be a program name with args.
2366 set dummy strip; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$ac_ct_STRIP"; then
2373   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_ac_ct_STRIP="strip"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2393 if test -n "$ac_ct_STRIP"; then
2394   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2395 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2396 else
2397   { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 fi
2400
2401   if test "x$ac_ct_STRIP" = x; then
2402     STRIP=":"
2403   else
2404     case $cross_compiling:$ac_tool_warned in
2405 yes:)
2406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet.  If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&5
2409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet.  If you think this
2411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2412 ac_tool_warned=yes ;;
2413 esac
2414     STRIP=$ac_ct_STRIP
2415   fi
2416 else
2417   STRIP="$ac_cv_prog_STRIP"
2418 fi
2419
2420 fi
2421 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2422
2423 # We need awk for the "check" target.  The system "awk" is bad on
2424 # some platforms.
2425
2426
2427
2428
2429 ac_config_headers="$ac_config_headers config.h"
2430
2431
2432 ac_ext=c
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_CC"; then
2477   ac_ct_CC=$CC
2478   # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$ac_ct_CC"; then
2486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_CC="gcc"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_CC" = x; then
2515     CC=""
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     CC=$ac_ct_CC
2528   fi
2529 else
2530   CC="$ac_cv_prog_CC"
2531 fi
2532
2533 if test -z "$CC"; then
2534           if test -n "$ac_tool_prefix"; then
2535     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_CC="${ac_tool_prefix}cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564   { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567   { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2569 fi
2570
2571
2572   fi
2573 fi
2574 if test -z "$CC"; then
2575   # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585   ac_prog_rejected=no
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594        ac_prog_rejected=yes
2595        continue
2596      fi
2597     ac_cv_prog_CC="cc"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 if test $ac_prog_rejected = yes; then
2606   # We found a bogon in the path, so make sure we never use it.
2607   set dummy $ac_cv_prog_CC
2608   shift
2609   if test $# != 0; then
2610     # We chose a different compiler from the bogus one.
2611     # However, it has the same basename, so the bogon will be chosen
2612     # first if we set CC to just the basename; use the full file name.
2613     shift
2614     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2615   fi
2616 fi
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621   { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629 fi
2630 if test -z "$CC"; then
2631   if test -n "$ac_tool_prefix"; then
2632   for ac_prog in cl.exe
2633   do
2634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   if test -n "$CC"; then
2642   ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649   for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663   { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2665 else
2666   { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 fi
2669
2670
2671     test -n "$CC" && break
2672   done
2673 fi
2674 if test -z "$CC"; then
2675   ac_ct_CC=$CC
2676   for ac_prog in cl.exe
2677 do
2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if test -n "$ac_ct_CC"; then
2686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693   for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_ac_ct_CC="$ac_prog"
2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2709 else
2710   { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715   test -n "$ac_ct_CC" && break
2716 done
2717
2718   if test "x$ac_ct_CC" = x; then
2719     CC=""
2720   else
2721     case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet.  If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731     CC=$ac_ct_CC
2732   fi
2733 fi
2734
2735 fi
2736
2737
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&2;}
2742    { (exit 1); exit 1; }; }
2743
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 ac_compiler=`set X $ac_compile; echo $2`
2747 { (ac_try="$ac_compiler --version >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compiler --version >&5") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compiler -v >&5") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }
2767 { (ac_try="$ac_compiler -V >&5"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compiler -V >&5") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }
2777
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2797 # of exeext.
2798 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801 #
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804 # only as a last resort.  b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806 #
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions.  Remove them first so a
2809 # subsequent execution test works.
2810 ac_rmfiles=
2811 for ac_file in $ac_files
2812 do
2813   case $ac_file in
2814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816   esac
2817 done
2818 rm -f $ac_rmfiles
2819
2820 if { (ac_try="$ac_link_default"
2821 case "(($ac_try" in
2822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823   *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826   (eval "$ac_link_default") 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; then
2830   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2834 # Autoconf.
2835 for ac_file in $ac_files ''
2836 do
2837   test -f "$ac_file" || continue
2838   case $ac_file in
2839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840         ;;
2841     [ab].out )
2842         # We found the default executable, but exeext='' is most
2843         # certainly right.
2844         break;;
2845     *.* )
2846         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847         then :; else
2848            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849         fi
2850         # We set ac_cv_exeext here because the later test for it is not
2851         # safe: cross compilers may not add the suffix if given an `-o'
2852         # argument, so we may need to know it at that point already.
2853         # Even if this section looks crufty: it has the advantage of
2854         # actually working.
2855         break;;
2856     * )
2857         break;;
2858   esac
2859 done
2860 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861
2862 else
2863   ac_file=''
2864 fi
2865
2866 { echo "$as_me:$LINENO: result: $ac_file" >&5
2867 echo "${ECHO_T}$ac_file" >&6; }
2868 if test -z "$ac_file"; then
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876    { (exit 77); exit 77; }; }
2877 fi
2878
2879 ac_exeext=$ac_cv_exeext
2880
2881 # Check that the compiler produces executables we can run.  If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888   if { ac_try='./$ac_file'
2889   { (case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_try") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898     cross_compiling=no
2899   else
2900     if test "$cross_compiling" = maybe; then
2901         cross_compiling=yes
2902     else
2903         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909    { (exit 1); exit 1; }; }
2910     fi
2911   fi
2912 fi
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2915
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run.  If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2924
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_link") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; then
2937   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2940 # `rm'.
2941 for ac_file in conftest.exe conftest conftest.*; do
2942   test -f "$ac_file" || continue
2943   case $ac_file in
2944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946           break;;
2947     * ) break;;
2948   esac
2949 done
2950 else
2951   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955    { (exit 1); exit 1; }; }
2956 fi
2957
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2961
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2964 ac_exeext=$EXEEXT
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; then
2996   for ac_file in conftest.o conftest.obj conftest.*; do
2997   test -f "$ac_file" || continue;
2998   case $ac_file in
2999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001        break;;
3002   esac
3003 done
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013 fi
3014
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3020 ac_objext=$OBJEXT
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032
3033 int
3034 main ()
3035 {
3036 #ifndef __GNUC__
3037        choke me
3038 #endif
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } && {
3058          test -z "$ac_c_werror_flag" ||
3059          test ! -s conftest.err
3060        } && test -s conftest.$ac_objext; then
3061   ac_compiler_gnu=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         ac_compiler_gnu=no
3067 fi
3068
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3071
3072 fi
3073 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3074 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3075 GCC=`test $ac_compiler_gnu = yes && echo yes`
3076 ac_test_CFLAGS=${CFLAGS+set}
3077 ac_save_CFLAGS=$CFLAGS
3078 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3079 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_cc_g+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   ac_save_c_werror_flag=$ac_c_werror_flag
3084    ac_c_werror_flag=yes
3085    ac_cv_prog_cc_g=no
3086    CFLAGS="-g"
3087    cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093
3094 int
3095 main ()
3096 {
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_compile") 2>conftest.er1
3110   ac_status=$?
3111   grep -v '^ *+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } && {
3116          test -z "$ac_c_werror_flag" ||
3117          test ! -s conftest.err
3118        } && test -s conftest.$ac_objext; then
3119   ac_cv_prog_cc_g=yes
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124         CFLAGS=""
3125       cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h.  */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h.  */
3131
3132 int
3133 main ()
3134 {
3135
3136   ;
3137   return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_compile") 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } && {
3154          test -z "$ac_c_werror_flag" ||
3155          test ! -s conftest.err
3156        } && test -s conftest.$ac_objext; then
3157   :
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162         ac_c_werror_flag=$ac_save_c_werror_flag
3163          CFLAGS="-g"
3164          cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compile") 2>conftest.er1
3187   ac_status=$?
3188   grep -v '^ *+' conftest.er1 >conftest.err
3189   rm -f conftest.er1
3190   cat conftest.err >&5
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); } && {
3193          test -z "$ac_c_werror_flag" ||
3194          test ! -s conftest.err
3195        } && test -s conftest.$ac_objext; then
3196   ac_cv_prog_cc_g=yes
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211    ac_c_werror_flag=$ac_save_c_werror_flag
3212 fi
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3215 if test "$ac_test_CFLAGS" = set; then
3216   CFLAGS=$ac_save_CFLAGS
3217 elif test $ac_cv_prog_cc_g = yes; then
3218   if test "$GCC" = yes; then
3219     CFLAGS="-g -O2"
3220   else
3221     CFLAGS="-g"
3222   fi
3223 else
3224   if test "$GCC" = yes; then
3225     CFLAGS="-O2"
3226   else
3227     CFLAGS=
3228   fi
3229 fi
3230 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3231 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3232 if test "${ac_cv_prog_cc_c89+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   ac_cv_prog_cc_c89=no
3236 ac_save_CC=$CC
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <stdarg.h>
3244 #include <stdio.h>
3245 #include <sys/types.h>
3246 #include <sys/stat.h>
3247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3248 struct buf { int x; };
3249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3250 static char *e (p, i)
3251      char **p;
3252      int i;
3253 {
3254   return p[i];
3255 }
3256 static char *f (char * (*g) (char **, int), char **p, ...)
3257 {
3258   char *s;
3259   va_list v;
3260   va_start (v,p);
3261   s = g (p, va_arg (v,int));
3262   va_end (v);
3263   return s;
3264 }
3265
3266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3267    function prototypes and stuff, but not '\xHH' hex character constants.
3268    These don't provoke an error unfortunately, instead are silently treated
3269    as 'x'.  The following induces an error, until -std is added to get
3270    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3271    array size at least.  It's necessary to write '\x00'==0 to get something
3272    that's true only with -std.  */
3273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3274
3275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3276    inside strings and character constants.  */
3277 #define FOO(x) 'x'
3278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3279
3280 int test (int i, double x);
3281 struct s1 {int (*f) (int a);};
3282 struct s2 {int (*f) (double a);};
3283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3284 int argc;
3285 char **argv;
3286 int
3287 main ()
3288 {
3289 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3295         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3296 do
3297   CC="$ac_save_CC $ac_arg"
3298   rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_compile") 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } && {
3312          test -z "$ac_c_werror_flag" ||
3313          test ! -s conftest.err
3314        } && test -s conftest.$ac_objext; then
3315   ac_cv_prog_cc_c89=$ac_arg
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320
3321 fi
3322
3323 rm -f core conftest.err conftest.$ac_objext
3324   test "x$ac_cv_prog_cc_c89" != "xno" && break
3325 done
3326 rm -f conftest.$ac_ext
3327 CC=$ac_save_CC
3328
3329 fi
3330 # AC_CACHE_VAL
3331 case "x$ac_cv_prog_cc_c89" in
3332   x)
3333     { echo "$as_me:$LINENO: result: none needed" >&5
3334 echo "${ECHO_T}none needed" >&6; } ;;
3335   xno)
3336     { echo "$as_me:$LINENO: result: unsupported" >&5
3337 echo "${ECHO_T}unsupported" >&6; } ;;
3338   *)
3339     CC="$CC $ac_cv_prog_cc_c89"
3340     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3341 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3342 esac
3343
3344
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 DEPDIR="${am__leading_dot}deps"
3351
3352 ac_config_commands="$ac_config_commands depfiles"
3353
3354
3355 am_make=${MAKE-make}
3356 cat > confinc << 'END'
3357 am__doit:
3358         @echo done
3359 .PHONY: am__doit
3360 END
3361 # If we don't find an include directive, just comment out the code.
3362 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3363 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3364 am__include="#"
3365 am__quote=
3366 _am_result=none
3367 # First try GNU make style include.
3368 echo "include confinc" > confmf
3369 # We grep out `Entering directory' and `Leaving directory'
3370 # messages which can occur if `w' ends up in MAKEFLAGS.
3371 # In particular we don't look at `^make:' because GNU make might
3372 # be invoked under some other name (usually "gmake"), in which
3373 # case it prints its new name instead of `make'.
3374 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3375    am__include=include
3376    am__quote=
3377    _am_result=GNU
3378 fi
3379 # Now try BSD make style include.
3380 if test "$am__include" = "#"; then
3381    echo '.include "confinc"' > confmf
3382    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3383       am__include=.include
3384       am__quote="\""
3385       _am_result=BSD
3386    fi
3387 fi
3388
3389
3390 { echo "$as_me:$LINENO: result: $_am_result" >&5
3391 echo "${ECHO_T}$_am_result" >&6; }
3392 rm -f confinc confmf
3393
3394 # Check whether --enable-dependency-tracking was given.
3395 if test "${enable_dependency_tracking+set}" = set; then
3396   enableval=$enable_dependency_tracking;
3397 fi
3398
3399 if test "x$enable_dependency_tracking" != xno; then
3400   am_depcomp="$ac_aux_dir/depcomp"
3401   AMDEPBACKSLASH='\'
3402 fi
3403
3404
3405 if test "x$enable_dependency_tracking" != xno; then
3406   AMDEP_TRUE=
3407   AMDEP_FALSE='#'
3408 else
3409   AMDEP_TRUE='#'
3410   AMDEP_FALSE=
3411 fi
3412
3413
3414
3415
3416 depcc="$CC"   am_compiler_list=
3417
3418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424   # We make a subdir and do the tests there.  Otherwise we can end up
3425   # making bogus files that we don't know about and never remove.  For
3426   # instance it was reported that on HP-UX the gcc test will end up
3427   # making a dummy file named `D' -- because `-MD' means `put the output
3428   # in D'.
3429   mkdir conftest.dir
3430   # Copy depcomp to subdir because otherwise we won't find it if we're
3431   # using a relative directory.
3432   cp "$am_depcomp" conftest.dir
3433   cd conftest.dir
3434   # We will build objects and dependencies in a subdirectory because
3435   # it helps to detect inapplicable dependency modes.  For instance
3436   # both Tru64's cc and ICC support -MD to output dependencies as a
3437   # side effect of compilation, but ICC will put the dependencies in
3438   # the current directory while Tru64 will put them in the object
3439   # directory.
3440   mkdir sub
3441
3442   am_cv_CC_dependencies_compiler_type=none
3443   if test "$am_compiler_list" = ""; then
3444      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3445   fi
3446   for depmode in $am_compiler_list; do
3447     # Setup a source with many dependencies, because some compilers
3448     # like to wrap large dependency lists on column 80 (with \), and
3449     # we should not choose a depcomp mode which is confused by this.
3450     #
3451     # We need to recreate these files for each test, as the compiler may
3452     # overwrite some of them when testing with obscure command lines.
3453     # This happens at least with the AIX C compiler.
3454     : > sub/conftest.c
3455     for i in 1 2 3 4 5 6; do
3456       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3457       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3458       # Solaris 8's {/usr,}/bin/sh.
3459       touch sub/conftst$i.h
3460     done
3461     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462
3463     case $depmode in
3464     nosideeffect)
3465       # after this tag, mechanisms are not by side-effect, so they'll
3466       # only be used when explicitly requested
3467       if test "x$enable_dependency_tracking" = xyes; then
3468         continue
3469       else
3470         break
3471       fi
3472       ;;
3473     none) break ;;
3474     esac
3475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3476     # mode.  It turns out that the SunPro C++ compiler does not properly
3477     # handle `-M -o', and we need to detect this.
3478     if depmode=$depmode \
3479        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3480        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3481        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3482          >/dev/null 2>conftest.err &&
3483        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3484        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3485        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3486       # icc doesn't choke on unknown options, it will just issue warnings
3487       # or remarks (even with -Werror).  So we grep stderr for any message
3488       # that says an option was ignored or not supported.
3489       # When given -MP, icc 7.0 and 7.1 complain thusly:
3490       #   icc: Command line warning: ignoring option '-M'; no argument required
3491       # The diagnosis changed in icc 8.0:
3492       #   icc: Command line remark: option '-MP' not supported
3493       if (grep 'ignoring option' conftest.err ||
3494           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3495         am_cv_CC_dependencies_compiler_type=$depmode
3496         break
3497       fi
3498     fi
3499   done
3500
3501   cd ..
3502   rm -rf conftest.dir
3503 else
3504   am_cv_CC_dependencies_compiler_type=none
3505 fi
3506
3507 fi
3508 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3509 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3510 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3511
3512
3513
3514 if
3515   test "x$enable_dependency_tracking" != xno \
3516   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3517   am__fastdepCC_TRUE=
3518   am__fastdepCC_FALSE='#'
3519 else
3520   am__fastdepCC_TRUE='#'
3521   am__fastdepCC_FALSE=
3522 fi
3523
3524
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3534   CPP=
3535 fi
3536 if test -z "$CPP"; then
3537   if test "${ac_cv_prog_CPP+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540       # Double quotes because CPP needs to be expanded
3541     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542     do
3543       ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546   # Use a header file that comes with gcc, so configuring glibc
3547   # with a fresh cross-compiler works.
3548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549   # <limits.h> exists even on freestanding compilers.
3550   # On the NeXT, cc -E runs the code through the compiler's parser,
3551   # not just through cpp. "Syntax error" is here to catch this case.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563                      Syntax error
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } >/dev/null && {
3578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3579          test ! -s conftest.err
3580        }; then
3581   :
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586   # Broken: fails on valid input.
3587 continue
3588 fi
3589
3590 rm -f conftest.err conftest.$ac_ext
3591
3592   # OK, works on sane cases.  Now check whether nonexistent headers
3593   # can be detected and how.
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 <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } >/dev/null && {
3615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3616          test ! -s conftest.err
3617        }; then
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624   # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3635   break
3636 fi
3637
3638     done
3639     ac_cv_prog_CPP=$CPP
3640
3641 fi
3642   CPP=$ac_cv_prog_CPP
3643 else
3644   ac_cv_prog_CPP=$CPP
3645 fi
3646 { echo "$as_me:$LINENO: result: $CPP" >&5
3647 echo "${ECHO_T}$CPP" >&6; }
3648 ac_preproc_ok=false
3649 for ac_c_preproc_warn_flag in '' yes
3650 do
3651   # Use a header file that comes with gcc, so configuring glibc
3652   # with a fresh cross-compiler works.
3653   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654   # <limits.h> exists even on freestanding compilers.
3655   # On the NeXT, cc -E runs the code through the compiler's parser,
3656   # not just through cpp. "Syntax error" is here to catch this case.
3657   cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663 #ifdef __STDC__
3664 # include <limits.h>
3665 #else
3666 # include <assert.h>
3667 #endif
3668                      Syntax error
3669 _ACEOF
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null && {
3683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3684          test ! -s conftest.err
3685        }; then
3686   :
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691   # Broken: fails on valid input.
3692 continue
3693 fi
3694
3695 rm -f conftest.err conftest.$ac_ext
3696
3697   # OK, works on sane cases.  Now check whether nonexistent headers
3698   # can be detected and how.
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <ac_nonexistent.h>
3706 _ACEOF
3707 if { (ac_try="$ac_cpp conftest.$ac_ext"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3714   ac_status=$?
3715   grep -v '^ *+' conftest.er1 >conftest.err
3716   rm -f conftest.er1
3717   cat conftest.err >&5
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } >/dev/null && {
3720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3721          test ! -s conftest.err
3722        }; then
3723   # Broken: success on invalid input.
3724 continue
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729   # Passes both tests.
3730 ac_preproc_ok=:
3731 break
3732 fi
3733
3734 rm -f conftest.err conftest.$ac_ext
3735
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3740   :
3741 else
3742   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746    { (exit 1); exit 1; }; }
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755 #AC_PROG_INSTALL
3756 ac_ext=cpp
3757 ac_cpp='$CXXCPP $CPPFLAGS'
3758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3761 if test -z "$CXX"; then
3762   if test -n "$CCC"; then
3763     CXX=$CCC
3764   else
3765     if test -n "$ac_tool_prefix"; then
3766   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3767   do
3768     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_CXX+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$CXX"; then
3776   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 fi
3794 fi
3795 CXX=$ac_cv_prog_CXX
3796 if test -n "$CXX"; then
3797   { echo "$as_me:$LINENO: result: $CXX" >&5
3798 echo "${ECHO_T}$CXX" >&6; }
3799 else
3800   { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802 fi
3803
3804
3805     test -n "$CXX" && break
3806   done
3807 fi
3808 if test -z "$CXX"; then
3809   ac_ct_CXX=$CXX
3810   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3811 do
3812   # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   if test -n "$ac_ct_CXX"; then
3820   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_ac_ct_CXX="$ac_prog"
3830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3840 if test -n "$ac_ct_CXX"; then
3841   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3842 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3843 else
3844   { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846 fi
3847
3848
3849   test -n "$ac_ct_CXX" && break
3850 done
3851
3852   if test "x$ac_ct_CXX" = x; then
3853     CXX="g++"
3854   else
3855     case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3858 whose name does not start with the host triplet.  If you think this
3859 configuration is useful to you, please write to autoconf@gnu.org." >&5
3860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3861 whose name does not start with the host triplet.  If you think this
3862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3863 ac_tool_warned=yes ;;
3864 esac
3865     CXX=$ac_ct_CXX
3866   fi
3867 fi
3868
3869   fi
3870 fi
3871 # Provide some information about the compiler.
3872 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3873 ac_compiler=`set X $ac_compile; echo $2`
3874 { (ac_try="$ac_compiler --version >&5"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880   (eval "$ac_compiler --version >&5") 2>&5
3881   ac_status=$?
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); }
3884 { (ac_try="$ac_compiler -v >&5"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890   (eval "$ac_compiler -v >&5") 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }
3894 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }
3904
3905 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920 #ifndef __GNUC__
3921        choke me
3922 #endif
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935   (eval "$ac_compile") 2>conftest.er1
3936   ac_status=$?
3937   grep -v '^ *+' conftest.er1 >conftest.err
3938   rm -f conftest.er1
3939   cat conftest.err >&5
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } && {
3942          test -z "$ac_cxx_werror_flag" ||
3943          test ! -s conftest.err
3944        } && test -s conftest.$ac_objext; then
3945   ac_compiler_gnu=yes
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950         ac_compiler_gnu=no
3951 fi
3952
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3955
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3958 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3959 GXX=`test $ac_compiler_gnu = yes && echo yes`
3960 ac_test_CXXFLAGS=${CXXFLAGS+set}
3961 ac_save_CXXFLAGS=$CXXFLAGS
3962 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3963 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3964 if test "${ac_cv_prog_cxx_g+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3968    ac_cxx_werror_flag=yes
3969    ac_cv_prog_cxx_g=no
3970    CXXFLAGS="-g"
3971    cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977
3978 int
3979 main ()
3980 {
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993   (eval "$ac_compile") 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } && {
4000          test -z "$ac_cxx_werror_flag" ||
4001          test ! -s conftest.err
4002        } && test -s conftest.$ac_objext; then
4003   ac_cv_prog_cxx_g=yes
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008         CXXFLAGS=""
4009       cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031   (eval "$ac_compile") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } && {
4038          test -z "$ac_cxx_werror_flag" ||
4039          test ! -s conftest.err
4040        } && test -s conftest.$ac_objext; then
4041   :
4042 else
4043   echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4047          CXXFLAGS="-g"
4048          cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_compile") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } && {
4077          test -z "$ac_cxx_werror_flag" ||
4078          test ! -s conftest.err
4079        } && test -s conftest.$ac_objext; then
4080   ac_cv_prog_cxx_g=yes
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085
4086 fi
4087
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 fi
4090
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4096 fi
4097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4098 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4099 if test "$ac_test_CXXFLAGS" = set; then
4100   CXXFLAGS=$ac_save_CXXFLAGS
4101 elif test $ac_cv_prog_cxx_g = yes; then
4102   if test "$GXX" = yes; then
4103     CXXFLAGS="-g -O2"
4104   else
4105     CXXFLAGS="-g"
4106   fi
4107 else
4108   if test "$GXX" = yes; then
4109     CXXFLAGS="-O2"
4110   else
4111     CXXFLAGS=
4112   fi
4113 fi
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120 depcc="$CXX"  am_compiler_list=
4121
4122 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4123 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4124 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4128   # We make a subdir and do the tests there.  Otherwise we can end up
4129   # making bogus files that we don't know about and never remove.  For
4130   # instance it was reported that on HP-UX the gcc test will end up
4131   # making a dummy file named `D' -- because `-MD' means `put the output
4132   # in D'.
4133   mkdir conftest.dir
4134   # Copy depcomp to subdir because otherwise we won't find it if we're
4135   # using a relative directory.
4136   cp "$am_depcomp" conftest.dir
4137   cd conftest.dir
4138   # We will build objects and dependencies in a subdirectory because
4139   # it helps to detect inapplicable dependency modes.  For instance
4140   # both Tru64's cc and ICC support -MD to output dependencies as a
4141   # side effect of compilation, but ICC will put the dependencies in
4142   # the current directory while Tru64 will put them in the object
4143   # directory.
4144   mkdir sub
4145
4146   am_cv_CXX_dependencies_compiler_type=none
4147   if test "$am_compiler_list" = ""; then
4148      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4149   fi
4150   for depmode in $am_compiler_list; do
4151     # Setup a source with many dependencies, because some compilers
4152     # like to wrap large dependency lists on column 80 (with \), and
4153     # we should not choose a depcomp mode which is confused by this.
4154     #
4155     # We need to recreate these files for each test, as the compiler may
4156     # overwrite some of them when testing with obscure command lines.
4157     # This happens at least with the AIX C compiler.
4158     : > sub/conftest.c
4159     for i in 1 2 3 4 5 6; do
4160       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4161       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4162       # Solaris 8's {/usr,}/bin/sh.
4163       touch sub/conftst$i.h
4164     done
4165     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4166
4167     case $depmode in
4168     nosideeffect)
4169       # after this tag, mechanisms are not by side-effect, so they'll
4170       # only be used when explicitly requested
4171       if test "x$enable_dependency_tracking" = xyes; then
4172         continue
4173       else
4174         break
4175       fi
4176       ;;
4177     none) break ;;
4178     esac
4179     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180     # mode.  It turns out that the SunPro C++ compiler does not properly
4181     # handle `-M -o', and we need to detect this.
4182     if depmode=$depmode \
4183        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4186          >/dev/null 2>conftest.err &&
4187        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4188        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4189        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4190       # icc doesn't choke on unknown options, it will just issue warnings
4191       # or remarks (even with -Werror).  So we grep stderr for any message
4192       # that says an option was ignored or not supported.
4193       # When given -MP, icc 7.0 and 7.1 complain thusly:
4194       #   icc: Command line warning: ignoring option '-M'; no argument required
4195       # The diagnosis changed in icc 8.0:
4196       #   icc: Command line remark: option '-MP' not supported
4197       if (grep 'ignoring option' conftest.err ||
4198           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4199         am_cv_CXX_dependencies_compiler_type=$depmode
4200         break
4201       fi
4202     fi
4203   done
4204
4205   cd ..
4206   rm -rf conftest.dir
4207 else
4208   am_cv_CXX_dependencies_compiler_type=none
4209 fi
4210
4211 fi
4212 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4213 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4214 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4215
4216
4217
4218 if
4219   test "x$enable_dependency_tracking" != xno \
4220   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4221   am__fastdepCXX_TRUE=
4222   am__fastdepCXX_FALSE='#'
4223 else
4224   am__fastdepCXX_TRUE='#'
4225   am__fastdepCXX_FALSE=
4226 fi
4227
4228
4229 #AM_PROG_CC_STDC
4230 # Check whether --enable-shared was given.
4231 if test "${enable_shared+set}" = set; then
4232   enableval=$enable_shared; p=${PACKAGE-default}
4233     case $enableval in
4234     yes) enable_shared=yes ;;
4235     no) enable_shared=no ;;
4236     *)
4237       enable_shared=no
4238       # Look at the argument we got.  We use all the common list separators.
4239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4240       for pkg in $enableval; do
4241         IFS="$lt_save_ifs"
4242         if test "X$pkg" = "X$p"; then
4243           enable_shared=yes
4244         fi
4245       done
4246       IFS="$lt_save_ifs"
4247       ;;
4248     esac
4249 else
4250   enable_shared=yes
4251 fi
4252
4253
4254 # Check whether --enable-static was given.
4255 if test "${enable_static+set}" = set; then
4256   enableval=$enable_static; p=${PACKAGE-default}
4257     case $enableval in
4258     yes) enable_static=yes ;;
4259     no) enable_static=no ;;
4260     *)
4261      enable_static=no
4262       # Look at the argument we got.  We use all the common list separators.
4263       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4264       for pkg in $enableval; do
4265         IFS="$lt_save_ifs"
4266         if test "X$pkg" = "X$p"; then
4267           enable_static=yes
4268         fi
4269       done
4270       IFS="$lt_save_ifs"
4271       ;;
4272     esac
4273 else
4274   enable_static=yes
4275 fi
4276
4277
4278 # Check whether --enable-fast-install was given.
4279 if test "${enable_fast_install+set}" = set; then
4280   enableval=$enable_fast_install; p=${PACKAGE-default}
4281     case $enableval in
4282     yes) enable_fast_install=yes ;;
4283     no) enable_fast_install=no ;;
4284     *)
4285       enable_fast_install=no
4286       # Look at the argument we got.  We use all the common list separators.
4287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288       for pkg in $enableval; do
4289         IFS="$lt_save_ifs"
4290         if test "X$pkg" = "X$p"; then
4291           enable_fast_install=yes
4292         fi
4293       done
4294       IFS="$lt_save_ifs"
4295       ;;
4296     esac
4297 else
4298   enable_fast_install=yes
4299 fi
4300
4301
4302 # Make sure we can run config.sub.
4303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4304   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4305 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4306    { (exit 1); exit 1; }; }
4307
4308 { echo "$as_me:$LINENO: checking build system type" >&5
4309 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4310 if test "${ac_cv_build+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   ac_build_alias=$build_alias
4314 test "x$ac_build_alias" = x &&
4315   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x &&
4317   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4318 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4319    { (exit 1); exit 1; }; }
4320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4322 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4323    { (exit 1); exit 1; }; }
4324
4325 fi
4326 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4327 echo "${ECHO_T}$ac_cv_build" >&6; }
4328 case $ac_cv_build in
4329 *-*-*) ;;
4330 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4331 echo "$as_me: error: invalid value of canonical build" >&2;}
4332    { (exit 1); exit 1; }; };;
4333 esac
4334 build=$ac_cv_build
4335 ac_save_IFS=$IFS; IFS='-'
4336 set x $ac_cv_build
4337 shift
4338 build_cpu=$1
4339 build_vendor=$2
4340 shift; shift
4341 # Remember, the first character of IFS is used to create $*,
4342 # except with old shells:
4343 build_os=$*
4344 IFS=$ac_save_IFS
4345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4346
4347
4348 { echo "$as_me:$LINENO: checking host system type" >&5
4349 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4350 if test "${ac_cv_host+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   if test "x$host_alias" = x; then
4354   ac_cv_host=$ac_cv_build
4355 else
4356   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4357     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4358 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4359    { (exit 1); exit 1; }; }
4360 fi
4361
4362 fi
4363 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4364 echo "${ECHO_T}$ac_cv_host" >&6; }
4365 case $ac_cv_host in
4366 *-*-*) ;;
4367 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4368 echo "$as_me: error: invalid value of canonical host" >&2;}
4369    { (exit 1); exit 1; }; };;
4370 esac
4371 host=$ac_cv_host
4372 ac_save_IFS=$IFS; IFS='-'
4373 set x $ac_cv_host
4374 shift
4375 host_cpu=$1
4376 host_vendor=$2
4377 shift; shift
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4380 host_os=$*
4381 IFS=$ac_save_IFS
4382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4383
4384
4385 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4386 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4387 if test "${lt_cv_path_SED+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   # Loop through the user's path and test for sed and gsed.
4391 # Then use that list of sed's as ones to test for truncation.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397   for lt_ac_prog in sed gsed; do
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4400         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4401       fi
4402     done
4403   done
4404 done
4405 lt_ac_max=0
4406 lt_ac_count=0
4407 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4408 # along with /bin/sed that truncates output.
4409 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4410   test ! -f $lt_ac_sed && continue
4411   cat /dev/null > conftest.in
4412   lt_ac_count=0
4413   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4414   # Check for GNU sed and select it if it is found.
4415   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4416     lt_cv_path_SED=$lt_ac_sed
4417     break
4418   fi
4419   while true; do
4420     cat conftest.in conftest.in >conftest.tmp
4421     mv conftest.tmp conftest.in
4422     cp conftest.in conftest.nl
4423     echo >>conftest.nl
4424     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4425     cmp -s conftest.out conftest.nl || break
4426     # 10000 chars as input seems more than enough
4427     test $lt_ac_count -gt 10 && break
4428     lt_ac_count=`expr $lt_ac_count + 1`
4429     if test $lt_ac_count -gt $lt_ac_max; then
4430       lt_ac_max=$lt_ac_count
4431       lt_cv_path_SED=$lt_ac_sed
4432     fi
4433   done
4434 done
4435
4436 fi
4437
4438 SED=$lt_cv_path_SED
4439 { echo "$as_me:$LINENO: result: $SED" >&5
4440 echo "${ECHO_T}$SED" >&6; }
4441
4442 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4443 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   # Extract the first word of "grep ggrep" to use in msg output
4448 if test -z "$GREP"; then
4449 set dummy grep ggrep; ac_prog_name=$2
4450 if test "${ac_cv_path_GREP+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   ac_path_GREP_found=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_prog in grep ggrep; do
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4463     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4464     # Check for GNU ac_path_GREP and select it if it is found.
4465   # Check for GNU $ac_path_GREP
4466 case `"$ac_path_GREP" --version 2>&1` in
4467 *GNU*)
4468   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4469 *)
4470   ac_count=0
4471   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4472   while :
4473   do
4474     cat "conftest.in" "conftest.in" >"conftest.tmp"
4475     mv "conftest.tmp" "conftest.in"
4476     cp "conftest.in" "conftest.nl"
4477     echo 'GREP' >> "conftest.nl"
4478     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480     ac_count=`expr $ac_count + 1`
4481     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4482       # Best one so far, save it but keep looking for a better one
4483       ac_cv_path_GREP="$ac_path_GREP"
4484       ac_path_GREP_max=$ac_count
4485     fi
4486     # 10*(2^10) chars as input seems more than enough
4487     test $ac_count -gt 10 && break
4488   done
4489   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4491
4492
4493     $ac_path_GREP_found && break 3
4494   done
4495 done
4496
4497 done
4498 IFS=$as_save_IFS
4499
4500
4501 fi
4502
4503 GREP="$ac_cv_path_GREP"
4504 if test -z "$GREP"; then
4505   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4506 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4507    { (exit 1); exit 1; }; }
4508 fi
4509
4510 else
4511   ac_cv_path_GREP=$GREP
4512 fi
4513
4514
4515 fi
4516 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4517 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4518  GREP="$ac_cv_path_GREP"
4519
4520
4521 { echo "$as_me:$LINENO: checking for egrep" >&5
4522 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4523 if test "${ac_cv_path_EGREP+set}" = set; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4527    then ac_cv_path_EGREP="$GREP -E"
4528    else
4529      # Extract the first word of "egrep" to use in msg output
4530 if test -z "$EGREP"; then
4531 set dummy egrep; ac_prog_name=$2
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   ac_path_EGREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_prog in egrep; do
4543   for ac_exec_ext in '' $ac_executable_extensions; do
4544     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4545     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4546     # Check for GNU ac_path_EGREP and select it if it is found.
4547   # Check for GNU $ac_path_EGREP
4548 case `"$ac_path_EGREP" --version 2>&1` in
4549 *GNU*)
4550   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4551 *)
4552   ac_count=0
4553   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4554   while :
4555   do
4556     cat "conftest.in" "conftest.in" >"conftest.tmp"
4557     mv "conftest.tmp" "conftest.in"
4558     cp "conftest.in" "conftest.nl"
4559     echo 'EGREP' >> "conftest.nl"
4560     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562     ac_count=`expr $ac_count + 1`
4563     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4564       # Best one so far, save it but keep looking for a better one
4565       ac_cv_path_EGREP="$ac_path_EGREP"
4566       ac_path_EGREP_max=$ac_count
4567     fi
4568     # 10*(2^10) chars as input seems more than enough
4569     test $ac_count -gt 10 && break
4570   done
4571   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4572 esac
4573
4574
4575     $ac_path_EGREP_found && break 3
4576   done
4577 done
4578
4579 done
4580 IFS=$as_save_IFS
4581
4582
4583 fi
4584
4585 EGREP="$ac_cv_path_EGREP"
4586 if test -z "$EGREP"; then
4587   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4588 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4589    { (exit 1); exit 1; }; }
4590 fi
4591
4592 else
4593   ac_cv_path_EGREP=$EGREP
4594 fi
4595
4596
4597    fi
4598 fi
4599 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4600 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4601  EGREP="$ac_cv_path_EGREP"
4602
4603
4604
4605 # Check whether --with-gnu-ld was given.
4606 if test "${with_gnu_ld+set}" = set; then
4607   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4608 else
4609   with_gnu_ld=no
4610 fi
4611
4612 ac_prog=ld
4613 if test "$GCC" = yes; then
4614   # Check if gcc -print-prog-name=ld gives a path.
4615   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4616 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4617   case $host in
4618   *-*-mingw*)
4619     # gcc leaves a trailing carriage return which upsets mingw
4620     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4621   *)
4622     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4623   esac
4624   case $ac_prog in
4625     # Accept absolute paths.
4626     [\\/]* | ?:[\\/]*)
4627       re_direlt='/[^/][^/]*/\.\./'
4628       # Canonicalize the pathname of ld
4629       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4630       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4631         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4632       done
4633       test -z "$LD" && LD="$ac_prog"
4634       ;;
4635   "")
4636     # If it fails, then pretend we aren't using GCC.
4637     ac_prog=ld
4638     ;;
4639   *)
4640     # If it is relative, then search for the first ld in PATH.
4641     with_gnu_ld=unknown
4642     ;;
4643   esac
4644 elif test "$with_gnu_ld" = yes; then
4645   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4646 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4649 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4650 fi
4651 if test "${lt_cv_path_LD+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   if test -z "$LD"; then
4655   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4656   for ac_dir in $PATH; do
4657     IFS="$lt_save_ifs"
4658     test -z "$ac_dir" && ac_dir=.
4659     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4660       lt_cv_path_LD="$ac_dir/$ac_prog"
4661       # Check to see if the program is GNU ld.  I'd rather use --version,
4662       # but apparently some variants of GNU ld only accept -v.
4663       # Break only if it was the GNU/non-GNU ld that we prefer.
4664       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4665       *GNU* | *'with BFD'*)
4666         test "$with_gnu_ld" != no && break
4667         ;;
4668       *)
4669         test "$with_gnu_ld" != yes && break
4670         ;;
4671       esac
4672     fi
4673   done
4674   IFS="$lt_save_ifs"
4675 else
4676   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4677 fi
4678 fi
4679
4680 LD="$lt_cv_path_LD"
4681 if test -n "$LD"; then
4682   { echo "$as_me:$LINENO: result: $LD" >&5
4683 echo "${ECHO_T}$LD" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4689 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4690    { (exit 1); exit 1; }; }
4691 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4692 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4693 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4697 case `$LD -v 2>&1 </dev/null` in
4698 *GNU* | *'with BFD'*)
4699   lt_cv_prog_gnu_ld=yes
4700   ;;
4701 *)
4702   lt_cv_prog_gnu_ld=no
4703   ;;
4704 esac
4705 fi
4706 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4707 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4708 with_gnu_ld=$lt_cv_prog_gnu_ld
4709
4710
4711 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4712 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4713 if test "${lt_cv_ld_reload_flag+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   lt_cv_ld_reload_flag='-r'
4717 fi
4718 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4719 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4720 reload_flag=$lt_cv_ld_reload_flag
4721 case $reload_flag in
4722 "" | " "*) ;;
4723 *) reload_flag=" $reload_flag" ;;
4724 esac
4725 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4726 case $host_os in
4727   darwin*)
4728     if test "$GCC" = yes; then
4729       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4730     else
4731       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4732     fi
4733     ;;
4734 esac
4735
4736 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4737 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4738 if test "${lt_cv_path_NM+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$NM"; then
4742   # Let the user override the test.
4743   lt_cv_path_NM="$NM"
4744 else
4745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4746   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4747     IFS="$lt_save_ifs"
4748     test -z "$ac_dir" && ac_dir=.
4749     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4750     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4751       # Check to see if the nm accepts a BSD-compat flag.
4752       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4753       #   nm: unknown option "B" ignored
4754       # Tru64's nm complains that /dev/null is an invalid object file
4755       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4756       */dev/null* | *'Invalid file or object type'*)
4757         lt_cv_path_NM="$tmp_nm -B"
4758         break
4759         ;;
4760       *)
4761         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4762         */dev/null*)
4763           lt_cv_path_NM="$tmp_nm -p"
4764           break
4765           ;;
4766         *)
4767           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4768           continue # so that we can try to find one that supports BSD flags
4769           ;;
4770         esac
4771       esac
4772     fi
4773   done
4774   IFS="$lt_save_ifs"
4775   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4776 fi
4777 fi
4778 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4779 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4780 NM="$lt_cv_path_NM"
4781
4782 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4783 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4784 LN_S=$as_ln_s
4785 if test "$LN_S" = "ln -s"; then
4786   { echo "$as_me:$LINENO: result: yes" >&5
4787 echo "${ECHO_T}yes" >&6; }
4788 else
4789   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4790 echo "${ECHO_T}no, using $LN_S" >&6; }
4791 fi
4792
4793 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4794 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4795 if test "${lt_cv_deplibs_check_method+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   lt_cv_file_magic_cmd='$MAGIC_CMD'
4799 lt_cv_file_magic_test_file=
4800 lt_cv_deplibs_check_method='unknown'
4801 # Need to set the preceding variable on all platforms that support
4802 # interlibrary dependencies.
4803 # 'none' -- dependencies not supported.
4804 # `unknown' -- same as none, but documents that we really don't know.
4805 # 'pass_all' -- all dependencies passed with no checks.
4806 # 'test_compile' -- check by making test program.
4807 # 'file_magic [[regex]]' -- check by looking for files in library path
4808 # which responds to the $file_magic_cmd with a given extended regex.
4809 # If you have `file' or equivalent on your system and you're not sure
4810 # whether `pass_all' will *always* work, you probably want this one.
4811
4812 case $host_os in
4813 aix4* | aix5*)
4814   lt_cv_deplibs_check_method=pass_all
4815   ;;
4816
4817 beos*)
4818   lt_cv_deplibs_check_method=pass_all
4819   ;;
4820
4821 bsdi[45]*)
4822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4823   lt_cv_file_magic_cmd='/usr/bin/file -L'
4824   lt_cv_file_magic_test_file=/shlib/libc.so
4825   ;;
4826
4827 cygwin*)
4828   # func_win32_libid is a shell function defined in ltmain.sh
4829   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4830   lt_cv_file_magic_cmd='func_win32_libid'
4831   ;;
4832
4833 mingw* | pw32*)
4834   # Base MSYS/MinGW do not provide the 'file' command needed by
4835   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4836   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4837   lt_cv_file_magic_cmd='$OBJDUMP -f'
4838   ;;
4839
4840 darwin* | rhapsody*)
4841   lt_cv_deplibs_check_method=pass_all
4842   ;;
4843
4844 freebsd* | kfreebsd*-gnu | dragonfly*)
4845   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4846     case $host_cpu in
4847     i*86 )
4848       # Not sure whether the presence of OpenBSD here was a mistake.
4849       # Let's accept both of them until this is cleared up.
4850       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4851       lt_cv_file_magic_cmd=/usr/bin/file
4852       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4853       ;;
4854     esac
4855   else
4856     lt_cv_deplibs_check_method=pass_all
4857   fi
4858   ;;
4859
4860 gnu*)
4861   lt_cv_deplibs_check_method=pass_all
4862   ;;
4863
4864 hpux10.20* | hpux11*)
4865   lt_cv_file_magic_cmd=/usr/bin/file
4866   case $host_cpu in
4867   ia64*)
4868     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4869     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4870     ;;
4871   hppa*64*)
4872     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]'
4873     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4874     ;;
4875   *)
4876     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4877     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4878     ;;
4879   esac
4880   ;;
4881
4882 irix5* | irix6* | nonstopux*)
4883   case $LD in
4884   *-32|*"-32 ") libmagic=32-bit;;
4885   *-n32|*"-n32 ") libmagic=N32;;
4886   *-64|*"-64 ") libmagic=64-bit;;
4887   *) libmagic=never-match;;
4888   esac
4889   lt_cv_deplibs_check_method=pass_all
4890   ;;
4891
4892 # This must be Linux ELF.
4893 linux*)
4894   lt_cv_deplibs_check_method=pass_all
4895   ;;
4896
4897 netbsd*)
4898   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4899     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4900   else
4901     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4902   fi
4903   ;;
4904
4905 newos6*)
4906   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4907   lt_cv_file_magic_cmd=/usr/bin/file
4908   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4909   ;;
4910
4911 nto-qnx*)
4912   lt_cv_deplibs_check_method=unknown
4913   ;;
4914
4915 openbsd*)
4916   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4917     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4918   else
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4920   fi
4921   ;;
4922
4923 osf3* | osf4* | osf5*)
4924   lt_cv_deplibs_check_method=pass_all
4925   ;;
4926
4927 sco3.2v5*)
4928   lt_cv_deplibs_check_method=pass_all
4929   ;;
4930
4931 solaris*)
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4936   case $host_vendor in
4937   motorola)
4938     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]'
4939     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4940     ;;
4941   ncr)
4942     lt_cv_deplibs_check_method=pass_all
4943     ;;
4944   sequent)
4945     lt_cv_file_magic_cmd='/bin/file'
4946     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4947     ;;
4948   sni)
4949     lt_cv_file_magic_cmd='/bin/file'
4950     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4951     lt_cv_file_magic_test_file=/lib/libc.so
4952     ;;
4953   siemens)
4954     lt_cv_deplibs_check_method=pass_all
4955     ;;
4956   esac
4957   ;;
4958
4959 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4960   lt_cv_deplibs_check_method=pass_all
4961   ;;
4962 esac
4963
4964 fi
4965 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4966 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4967 file_magic_cmd=$lt_cv_file_magic_cmd
4968 deplibs_check_method=$lt_cv_deplibs_check_method
4969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4970
4971
4972
4973
4974 # If no C compiler was specified, use CC.
4975 LTCC=${LTCC-"$CC"}
4976
4977 # Allow CC to be a program name with arguments.
4978 compiler=$CC
4979
4980
4981 # Check whether --enable-libtool-lock was given.
4982 if test "${enable_libtool_lock+set}" = set; then
4983   enableval=$enable_libtool_lock;
4984 fi
4985
4986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4987
4988 # Some flags need to be propagated to the compiler or linker for good
4989 # libtool support.
4990 case $host in
4991 ia64-*-hpux*)
4992   # Find out which ABI we are using.
4993   echo 'int i;' > conftest.$ac_ext
4994   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995   (eval $ac_compile) 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); }; then
4999     case `/usr/bin/file conftest.$ac_objext` in
5000     *ELF-32*)
5001       HPUX_IA64_MODE="32"
5002       ;;
5003     *ELF-64*)
5004       HPUX_IA64_MODE="64"
5005       ;;
5006     esac
5007   fi
5008   rm -rf conftest*
5009   ;;
5010 *-*-irix6*)
5011   # Find out which ABI we are using.
5012   echo '#line 5012 "configure"' > conftest.$ac_ext
5013   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014   (eval $ac_compile) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; then
5018    if test "$lt_cv_prog_gnu_ld" = yes; then
5019     case `/usr/bin/file conftest.$ac_objext` in
5020     *32-bit*)
5021       LD="${LD-ld} -melf32bsmip"
5022       ;;
5023     *N32*)
5024       LD="${LD-ld} -melf32bmipn32"
5025       ;;
5026     *64-bit*)
5027       LD="${LD-ld} -melf64bmip"
5028       ;;
5029     esac
5030    else
5031     case `/usr/bin/file conftest.$ac_objext` in
5032     *32-bit*)
5033       LD="${LD-ld} -32"
5034       ;;
5035     *N32*)
5036       LD="${LD-ld} -n32"
5037       ;;
5038     *64-bit*)
5039       LD="${LD-ld} -64"
5040       ;;
5041     esac
5042    fi
5043   fi
5044   rm -rf conftest*
5045   ;;
5046
5047 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5048   # Find out which ABI we are using.
5049   echo 'int i;' > conftest.$ac_ext
5050   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; then
5055     case `/usr/bin/file conftest.o` in
5056     *32-bit*)
5057       case $host in
5058         x86_64-*linux*)
5059           LD="${LD-ld} -m elf_i386"
5060           ;;
5061         ppc64-*linux*|powerpc64-*linux*)
5062           LD="${LD-ld} -m elf32ppclinux"
5063           ;;
5064         s390x-*linux*)
5065           LD="${LD-ld} -m elf_s390"
5066           ;;
5067         sparc64-*linux*)
5068           LD="${LD-ld} -m elf32_sparc"
5069           ;;
5070       esac
5071       ;;
5072     *64-bit*)
5073       case $host in
5074         x86_64-*linux*)
5075           LD="${LD-ld} -m elf_x86_64"
5076           ;;
5077         ppc*-*linux*|powerpc*-*linux*)
5078           LD="${LD-ld} -m elf64ppc"
5079           ;;
5080         s390*-*linux*)
5081           LD="${LD-ld} -m elf64_s390"
5082           ;;
5083         sparc*-*linux*)
5084           LD="${LD-ld} -m elf64_sparc"
5085           ;;
5086       esac
5087       ;;
5088     esac
5089   fi
5090   rm -rf conftest*
5091   ;;
5092
5093 *-*-sco3.2v5*)
5094   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5095   SAVE_CFLAGS="$CFLAGS"
5096   CFLAGS="$CFLAGS -belf"
5097   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5098 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5099 if test "${lt_cv_cc_needs_belf+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107
5108      cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114
5115 int
5116 main ()
5117 {
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (ac_try="$ac_link"
5125 case "(($ac_try" in
5126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127   *) ac_try_echo=$ac_try;;
5128 esac
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130   (eval "$ac_link") 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } && {
5137          test -z "$ac_c_werror_flag" ||
5138          test ! -s conftest.err
5139        } && test -s conftest$ac_exeext &&
5140        $as_test_x conftest$ac_exeext; then
5141   lt_cv_cc_needs_belf=yes
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146         lt_cv_cc_needs_belf=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5150       conftest$ac_exeext conftest.$ac_ext
5151      ac_ext=c
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156
5157 fi
5158 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5159 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5160   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5161     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5162     CFLAGS="$SAVE_CFLAGS"
5163   fi
5164   ;;
5165
5166 esac
5167
5168 need_locks="$enable_libtool_lock"
5169
5170
5171
5172 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5174 if test "${ac_cv_header_stdc+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h.  */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h.  */
5183 #include <stdlib.h>
5184 #include <stdarg.h>
5185 #include <string.h>
5186 #include <float.h>
5187
5188 int
5189 main ()
5190 {
5191
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5198 case "(($ac_try" in
5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200   *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203   (eval "$ac_compile") 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } && {
5210          test -z "$ac_c_werror_flag" ||
5211          test ! -s conftest.err
5212        } && test -s conftest.$ac_objext; then
5213   ac_cv_header_stdc=yes
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218         ac_cv_header_stdc=no
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
5223 if test $ac_cv_header_stdc = yes; then
5224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5225   cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 #include <string.h>
5232
5233 _ACEOF
5234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5235   $EGREP "memchr" >/dev/null 2>&1; then
5236   :
5237 else
5238   ac_cv_header_stdc=no
5239 fi
5240 rm -f conftest*
5241
5242 fi
5243
5244 if test $ac_cv_header_stdc = yes; then
5245   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5246   cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 #include <stdlib.h>
5253
5254 _ACEOF
5255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5256   $EGREP "free" >/dev/null 2>&1; then
5257   :
5258 else
5259   ac_cv_header_stdc=no
5260 fi
5261 rm -f conftest*
5262
5263 fi
5264
5265 if test $ac_cv_header_stdc = yes; then
5266   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5267   if test "$cross_compiling" = yes; then
5268   :
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276 #include <ctype.h>
5277 #include <stdlib.h>
5278 #if ((' ' & 0x0FF) == 0x020)
5279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5281 #else
5282 # define ISLOWER(c) \
5283                    (('a' <= (c) && (c) <= 'i') \
5284                      || ('j' <= (c) && (c) <= 'r') \
5285                      || ('s' <= (c) && (c) <= 'z'))
5286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5287 #endif
5288
5289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5290 int
5291 main ()
5292 {
5293   int i;
5294   for (i = 0; i < 256; i++)
5295     if (XOR (islower (i), ISLOWER (i))
5296         || toupper (i) != TOUPPER (i))
5297       return 2;
5298   return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest$ac_exeext
5302 if { (ac_try="$ac_link"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_link") 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312   { (case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317   (eval "$ac_try") 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   :
5322 else
5323   echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 ac_cv_header_stdc=no
5329 fi
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331 fi
5332
5333
5334 fi
5335 fi
5336 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5337 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5339
5340 cat >>confdefs.h <<\_ACEOF
5341 #define STDC_HEADERS 1
5342 _ACEOF
5343
5344 fi
5345
5346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5357                   inttypes.h stdint.h unistd.h
5358 do
5359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371 $ac_includes_default
5372
5373 #include <$ac_header>
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_compile") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } && {
5389          test -z "$ac_c_werror_flag" ||
5390          test ! -s conftest.err
5391        } && test -s conftest.$ac_objext; then
5392   eval "$as_ac_Header=yes"
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397         eval "$as_ac_Header=no"
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 ac_res=`eval echo '${'$as_ac_Header'}'`
5403                { echo "$as_me:$LINENO: result: $ac_res" >&5
5404 echo "${ECHO_T}$ac_res" >&6; }
5405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5406   cat >>confdefs.h <<_ACEOF
5407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5408 _ACEOF
5409
5410 fi
5411
5412 done
5413
5414
5415
5416 for ac_header in dlfcn.h
5417 do
5418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 fi
5425 ac_res=`eval echo '${'$as_ac_Header'}'`
5426                { echo "$as_me:$LINENO: result: $ac_res" >&5
5427 echo "${ECHO_T}$ac_res" >&6; }
5428 else
5429   # Is the header compilable?
5430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5443 case "(($ac_try" in
5444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445   *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448   (eval "$ac_compile") 2>conftest.er1
5449   ac_status=$?
5450   grep -v '^ *+' conftest.er1 >conftest.err
5451   rm -f conftest.er1
5452   cat conftest.err >&5
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } && {
5455          test -z "$ac_c_werror_flag" ||
5456          test ! -s conftest.err
5457        } && test -s conftest.$ac_objext; then
5458   ac_header_compiler=yes
5459 else
5460   echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463         ac_header_compiler=no
5464 fi
5465
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468 echo "${ECHO_T}$ac_header_compiler" >&6; }
5469
5470 # Is the header present?
5471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 #include <$ac_header>
5480 _ACEOF
5481 if { (ac_try="$ac_cpp conftest.$ac_ext"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } >/dev/null && {
5494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        }; then
5497   ac_header_preproc=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502   ac_header_preproc=no
5503 fi
5504
5505 rm -f conftest.err conftest.$ac_ext
5506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5507 echo "${ECHO_T}$ac_header_preproc" >&6; }
5508
5509 # So?  What about this header?
5510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5511   yes:no: )
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5516     ac_header_preproc=yes
5517     ;;
5518   no:yes:* )
5519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5531
5532     ;;
5533 esac
5534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   eval "$as_ac_Header=\$ac_header_preproc"
5540 fi
5541 ac_res=`eval echo '${'$as_ac_Header'}'`
5542                { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5544
5545 fi
5546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5547   cat >>confdefs.h <<_ACEOF
5548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5549 _ACEOF
5550
5551 fi
5552
5553 done
5554
5555
5556
5557 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5558     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5559     (test "X$CXX" != "Xg++"))) ; then
5560   ac_ext=cpp
5561 ac_cpp='$CXXCPP $CPPFLAGS'
5562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5565 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5566 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5567 if test -z "$CXXCPP"; then
5568   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571       # Double quotes because CXXCPP needs to be expanded
5572     for CXXCPP in "$CXX -E" "/lib/cpp"
5573     do
5574       ac_preproc_ok=false
5575 for ac_cxx_preproc_warn_flag in '' yes
5576 do
5577   # Use a header file that comes with gcc, so configuring glibc
5578   # with a fresh cross-compiler works.
5579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580   # <limits.h> exists even on freestanding compilers.
5581   # On the NeXT, cc -E runs the code through the compiler's parser,
5582   # not just through cpp. "Syntax error" is here to catch this case.
5583   cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594                      Syntax error
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } >/dev/null && {
5609          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5610          test ! -s conftest.err
5611        }; then
5612   :
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617   # Broken: fails on valid input.
5618 continue
5619 fi
5620
5621 rm -f conftest.err conftest.$ac_ext
5622
5623   # OK, works on sane cases.  Now check whether nonexistent headers
5624   # can be detected and how.
5625   cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 case "(($ac_try" in
5635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636   *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } >/dev/null && {
5646          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5647          test ! -s conftest.err
5648        }; then
5649   # Broken: success on invalid input.
5650 continue
5651 else
5652   echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655   # Passes both tests.
5656 ac_preproc_ok=:
5657 break
5658 fi
5659
5660 rm -f conftest.err conftest.$ac_ext
5661
5662 done
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5666   break
5667 fi
5668
5669     done
5670     ac_cv_prog_CXXCPP=$CXXCPP
5671
5672 fi
5673   CXXCPP=$ac_cv_prog_CXXCPP
5674 else
5675   ac_cv_prog_CXXCPP=$CXXCPP
5676 fi
5677 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5678 echo "${ECHO_T}$CXXCPP" >&6; }
5679 ac_preproc_ok=false
5680 for ac_cxx_preproc_warn_flag in '' yes
5681 do
5682   # Use a header file that comes with gcc, so configuring glibc
5683   # with a fresh cross-compiler works.
5684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685   # <limits.h> exists even on freestanding compilers.
5686   # On the NeXT, cc -E runs the code through the compiler's parser,
5687   # not just through cpp. "Syntax error" is here to catch this case.
5688   cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 #ifdef __STDC__
5695 # include <limits.h>
5696 #else
5697 # include <assert.h>
5698 #endif
5699                      Syntax error
5700 _ACEOF
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5702 case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } >/dev/null && {
5714          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5715          test ! -s conftest.err
5716        }; then
5717   :
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722   # Broken: fails on valid input.
5723 continue
5724 fi
5725
5726 rm -f conftest.err conftest.$ac_ext
5727
5728   # OK, works on sane cases.  Now check whether nonexistent headers
5729   # can be detected and how.
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #include <ac_nonexistent.h>
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741   *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745   ac_status=$?
5746   grep -v '^ *+' conftest.er1 >conftest.err
5747   rm -f conftest.er1
5748   cat conftest.err >&5
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); } >/dev/null && {
5751          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752          test ! -s conftest.err
5753        }; then
5754   # Broken: success on invalid input.
5755 continue
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760   # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5763 fi
5764
5765 rm -f conftest.err conftest.$ac_ext
5766
5767 done
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5771   :
5772 else
5773   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5776 See \`config.log' for more details." >&2;}
5777    { (exit 1); exit 1; }; }
5778 fi
5779
5780 ac_ext=cpp
5781 ac_cpp='$CXXCPP $CPPFLAGS'
5782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5785
5786 fi
5787
5788
5789 ac_ext=f
5790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5793 if test -n "$ac_tool_prefix"; then
5794   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
5795   do
5796     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_F77+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   if test -n "$F77"; then
5804   ac_cv_prog_F77="$F77" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811   for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 F77=$ac_cv_prog_F77
5824 if test -n "$F77"; then
5825   { echo "$as_me:$LINENO: result: $F77" >&5
5826 echo "${ECHO_T}$F77" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833     test -n "$F77" && break
5834   done
5835 fi
5836 if test -z "$F77"; then
5837   ac_ct_F77=$F77
5838   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
5839 do
5840   # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -n "$ac_ct_F77"; then
5848   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857     ac_cv_prog_ac_ct_F77="$ac_prog"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5868 if test -n "$ac_ct_F77"; then
5869   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5870 echo "${ECHO_T}$ac_ct_F77" >&6; }
5871 else
5872   { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5874 fi
5875
5876
5877   test -n "$ac_ct_F77" && break
5878 done
5879
5880   if test "x$ac_ct_F77" = x; then
5881     F77=""
5882   else
5883     case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet.  If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889 whose name does not start with the host triplet.  If you think this
5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893     F77=$ac_ct_F77
5894   fi
5895 fi
5896
5897
5898 # Provide some information about the compiler.
5899 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5900 ac_compiler=`set X $ac_compile; echo $2`
5901 { (ac_try="$ac_compiler --version >&5"
5902 case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_compiler --version >&5") 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }
5911 { (ac_try="$ac_compiler -v >&5"
5912 case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_compiler -v >&5") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }
5921 { (ac_try="$ac_compiler -V >&5"
5922 case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_compiler -V >&5") 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }
5931 rm -f a.out
5932
5933 # If we don't use `.F' as extension, the preprocessor is not run on the
5934 # input file.  (Note that this only needs to work for GNU compilers.)
5935 ac_save_ext=$ac_ext
5936 ac_ext=F
5937 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5938 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5939 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   cat >conftest.$ac_ext <<_ACEOF
5943       program main
5944 #ifndef __GNUC__
5945        choke me
5946 #endif
5947
5948       end
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_f77_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest.$ac_objext; then
5967   ac_compiler_gnu=yes
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972         ac_compiler_gnu=no
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5977
5978 fi
5979 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5980 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5981 ac_ext=$ac_save_ext
5982 ac_test_FFLAGS=${FFLAGS+set}
5983 ac_save_FFLAGS=$FFLAGS
5984 FFLAGS=
5985 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5986 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_f77_g+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   FFLAGS=-g
5991 cat >conftest.$ac_ext <<_ACEOF
5992       program main
5993
5994       end
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5998 case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_compile") 2>conftest.er1
6004   ac_status=$?
6005   grep -v '^ *+' conftest.er1 >conftest.err
6006   rm -f conftest.er1
6007   cat conftest.err >&5
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); } && {
6010          test -z "$ac_f77_werror_flag" ||
6011          test ! -s conftest.err
6012        } && test -s conftest.$ac_objext; then
6013   ac_cv_prog_f77_g=yes
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018         ac_cv_prog_f77_g=no
6019 fi
6020
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022
6023 fi
6024 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6025 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6026 if test "$ac_test_FFLAGS" = set; then
6027   FFLAGS=$ac_save_FFLAGS
6028 elif test $ac_cv_prog_f77_g = yes; then
6029   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6030     FFLAGS="-g -O2"
6031   else
6032     FFLAGS="-g"
6033   fi
6034 else
6035   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6036     FFLAGS="-O2"
6037   else
6038     FFLAGS=
6039   fi
6040 fi
6041
6042 G77=`test $ac_compiler_gnu = yes && echo yes`
6043 ac_ext=c
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049
6050
6051 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6052
6053 # find the maximum length of command line arguments
6054 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6055 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059     i=0
6060   teststring="ABCD"
6061
6062   case $build_os in
6063   msdosdjgpp*)
6064     # On DJGPP, this test can blow up pretty badly due to problems in libc
6065     # (any single argument exceeding 2000 bytes causes a buffer overrun
6066     # during glob expansion).  Even if it were fixed, the result of this
6067     # check would be larger than it should be.
6068     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6069     ;;
6070
6071   gnu*)
6072     # Under GNU Hurd, this test is not required because there is
6073     # no limit to the length of command line arguments.
6074     # Libtool will interpret -1 as no limit whatsoever
6075     lt_cv_sys_max_cmd_len=-1;
6076     ;;
6077
6078   cygwin* | mingw*)
6079     # On Win9x/ME, this test blows up -- it succeeds, but takes
6080     # about 5 minutes as the teststring grows exponentially.
6081     # Worse, since 9x/ME are not pre-emptively multitasking,
6082     # you end up with a "frozen" computer, even though with patience
6083     # the test eventually succeeds (with a max line length of 256k).
6084     # Instead, let's just punt: use the minimum linelength reported by
6085     # all of the supported platforms: 8192 (on NT/2K/XP).
6086     lt_cv_sys_max_cmd_len=8192;
6087     ;;
6088
6089   amigaos*)
6090     # On AmigaOS with pdksh, this test takes hours, literally.
6091     # So we just punt and use a minimum line length of 8192.
6092     lt_cv_sys_max_cmd_len=8192;
6093     ;;
6094
6095   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6096     # This has been around since 386BSD, at least.  Likely further.
6097     if test -x /sbin/sysctl; then
6098       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6099     elif test -x /usr/sbin/sysctl; then
6100       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6101     else
6102       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6103     fi
6104     # And add a safety zone
6105     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107     ;;
6108   osf*)
6109     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6110     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6111     # nice to cause kernel panics so lets avoid the loop below.
6112     # First set a reasonable default.
6113     lt_cv_sys_max_cmd_len=16384
6114     #
6115     if test -x /sbin/sysconfig; then
6116       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6117         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6118       esac
6119     fi
6120     ;;
6121   *)
6122     # If test is not a shell built-in, we'll probably end up computing a
6123     # maximum length that is only half of the actual maximum length, but
6124     # we can't tell.
6125     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6126     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6127                = "XX$teststring") >/dev/null 2>&1 &&
6128             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6129             lt_cv_sys_max_cmd_len=$new_result &&
6130             test $i != 17 # 1/2 MB should be enough
6131     do
6132       i=`expr $i + 1`
6133       teststring=$teststring$teststring
6134     done
6135     teststring=
6136     # Add a significant safety factor because C++ compilers can tack on massive
6137     # amounts of additional arguments before passing them to the linker.
6138     # It appears as though 1/2 is a usable value.
6139     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6140     ;;
6141   esac
6142
6143 fi
6144
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 else
6149   { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6151 fi
6152
6153
6154
6155
6156 # Check for command to grab the raw symbol name followed by C symbol from nm.
6157 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162
6163 # These are sane defaults that work on at least a few old systems.
6164 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6165
6166 # Character class describing NM global symbol codes.
6167 symcode='[BCDEGRST]'
6168
6169 # Regexp to match symbols that can be accessed directly from C.
6170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6171
6172 # Transform an extracted symbol line into a proper C declaration
6173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6174
6175 # Transform an extracted symbol line into symbol name and symbol address
6176 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'"
6177
6178 # Define system-specific variables.
6179 case $host_os in
6180 aix*)
6181   symcode='[BCDT]'
6182   ;;
6183 cygwin* | mingw* | pw32*)
6184   symcode='[ABCDGISTW]'
6185   ;;
6186 hpux*) # Its linker distinguishes data from code symbols
6187   if test "$host_cpu" = ia64; then
6188     symcode='[ABCDEGRST]'
6189   fi
6190   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6191   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'"
6192   ;;
6193 linux*)
6194   if test "$host_cpu" = ia64; then
6195     symcode='[ABCDGIRSTW]'
6196     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6197     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'"
6198   fi
6199   ;;
6200 irix* | nonstopux*)
6201   symcode='[BCDEGRST]'
6202   ;;
6203 osf*)
6204   symcode='[BCDEGQRST]'
6205   ;;
6206 solaris* | sysv5*)
6207   symcode='[BDRT]'
6208   ;;
6209 sysv4)
6210   symcode='[DFNSTU]'
6211   ;;
6212 esac
6213
6214 # Handle CRLF in mingw tool chain
6215 opt_cr=
6216 case $build_os in
6217 mingw*)
6218   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6219   ;;
6220 esac
6221
6222 # If we're using GNU nm, then use its standard symbol codes.
6223 case `$NM -V 2>&1` in
6224 *GNU* | *'with BFD'*)
6225   symcode='[ABCDGIRSTW]' ;;
6226 esac
6227
6228 # Try without a prefix undercore, then with it.
6229 for ac_symprfx in "" "_"; do
6230
6231   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6232   symxfrm="\\1 $ac_symprfx\\2 \\2"
6233
6234   # Write the raw and C identifiers.
6235   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6236
6237   # Check to see that the pipe works correctly.
6238   pipe_works=no
6239
6240   rm -f conftest*
6241   cat > conftest.$ac_ext <<EOF
6242 #ifdef __cplusplus
6243 extern "C" {
6244 #endif
6245 char nm_test_var;
6246 void nm_test_func(){}
6247 #ifdef __cplusplus
6248 }
6249 #endif
6250 int main(){nm_test_var='a';nm_test_func();return(0);}
6251 EOF
6252
6253   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254   (eval $ac_compile) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; then
6258     # Now try to grab the symbols.
6259     nlist=conftest.nm
6260     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6261   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } && test -s "$nlist"; then
6265       # Try sorting and uniquifying the output.
6266       if sort "$nlist" | uniq > "$nlist"T; then
6267         mv -f "$nlist"T "$nlist"
6268       else
6269         rm -f "$nlist"T
6270       fi
6271
6272       # Make sure that we snagged all the symbols we need.
6273       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6274         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6275           cat <<EOF > conftest.$ac_ext
6276 #ifdef __cplusplus
6277 extern "C" {
6278 #endif
6279
6280 EOF
6281           # Now generate the symbol file.
6282           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6283
6284           cat <<EOF >> conftest.$ac_ext
6285 #if defined (__STDC__) && __STDC__
6286 # define lt_ptr_t void *
6287 #else
6288 # define lt_ptr_t char *
6289 # define const
6290 #endif
6291
6292 /* The mapping between symbol names and symbols. */
6293 const struct {
6294   const char *name;
6295   lt_ptr_t address;
6296 }
6297 lt_preloaded_symbols[] =
6298 {
6299 EOF
6300           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6301           cat <<\EOF >> conftest.$ac_ext
6302   {0, (lt_ptr_t) 0}
6303 };
6304
6305 #ifdef __cplusplus
6306 }
6307 #endif
6308 EOF
6309           # Now try linking the two files.
6310           mv conftest.$ac_objext conftstm.$ac_objext
6311           lt_save_LIBS="$LIBS"
6312           lt_save_CFLAGS="$CFLAGS"
6313           LIBS="conftstm.$ac_objext"
6314           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6315           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316   (eval $ac_link) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6320             pipe_works=yes
6321           fi
6322           LIBS="$lt_save_LIBS"
6323           CFLAGS="$lt_save_CFLAGS"
6324         else
6325           echo "cannot find nm_test_func in $nlist" >&5
6326         fi
6327       else
6328         echo "cannot find nm_test_var in $nlist" >&5
6329       fi
6330     else
6331       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6332     fi
6333   else
6334     echo "$progname: failed program was:" >&5
6335     cat conftest.$ac_ext >&5
6336   fi
6337   rm -f conftest* conftst*
6338
6339   # Do not use the global_symbol_pipe unless it works.
6340   if test "$pipe_works" = yes; then
6341     break
6342   else
6343     lt_cv_sys_global_symbol_pipe=
6344   fi
6345 done
6346
6347 fi
6348
6349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6350   lt_cv_sys_global_symbol_to_cdecl=
6351 fi
6352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6353   { echo "$as_me:$LINENO: result: failed" >&5
6354 echo "${ECHO_T}failed" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: ok" >&5
6357 echo "${ECHO_T}ok" >&6; }
6358 fi
6359
6360 { echo "$as_me:$LINENO: checking for objdir" >&5
6361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6362 if test "${lt_cv_objdir+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   rm -f .libs 2>/dev/null
6366 mkdir .libs 2>/dev/null
6367 if test -d .libs; then
6368   lt_cv_objdir=.libs
6369 else
6370   # MS-DOS does not allow filenames that begin with a dot.
6371   lt_cv_objdir=_libs
6372 fi
6373 rmdir .libs 2>/dev/null
6374 fi
6375 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6376 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6377 objdir=$lt_cv_objdir
6378
6379
6380
6381
6382
6383 case $host_os in
6384 aix3*)
6385   # AIX sometimes has problems with the GCC collect2 program.  For some
6386   # reason, if we set the COLLECT_NAMES environment variable, the problems
6387   # vanish in a puff of smoke.
6388   if test "X${COLLECT_NAMES+set}" != Xset; then
6389     COLLECT_NAMES=
6390     export COLLECT_NAMES
6391   fi
6392   ;;
6393 esac
6394
6395 # Sed substitution that helps us do robust quoting.  It backslashifies
6396 # metacharacters that are still active within double-quoted strings.
6397 Xsed='sed -e 1s/^X//'
6398 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6399
6400 # Same as above, but do not quote variable references.
6401 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6402
6403 # Sed substitution to delay expansion of an escaped shell variable in a
6404 # double_quote_subst'ed string.
6405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6406
6407 # Sed substitution to avoid accidental globbing in evaled expressions
6408 no_glob_subst='s/\*/\\\*/g'
6409
6410 # Constants:
6411 rm="rm -f"
6412
6413 # Global variables:
6414 default_ofile=libtool
6415 can_build_shared=yes
6416
6417 # All known linkers require a `.a' archive for static linking (except MSVC,
6418 # which needs '.lib').
6419 libext=a
6420 ltmain="$ac_aux_dir/ltmain.sh"
6421 ofile="$default_ofile"
6422 with_gnu_ld="$lt_cv_prog_gnu_ld"
6423
6424 if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ar; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_AR+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   if test -n "$AR"; then
6433   ac_cv_prog_AR="$AR" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440   for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_AR="${ac_tool_prefix}ar"
6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 AR=$ac_cv_prog_AR
6453 if test -n "$AR"; then
6454   { echo "$as_me:$LINENO: result: $AR" >&5
6455 echo "${ECHO_T}$AR" >&6; }
6456 else
6457   { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_AR"; then
6464   ac_ct_AR=$AR
6465   # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$ac_ct_AR"; then
6473   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_AR="ar"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6495 echo "${ECHO_T}$ac_ct_AR" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_AR" = x; then
6502     AR="false"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet.  If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet.  If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514     AR=$ac_ct_AR
6515   fi
6516 else
6517   AR="$ac_cv_prog_AR"
6518 fi
6519
6520 if test -n "$ac_tool_prefix"; then
6521   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_RANLIB+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   if test -n "$RANLIB"; then
6529   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 RANLIB=$ac_cv_prog_RANLIB
6549 if test -n "$RANLIB"; then
6550   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6551 echo "${ECHO_T}$RANLIB" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 fi
6559 if test -z "$ac_cv_prog_RANLIB"; then
6560   ac_ct_RANLIB=$RANLIB
6561   # Extract the first word of "ranlib", so it can be a program name with args.
6562 set dummy ranlib; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   if test -n "$ac_ct_RANLIB"; then
6569   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_prog_ac_ct_RANLIB="ranlib"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589 if test -n "$ac_ct_RANLIB"; then
6590   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6591 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597   if test "x$ac_ct_RANLIB" = x; then
6598     RANLIB=":"
6599   else
6600     case $cross_compiling:$ac_tool_warned in
6601 yes:)
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet.  If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet.  If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610     RANLIB=$ac_ct_RANLIB
6611   fi
6612 else
6613   RANLIB="$ac_cv_prog_RANLIB"
6614 fi
6615
6616 if test -n "$ac_tool_prefix"; then
6617   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}strip; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_prog_STRIP+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   if test -n "$STRIP"; then
6625   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 STRIP=$ac_cv_prog_STRIP
6645 if test -n "$STRIP"; then
6646   { echo "$as_me:$LINENO: result: $STRIP" >&5
6647 echo "${ECHO_T}$STRIP" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 fi
6655 if test -z "$ac_cv_prog_STRIP"; then
6656   ac_ct_STRIP=$STRIP
6657   # Extract the first word of "strip", so it can be a program name with args.
6658 set dummy strip; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   if test -n "$ac_ct_STRIP"; then
6665   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_prog_ac_ct_STRIP="strip"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6685 if test -n "$ac_ct_STRIP"; then
6686   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6687 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6691 fi
6692
6693   if test "x$ac_ct_STRIP" = x; then
6694     STRIP=":"
6695   else
6696     case $cross_compiling:$ac_tool_warned in
6697 yes:)
6698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6699 whose name does not start with the host triplet.  If you think this
6700 configuration is useful to you, please write to autoconf@gnu.org." >&5
6701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6704 ac_tool_warned=yes ;;
6705 esac
6706     STRIP=$ac_ct_STRIP
6707   fi
6708 else
6709   STRIP="$ac_cv_prog_STRIP"
6710 fi
6711
6712
6713 old_CC="$CC"
6714 old_CFLAGS="$CFLAGS"
6715
6716 # Set sane defaults for various variables
6717 test -z "$AR" && AR=ar
6718 test -z "$AR_FLAGS" && AR_FLAGS=cru
6719 test -z "$AS" && AS=as
6720 test -z "$CC" && CC=cc
6721 test -z "$LTCC" && LTCC=$CC
6722 test -z "$DLLTOOL" && DLLTOOL=dlltool
6723 test -z "$LD" && LD=ld
6724 test -z "$LN_S" && LN_S="ln -s"
6725 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6726 test -z "$NM" && NM=nm
6727 test -z "$SED" && SED=sed
6728 test -z "$OBJDUMP" && OBJDUMP=objdump
6729 test -z "$RANLIB" && RANLIB=:
6730 test -z "$STRIP" && STRIP=:
6731 test -z "$ac_objext" && ac_objext=o
6732
6733 # Determine commands to create old-style static archives.
6734 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6735 old_postinstall_cmds='chmod 644 $oldlib'
6736 old_postuninstall_cmds=
6737
6738 if test -n "$RANLIB"; then
6739   case $host_os in
6740   openbsd*)
6741     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6742     ;;
6743   *)
6744     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6745     ;;
6746   esac
6747   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6748 fi
6749
6750 for cc_temp in $compiler""; do
6751   case $cc_temp in
6752     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6753     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6754     \-*) ;;
6755     *) break;;
6756   esac
6757 done
6758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6759
6760
6761 # Only perform the check for file, if the check method requires it
6762 case $deplibs_check_method in
6763 file_magic*)
6764   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6765     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6766 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6767 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   case $MAGIC_CMD in
6771 [\\/*] |  ?:[\\/]*)
6772   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6773   ;;
6774 *)
6775   lt_save_MAGIC_CMD="$MAGIC_CMD"
6776   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6777   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6778   for ac_dir in $ac_dummy; do
6779     IFS="$lt_save_ifs"
6780     test -z "$ac_dir" && ac_dir=.
6781     if test -f $ac_dir/${ac_tool_prefix}file; then
6782       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6783       if test -n "$file_magic_test_file"; then
6784         case $deplibs_check_method in
6785         "file_magic "*)
6786           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6787           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6789             $EGREP "$file_magic_regex" > /dev/null; then
6790             :
6791           else
6792             cat <<EOF 1>&2
6793
6794 *** Warning: the command libtool uses to detect shared libraries,
6795 *** $file_magic_cmd, produces output that libtool cannot recognize.
6796 *** The result is that libtool may fail to recognize shared libraries
6797 *** as such.  This will affect the creation of libtool libraries that
6798 *** depend on shared libraries, but programs linked with such libtool
6799 *** libraries will work regardless of this problem.  Nevertheless, you
6800 *** may want to report the problem to your system manager and/or to
6801 *** bug-libtool@gnu.org
6802
6803 EOF
6804           fi ;;
6805         esac
6806       fi
6807       break
6808     fi
6809   done
6810   IFS="$lt_save_ifs"
6811   MAGIC_CMD="$lt_save_MAGIC_CMD"
6812   ;;
6813 esac
6814 fi
6815
6816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817 if test -n "$MAGIC_CMD"; then
6818   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6819 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6820 else
6821   { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6823 fi
6824
6825 if test -z "$lt_cv_path_MAGIC_CMD"; then
6826   if test -n "$ac_tool_prefix"; then
6827     { echo "$as_me:$LINENO: checking for file" >&5
6828 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6829 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   case $MAGIC_CMD in
6833 [\\/*] |  ?:[\\/]*)
6834   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6835   ;;
6836 *)
6837   lt_save_MAGIC_CMD="$MAGIC_CMD"
6838   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6839   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6840   for ac_dir in $ac_dummy; do
6841     IFS="$lt_save_ifs"
6842     test -z "$ac_dir" && ac_dir=.
6843     if test -f $ac_dir/file; then
6844       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6845       if test -n "$file_magic_test_file"; then
6846         case $deplibs_check_method in
6847         "file_magic "*)
6848           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6849           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6850           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6851             $EGREP "$file_magic_regex" > /dev/null; then
6852             :
6853           else
6854             cat <<EOF 1>&2
6855
6856 *** Warning: the command libtool uses to detect shared libraries,
6857 *** $file_magic_cmd, produces output that libtool cannot recognize.
6858 *** The result is that libtool may fail to recognize shared libraries
6859 *** as such.  This will affect the creation of libtool libraries that
6860 *** depend on shared libraries, but programs linked with such libtool
6861 *** libraries will work regardless of this problem.  Nevertheless, you
6862 *** may want to report the problem to your system manager and/or to
6863 *** bug-libtool@gnu.org
6864
6865 EOF
6866           fi ;;
6867         esac
6868       fi
6869       break
6870     fi
6871   done
6872   IFS="$lt_save_ifs"
6873   MAGIC_CMD="$lt_save_MAGIC_CMD"
6874   ;;
6875 esac
6876 fi
6877
6878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6879 if test -n "$MAGIC_CMD"; then
6880   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6881 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887   else
6888     MAGIC_CMD=:
6889   fi
6890 fi
6891
6892   fi
6893   ;;
6894 esac
6895
6896 enable_dlopen=no
6897 enable_win32_dll=no
6898
6899 # Check whether --enable-libtool-lock was given.
6900 if test "${enable_libtool_lock+set}" = set; then
6901   enableval=$enable_libtool_lock;
6902 fi
6903
6904 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6905
6906
6907 # Check whether --with-pic was given.
6908 if test "${with_pic+set}" = set; then
6909   withval=$with_pic; pic_mode="$withval"
6910 else
6911   pic_mode=default
6912 fi
6913
6914 test -z "$pic_mode" && pic_mode=default
6915
6916 # Use C for the default configuration in the libtool script
6917 tagname=
6918 lt_save_CC="$CC"
6919 ac_ext=c
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924
6925
6926 # Source file extension for C test sources.
6927 ac_ext=c
6928
6929 # Object file extension for compiled C test sources.
6930 objext=o
6931 objext=$objext
6932
6933 # Code to be used in simple compile tests
6934 lt_simple_compile_test_code="int some_variable = 0;\n"
6935
6936 # Code to be used in simple link tests
6937 lt_simple_link_test_code='int main(){return(0);}\n'
6938
6939
6940 # If no C compiler was specified, use CC.
6941 LTCC=${LTCC-"$CC"}
6942
6943 # Allow CC to be a program name with arguments.
6944 compiler=$CC
6945
6946
6947 # save warnings/boilerplate of simple test code
6948 ac_outfile=conftest.$ac_objext
6949 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6951 _lt_compiler_boilerplate=`cat conftest.err`
6952 $rm conftest*
6953
6954 ac_outfile=conftest.$ac_objext
6955 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6957 _lt_linker_boilerplate=`cat conftest.err`
6958 $rm conftest*
6959
6960
6961 #
6962 # Check for any special shared library compilation flags.
6963 #
6964 lt_prog_cc_shlib=
6965 if test "$GCC" = no; then
6966   case $host_os in
6967   sco3.2v5*)
6968     lt_prog_cc_shlib='-belf'
6969     ;;
6970   esac
6971 fi
6972 if test -n "$lt_prog_cc_shlib"; then
6973   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6974 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6975   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6976   else
6977     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6978 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6979     lt_cv_prog_cc_can_build_shared=no
6980   fi
6981 fi
6982
6983
6984 #
6985 # Check to make sure the static flag actually works.
6986 #
6987 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6988 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6989 if test "${lt_prog_compiler_static_works+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   lt_prog_compiler_static_works=no
6993    save_LDFLAGS="$LDFLAGS"
6994    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6995    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6996    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6997      # The linker can only warn and ignore the option if not recognized
6998      # So say no if there are warnings
6999      if test -s conftest.err; then
7000        # Append any errors to the config.log.
7001        cat conftest.err 1>&5
7002        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7003        $SED '/^$/d' conftest.err >conftest.er2
7004        if diff conftest.exp conftest.er2 >/dev/null; then
7005          lt_prog_compiler_static_works=yes
7006        fi
7007      else
7008        lt_prog_compiler_static_works=yes
7009      fi
7010    fi
7011    $rm conftest*
7012    LDFLAGS="$save_LDFLAGS"
7013
7014 fi
7015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7016 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7017
7018 if test x"$lt_prog_compiler_static_works" = xyes; then
7019     :
7020 else
7021     lt_prog_compiler_static=
7022 fi
7023
7024
7025
7026
7027 lt_prog_compiler_no_builtin_flag=
7028
7029 if test "$GCC" = yes; then
7030   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7031
7032
7033 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   lt_cv_prog_compiler_rtti_exceptions=no
7039   ac_outfile=conftest.$ac_objext
7040    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7041    lt_compiler_flag="-fno-rtti -fno-exceptions"
7042    # Insert the option either (1) after the last *FLAGS variable, or
7043    # (2) before a word containing "conftest.", or (3) at the end.
7044    # Note that $ac_compile itself does not contain backslashes and begins
7045    # with a dollar sign (not a hyphen), so the echo should work correctly.
7046    # The option is referenced via a variable to avoid confusing sed.
7047    lt_compile=`echo "$ac_compile" | $SED \
7048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050    -e 's:$: $lt_compiler_flag:'`
7051    (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052    (eval "$lt_compile" 2>conftest.err)
7053    ac_status=$?
7054    cat conftest.err >&5
7055    echo "$as_me:7055: \$? = $ac_status" >&5
7056    if (exit $ac_status) && test -s "$ac_outfile"; then
7057      # The compiler can only warn and ignore the option if not recognized
7058      # So say no if there are warnings other than the usual output.
7059      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7060      $SED '/^$/d' conftest.err >conftest.er2
7061      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7062        lt_cv_prog_compiler_rtti_exceptions=yes
7063      fi
7064    fi
7065    $rm conftest*
7066
7067 fi
7068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7070
7071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7072     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7073 else
7074     :
7075 fi
7076
7077 fi
7078
7079 lt_prog_compiler_wl=
7080 lt_prog_compiler_pic=
7081 lt_prog_compiler_static=
7082
7083 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7085
7086   if test "$GCC" = yes; then
7087     lt_prog_compiler_wl='-Wl,'
7088     lt_prog_compiler_static='-static'
7089
7090     case $host_os in
7091       aix*)
7092       # All AIX code is PIC.
7093       if test "$host_cpu" = ia64; then
7094         # AIX 5 now supports IA64 processor
7095         lt_prog_compiler_static='-Bstatic'
7096       fi
7097       ;;
7098
7099     amigaos*)
7100       # FIXME: we need at least 68020 code to build shared libraries, but
7101       # adding the `-m68020' flag to GCC prevents building anything better,
7102       # like `-m68040'.
7103       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7104       ;;
7105
7106     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7107       # PIC is the default for these OSes.
7108       ;;
7109
7110     mingw* | pw32* | os2*)
7111       # This hack is so that the source file can tell whether it is being
7112       # built for inclusion in a dll (and should export symbols for example).
7113       lt_prog_compiler_pic='-DDLL_EXPORT'
7114       ;;
7115
7116     darwin* | rhapsody*)
7117       # PIC is the default on this platform
7118       # Common symbols not allowed in MH_DYLIB files
7119       lt_prog_compiler_pic='-fno-common'
7120       ;;
7121
7122     msdosdjgpp*)
7123       # Just because we use GCC doesn't mean we suddenly get shared libraries
7124       # on systems that don't support them.
7125       lt_prog_compiler_can_build_shared=no
7126       enable_shared=no
7127       ;;
7128
7129     sysv4*MP*)
7130       if test -d /usr/nec; then
7131         lt_prog_compiler_pic=-Kconform_pic
7132       fi
7133       ;;
7134
7135     hpux*)
7136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7137       # not for PA HP-UX.
7138       case $host_cpu in
7139       hppa*64*|ia64*)
7140         # +Z the default
7141         ;;
7142       *)
7143         lt_prog_compiler_pic='-fPIC'
7144         ;;
7145       esac
7146       ;;
7147
7148     *)
7149       lt_prog_compiler_pic='-fPIC'
7150       ;;
7151     esac
7152   else
7153     # PORTME Check for flag to pass linker flags through the system compiler.
7154     case $host_os in
7155     aix*)
7156       lt_prog_compiler_wl='-Wl,'
7157       if test "$host_cpu" = ia64; then
7158         # AIX 5 now supports IA64 processor
7159         lt_prog_compiler_static='-Bstatic'
7160       else
7161         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7162       fi
7163       ;;
7164       darwin*)
7165         # PIC is the default on this platform
7166         # Common symbols not allowed in MH_DYLIB files
7167        case $cc_basename in
7168          xlc*)
7169          lt_prog_compiler_pic='-qnocommon'
7170          lt_prog_compiler_wl='-Wl,'
7171          ;;
7172        esac
7173        ;;
7174
7175     mingw* | pw32* | os2*)
7176       # This hack is so that the source file can tell whether it is being
7177       # built for inclusion in a dll (and should export symbols for example).
7178       lt_prog_compiler_pic='-DDLL_EXPORT'
7179       ;;
7180
7181     hpux9* | hpux10* | hpux11*)
7182       lt_prog_compiler_wl='-Wl,'
7183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7184       # not for PA HP-UX.
7185       case $host_cpu in
7186       hppa*64*|ia64*)
7187         # +Z the default
7188         ;;
7189       *)
7190         lt_prog_compiler_pic='+Z'
7191         ;;
7192       esac
7193       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7194       lt_prog_compiler_static='${wl}-a ${wl}archive'
7195       ;;
7196
7197     irix5* | irix6* | nonstopux*)
7198       lt_prog_compiler_wl='-Wl,'
7199       # PIC (with -KPIC) is the default.
7200       lt_prog_compiler_static='-non_shared'
7201       ;;
7202
7203     newsos6)
7204       lt_prog_compiler_pic='-KPIC'
7205       lt_prog_compiler_static='-Bstatic'
7206       ;;
7207
7208     linux*)
7209       case $cc_basename in
7210       icc* | ecc*)
7211         lt_prog_compiler_wl='-Wl,'
7212         lt_prog_compiler_pic='-KPIC'
7213         lt_prog_compiler_static='-static'
7214         ;;
7215       pgcc* | pgf77* | pgf90* | pgf95*)
7216         # Portland Group compilers (*not* the Pentium gcc compiler,
7217         # which looks to be a dead project)
7218         lt_prog_compiler_wl='-Wl,'
7219         lt_prog_compiler_pic='-fpic'
7220         lt_prog_compiler_static='-Bstatic'
7221         ;;
7222       ccc*)
7223         lt_prog_compiler_wl='-Wl,'
7224         # All Alpha code is PIC.
7225         lt_prog_compiler_static='-non_shared'
7226         ;;
7227       esac
7228       ;;
7229
7230     osf3* | osf4* | osf5*)
7231       lt_prog_compiler_wl='-Wl,'
7232       # All OSF/1 code is PIC.
7233       lt_prog_compiler_static='-non_shared'
7234       ;;
7235
7236     sco3.2v5*)
7237       lt_prog_compiler_pic='-Kpic'
7238       lt_prog_compiler_static='-dn'
7239       ;;
7240
7241     solaris*)
7242       lt_prog_compiler_pic='-KPIC'
7243       lt_prog_compiler_static='-Bstatic'
7244       case $cc_basename in
7245       f77* | f90* | f95*)
7246         lt_prog_compiler_wl='-Qoption ld ';;
7247       *)
7248         lt_prog_compiler_wl='-Wl,';;
7249       esac
7250       ;;
7251
7252     sunos4*)
7253       lt_prog_compiler_wl='-Qoption ld '
7254       lt_prog_compiler_pic='-PIC'
7255       lt_prog_compiler_static='-Bstatic'
7256       ;;
7257
7258     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7259       lt_prog_compiler_wl='-Wl,'
7260       lt_prog_compiler_pic='-KPIC'
7261       lt_prog_compiler_static='-Bstatic'
7262       ;;
7263
7264     sysv4*MP*)
7265       if test -d /usr/nec ;then
7266         lt_prog_compiler_pic='-Kconform_pic'
7267         lt_prog_compiler_static='-Bstatic'
7268       fi
7269       ;;
7270
7271     unicos*)
7272       lt_prog_compiler_wl='-Wl,'
7273       lt_prog_compiler_can_build_shared=no
7274       ;;
7275
7276     uts4*)
7277       lt_prog_compiler_pic='-pic'
7278       lt_prog_compiler_static='-Bstatic'
7279       ;;
7280
7281     *)
7282       lt_prog_compiler_can_build_shared=no
7283       ;;
7284     esac
7285   fi
7286
7287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7288 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7289
7290 #
7291 # Check to make sure the PIC flag actually works.
7292 #
7293 if test -n "$lt_prog_compiler_pic"; then
7294
7295 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7296 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7297 if test "${lt_prog_compiler_pic_works+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   lt_prog_compiler_pic_works=no
7301   ac_outfile=conftest.$ac_objext
7302    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7303    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7304    # Insert the option either (1) after the last *FLAGS variable, or
7305    # (2) before a word containing "conftest.", or (3) at the end.
7306    # Note that $ac_compile itself does not contain backslashes and begins
7307    # with a dollar sign (not a hyphen), so the echo should work correctly.
7308    # The option is referenced via a variable to avoid confusing sed.
7309    lt_compile=`echo "$ac_compile" | $SED \
7310    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7311    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7312    -e 's:$: $lt_compiler_flag:'`
7313    (eval echo "\"\$as_me:7313: $lt_compile\"" >&5)
7314    (eval "$lt_compile" 2>conftest.err)
7315    ac_status=$?
7316    cat conftest.err >&5
7317    echo "$as_me:7317: \$? = $ac_status" >&5
7318    if (exit $ac_status) && test -s "$ac_outfile"; then
7319      # The compiler can only warn and ignore the option if not recognized
7320      # So say no if there are warnings other than the usual output.
7321      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7322      $SED '/^$/d' conftest.err >conftest.er2
7323      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7324        lt_prog_compiler_pic_works=yes
7325      fi
7326    fi
7327    $rm conftest*
7328
7329 fi
7330 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7331 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7332
7333 if test x"$lt_prog_compiler_pic_works" = xyes; then
7334     case $lt_prog_compiler_pic in
7335      "" | " "*) ;;
7336      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7337      esac
7338 else
7339     lt_prog_compiler_pic=
7340      lt_prog_compiler_can_build_shared=no
7341 fi
7342
7343 fi
7344 case $host_os in
7345   # For platforms which do not support PIC, -DPIC is meaningless:
7346   *djgpp*)
7347     lt_prog_compiler_pic=
7348     ;;
7349   *)
7350     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7351     ;;
7352 esac
7353
7354 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7355 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7356 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   lt_cv_prog_compiler_c_o=no
7360    $rm -r conftest 2>/dev/null
7361    mkdir conftest
7362    cd conftest
7363    mkdir out
7364    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7365
7366    lt_compiler_flag="-o out/conftest2.$ac_objext"
7367    # Insert the option either (1) after the last *FLAGS variable, or
7368    # (2) before a word containing "conftest.", or (3) at the end.
7369    # Note that $ac_compile itself does not contain backslashes and begins
7370    # with a dollar sign (not a hyphen), so the echo should work correctly.
7371    lt_compile=`echo "$ac_compile" | $SED \
7372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7374    -e 's:$: $lt_compiler_flag:'`
7375    (eval echo "\"\$as_me:7375: $lt_compile\"" >&5)
7376    (eval "$lt_compile" 2>out/conftest.err)
7377    ac_status=$?
7378    cat out/conftest.err >&5
7379    echo "$as_me:7379: \$? = $ac_status" >&5
7380    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7381    then
7382      # The compiler can only warn and ignore the option if not recognized
7383      # So say no if there are warnings
7384      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7385      $SED '/^$/d' out/conftest.err >out/conftest.er2
7386      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7387        lt_cv_prog_compiler_c_o=yes
7388      fi
7389    fi
7390    chmod u+w . 2>&5
7391    $rm conftest*
7392    # SGI C++ compiler will create directory out/ii_files/ for
7393    # template instantiation
7394    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7395    $rm out/* && rmdir out
7396    cd ..
7397    rmdir conftest
7398    $rm conftest*
7399
7400 fi
7401 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7403
7404
7405 hard_links="nottested"
7406 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7407   # do not overwrite the value of need_locks provided by the user
7408   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7409 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7410   hard_links=yes
7411   $rm conftest*
7412   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7413   touch conftest.a
7414   ln conftest.a conftest.b 2>&5 || hard_links=no
7415   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7416   { echo "$as_me:$LINENO: result: $hard_links" >&5
7417 echo "${ECHO_T}$hard_links" >&6; }
7418   if test "$hard_links" = no; then
7419     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7420 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7421     need_locks=warn
7422   fi
7423 else
7424   need_locks=no
7425 fi
7426
7427 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7428 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7429
7430   runpath_var=
7431   allow_undefined_flag=
7432   enable_shared_with_static_runtimes=no
7433   archive_cmds=
7434   archive_expsym_cmds=
7435   old_archive_From_new_cmds=
7436   old_archive_from_expsyms_cmds=
7437   export_dynamic_flag_spec=
7438   whole_archive_flag_spec=
7439   thread_safe_flag_spec=
7440   hardcode_libdir_flag_spec=
7441   hardcode_libdir_flag_spec_ld=
7442   hardcode_libdir_separator=
7443   hardcode_direct=no
7444   hardcode_minus_L=no
7445   hardcode_shlibpath_var=unsupported
7446   link_all_deplibs=unknown
7447   hardcode_automatic=no
7448   module_cmds=
7449   module_expsym_cmds=
7450   always_export_symbols=no
7451   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7452   # include_expsyms should be a list of space-separated symbols to be *always*
7453   # included in the symbol list
7454   include_expsyms=
7455   # exclude_expsyms can be an extended regexp of symbols to exclude
7456   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7457   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7458   # as well as any symbol that contains `d'.
7459   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7460   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7461   # platforms (ab)use it in PIC code, but their linkers get confused if
7462   # the symbol is explicitly referenced.  Since portable code cannot
7463   # rely on this symbol name, it's probably fine to never include it in
7464   # preloaded symbol tables.
7465   extract_expsyms_cmds=
7466   # Just being paranoid about ensuring that cc_basename is set.
7467   for cc_temp in $compiler""; do
7468   case $cc_temp in
7469     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7470     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7471     \-*) ;;
7472     *) break;;
7473   esac
7474 done
7475 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7476
7477   case $host_os in
7478   cygwin* | mingw* | pw32*)
7479     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7480     # When not using gcc, we currently assume that we are using
7481     # Microsoft Visual C++.
7482     if test "$GCC" != yes; then
7483       with_gnu_ld=no
7484     fi
7485     ;;
7486   openbsd*)
7487     with_gnu_ld=no
7488     ;;
7489   esac
7490
7491   ld_shlibs=yes
7492   if test "$with_gnu_ld" = yes; then
7493     # If archive_cmds runs LD, not CC, wlarc should be empty
7494     wlarc='${wl}'
7495
7496     # Set some defaults for GNU ld with shared library support. These
7497     # are reset later if shared libraries are not supported. Putting them
7498     # here allows them to be overridden if necessary.
7499     runpath_var=LD_RUN_PATH
7500     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7501     export_dynamic_flag_spec='${wl}--export-dynamic'
7502     # ancient GNU ld didn't support --whole-archive et. al.
7503     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7504         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7505       else
7506         whole_archive_flag_spec=
7507     fi
7508     supports_anon_versioning=no
7509     case `$LD -v 2>/dev/null` in
7510       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7511       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7512       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7513       *\ 2.11.*) ;; # other 2.11 versions
7514       *) supports_anon_versioning=yes ;;
7515     esac
7516
7517     # See if GNU ld supports shared libraries.
7518     case $host_os in
7519     aix3* | aix4* | aix5*)
7520       # On AIX/PPC, the GNU linker is very broken
7521       if test "$host_cpu" != ia64; then
7522         ld_shlibs=no
7523         cat <<EOF 1>&2
7524
7525 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7526 *** to be unable to reliably create shared libraries on AIX.
7527 *** Therefore, libtool is disabling shared libraries support.  If you
7528 *** really care for shared libraries, you may want to modify your PATH
7529 *** so that a non-GNU linker is found, and then restart.
7530
7531 EOF
7532       fi
7533       ;;
7534
7535     amigaos*)
7536       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)'
7537       hardcode_libdir_flag_spec='-L$libdir'
7538       hardcode_minus_L=yes
7539
7540       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7541       # that the semantics of dynamic libraries on AmigaOS, at least up
7542       # to version 4, is to share data among multiple programs linked
7543       # with the same dynamic library.  Since this doesn't match the
7544       # behavior of shared libraries on other platforms, we can't use
7545       # them.
7546       ld_shlibs=no
7547       ;;
7548
7549     beos*)
7550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7551         allow_undefined_flag=unsupported
7552         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7553         # support --undefined.  This deserves some investigation.  FIXME
7554         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7555       else
7556         ld_shlibs=no
7557       fi
7558       ;;
7559
7560     cygwin* | mingw* | pw32*)
7561       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7562       # as there is no search path for DLLs.
7563       hardcode_libdir_flag_spec='-L$libdir'
7564       allow_undefined_flag=unsupported
7565       always_export_symbols=no
7566       enable_shared_with_static_runtimes=yes
7567       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7568
7569       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7570         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7571         # If the export-symbols file already is a .def file (1st line
7572         # is EXPORTS), use it as is; otherwise, prepend...
7573         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7574           cp $export_symbols $output_objdir/$soname.def;
7575         else
7576           echo EXPORTS > $output_objdir/$soname.def;
7577           cat $export_symbols >> $output_objdir/$soname.def;
7578         fi~
7579         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7580       else
7581         ld_shlibs=no
7582       fi
7583       ;;
7584
7585     linux*)
7586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7587         tmp_addflag=
7588         case $cc_basename,$host_cpu in
7589         pgcc*)                          # Portland Group C compiler
7590           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7591           tmp_addflag=' $pic_flag'
7592           ;;
7593         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7594           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7595           tmp_addflag=' $pic_flag -Mnomain' ;;
7596         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7597           tmp_addflag=' -i_dynamic' ;;
7598         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7599           tmp_addflag=' -i_dynamic -nofor_main' ;;
7600         ifc* | ifort*)                  # Intel Fortran compiler
7601           tmp_addflag=' -nofor_main' ;;
7602         esac
7603         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7604
7605         if test $supports_anon_versioning = yes; then
7606           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7607   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608   $echo "local: *; };" >> $output_objdir/$libname.ver~
7609           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7610         fi
7611       else
7612         ld_shlibs=no
7613       fi
7614       ;;
7615
7616     netbsd*)
7617       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7618         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7619         wlarc=
7620       else
7621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7623       fi
7624       ;;
7625
7626     solaris* | sysv5*)
7627       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7628         ld_shlibs=no
7629         cat <<EOF 1>&2
7630
7631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7632 *** create shared libraries on Solaris systems.  Therefore, libtool
7633 *** is disabling shared libraries support.  We urge you to upgrade GNU
7634 *** binutils to release 2.9.1 or newer.  Another option is to modify
7635 *** your PATH or compiler configuration so that the native linker is
7636 *** used, and then restart.
7637
7638 EOF
7639       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7640         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7642       else
7643         ld_shlibs=no
7644       fi
7645       ;;
7646
7647     sunos4*)
7648       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7649       wlarc=
7650       hardcode_direct=yes
7651       hardcode_shlibpath_var=no
7652       ;;
7653
7654     *)
7655       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7656         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7658       else
7659         ld_shlibs=no
7660       fi
7661       ;;
7662     esac
7663
7664     if test "$ld_shlibs" = no; then
7665       runpath_var=
7666       hardcode_libdir_flag_spec=
7667       export_dynamic_flag_spec=
7668       whole_archive_flag_spec=
7669     fi
7670   else
7671     # PORTME fill in a description of your system's linker (not GNU ld)
7672     case $host_os in
7673     aix3*)
7674       allow_undefined_flag=unsupported
7675       always_export_symbols=yes
7676       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'
7677       # Note: this linker hardcodes the directories in LIBPATH if there
7678       # are no directories specified by -L.
7679       hardcode_minus_L=yes
7680       if test "$GCC" = yes && test -z "$link_static_flag"; then
7681         # Neither direct hardcoding nor static linking is supported with a
7682         # broken collect2.
7683         hardcode_direct=unsupported
7684       fi
7685       ;;
7686
7687     aix4* | aix5*)
7688       if test "$host_cpu" = ia64; then
7689         # On IA64, the linker does run time linking by default, so we don't
7690         # have to do anything special.
7691         aix_use_runtimelinking=no
7692         exp_sym_flag='-Bexport'
7693         no_entry_flag=""
7694       else
7695         # If we're using GNU nm, then we don't want the "-C" option.
7696         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7697         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7698           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'
7699         else
7700           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'
7701         fi
7702         aix_use_runtimelinking=no
7703
7704         # Test if we are trying to use run time linking or normal
7705         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7706         # need to do runtime linking.
7707         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7708           for ld_flag in $LDFLAGS; do
7709           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7710             aix_use_runtimelinking=yes
7711             break
7712           fi
7713           done
7714         esac
7715
7716         exp_sym_flag='-bexport'
7717         no_entry_flag='-bnoentry'
7718       fi
7719
7720       # When large executables or shared objects are built, AIX ld can
7721       # have problems creating the table of contents.  If linking a library
7722       # or program results in "error TOC overflow" add -mminimal-toc to
7723       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7724       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7725
7726       archive_cmds=''
7727       hardcode_direct=yes
7728       hardcode_libdir_separator=':'
7729       link_all_deplibs=yes
7730
7731       if test "$GCC" = yes; then
7732         case $host_os in aix4.[012]|aix4.[012].*)
7733         # We only want to do this on AIX 4.2 and lower, the check
7734         # below for broken collect2 doesn't work under 4.3+
7735           collect2name=`${CC} -print-prog-name=collect2`
7736           if test -f "$collect2name" && \
7737            strings "$collect2name" | grep resolve_lib_name >/dev/null
7738           then
7739           # We have reworked collect2
7740           hardcode_direct=yes
7741           else
7742           # We have old collect2
7743           hardcode_direct=unsupported
7744           # It fails to find uninstalled libraries when the uninstalled
7745           # path is not listed in the libpath.  Setting hardcode_minus_L
7746           # to unsupported forces relinking
7747           hardcode_minus_L=yes
7748           hardcode_libdir_flag_spec='-L$libdir'
7749           hardcode_libdir_separator=
7750           fi
7751         esac
7752         shared_flag='-shared'
7753         if test "$aix_use_runtimelinking" = yes; then
7754           shared_flag="$shared_flag "'${wl}-G'
7755         fi
7756       else
7757         # not using gcc
7758         if test "$host_cpu" = ia64; then
7759         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7760         # chokes on -Wl,-G. The following line is correct:
7761           shared_flag='-G'
7762         else
7763         if test "$aix_use_runtimelinking" = yes; then
7764             shared_flag='${wl}-G'
7765           else
7766             shared_flag='${wl}-bM:SRE'
7767         fi
7768         fi
7769       fi
7770
7771       # It seems that -bexpall does not export symbols beginning with
7772       # underscore (_), so it is better to generate a list of symbols to export.
7773       always_export_symbols=yes
7774       if test "$aix_use_runtimelinking" = yes; then
7775         # Warning - without using the other runtime loading flags (-brtl),
7776         # -berok will link without error, but may produce a broken library.
7777         allow_undefined_flag='-berok'
7778        # Determine the default libpath from the value encoded in an empty executable.
7779        cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 int
7787 main ()
7788 {
7789
7790   ;
7791   return 0;
7792 }
7793 _ACEOF
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7796 case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_link") 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } && {
7808          test -z "$ac_c_werror_flag" ||
7809          test ! -s conftest.err
7810        } && test -s conftest$ac_exeext &&
7811        $as_test_x conftest$ac_exeext; then
7812
7813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7814 }'`
7815 # Check for a 64-bit object if we didn't find anything.
7816 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; }
7817 }'`; fi
7818 else
7819   echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822
7823 fi
7824
7825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826       conftest$ac_exeext conftest.$ac_ext
7827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7828
7829        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7830         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7831        else
7832         if test "$host_cpu" = ia64; then
7833           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7834           allow_undefined_flag="-z nodefs"
7835           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7836         else
7837          # Determine the default libpath from the value encoded in an empty executable.
7838          cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_link") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } && {
7867          test -z "$ac_c_werror_flag" ||
7868          test ! -s conftest.err
7869        } && test -s conftest$ac_exeext &&
7870        $as_test_x conftest$ac_exeext; then
7871
7872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7873 }'`
7874 # Check for a 64-bit object if we didn't find anything.
7875 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; }
7876 }'`; fi
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881
7882 fi
7883
7884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7885       conftest$ac_exeext conftest.$ac_ext
7886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7887
7888          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7889           # Warning - without using the other run time loading flags,
7890           # -berok will link without error, but may produce a broken library.
7891           no_undefined_flag=' ${wl}-bernotok'
7892           allow_undefined_flag=' ${wl}-berok'
7893           # -bexpall does not export symbols beginning with underscore (_)
7894           always_export_symbols=yes
7895           # Exported symbols can be pulled into shared objects from archives
7896           whole_archive_flag_spec=' '
7897           archive_cmds_need_lc=yes
7898           # This is similar to how AIX traditionally builds its shared libraries.
7899           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7900         fi
7901       fi
7902       ;;
7903
7904     amigaos*)
7905       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)'
7906       hardcode_libdir_flag_spec='-L$libdir'
7907       hardcode_minus_L=yes
7908       # see comment about different semantics on the GNU ld section
7909       ld_shlibs=no
7910       ;;
7911
7912     bsdi[45]*)
7913       export_dynamic_flag_spec=-rdynamic
7914       ;;
7915
7916     cygwin* | mingw* | pw32*)
7917       # When not using gcc, we currently assume that we are using
7918       # Microsoft Visual C++.
7919       # hardcode_libdir_flag_spec is actually meaningless, as there is
7920       # no search path for DLLs.
7921       hardcode_libdir_flag_spec=' '
7922       allow_undefined_flag=unsupported
7923       # Tell ltmain to make .lib files, not .a files.
7924       libext=lib
7925       # Tell ltmain to make .dll files, not .so files.
7926       shrext_cmds=".dll"
7927       # FIXME: Setting linknames here is a bad hack.
7928       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7929       # The linker will automatically build a .lib file if we build a DLL.
7930       old_archive_From_new_cmds='true'
7931       # FIXME: Should let the user specify the lib program.
7932       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7933       fix_srcfile_path='`cygpath -w "$srcfile"`'
7934       enable_shared_with_static_runtimes=yes
7935       ;;
7936
7937     darwin* | rhapsody*)
7938       case $host_os in
7939         rhapsody* | darwin1.[012])
7940          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7941          ;;
7942        *) # Darwin 1.3 on
7943          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7944            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7945          else
7946            case ${MACOSX_DEPLOYMENT_TARGET} in
7947              10.[012])
7948                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7949                ;;
7950              10.*)
7951                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7952                ;;
7953            esac
7954          fi
7955          ;;
7956       esac
7957       archive_cmds_need_lc=no
7958       hardcode_direct=no
7959       hardcode_automatic=yes
7960       hardcode_shlibpath_var=unsupported
7961       whole_archive_flag_spec=''
7962       link_all_deplibs=yes
7963     if test "$GCC" = yes ; then
7964         output_verbose_link_cmd='echo'
7965         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7966       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7967       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7968       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7969       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970     else
7971       case $cc_basename in
7972         xlc*)
7973          output_verbose_link_cmd='echo'
7974          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7975          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7976           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7977          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7978           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7979           ;;
7980        *)
7981          ld_shlibs=no
7982           ;;
7983       esac
7984     fi
7985       ;;
7986
7987     dgux*)
7988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989       hardcode_libdir_flag_spec='-L$libdir'
7990       hardcode_shlibpath_var=no
7991       ;;
7992
7993     freebsd1*)
7994       ld_shlibs=no
7995       ;;
7996
7997     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7998     # support.  Future versions do this automatically, but an explicit c++rt0.o
7999     # does not break anything, and helps significantly (at the cost of a little
8000     # extra space).
8001     freebsd2.2*)
8002       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8003       hardcode_libdir_flag_spec='-R$libdir'
8004       hardcode_direct=yes
8005       hardcode_shlibpath_var=no
8006       ;;
8007
8008     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8009     freebsd2*)
8010       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8011       hardcode_direct=yes
8012       hardcode_minus_L=yes
8013       hardcode_shlibpath_var=no
8014       ;;
8015
8016     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8017     freebsd* | kfreebsd*-gnu | dragonfly*)
8018       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8019       hardcode_libdir_flag_spec='-R$libdir'
8020       hardcode_direct=yes
8021       hardcode_shlibpath_var=no
8022       ;;
8023
8024     hpux9*)
8025       if test "$GCC" = yes; then
8026         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8027       else
8028         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'
8029       fi
8030       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8031       hardcode_libdir_separator=:
8032       hardcode_direct=yes
8033
8034       # hardcode_minus_L: Not really in the search PATH,
8035       # but as the default location of the library.
8036       hardcode_minus_L=yes
8037       export_dynamic_flag_spec='${wl}-E'
8038       ;;
8039
8040     hpux10* | hpux11*)
8041       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8042         case $host_cpu in
8043         hppa*64*|ia64*)
8044           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045           ;;
8046         *)
8047           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8048           ;;
8049         esac
8050       else
8051         case $host_cpu in
8052         hppa*64*|ia64*)
8053           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8054           ;;
8055         *)
8056           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8057           ;;
8058         esac
8059       fi
8060       if test "$with_gnu_ld" = no; then
8061         case $host_cpu in
8062         hppa*64*)
8063           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8064           hardcode_libdir_flag_spec_ld='+b $libdir'
8065           hardcode_libdir_separator=:
8066           hardcode_direct=no
8067           hardcode_shlibpath_var=no
8068           ;;
8069         ia64*)
8070           hardcode_libdir_flag_spec='-L$libdir'
8071           hardcode_direct=no
8072           hardcode_shlibpath_var=no
8073
8074           # hardcode_minus_L: Not really in the search PATH,
8075           # but as the default location of the library.
8076           hardcode_minus_L=yes
8077           ;;
8078         *)
8079           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8080           hardcode_libdir_separator=:
8081           hardcode_direct=yes
8082           export_dynamic_flag_spec='${wl}-E'
8083
8084           # hardcode_minus_L: Not really in the search PATH,
8085           # but as the default location of the library.
8086           hardcode_minus_L=yes
8087           ;;
8088         esac
8089       fi
8090       ;;
8091
8092     irix5* | irix6* | nonstopux*)
8093       if test "$GCC" = yes; then
8094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8095       else
8096         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'
8097         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8098       fi
8099       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8100       hardcode_libdir_separator=:
8101       link_all_deplibs=yes
8102       ;;
8103
8104     netbsd*)
8105       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8107       else
8108         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8109       fi
8110       hardcode_libdir_flag_spec='-R$libdir'
8111       hardcode_direct=yes
8112       hardcode_shlibpath_var=no
8113       ;;
8114
8115     newsos6)
8116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8117       hardcode_direct=yes
8118       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8119       hardcode_libdir_separator=:
8120       hardcode_shlibpath_var=no
8121       ;;
8122
8123     openbsd*)
8124       hardcode_direct=yes
8125       hardcode_shlibpath_var=no
8126       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8127         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8128         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8129         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8130         export_dynamic_flag_spec='${wl}-E'
8131       else
8132        case $host_os in
8133          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8134            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135            hardcode_libdir_flag_spec='-R$libdir'
8136            ;;
8137          *)
8138            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8139            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8140            ;;
8141        esac
8142       fi
8143       ;;
8144
8145     os2*)
8146       hardcode_libdir_flag_spec='-L$libdir'
8147       hardcode_minus_L=yes
8148       allow_undefined_flag=unsupported
8149       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8150       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8151       ;;
8152
8153     osf3*)
8154       if test "$GCC" = yes; then
8155         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8156         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8157       else
8158         allow_undefined_flag=' -expect_unresolved \*'
8159         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'
8160       fi
8161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162       hardcode_libdir_separator=:
8163       ;;
8164
8165     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8166       if test "$GCC" = yes; then
8167         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8168         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8169         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8170       else
8171         allow_undefined_flag=' -expect_unresolved \*'
8172         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'
8173         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8174         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8175
8176         # Both c and cxx compiler support -rpath directly
8177         hardcode_libdir_flag_spec='-rpath $libdir'
8178       fi
8179       hardcode_libdir_separator=:
8180       ;;
8181
8182     sco3.2v5*)
8183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8184       hardcode_shlibpath_var=no
8185       export_dynamic_flag_spec='${wl}-Bexport'
8186       runpath_var=LD_RUN_PATH
8187       hardcode_runpath_var=yes
8188       ;;
8189
8190     solaris*)
8191       no_undefined_flag=' -z text'
8192       if test "$GCC" = yes; then
8193         wlarc='${wl}'
8194         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8195         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8196           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8197       else
8198         wlarc=''
8199         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8201         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8202       fi
8203       hardcode_libdir_flag_spec='-R$libdir'
8204       hardcode_shlibpath_var=no
8205       case $host_os in
8206       solaris2.[0-5] | solaris2.[0-5].*) ;;
8207       *)
8208         # The compiler driver will combine linker options so we
8209         # cannot just pass the convience library names through
8210         # without $wl, iff we do not link with $LD.
8211         # Luckily, gcc supports the same syntax we need for Sun Studio.
8212         # Supported since Solaris 2.6 (maybe 2.5.1?)
8213         case $wlarc in
8214         '')
8215           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8216         *)
8217           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8218         esac ;;
8219       esac
8220       link_all_deplibs=yes
8221       ;;
8222
8223     sunos4*)
8224       if test "x$host_vendor" = xsequent; then
8225         # Use $CC to link under sequent, because it throws in some extra .o
8226         # files that make .init and .fini sections work.
8227         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8228       else
8229         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8230       fi
8231       hardcode_libdir_flag_spec='-L$libdir'
8232       hardcode_direct=yes
8233       hardcode_minus_L=yes
8234       hardcode_shlibpath_var=no
8235       ;;
8236
8237     sysv4)
8238       case $host_vendor in
8239         sni)
8240           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8241           hardcode_direct=yes # is this really true???
8242         ;;
8243         siemens)
8244           ## LD is ld it makes a PLAMLIB
8245           ## CC just makes a GrossModule.
8246           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8247           reload_cmds='$CC -r -o $output$reload_objs'
8248           hardcode_direct=no
8249         ;;
8250         motorola)
8251           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8253         ;;
8254       esac
8255       runpath_var='LD_RUN_PATH'
8256       hardcode_shlibpath_var=no
8257       ;;
8258
8259     sysv4.3*)
8260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8261       hardcode_shlibpath_var=no
8262       export_dynamic_flag_spec='-Bexport'
8263       ;;
8264
8265     sysv4*MP*)
8266       if test -d /usr/nec; then
8267         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268         hardcode_shlibpath_var=no
8269         runpath_var=LD_RUN_PATH
8270         hardcode_runpath_var=yes
8271         ld_shlibs=yes
8272       fi
8273       ;;
8274
8275     sysv4.2uw2*)
8276       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8277       hardcode_direct=yes
8278       hardcode_minus_L=no
8279       hardcode_shlibpath_var=no
8280       hardcode_runpath_var=yes
8281       runpath_var=LD_RUN_PATH
8282       ;;
8283
8284    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8285       no_undefined_flag='${wl}-z ${wl}text'
8286       if test "$GCC" = yes; then
8287         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8288       else
8289         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8290       fi
8291       runpath_var='LD_RUN_PATH'
8292       hardcode_shlibpath_var=no
8293       ;;
8294
8295     sysv5*)
8296       no_undefined_flag=' -z text'
8297       # $CC -shared without GNU ld will not create a library from C++
8298       # object files and a static libstdc++, better avoid it by now
8299       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8301                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8302       hardcode_libdir_flag_spec=
8303       hardcode_shlibpath_var=no
8304       runpath_var='LD_RUN_PATH'
8305       ;;
8306
8307     uts4*)
8308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309       hardcode_libdir_flag_spec='-L$libdir'
8310       hardcode_shlibpath_var=no
8311       ;;
8312
8313     *)
8314       ld_shlibs=no
8315       ;;
8316     esac
8317   fi
8318
8319 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8320 echo "${ECHO_T}$ld_shlibs" >&6; }
8321 test "$ld_shlibs" = no && can_build_shared=no
8322
8323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8324 if test "$GCC" = yes; then
8325   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8326 fi
8327
8328 #
8329 # Do we need to explicitly link libc?
8330 #
8331 case "x$archive_cmds_need_lc" in
8332 x|xyes)
8333   # Assume -lc should be added
8334   archive_cmds_need_lc=yes
8335
8336   if test "$enable_shared" = yes && test "$GCC" = yes; then
8337     case $archive_cmds in
8338     *'~'*)
8339       # FIXME: we may have to deal with multi-command sequences.
8340       ;;
8341     '$CC '*)
8342       # Test whether the compiler implicitly links with -lc since on some
8343       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8344       # to ld, don't add -lc before -lgcc.
8345       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8346 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8347       $rm conftest*
8348       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8349
8350       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351   (eval $ac_compile) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } 2>conftest.err; then
8355         soname=conftest
8356         lib=conftest
8357         libobjs=conftest.$ac_objext
8358         deplibs=
8359         wl=$lt_prog_compiler_wl
8360         compiler_flags=-v
8361         linker_flags=-v
8362         verstring=
8363         output_objdir=.
8364         libname=conftest
8365         lt_save_allow_undefined_flag=$allow_undefined_flag
8366         allow_undefined_flag=
8367         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8368   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }
8372         then
8373           archive_cmds_need_lc=no
8374         else
8375           archive_cmds_need_lc=yes
8376         fi
8377         allow_undefined_flag=$lt_save_allow_undefined_flag
8378       else
8379         cat conftest.err 1>&5
8380       fi
8381       $rm conftest*
8382       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8383 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8384       ;;
8385     esac
8386   fi
8387   ;;
8388 esac
8389
8390 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8391 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8392 library_names_spec=
8393 libname_spec='lib$name'
8394 soname_spec=
8395 shrext_cmds=".so"
8396 postinstall_cmds=
8397 postuninstall_cmds=
8398 finish_cmds=
8399 finish_eval=
8400 shlibpath_var=
8401 shlibpath_overrides_runpath=unknown
8402 version_type=none
8403 dynamic_linker="$host_os ld.so"
8404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8405 if test "$GCC" = yes; then
8406   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8407   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8408     # if the path contains ";" then we assume it to be the separator
8409     # otherwise default to the standard path separator (i.e. ":") - it is
8410     # assumed that no part of a normal pathname contains ";" but that should
8411     # okay in the real world where ";" in dirpaths is itself problematic.
8412     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8413   else
8414     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8415   fi
8416 else
8417   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8418 fi
8419 need_lib_prefix=unknown
8420 hardcode_into_libs=no
8421
8422 # when you set need_version to no, make sure it does not cause -set_version
8423 # flags to be left without arguments
8424 need_version=unknown
8425
8426 case $host_os in
8427 aix3*)
8428   version_type=linux
8429   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8430   shlibpath_var=LIBPATH
8431
8432   # AIX 3 has no versioning support, so we append a major version to the name.
8433   soname_spec='${libname}${release}${shared_ext}$major'
8434   ;;
8435
8436 aix4* | aix5*)
8437   version_type=linux
8438   need_lib_prefix=no
8439   need_version=no
8440   hardcode_into_libs=yes
8441   if test "$host_cpu" = ia64; then
8442     # AIX 5 supports IA64
8443     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8444     shlibpath_var=LD_LIBRARY_PATH
8445   else
8446     # With GCC up to 2.95.x, collect2 would create an import file
8447     # for dependence libraries.  The import file would start with
8448     # the line `#! .'.  This would cause the generated library to
8449     # depend on `.', always an invalid library.  This was fixed in
8450     # development snapshots of GCC prior to 3.0.
8451     case $host_os in
8452       aix4 | aix4.[01] | aix4.[01].*)
8453       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8454            echo ' yes '
8455            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8456         :
8457       else
8458         can_build_shared=no
8459       fi
8460       ;;
8461     esac
8462     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8463     # soname into executable. Probably we can add versioning support to
8464     # collect2, so additional links can be useful in future.
8465     if test "$aix_use_runtimelinking" = yes; then
8466       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8467       # instead of lib<name>.a to let people know that these are not
8468       # typical AIX shared libraries.
8469       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8470     else
8471       # We preserve .a as extension for shared libraries through AIX4.2
8472       # and later when we are not doing run time linking.
8473       library_names_spec='${libname}${release}.a $libname.a'
8474       soname_spec='${libname}${release}${shared_ext}$major'
8475     fi
8476     shlibpath_var=LIBPATH
8477   fi
8478   ;;
8479
8480 amigaos*)
8481   library_names_spec='$libname.ixlibrary $libname.a'
8482   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8483   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'
8484   ;;
8485
8486 beos*)
8487   library_names_spec='${libname}${shared_ext}'
8488   dynamic_linker="$host_os ld.so"
8489   shlibpath_var=LIBRARY_PATH
8490   ;;
8491
8492 bsdi[45]*)
8493   version_type=linux
8494   need_version=no
8495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8496   soname_spec='${libname}${release}${shared_ext}$major'
8497   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8498   shlibpath_var=LD_LIBRARY_PATH
8499   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8500   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8501   # the default ld.so.conf also contains /usr/contrib/lib and
8502   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8503   # libtool to hard-code these into programs
8504   ;;
8505
8506 cygwin* | mingw* | pw32*)
8507   version_type=windows
8508   shrext_cmds=".dll"
8509   need_version=no
8510   need_lib_prefix=no
8511
8512   case $GCC,$host_os in
8513   yes,cygwin* | yes,mingw* | yes,pw32*)
8514     library_names_spec='$libname.dll.a'
8515     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8516     postinstall_cmds='base_file=`basename \${file}`~
8517       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8518       dldir=$destdir/`dirname \$dlpath`~
8519       test -d \$dldir || mkdir -p \$dldir~
8520       $install_prog $dir/$dlname \$dldir/$dlname~
8521       chmod a+x \$dldir/$dlname'
8522     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8523       dlpath=$dir/\$dldll~
8524        $rm \$dlpath'
8525     shlibpath_overrides_runpath=yes
8526
8527     case $host_os in
8528     cygwin*)
8529       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8530       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8531       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8532       ;;
8533     mingw*)
8534       # MinGW DLLs use traditional 'lib' prefix
8535       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8536       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8537       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8538         # It is most probably a Windows format PATH printed by
8539         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8540         # path with ; separators, and with drive letters. We can handle the
8541         # drive letters (cygwin fileutils understands them), so leave them,
8542         # especially as we might pass files found there to a mingw objdump,
8543         # which wouldn't understand a cygwinified path. Ahh.
8544         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8545       else
8546         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8547       fi
8548       ;;
8549     pw32*)
8550       # pw32 DLLs use 'pw' prefix rather than 'lib'
8551       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8552       ;;
8553     esac
8554     ;;
8555
8556   *)
8557     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8558     ;;
8559   esac
8560   dynamic_linker='Win32 ld.exe'
8561   # FIXME: first we should search . and the directory the executable is in
8562   shlibpath_var=PATH
8563   ;;
8564
8565 darwin* | rhapsody*)
8566   dynamic_linker="$host_os dyld"
8567   version_type=darwin
8568   need_lib_prefix=no
8569   need_version=no
8570   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8571   soname_spec='${libname}${release}${major}$shared_ext'
8572   shlibpath_overrides_runpath=yes
8573   shlibpath_var=DYLD_LIBRARY_PATH
8574   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8575   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8576   if test "$GCC" = yes; then
8577     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"`
8578   else
8579     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8580   fi
8581   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8582   ;;
8583
8584 dgux*)
8585   version_type=linux
8586   need_lib_prefix=no
8587   need_version=no
8588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8589   soname_spec='${libname}${release}${shared_ext}$major'
8590   shlibpath_var=LD_LIBRARY_PATH
8591   ;;
8592
8593 freebsd1*)
8594   dynamic_linker=no
8595   ;;
8596
8597 kfreebsd*-gnu)
8598   version_type=linux
8599   need_lib_prefix=no
8600   need_version=no
8601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8602   soname_spec='${libname}${release}${shared_ext}$major'
8603   shlibpath_var=LD_LIBRARY_PATH
8604   shlibpath_overrides_runpath=no
8605   hardcode_into_libs=yes
8606   dynamic_linker='GNU ld.so'
8607   ;;
8608
8609 freebsd* | dragonfly*)
8610   # DragonFly does not have aout.  When/if they implement a new
8611   # versioning mechanism, adjust this.
8612   if test -x /usr/bin/objformat; then
8613     objformat=`/usr/bin/objformat`
8614   else
8615     case $host_os in
8616     freebsd[123]*) objformat=aout ;;
8617     *) objformat=elf ;;
8618     esac
8619   fi
8620   version_type=freebsd-$objformat
8621   case $version_type in
8622     freebsd-elf*)
8623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8624       need_version=no
8625       need_lib_prefix=no
8626       ;;
8627     freebsd-*)
8628       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8629       need_version=yes
8630       ;;
8631   esac
8632   shlibpath_var=LD_LIBRARY_PATH
8633   case $host_os in
8634   freebsd2*)
8635     shlibpath_overrides_runpath=yes
8636     ;;
8637   freebsd3.[01]* | freebsdelf3.[01]*)
8638     shlibpath_overrides_runpath=yes
8639     hardcode_into_libs=yes
8640     ;;
8641   *) # from 3.2 on
8642     shlibpath_overrides_runpath=no
8643     hardcode_into_libs=yes
8644     ;;
8645   esac
8646   ;;
8647
8648 gnu*)
8649   version_type=linux
8650   need_lib_prefix=no
8651   need_version=no
8652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8653   soname_spec='${libname}${release}${shared_ext}$major'
8654   shlibpath_var=LD_LIBRARY_PATH
8655   hardcode_into_libs=yes
8656   ;;
8657
8658 hpux9* | hpux10* | hpux11*)
8659   # Give a soname corresponding to the major version so that dld.sl refuses to
8660   # link against other versions.
8661   version_type=sunos
8662   need_lib_prefix=no
8663   need_version=no
8664   case $host_cpu in
8665   ia64*)
8666     shrext_cmds='.so'
8667     hardcode_into_libs=yes
8668     dynamic_linker="$host_os dld.so"
8669     shlibpath_var=LD_LIBRARY_PATH
8670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672     soname_spec='${libname}${release}${shared_ext}$major'
8673     if test "X$HPUX_IA64_MODE" = X32; then
8674       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8675     else
8676       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8677     fi
8678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8679     ;;
8680    hppa*64*)
8681      shrext_cmds='.sl'
8682      hardcode_into_libs=yes
8683      dynamic_linker="$host_os dld.sl"
8684      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8685      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8686      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687      soname_spec='${libname}${release}${shared_ext}$major'
8688      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8689      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8690      ;;
8691    *)
8692     shrext_cmds='.sl'
8693     dynamic_linker="$host_os dld.sl"
8694     shlibpath_var=SHLIB_PATH
8695     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8697     soname_spec='${libname}${release}${shared_ext}$major'
8698     ;;
8699   esac
8700   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8701   postinstall_cmds='chmod 555 $lib'
8702   ;;
8703
8704 irix5* | irix6* | nonstopux*)
8705   case $host_os in
8706     nonstopux*) version_type=nonstopux ;;
8707     *)
8708         if test "$lt_cv_prog_gnu_ld" = yes; then
8709                 version_type=linux
8710         else
8711                 version_type=irix
8712         fi ;;
8713   esac
8714   need_lib_prefix=no
8715   need_version=no
8716   soname_spec='${libname}${release}${shared_ext}$major'
8717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8718   case $host_os in
8719   irix5* | nonstopux*)
8720     libsuff= shlibsuff=
8721     ;;
8722   *)
8723     case $LD in # libtool.m4 will add one of these switches to LD
8724     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8725       libsuff= shlibsuff= libmagic=32-bit;;
8726     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8727       libsuff=32 shlibsuff=N32 libmagic=N32;;
8728     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8729       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8730     *) libsuff= shlibsuff= libmagic=never-match;;
8731     esac
8732     ;;
8733   esac
8734   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8735   shlibpath_overrides_runpath=no
8736   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8737   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8738   hardcode_into_libs=yes
8739   ;;
8740
8741 # No shared lib support for Linux oldld, aout, or coff.
8742 linux*oldld* | linux*aout* | linux*coff*)
8743   dynamic_linker=no
8744   ;;
8745
8746 # This must be Linux ELF.
8747 linux*)
8748   version_type=linux
8749   need_lib_prefix=no
8750   need_version=no
8751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752   soname_spec='${libname}${release}${shared_ext}$major'
8753   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   shlibpath_overrides_runpath=no
8756   # This implies no fast_install, which is unacceptable.
8757   # Some rework will be needed to allow for fast_install
8758   # before this can be enabled.
8759   hardcode_into_libs=yes
8760
8761   # Append ld.so.conf contents to the search path
8762   if test -f /etc/ld.so.conf; then
8763     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8764     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8765   fi
8766
8767   # We used to test for /lib/ld.so.1 and disable shared libraries on
8768   # powerpc, because MkLinux only supported shared libraries with the
8769   # GNU dynamic linker.  Since this was broken with cross compilers,
8770   # most powerpc-linux boxes support dynamic linking these days and
8771   # people can always --disable-shared, the test was removed, and we
8772   # assume the GNU/Linux dynamic linker is in use.
8773   dynamic_linker='GNU/Linux ld.so'
8774   ;;
8775
8776 knetbsd*-gnu)
8777   version_type=linux
8778   need_lib_prefix=no
8779   need_version=no
8780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781   soname_spec='${libname}${release}${shared_ext}$major'
8782   shlibpath_var=LD_LIBRARY_PATH
8783   shlibpath_overrides_runpath=no
8784   hardcode_into_libs=yes
8785   dynamic_linker='GNU ld.so'
8786   ;;
8787
8788 netbsd*)
8789   version_type=sunos
8790   need_lib_prefix=no
8791   need_version=no
8792   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8794     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8795     dynamic_linker='NetBSD (a.out) ld.so'
8796   else
8797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8798     soname_spec='${libname}${release}${shared_ext}$major'
8799     dynamic_linker='NetBSD ld.elf_so'
8800   fi
8801   shlibpath_var=LD_LIBRARY_PATH
8802   shlibpath_overrides_runpath=yes
8803   hardcode_into_libs=yes
8804   ;;
8805
8806 newsos6)
8807   version_type=linux
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809   shlibpath_var=LD_LIBRARY_PATH
8810   shlibpath_overrides_runpath=yes
8811   ;;
8812
8813 nto-qnx*)
8814   version_type=linux
8815   need_lib_prefix=no
8816   need_version=no
8817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818   soname_spec='${libname}${release}${shared_ext}$major'
8819   shlibpath_var=LD_LIBRARY_PATH
8820   shlibpath_overrides_runpath=yes
8821   ;;
8822
8823 openbsd*)
8824   version_type=sunos
8825   need_lib_prefix=no
8826   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8827   case $host_os in
8828     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8829     *)                         need_version=no  ;;
8830   esac
8831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8832   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8833   shlibpath_var=LD_LIBRARY_PATH
8834   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8835     case $host_os in
8836       openbsd2.[89] | openbsd2.[89].*)
8837         shlibpath_overrides_runpath=no
8838         ;;
8839       *)
8840         shlibpath_overrides_runpath=yes
8841         ;;
8842       esac
8843   else
8844     shlibpath_overrides_runpath=yes
8845   fi
8846   ;;
8847
8848 os2*)
8849   libname_spec='$name'
8850   shrext_cmds=".dll"
8851   need_lib_prefix=no
8852   library_names_spec='$libname${shared_ext} $libname.a'
8853   dynamic_linker='OS/2 ld.exe'
8854   shlibpath_var=LIBPATH
8855   ;;
8856
8857 osf3* | osf4* | osf5*)
8858   version_type=osf
8859   need_lib_prefix=no
8860   need_version=no
8861   soname_spec='${libname}${release}${shared_ext}$major'
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863   shlibpath_var=LD_LIBRARY_PATH
8864   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8865   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8866   ;;
8867
8868 sco3.2v5*)
8869   version_type=osf
8870   soname_spec='${libname}${release}${shared_ext}$major'
8871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872   shlibpath_var=LD_LIBRARY_PATH
8873   ;;
8874
8875 solaris*)
8876   version_type=linux
8877   need_lib_prefix=no
8878   need_version=no
8879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880   soname_spec='${libname}${release}${shared_ext}$major'
8881   shlibpath_var=LD_LIBRARY_PATH
8882   shlibpath_overrides_runpath=yes
8883   hardcode_into_libs=yes
8884   # ldd complains unless libraries are executable
8885   postinstall_cmds='chmod +x $lib'
8886   ;;
8887
8888 sunos4*)
8889   version_type=sunos
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8891   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8892   shlibpath_var=LD_LIBRARY_PATH
8893   shlibpath_overrides_runpath=yes
8894   if test "$with_gnu_ld" = yes; then
8895     need_lib_prefix=no
8896   fi
8897   need_version=yes
8898   ;;
8899
8900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8901   version_type=linux
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903   soname_spec='${libname}${release}${shared_ext}$major'
8904   shlibpath_var=LD_LIBRARY_PATH
8905   case $host_vendor in
8906     sni)
8907       shlibpath_overrides_runpath=no
8908       need_lib_prefix=no
8909       export_dynamic_flag_spec='${wl}-Blargedynsym'
8910       runpath_var=LD_RUN_PATH
8911       ;;
8912     siemens)
8913       need_lib_prefix=no
8914       ;;
8915     motorola)
8916       need_lib_prefix=no
8917       need_version=no
8918       shlibpath_overrides_runpath=no
8919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8920       ;;
8921   esac
8922   ;;
8923
8924 sysv4*MP*)
8925   if test -d /usr/nec ;then
8926     version_type=linux
8927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8928     soname_spec='$libname${shared_ext}.$major'
8929     shlibpath_var=LD_LIBRARY_PATH
8930   fi
8931   ;;
8932
8933 uts4*)
8934   version_type=linux
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   ;;
8939
8940 *)
8941   dynamic_linker=no
8942   ;;
8943 esac
8944 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8945 echo "${ECHO_T}$dynamic_linker" >&6; }
8946 test "$dynamic_linker" = no && can_build_shared=no
8947
8948 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8949 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8950 hardcode_action=
8951 if test -n "$hardcode_libdir_flag_spec" || \
8952    test -n "$runpath_var" || \
8953    test "X$hardcode_automatic" = "Xyes" ; then
8954
8955   # We can hardcode non-existant directories.
8956   if test "$hardcode_direct" != no &&
8957      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8958      # have to relink, otherwise we might link with an installed library
8959      # when we should be linking with a yet-to-be-installed one
8960      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8961      test "$hardcode_minus_L" != no; then
8962     # Linking always hardcodes the temporary library directory.
8963     hardcode_action=relink
8964   else
8965     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8966     hardcode_action=immediate
8967   fi
8968 else
8969   # We cannot hardcode anything, or else we can only hardcode existing
8970   # directories.
8971   hardcode_action=unsupported
8972 fi
8973 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8974 echo "${ECHO_T}$hardcode_action" >&6; }
8975
8976 if test "$hardcode_action" = relink; then
8977   # Fast installation is not supported
8978   enable_fast_install=no
8979 elif test "$shlibpath_overrides_runpath" = yes ||
8980      test "$enable_shared" = no; then
8981   # Fast installation is not necessary
8982   enable_fast_install=needless
8983 fi
8984
8985 striplib=
8986 old_striplib=
8987 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8988 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8989 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8990   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8991   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8992   { echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6; }
8994 else
8995 # FIXME - insert some real tests, host_os isn't really good enough
8996   case $host_os in
8997    darwin*)
8998        if test -n "$STRIP" ; then
8999          striplib="$STRIP -x"
9000          { echo "$as_me:$LINENO: result: yes" >&5
9001 echo "${ECHO_T}yes" >&6; }
9002        else
9003   { echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6; }
9005 fi
9006        ;;
9007    *)
9008   { echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6; }
9010     ;;
9011   esac
9012 fi
9013
9014 if test "x$enable_dlopen" != xyes; then
9015   enable_dlopen=unknown
9016   enable_dlopen_self=unknown
9017   enable_dlopen_self_static=unknown
9018 else
9019   lt_cv_dlopen=no
9020   lt_cv_dlopen_libs=
9021
9022   case $host_os in
9023   beos*)
9024     lt_cv_dlopen="load_add_on"
9025     lt_cv_dlopen_libs=
9026     lt_cv_dlopen_self=yes
9027     ;;
9028
9029   mingw* | pw32*)
9030     lt_cv_dlopen="LoadLibrary"
9031     lt_cv_dlopen_libs=
9032    ;;
9033
9034   cygwin*)
9035     lt_cv_dlopen="dlopen"
9036     lt_cv_dlopen_libs=
9037    ;;
9038
9039   darwin*)
9040   # if libdl is installed we need to link against it
9041     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9042 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   ac_check_lib_save_LIBS=$LIBS
9047 LIBS="-ldl  $LIBS"
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054
9055 /* Override any GCC internal prototype to avoid an error.
9056    Use char because int might match the return type of a GCC
9057    builtin and then its argument prototype would still apply.  */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char dlopen ();
9062 int
9063 main ()
9064 {
9065 return dlopen ();
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9072 case "(($ac_try" in
9073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074   *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077   (eval "$ac_link") 2>conftest.er1
9078   ac_status=$?
9079   grep -v '^ *+' conftest.er1 >conftest.err
9080   rm -f conftest.er1
9081   cat conftest.err >&5
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); } && {
9084          test -z "$ac_c_werror_flag" ||
9085          test ! -s conftest.err
9086        } && test -s conftest$ac_exeext &&
9087        $as_test_x conftest$ac_exeext; then
9088   ac_cv_lib_dl_dlopen=yes
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093         ac_cv_lib_dl_dlopen=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097       conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9101 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9102 if test $ac_cv_lib_dl_dlopen = yes; then
9103   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9104 else
9105
9106     lt_cv_dlopen="dyld"
9107     lt_cv_dlopen_libs=
9108     lt_cv_dlopen_self=yes
9109
9110 fi
9111
9112    ;;
9113
9114   *)
9115     { echo "$as_me:$LINENO: checking for shl_load" >&5
9116 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9117 if test "${ac_cv_func_shl_load+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9128 #define shl_load innocuous_shl_load
9129
9130 /* System header to define __stub macros and hopefully few prototypes,
9131     which can conflict with char shl_load (); below.
9132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9133     <limits.h> exists even on freestanding compilers.  */
9134
9135 #ifdef __STDC__
9136 # include <limits.h>
9137 #else
9138 # include <assert.h>
9139 #endif
9140
9141 #undef shl_load
9142
9143 /* Override any GCC internal prototype to avoid an error.
9144    Use char because int might match the return type of a GCC
9145    builtin and then its argument prototype would still apply.  */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 char shl_load ();
9150 /* The GNU C library defines this for functions which it implements
9151     to always fail with ENOSYS.  Some functions are actually named
9152     something starting with __ and the normal name is an alias.  */
9153 #if defined __stub_shl_load || defined __stub___shl_load
9154 choke me
9155 #endif
9156
9157 int
9158 main ()
9159 {
9160 return shl_load ();
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (ac_try="$ac_link"
9167 case "(($ac_try" in
9168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169   *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172   (eval "$ac_link") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_c_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest$ac_exeext &&
9182        $as_test_x conftest$ac_exeext; then
9183   ac_cv_func_shl_load=yes
9184 else
9185   echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188         ac_cv_func_shl_load=no
9189 fi
9190
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192       conftest$ac_exeext conftest.$ac_ext
9193 fi
9194 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9195 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9196 if test $ac_cv_func_shl_load = yes; then
9197   lt_cv_dlopen="shl_load"
9198 else
9199   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9200 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9201 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   ac_check_lib_save_LIBS=$LIBS
9205 LIBS="-ldld  $LIBS"
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h.  */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h.  */
9212
9213 /* Override any GCC internal prototype to avoid an error.
9214    Use char because int might match the return type of a GCC
9215    builtin and then its argument prototype would still apply.  */
9216 #ifdef __cplusplus
9217 extern "C"
9218 #endif
9219 char shl_load ();
9220 int
9221 main ()
9222 {
9223 return shl_load ();
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (ac_try="$ac_link"
9230 case "(($ac_try" in
9231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232   *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235   (eval "$ac_link") 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } && {
9242          test -z "$ac_c_werror_flag" ||
9243          test ! -s conftest.err
9244        } && test -s conftest$ac_exeext &&
9245        $as_test_x conftest$ac_exeext; then
9246   ac_cv_lib_dld_shl_load=yes
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         ac_cv_lib_dld_shl_load=no
9252 fi
9253
9254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9255       conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9259 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9260 if test $ac_cv_lib_dld_shl_load = yes; then
9261   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9262 else
9263   { echo "$as_me:$LINENO: checking for dlopen" >&5
9264 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9265 if test "${ac_cv_func_dlopen+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9276 #define dlopen innocuous_dlopen
9277
9278 /* System header to define __stub macros and hopefully few prototypes,
9279     which can conflict with char dlopen (); below.
9280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9281     <limits.h> exists even on freestanding compilers.  */
9282
9283 #ifdef __STDC__
9284 # include <limits.h>
9285 #else
9286 # include <assert.h>
9287 #endif
9288
9289 #undef dlopen
9290
9291 /* Override any GCC internal prototype to avoid an error.
9292    Use char because int might match the return type of a GCC
9293    builtin and then its argument prototype would still apply.  */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char dlopen ();
9298 /* The GNU C library defines this for functions which it implements
9299     to always fail with ENOSYS.  Some functions are actually named
9300     something starting with __ and the normal name is an alias.  */
9301 #if defined __stub_dlopen || defined __stub___dlopen
9302 choke me
9303 #endif
9304
9305 int
9306 main ()
9307 {
9308 return dlopen ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_link") 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } && {
9327          test -z "$ac_c_werror_flag" ||
9328          test ! -s conftest.err
9329        } && test -s conftest$ac_exeext &&
9330        $as_test_x conftest$ac_exeext; then
9331   ac_cv_func_dlopen=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336         ac_cv_func_dlopen=no
9337 fi
9338
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340       conftest$ac_exeext conftest.$ac_ext
9341 fi
9342 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9344 if test $ac_cv_func_dlopen = yes; then
9345   lt_cv_dlopen="dlopen"
9346 else
9347   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-ldl  $LIBS"
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362    Use char because int might match the return type of a GCC
9363    builtin and then its argument prototype would still apply.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char dlopen ();
9368 int
9369 main ()
9370 {
9371 return dlopen ();
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (ac_try="$ac_link"
9378 case "(($ac_try" in
9379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380   *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383   (eval "$ac_link") 2>conftest.er1
9384   ac_status=$?
9385   grep -v '^ *+' conftest.er1 >conftest.err
9386   rm -f conftest.er1
9387   cat conftest.err >&5
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); } && {
9390          test -z "$ac_c_werror_flag" ||
9391          test ! -s conftest.err
9392        } && test -s conftest$ac_exeext &&
9393        $as_test_x conftest$ac_exeext; then
9394   ac_cv_lib_dl_dlopen=yes
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399         ac_cv_lib_dl_dlopen=no
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403       conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9405 fi
9406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9408 if test $ac_cv_lib_dl_dlopen = yes; then
9409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9410 else
9411   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   ac_check_lib_save_LIBS=$LIBS
9417 LIBS="-lsvld  $LIBS"
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424
9425 /* Override any GCC internal prototype to avoid an error.
9426    Use char because int might match the return type of a GCC
9427    builtin and then its argument prototype would still apply.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 char dlopen ();
9432 int
9433 main ()
9434 {
9435 return dlopen ();
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_link") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest$ac_exeext &&
9457        $as_test_x conftest$ac_exeext; then
9458   ac_cv_lib_svld_dlopen=yes
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463         ac_cv_lib_svld_dlopen=no
9464 fi
9465
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467       conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9469 fi
9470 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9471 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9472 if test $ac_cv_lib_svld_dlopen = yes; then
9473   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9474 else
9475   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9476 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-ldld  $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any GCC internal prototype to avoid an error.
9490    Use char because int might match the return type of a GCC
9491    builtin and then its argument prototype would still apply.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char dld_link ();
9496 int
9497 main ()
9498 {
9499 return dld_link ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest$ac_exeext &&
9521        $as_test_x conftest$ac_exeext; then
9522   ac_cv_lib_dld_dld_link=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527         ac_cv_lib_dld_dld_link=no
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531       conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9533 fi
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9536 if test $ac_cv_lib_dld_dld_link = yes; then
9537   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9538 fi
9539
9540
9541 fi
9542
9543
9544 fi
9545
9546
9547 fi
9548
9549
9550 fi
9551
9552
9553 fi
9554
9555     ;;
9556   esac
9557
9558   if test "x$lt_cv_dlopen" != xno; then
9559     enable_dlopen=yes
9560   else
9561     enable_dlopen=no
9562   fi
9563
9564   case $lt_cv_dlopen in
9565   dlopen)
9566     save_CPPFLAGS="$CPPFLAGS"
9567     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9568
9569     save_LDFLAGS="$LDFLAGS"
9570     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9571
9572     save_LIBS="$LIBS"
9573     LIBS="$lt_cv_dlopen_libs $LIBS"
9574
9575     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9577 if test "${lt_cv_dlopen_self+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580           if test "$cross_compiling" = yes; then :
9581   lt_cv_dlopen_self=cross
9582 else
9583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9584   lt_status=$lt_dlunknown
9585   cat > conftest.$ac_ext <<EOF
9586 #line 9586 "configure"
9587 #include "confdefs.h"
9588
9589 #if HAVE_DLFCN_H
9590 #include <dlfcn.h>
9591 #endif
9592
9593 #include <stdio.h>
9594
9595 #ifdef RTLD_GLOBAL
9596 #  define LT_DLGLOBAL           RTLD_GLOBAL
9597 #else
9598 #  ifdef DL_GLOBAL
9599 #    define LT_DLGLOBAL         DL_GLOBAL
9600 #  else
9601 #    define LT_DLGLOBAL         0
9602 #  endif
9603 #endif
9604
9605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9606    find out it does not work in some platform. */
9607 #ifndef LT_DLLAZY_OR_NOW
9608 #  ifdef RTLD_LAZY
9609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9610 #  else
9611 #    ifdef DL_LAZY
9612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9613 #    else
9614 #      ifdef RTLD_NOW
9615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9616 #      else
9617 #        ifdef DL_NOW
9618 #          define LT_DLLAZY_OR_NOW      DL_NOW
9619 #        else
9620 #          define LT_DLLAZY_OR_NOW      0
9621 #        endif
9622 #      endif
9623 #    endif
9624 #  endif
9625 #endif
9626
9627 #ifdef __cplusplus
9628 extern "C" void exit (int);
9629 #endif
9630
9631 void fnord() { int i=42;}
9632 int main ()
9633 {
9634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9635   int status = $lt_dlunknown;
9636
9637   if (self)
9638     {
9639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9641       /* dlclose (self); */
9642     }
9643
9644     exit (status);
9645 }
9646 EOF
9647   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648   (eval $ac_link) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9652     (./conftest; exit; ) >&5 2>/dev/null
9653     lt_status=$?
9654     case x$lt_status in
9655       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9656       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9657       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9658     esac
9659   else :
9660     # compilation failed
9661     lt_cv_dlopen_self=no
9662   fi
9663 fi
9664 rm -fr conftest*
9665
9666
9667 fi
9668 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9670
9671     if test "x$lt_cv_dlopen_self" = xyes; then
9672       LDFLAGS="$LDFLAGS $link_static_flag"
9673       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9675 if test "${lt_cv_dlopen_self_static+set}" = set; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678           if test "$cross_compiling" = yes; then :
9679   lt_cv_dlopen_self_static=cross
9680 else
9681   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9682   lt_status=$lt_dlunknown
9683   cat > conftest.$ac_ext <<EOF
9684 #line 9684 "configure"
9685 #include "confdefs.h"
9686
9687 #if HAVE_DLFCN_H
9688 #include <dlfcn.h>
9689 #endif
9690
9691 #include <stdio.h>
9692
9693 #ifdef RTLD_GLOBAL
9694 #  define LT_DLGLOBAL           RTLD_GLOBAL
9695 #else
9696 #  ifdef DL_GLOBAL
9697 #    define LT_DLGLOBAL         DL_GLOBAL
9698 #  else
9699 #    define LT_DLGLOBAL         0
9700 #  endif
9701 #endif
9702
9703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9704    find out it does not work in some platform. */
9705 #ifndef LT_DLLAZY_OR_NOW
9706 #  ifdef RTLD_LAZY
9707 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9708 #  else
9709 #    ifdef DL_LAZY
9710 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9711 #    else
9712 #      ifdef RTLD_NOW
9713 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9714 #      else
9715 #        ifdef DL_NOW
9716 #          define LT_DLLAZY_OR_NOW      DL_NOW
9717 #        else
9718 #          define LT_DLLAZY_OR_NOW      0
9719 #        endif
9720 #      endif
9721 #    endif
9722 #  endif
9723 #endif
9724
9725 #ifdef __cplusplus
9726 extern "C" void exit (int);
9727 #endif
9728
9729 void fnord() { int i=42;}
9730 int main ()
9731 {
9732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9733   int status = $lt_dlunknown;
9734
9735   if (self)
9736     {
9737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9739       /* dlclose (self); */
9740     }
9741
9742     exit (status);
9743 }
9744 EOF
9745   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746   (eval $ac_link) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9750     (./conftest; exit; ) >&5 2>/dev/null
9751     lt_status=$?
9752     case x$lt_status in
9753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9755       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9756     esac
9757   else :
9758     # compilation failed
9759     lt_cv_dlopen_self_static=no
9760   fi
9761 fi
9762 rm -fr conftest*
9763
9764
9765 fi
9766 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9768     fi
9769
9770     CPPFLAGS="$save_CPPFLAGS"
9771     LDFLAGS="$save_LDFLAGS"
9772     LIBS="$save_LIBS"
9773     ;;
9774   esac
9775
9776   case $lt_cv_dlopen_self in
9777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9778   *) enable_dlopen_self=unknown ;;
9779   esac
9780
9781   case $lt_cv_dlopen_self_static in
9782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9783   *) enable_dlopen_self_static=unknown ;;
9784   esac
9785 fi
9786
9787
9788 # Report which librarie types wil actually be built
9789 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9790 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9791 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9792 echo "${ECHO_T}$can_build_shared" >&6; }
9793
9794 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9795 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9796 test "$can_build_shared" = "no" && enable_shared=no
9797
9798 # On AIX, shared libraries and static libraries use the same namespace, and
9799 # are all built from PIC.
9800 case $host_os in
9801 aix3*)
9802   test "$enable_shared" = yes && enable_static=no
9803   if test -n "$RANLIB"; then
9804     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9805     postinstall_cmds='$RANLIB $lib'
9806   fi
9807   ;;
9808
9809 aix4* | aix5*)
9810   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9811     test "$enable_shared" = yes && enable_static=no
9812   fi
9813     ;;
9814 esac
9815 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9816 echo "${ECHO_T}$enable_shared" >&6; }
9817
9818 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9819 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9820 # Make sure either enable_shared or enable_static is yes.
9821 test "$enable_shared" = yes || enable_static=yes
9822 { echo "$as_me:$LINENO: result: $enable_static" >&5
9823 echo "${ECHO_T}$enable_static" >&6; }
9824
9825 # The else clause should only fire when bootstrapping the
9826 # libtool distribution, otherwise you forgot to ship ltmain.sh
9827 # with your package, and you will get complaints that there are
9828 # no rules to generate ltmain.sh.
9829 if test -f "$ltmain"; then
9830   # See if we are running on zsh, and set the options which allow our commands through
9831   # without removal of \ escapes.
9832   if test -n "${ZSH_VERSION+set}" ; then
9833     setopt NO_GLOB_SUBST
9834   fi
9835   # Now quote all the things that may contain metacharacters while being
9836   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9837   # variables and quote the copies for generation of the libtool script.
9838   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9839     SED SHELL STRIP \
9840     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9841     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9842     deplibs_check_method reload_flag reload_cmds need_locks \
9843     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9844     lt_cv_sys_global_symbol_to_c_name_address \
9845     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9846     old_postinstall_cmds old_postuninstall_cmds \
9847     compiler \
9848     CC \
9849     LD \
9850     lt_prog_compiler_wl \
9851     lt_prog_compiler_pic \
9852     lt_prog_compiler_static \
9853     lt_prog_compiler_no_builtin_flag \
9854     export_dynamic_flag_spec \
9855     thread_safe_flag_spec \
9856     whole_archive_flag_spec \
9857     enable_shared_with_static_runtimes \
9858     old_archive_cmds \
9859     old_archive_from_new_cmds \
9860     predep_objects \
9861     postdep_objects \
9862     predeps \
9863     postdeps \
9864     compiler_lib_search_path \
9865     archive_cmds \
9866     archive_expsym_cmds \
9867     postinstall_cmds \
9868     postuninstall_cmds \
9869     old_archive_from_expsyms_cmds \
9870     allow_undefined_flag \
9871     no_undefined_flag \
9872     export_symbols_cmds \
9873     hardcode_libdir_flag_spec \
9874     hardcode_libdir_flag_spec_ld \
9875     hardcode_libdir_separator \
9876     hardcode_automatic \
9877     module_cmds \
9878     module_expsym_cmds \
9879     lt_cv_prog_compiler_c_o \
9880     exclude_expsyms \
9881     include_expsyms; do
9882
9883     case $var in
9884     old_archive_cmds | \
9885     old_archive_from_new_cmds | \
9886     archive_cmds | \
9887     archive_expsym_cmds | \
9888     module_cmds | \
9889     module_expsym_cmds | \
9890     old_archive_from_expsyms_cmds | \
9891     export_symbols_cmds | \
9892     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9893     postinstall_cmds | postuninstall_cmds | \
9894     old_postinstall_cmds | old_postuninstall_cmds | \
9895     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9896       # Double-quote double-evaled strings.
9897       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9898       ;;
9899     *)
9900       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9901       ;;
9902     esac
9903   done
9904
9905   case $lt_echo in
9906   *'\$0 --fallback-echo"')
9907     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9908     ;;
9909   esac
9910
9911 cfgfile="${ofile}T"
9912   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9913   $rm -f "$cfgfile"
9914   { echo "$as_me:$LINENO: creating $ofile" >&5
9915 echo "$as_me: creating $ofile" >&6;}
9916
9917   cat <<__EOF__ >> "$cfgfile"
9918 #! $SHELL
9919
9920 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9921 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9923 #
9924 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9925 # Free Software Foundation, Inc.
9926 #
9927 # This file is part of GNU Libtool:
9928 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9929 #
9930 # This program is free software; you can redistribute it and/or modify
9931 # it under the terms of the GNU General Public License as published by
9932 # the Free Software Foundation; either version 2 of the License, or
9933 # (at your option) any later version.
9934 #
9935 # This program is distributed in the hope that it will be useful, but
9936 # WITHOUT ANY WARRANTY; without even the implied warranty of
9937 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9938 # General Public License for more details.
9939 #
9940 # You should have received a copy of the GNU General Public License
9941 # along with this program; if not, write to the Free Software
9942 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9943 #
9944 # As a special exception to the GNU General Public License, if you
9945 # distribute this file as part of a program that contains a
9946 # configuration script generated by Autoconf, you may include it under
9947 # the same distribution terms that you use for the rest of that program.
9948
9949 # A sed program that does not truncate output.
9950 SED=$lt_SED
9951
9952 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9953 Xsed="$SED -e 1s/^X//"
9954
9955 # The HP-UX ksh and POSIX shell print the target directory to stdout
9956 # if CDPATH is set.
9957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9958
9959 # The names of the tagged configurations supported by this script.
9960 available_tags=
9961
9962 # ### BEGIN LIBTOOL CONFIG
9963
9964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9965
9966 # Shell to use when invoking shell scripts.
9967 SHELL=$lt_SHELL
9968
9969 # Whether or not to build shared libraries.
9970 build_libtool_libs=$enable_shared
9971
9972 # Whether or not to build static libraries.
9973 build_old_libs=$enable_static
9974
9975 # Whether or not to add -lc for building shared libraries.
9976 build_libtool_need_lc=$archive_cmds_need_lc
9977
9978 # Whether or not to disallow shared libs when runtime libs are static
9979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9980
9981 # Whether or not to optimize for fast installation.
9982 fast_install=$enable_fast_install
9983
9984 # The host system.
9985 host_alias=$host_alias
9986 host=$host
9987 host_os=$host_os
9988
9989 # The build system.
9990 build_alias=$build_alias
9991 build=$build
9992 build_os=$build_os
9993
9994 # An echo program that does not interpret backslashes.
9995 echo=$lt_echo
9996
9997 # The archiver.
9998 AR=$lt_AR
9999 AR_FLAGS=$lt_AR_FLAGS
10000
10001 # A C compiler.
10002 LTCC=$lt_LTCC
10003
10004 # A language-specific compiler.
10005 CC=$lt_compiler
10006
10007 # Is the compiler the GNU C compiler?
10008 with_gcc=$GCC
10009
10010 # An ERE matcher.
10011 EGREP=$lt_EGREP
10012
10013 # The linker used to build libraries.
10014 LD=$lt_LD
10015
10016 # Whether we need hard or soft links.
10017 LN_S=$lt_LN_S
10018
10019 # A BSD-compatible nm program.
10020 NM=$lt_NM
10021
10022 # A symbol stripping program
10023 STRIP=$lt_STRIP
10024
10025 # Used to examine libraries when file_magic_cmd begins "file"
10026 MAGIC_CMD=$MAGIC_CMD
10027
10028 # Used on cygwin: DLL creation program.
10029 DLLTOOL="$DLLTOOL"
10030
10031 # Used on cygwin: object dumper.
10032 OBJDUMP="$OBJDUMP"
10033
10034 # Used on cygwin: assembler.
10035 AS="$AS"
10036
10037 # The name of the directory that contains temporary libtool files.
10038 objdir=$objdir
10039
10040 # How to create reloadable object files.
10041 reload_flag=$lt_reload_flag
10042 reload_cmds=$lt_reload_cmds
10043
10044 # How to pass a linker flag through the compiler.
10045 wl=$lt_lt_prog_compiler_wl
10046
10047 # Object file suffix (normally "o").
10048 objext="$ac_objext"
10049
10050 # Old archive suffix (normally "a").
10051 libext="$libext"
10052
10053 # Shared library suffix (normally ".so").
10054 shrext_cmds='$shrext_cmds'
10055
10056 # Executable file suffix (normally "").
10057 exeext="$exeext"
10058
10059 # Additional compiler flags for building library objects.
10060 pic_flag=$lt_lt_prog_compiler_pic
10061 pic_mode=$pic_mode
10062
10063 # What is the maximum length of a command?
10064 max_cmd_len=$lt_cv_sys_max_cmd_len
10065
10066 # Does compiler simultaneously support -c and -o options?
10067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10068
10069 # Must we lock files when doing compilation?
10070 need_locks=$lt_need_locks
10071
10072 # Do we need the lib prefix for modules?
10073 need_lib_prefix=$need_lib_prefix
10074
10075 # Do we need a version for libraries?
10076 need_version=$need_version
10077
10078 # Whether dlopen is supported.
10079 dlopen_support=$enable_dlopen
10080
10081 # Whether dlopen of programs is supported.
10082 dlopen_self=$enable_dlopen_self
10083
10084 # Whether dlopen of statically linked programs is supported.
10085 dlopen_self_static=$enable_dlopen_self_static
10086
10087 # Compiler flag to prevent dynamic linking.
10088 link_static_flag=$lt_lt_prog_compiler_static
10089
10090 # Compiler flag to turn off builtin functions.
10091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10092
10093 # Compiler flag to allow reflexive dlopens.
10094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10095
10096 # Compiler flag to generate shared objects directly from archives.
10097 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10098
10099 # Compiler flag to generate thread-safe objects.
10100 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10101
10102 # Library versioning type.
10103 version_type=$version_type
10104
10105 # Format of library name prefix.
10106 libname_spec=$lt_libname_spec
10107
10108 # List of archive names.  First name is the real one, the rest are links.
10109 # The last name is the one that the linker finds with -lNAME.
10110 library_names_spec=$lt_library_names_spec
10111
10112 # The coded name of the library, if different from the real name.
10113 soname_spec=$lt_soname_spec
10114
10115 # Commands used to build and install an old-style archive.
10116 RANLIB=$lt_RANLIB
10117 old_archive_cmds=$lt_old_archive_cmds
10118 old_postinstall_cmds=$lt_old_postinstall_cmds
10119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10120
10121 # Create an old-style archive from a shared archive.
10122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10123
10124 # Create a temporary old-style archive to link instead of a shared archive.
10125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10126
10127 # Commands used to build and install a shared archive.
10128 archive_cmds=$lt_archive_cmds
10129 archive_expsym_cmds=$lt_archive_expsym_cmds
10130 postinstall_cmds=$lt_postinstall_cmds
10131 postuninstall_cmds=$lt_postuninstall_cmds
10132
10133 # Commands used to build a loadable module (assumed same as above if empty)
10134 module_cmds=$lt_module_cmds
10135 module_expsym_cmds=$lt_module_expsym_cmds
10136
10137 # Commands to strip libraries.
10138 old_striplib=$lt_old_striplib
10139 striplib=$lt_striplib
10140
10141 # Dependencies to place before the objects being linked to create a
10142 # shared library.
10143 predep_objects=$lt_predep_objects
10144
10145 # Dependencies to place after the objects being linked to create a
10146 # shared library.
10147 postdep_objects=$lt_postdep_objects
10148
10149 # Dependencies to place before the objects being linked to create a
10150 # shared library.
10151 predeps=$lt_predeps
10152
10153 # Dependencies to place after the objects being linked to create a
10154 # shared library.
10155 postdeps=$lt_postdeps
10156
10157 # The library search path used internally by the compiler when linking
10158 # a shared library.
10159 compiler_lib_search_path=$lt_compiler_lib_search_path
10160
10161 # Method to check whether dependent libraries are shared objects.
10162 deplibs_check_method=$lt_deplibs_check_method
10163
10164 # Command to use when deplibs_check_method == file_magic.
10165 file_magic_cmd=$lt_file_magic_cmd
10166
10167 # Flag that allows shared libraries with undefined symbols to be built.
10168 allow_undefined_flag=$lt_allow_undefined_flag
10169
10170 # Flag that forces no undefined symbols.
10171 no_undefined_flag=$lt_no_undefined_flag
10172
10173 # Commands used to finish a libtool library installation in a directory.
10174 finish_cmds=$lt_finish_cmds
10175
10176 # Same as above, but a single script fragment to be evaled but not shown.
10177 finish_eval=$lt_finish_eval
10178
10179 # Take the output of nm and produce a listing of raw symbols and C names.
10180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10181
10182 # Transform the output of nm in a proper C declaration
10183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10184
10185 # Transform the output of nm in a C name address pair
10186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10187
10188 # This is the shared library runtime path variable.
10189 runpath_var=$runpath_var
10190
10191 # This is the shared library path variable.
10192 shlibpath_var=$shlibpath_var
10193
10194 # Is shlibpath searched before the hard-coded library search path?
10195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10196
10197 # How to hardcode a shared library path into an executable.
10198 hardcode_action=$hardcode_action
10199
10200 # Whether we should hardcode library paths into libraries.
10201 hardcode_into_libs=$hardcode_into_libs
10202
10203 # Flag to hardcode \$libdir into a binary during linking.
10204 # This must work even if \$libdir does not exist.
10205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10206
10207 # If ld is used when linking, flag to hardcode \$libdir into
10208 # a binary during linking. This must work even if \$libdir does
10209 # not exist.
10210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10211
10212 # Whether we need a single -rpath flag with a separated argument.
10213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10214
10215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10216 # resulting binary.
10217 hardcode_direct=$hardcode_direct
10218
10219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10220 # resulting binary.
10221 hardcode_minus_L=$hardcode_minus_L
10222
10223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10224 # the resulting binary.
10225 hardcode_shlibpath_var=$hardcode_shlibpath_var
10226
10227 # Set to yes if building a shared library automatically hardcodes DIR into the library
10228 # and all subsequent libraries and executables linked against it.
10229 hardcode_automatic=$hardcode_automatic
10230
10231 # Variables whose values should be saved in libtool wrapper scripts and
10232 # restored at relink time.
10233 variables_saved_for_relink="$variables_saved_for_relink"
10234
10235 # Whether libtool must link a program against all its dependency libraries.
10236 link_all_deplibs=$link_all_deplibs
10237
10238 # Compile-time system search path for libraries
10239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10240
10241 # Run-time system search path for libraries
10242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10243
10244 # Fix the shell variable \$srcfile for the compiler.
10245 fix_srcfile_path="$fix_srcfile_path"
10246
10247 # Set to yes if exported symbols are required.
10248 always_export_symbols=$always_export_symbols
10249
10250 # The commands to list exported symbols.
10251 export_symbols_cmds=$lt_export_symbols_cmds
10252
10253 # The commands to extract the exported symbol list from a shared archive.
10254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10255
10256 # Symbols that should not be listed in the preloaded symbols.
10257 exclude_expsyms=$lt_exclude_expsyms
10258
10259 # Symbols that must always be exported.
10260 include_expsyms=$lt_include_expsyms
10261
10262 # ### END LIBTOOL CONFIG
10263
10264 __EOF__
10265
10266
10267   case $host_os in
10268   aix3*)
10269     cat <<\EOF >> "$cfgfile"
10270
10271 # AIX sometimes has problems with the GCC collect2 program.  For some
10272 # reason, if we set the COLLECT_NAMES environment variable, the problems
10273 # vanish in a puff of smoke.
10274 if test "X${COLLECT_NAMES+set}" != Xset; then
10275   COLLECT_NAMES=
10276   export COLLECT_NAMES
10277 fi
10278 EOF
10279     ;;
10280   esac
10281
10282   # We use sed instead of cat because bash on DJGPP gets confused if
10283   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10284   # text mode, it properly converts lines to CR/LF.  This bash problem
10285   # is reportedly fixed, but why not run on old versions too?
10286   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10287
10288   mv -f "$cfgfile" "$ofile" || \
10289     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10290   chmod +x "$ofile"
10291
10292 else
10293   # If there is no Makefile yet, we rely on a make rule to execute
10294   # `config.status --recheck' to rerun these tests and create the
10295   # libtool script then.
10296   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10297   if test -f "$ltmain_in"; then
10298     test -f Makefile && make "$ltmain"
10299   fi
10300 fi
10301
10302
10303 ac_ext=c
10304 ac_cpp='$CPP $CPPFLAGS'
10305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10308
10309 CC="$lt_save_CC"
10310
10311
10312 # Check whether --with-tags was given.
10313 if test "${with_tags+set}" = set; then
10314   withval=$with_tags; tagnames="$withval"
10315 fi
10316
10317
10318 if test -f "$ltmain" && test -n "$tagnames"; then
10319   if test ! -f "${ofile}"; then
10320     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10321 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10322   fi
10323
10324   if test -z "$LTCC"; then
10325     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10326     if test -z "$LTCC"; then
10327       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10328 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10329     else
10330       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10331 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10332     fi
10333   fi
10334
10335   # Extract list of available tagged configurations in $ofile.
10336   # Note that this assumes the entire list is on one line.
10337   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10338
10339   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10340   for tagname in $tagnames; do
10341     IFS="$lt_save_ifs"
10342     # Check whether tagname contains only valid characters
10343     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10344     "") ;;
10345     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10346 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10347    { (exit 1); exit 1; }; }
10348         ;;
10349     esac
10350
10351     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10352     then
10353       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10354 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10355    { (exit 1); exit 1; }; }
10356     fi
10357
10358     # Update the list of available tags.
10359     if test -n "$tagname"; then
10360       echo appending configuration tag \"$tagname\" to $ofile
10361
10362       case $tagname in
10363       CXX)
10364         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10365             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10366             (test "X$CXX" != "Xg++"))) ; then
10367           ac_ext=cpp
10368 ac_cpp='$CXXCPP $CPPFLAGS'
10369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10372
10373
10374
10375
10376 archive_cmds_need_lc_CXX=no
10377 allow_undefined_flag_CXX=
10378 always_export_symbols_CXX=no
10379 archive_expsym_cmds_CXX=
10380 export_dynamic_flag_spec_CXX=
10381 hardcode_direct_CXX=no
10382 hardcode_libdir_flag_spec_CXX=
10383 hardcode_libdir_flag_spec_ld_CXX=
10384 hardcode_libdir_separator_CXX=
10385 hardcode_minus_L_CXX=no
10386 hardcode_automatic_CXX=no
10387 module_cmds_CXX=
10388 module_expsym_cmds_CXX=
10389 link_all_deplibs_CXX=unknown
10390 old_archive_cmds_CXX=$old_archive_cmds
10391 no_undefined_flag_CXX=
10392 whole_archive_flag_spec_CXX=
10393 enable_shared_with_static_runtimes_CXX=no
10394
10395 # Dependencies to place before and after the object being linked:
10396 predep_objects_CXX=
10397 postdep_objects_CXX=
10398 predeps_CXX=
10399 postdeps_CXX=
10400 compiler_lib_search_path_CXX=
10401
10402 # Source file extension for C++ test sources.
10403 ac_ext=cpp
10404
10405 # Object file extension for compiled C++ test sources.
10406 objext=o
10407 objext_CXX=$objext
10408
10409 # Code to be used in simple compile tests
10410 lt_simple_compile_test_code="int some_variable = 0;\n"
10411
10412 # Code to be used in simple link tests
10413 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10414
10415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10416
10417 # If no C compiler was specified, use CC.
10418 LTCC=${LTCC-"$CC"}
10419
10420 # Allow CC to be a program name with arguments.
10421 compiler=$CC
10422
10423
10424 # save warnings/boilerplate of simple test code
10425 ac_outfile=conftest.$ac_objext
10426 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10427 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10428 _lt_compiler_boilerplate=`cat conftest.err`
10429 $rm conftest*
10430
10431 ac_outfile=conftest.$ac_objext
10432 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10433 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10434 _lt_linker_boilerplate=`cat conftest.err`
10435 $rm conftest*
10436
10437
10438 # Allow CC to be a program name with arguments.
10439 lt_save_CC=$CC
10440 lt_save_LD=$LD
10441 lt_save_GCC=$GCC
10442 GCC=$GXX
10443 lt_save_with_gnu_ld=$with_gnu_ld
10444 lt_save_path_LD=$lt_cv_path_LD
10445 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10446   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10447 else
10448   unset lt_cv_prog_gnu_ld
10449 fi
10450 if test -n "${lt_cv_path_LDCXX+set}"; then
10451   lt_cv_path_LD=$lt_cv_path_LDCXX
10452 else
10453   unset lt_cv_path_LD
10454 fi
10455 test -z "${LDCXX+set}" || LD=$LDCXX
10456 CC=${CXX-"c++"}
10457 compiler=$CC
10458 compiler_CXX=$CC
10459 for cc_temp in $compiler""; do
10460   case $cc_temp in
10461     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10462     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10463     \-*) ;;
10464     *) break;;
10465   esac
10466 done
10467 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10468
10469
10470 # We don't want -fno-exception wen compiling C++ code, so set the
10471 # no_builtin_flag separately
10472 if test "$GXX" = yes; then
10473   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10474 else
10475   lt_prog_compiler_no_builtin_flag_CXX=
10476 fi
10477
10478 if test "$GXX" = yes; then
10479   # Set up default GNU C++ configuration
10480
10481
10482 # Check whether --with-gnu-ld was given.
10483 if test "${with_gnu_ld+set}" = set; then
10484   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10485 else
10486   with_gnu_ld=no
10487 fi
10488
10489 ac_prog=ld
10490 if test "$GCC" = yes; then
10491   # Check if gcc -print-prog-name=ld gives a path.
10492   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10494   case $host in
10495   *-*-mingw*)
10496     # gcc leaves a trailing carriage return which upsets mingw
10497     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10498   *)
10499     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10500   esac
10501   case $ac_prog in
10502     # Accept absolute paths.
10503     [\\/]* | ?:[\\/]*)
10504       re_direlt='/[^/][^/]*/\.\./'
10505       # Canonicalize the pathname of ld
10506       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10507       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10508         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10509       done
10510       test -z "$LD" && LD="$ac_prog"
10511       ;;
10512   "")
10513     # If it fails, then pretend we aren't using GCC.
10514     ac_prog=ld
10515     ;;
10516   *)
10517     # If it is relative, then search for the first ld in PATH.
10518     with_gnu_ld=unknown
10519     ;;
10520   esac
10521 elif test "$with_gnu_ld" = yes; then
10522   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10524 else
10525   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10527 fi
10528 if test "${lt_cv_path_LD+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   if test -z "$LD"; then
10532   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10533   for ac_dir in $PATH; do
10534     IFS="$lt_save_ifs"
10535     test -z "$ac_dir" && ac_dir=.
10536     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10537       lt_cv_path_LD="$ac_dir/$ac_prog"
10538       # Check to see if the program is GNU ld.  I'd rather use --version,
10539       # but apparently some variants of GNU ld only accept -v.
10540       # Break only if it was the GNU/non-GNU ld that we prefer.
10541       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10542       *GNU* | *'with BFD'*)
10543         test "$with_gnu_ld" != no && break
10544         ;;
10545       *)
10546         test "$with_gnu_ld" != yes && break
10547         ;;
10548       esac
10549     fi
10550   done
10551   IFS="$lt_save_ifs"
10552 else
10553   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10554 fi
10555 fi
10556
10557 LD="$lt_cv_path_LD"
10558 if test -n "$LD"; then
10559   { echo "$as_me:$LINENO: result: $LD" >&5
10560 echo "${ECHO_T}$LD" >&6; }
10561 else
10562   { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10564 fi
10565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10567    { (exit 1); exit 1; }; }
10568 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10574 case `$LD -v 2>&1 </dev/null` in
10575 *GNU* | *'with BFD'*)
10576   lt_cv_prog_gnu_ld=yes
10577   ;;
10578 *)
10579   lt_cv_prog_gnu_ld=no
10580   ;;
10581 esac
10582 fi
10583 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10585 with_gnu_ld=$lt_cv_prog_gnu_ld
10586
10587
10588
10589   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10590   # archiving commands below assume that GNU ld is being used.
10591   if test "$with_gnu_ld" = yes; then
10592     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594
10595     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10596     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10597
10598     # If archive_cmds runs LD, not CC, wlarc should be empty
10599     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10600     #     investigate it a little bit more. (MM)
10601     wlarc='${wl}'
10602
10603     # ancient GNU ld didn't support --whole-archive et. al.
10604     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10605         grep 'no-whole-archive' > /dev/null; then
10606       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10607     else
10608       whole_archive_flag_spec_CXX=
10609     fi
10610   else
10611     with_gnu_ld=no
10612     wlarc=
10613
10614     # A generic and very simple default shared library creation
10615     # command for GNU C++ for the case where it uses the native
10616     # linker, instead of GNU ld.  If possible, this setting should
10617     # overridden to take advantage of the native linker features on
10618     # the platform it is being used on.
10619     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10620   fi
10621
10622   # Commands to make compiler produce verbose output that lists
10623   # what "hidden" libraries, object files and flags are used when
10624   # linking a shared library.
10625   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10626
10627 else
10628   GXX=no
10629   with_gnu_ld=no
10630   wlarc=
10631 fi
10632
10633 # PORTME: fill in a description of your system's C++ link characteristics
10634 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10636 ld_shlibs_CXX=yes
10637 case $host_os in
10638   aix3*)
10639     # FIXME: insert proper C++ library support
10640     ld_shlibs_CXX=no
10641     ;;
10642   aix4* | aix5*)
10643     if test "$host_cpu" = ia64; then
10644       # On IA64, the linker does run time linking by default, so we don't
10645       # have to do anything special.
10646       aix_use_runtimelinking=no
10647       exp_sym_flag='-Bexport'
10648       no_entry_flag=""
10649     else
10650       aix_use_runtimelinking=no
10651
10652       # Test if we are trying to use run time linking or normal
10653       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10654       # need to do runtime linking.
10655       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10656         for ld_flag in $LDFLAGS; do
10657           case $ld_flag in
10658           *-brtl*)
10659             aix_use_runtimelinking=yes
10660             break
10661             ;;
10662           esac
10663         done
10664       esac
10665
10666       exp_sym_flag='-bexport'
10667       no_entry_flag='-bnoentry'
10668     fi
10669
10670     # When large executables or shared objects are built, AIX ld can
10671     # have problems creating the table of contents.  If linking a library
10672     # or program results in "error TOC overflow" add -mminimal-toc to
10673     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10674     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10675
10676     archive_cmds_CXX=''
10677     hardcode_direct_CXX=yes
10678     hardcode_libdir_separator_CXX=':'
10679     link_all_deplibs_CXX=yes
10680
10681     if test "$GXX" = yes; then
10682       case $host_os in aix4.[012]|aix4.[012].*)
10683       # We only want to do this on AIX 4.2 and lower, the check
10684       # below for broken collect2 doesn't work under 4.3+
10685         collect2name=`${CC} -print-prog-name=collect2`
10686         if test -f "$collect2name" && \
10687            strings "$collect2name" | grep resolve_lib_name >/dev/null
10688         then
10689           # We have reworked collect2
10690           hardcode_direct_CXX=yes
10691         else
10692           # We have old collect2
10693           hardcode_direct_CXX=unsupported
10694           # It fails to find uninstalled libraries when the uninstalled
10695           # path is not listed in the libpath.  Setting hardcode_minus_L
10696           # to unsupported forces relinking
10697           hardcode_minus_L_CXX=yes
10698           hardcode_libdir_flag_spec_CXX='-L$libdir'
10699           hardcode_libdir_separator_CXX=
10700         fi
10701       esac
10702       shared_flag='-shared'
10703       if test "$aix_use_runtimelinking" = yes; then
10704         shared_flag="$shared_flag "'${wl}-G'
10705       fi
10706     else
10707       # not using gcc
10708       if test "$host_cpu" = ia64; then
10709         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10710         # chokes on -Wl,-G. The following line is correct:
10711         shared_flag='-G'
10712       else
10713         if test "$aix_use_runtimelinking" = yes; then
10714           shared_flag='${wl}-G'
10715         else
10716           shared_flag='${wl}-bM:SRE'
10717         fi
10718       fi
10719     fi
10720
10721     # It seems that -bexpall does not export symbols beginning with
10722     # underscore (_), so it is better to generate a list of symbols to export.
10723     always_export_symbols_CXX=yes
10724     if test "$aix_use_runtimelinking" = yes; then
10725       # Warning - without using the other runtime loading flags (-brtl),
10726       # -berok will link without error, but may produce a broken library.
10727       allow_undefined_flag_CXX='-berok'
10728       # Determine the default libpath from the value encoded in an empty executable.
10729       cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735
10736 int
10737 main ()
10738 {
10739
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_link") 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } && {
10758          test -z "$ac_cxx_werror_flag" ||
10759          test ! -s conftest.err
10760        } && test -s conftest$ac_exeext &&
10761        $as_test_x conftest$ac_exeext; then
10762
10763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10764 }'`
10765 # Check for a 64-bit object if we didn't find anything.
10766 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; }
10767 }'`; fi
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776       conftest$ac_exeext conftest.$ac_ext
10777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10778
10779       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10780
10781       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10782      else
10783       if test "$host_cpu" = ia64; then
10784         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10785         allow_undefined_flag_CXX="-z nodefs"
10786         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10787       else
10788         # Determine the default libpath from the value encoded in an empty executable.
10789         cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795
10796 int
10797 main ()
10798 {
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811   (eval "$ac_link") 2>conftest.er1
10812   ac_status=$?
10813   grep -v '^ *+' conftest.er1 >conftest.err
10814   rm -f conftest.er1
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } && {
10818          test -z "$ac_cxx_werror_flag" ||
10819          test ! -s conftest.err
10820        } && test -s conftest$ac_exeext &&
10821        $as_test_x conftest$ac_exeext; then
10822
10823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10824 }'`
10825 # Check for a 64-bit object if we didn't find anything.
10826 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; }
10827 }'`; fi
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832
10833 fi
10834
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836       conftest$ac_exeext conftest.$ac_ext
10837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10838
10839         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10840         # Warning - without using the other run time loading flags,
10841         # -berok will link without error, but may produce a broken library.
10842         no_undefined_flag_CXX=' ${wl}-bernotok'
10843         allow_undefined_flag_CXX=' ${wl}-berok'
10844         # -bexpall does not export symbols beginning with underscore (_)
10845         always_export_symbols_CXX=yes
10846         # Exported symbols can be pulled into shared objects from archives
10847         whole_archive_flag_spec_CXX=' '
10848         archive_cmds_need_lc_CXX=yes
10849         # This is similar to how AIX traditionally builds its shared libraries.
10850         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10851       fi
10852     fi
10853     ;;
10854   chorus*)
10855     case $cc_basename in
10856       *)
10857         # FIXME: insert proper C++ library support
10858         ld_shlibs_CXX=no
10859         ;;
10860     esac
10861     ;;
10862
10863
10864   cygwin* | mingw* | pw32*)
10865     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10866     # as there is no search path for DLLs.
10867     hardcode_libdir_flag_spec_CXX='-L$libdir'
10868     allow_undefined_flag_CXX=unsupported
10869     always_export_symbols_CXX=no
10870     enable_shared_with_static_runtimes_CXX=yes
10871
10872     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10873       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10874       # If the export-symbols file already is a .def file (1st line
10875       # is EXPORTS), use it as is; otherwise, prepend...
10876       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10877         cp $export_symbols $output_objdir/$soname.def;
10878       else
10879         echo EXPORTS > $output_objdir/$soname.def;
10880         cat $export_symbols >> $output_objdir/$soname.def;
10881       fi~
10882       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10883     else
10884       ld_shlibs_CXX=no
10885     fi
10886   ;;
10887       darwin* | rhapsody*)
10888         case $host_os in
10889         rhapsody* | darwin1.[012])
10890          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10891          ;;
10892        *) # Darwin 1.3 on
10893          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10894            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10895          else
10896            case ${MACOSX_DEPLOYMENT_TARGET} in
10897              10.[012])
10898                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10899                ;;
10900              10.*)
10901                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10902                ;;
10903            esac
10904          fi
10905          ;;
10906         esac
10907       archive_cmds_need_lc_CXX=no
10908       hardcode_direct_CXX=no
10909       hardcode_automatic_CXX=yes
10910       hardcode_shlibpath_var_CXX=unsupported
10911       whole_archive_flag_spec_CXX=''
10912       link_all_deplibs_CXX=yes
10913
10914     if test "$GXX" = yes ; then
10915       lt_int_apple_cc_single_mod=no
10916       output_verbose_link_cmd='echo'
10917       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10918        lt_int_apple_cc_single_mod=yes
10919       fi
10920       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10921        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10922       else
10923           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10924         fi
10925         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10926         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10927           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10928             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10929           else
10930             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10931           fi
10932             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10933       else
10934       case $cc_basename in
10935         xlc*)
10936          output_verbose_link_cmd='echo'
10937           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10938           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10939           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10940           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10941           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10942           ;;
10943        *)
10944          ld_shlibs_CXX=no
10945           ;;
10946       esac
10947       fi
10948         ;;
10949
10950   dgux*)
10951     case $cc_basename in
10952       ec++*)
10953         # FIXME: insert proper C++ library support
10954         ld_shlibs_CXX=no
10955         ;;
10956       ghcx*)
10957         # Green Hills C++ Compiler
10958         # FIXME: insert proper C++ library support
10959         ld_shlibs_CXX=no
10960         ;;
10961       *)
10962         # FIXME: insert proper C++ library support
10963         ld_shlibs_CXX=no
10964         ;;
10965     esac
10966     ;;
10967   freebsd[12]*)
10968     # C++ shared libraries reported to be fairly broken before switch to ELF
10969     ld_shlibs_CXX=no
10970     ;;
10971   freebsd-elf*)
10972     archive_cmds_need_lc_CXX=no
10973     ;;
10974   freebsd* | kfreebsd*-gnu | dragonfly*)
10975     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10976     # conventions
10977     ld_shlibs_CXX=yes
10978     ;;
10979   gnu*)
10980     ;;
10981   hpux9*)
10982     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10983     hardcode_libdir_separator_CXX=:
10984     export_dynamic_flag_spec_CXX='${wl}-E'
10985     hardcode_direct_CXX=yes
10986     hardcode_minus_L_CXX=yes # Not in the search PATH,
10987                                 # but as the default
10988                                 # location of the library.
10989
10990     case $cc_basename in
10991     CC*)
10992       # FIXME: insert proper C++ library support
10993       ld_shlibs_CXX=no
10994       ;;
10995     aCC*)
10996       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10997       # Commands to make compiler produce verbose output that lists
10998       # what "hidden" libraries, object files and flags are used when
10999       # linking a shared library.
11000       #
11001       # There doesn't appear to be a way to prevent this compiler from
11002       # explicitly linking system object files so we need to strip them
11003       # from the output so that they don't get included in the library
11004       # dependencies.
11005       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'
11006       ;;
11007     *)
11008       if test "$GXX" = yes; then
11009         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11010       else
11011         # FIXME: insert proper C++ library support
11012         ld_shlibs_CXX=no
11013       fi
11014       ;;
11015     esac
11016     ;;
11017   hpux10*|hpux11*)
11018     if test $with_gnu_ld = no; then
11019       case $host_cpu in
11020       hppa*64*)
11021         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11022         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11023         hardcode_libdir_separator_CXX=:
11024         ;;
11025       ia64*)
11026         hardcode_libdir_flag_spec_CXX='-L$libdir'
11027         ;;
11028       *)
11029         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11030         hardcode_libdir_separator_CXX=:
11031         export_dynamic_flag_spec_CXX='${wl}-E'
11032         ;;
11033       esac
11034     fi
11035     case $host_cpu in
11036     hppa*64*)
11037       hardcode_direct_CXX=no
11038       hardcode_shlibpath_var_CXX=no
11039       ;;
11040     ia64*)
11041       hardcode_direct_CXX=no
11042       hardcode_shlibpath_var_CXX=no
11043       hardcode_minus_L_CXX=yes # Not in the search PATH,
11044                                               # but as the default
11045                                               # location of the library.
11046       ;;
11047     *)
11048       hardcode_direct_CXX=yes
11049       hardcode_minus_L_CXX=yes # Not in the search PATH,
11050                                               # but as the default
11051                                               # location of the library.
11052       ;;
11053     esac
11054
11055     case $cc_basename in
11056       CC*)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060       aCC*)
11061         case $host_cpu in
11062         hppa*64*|ia64*)
11063           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11064           ;;
11065         *)
11066           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11067           ;;
11068         esac
11069         # Commands to make compiler produce verbose output that lists
11070         # what "hidden" libraries, object files and flags are used when
11071         # linking a shared library.
11072         #
11073         # There doesn't appear to be a way to prevent this compiler from
11074         # explicitly linking system object files so we need to strip them
11075         # from the output so that they don't get included in the library
11076         # dependencies.
11077         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'
11078         ;;
11079       *)
11080         if test "$GXX" = yes; then
11081           if test $with_gnu_ld = no; then
11082             case $host_cpu in
11083             ia64*|hppa*64*)
11084               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11085               ;;
11086             *)
11087               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11088               ;;
11089             esac
11090           fi
11091         else
11092           # FIXME: insert proper C++ library support
11093           ld_shlibs_CXX=no
11094         fi
11095         ;;
11096     esac
11097     ;;
11098   irix5* | irix6*)
11099     case $cc_basename in
11100       CC*)
11101         # SGI C++
11102         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11103
11104         # Archives containing C++ object files must be created using
11105         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11106         # necessary to make sure instantiated templates are included
11107         # in the archive.
11108         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11109         ;;
11110       *)
11111         if test "$GXX" = yes; then
11112           if test "$with_gnu_ld" = no; then
11113             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11114           else
11115             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11116           fi
11117         fi
11118         link_all_deplibs_CXX=yes
11119         ;;
11120     esac
11121     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11122     hardcode_libdir_separator_CXX=:
11123     ;;
11124   linux*)
11125     case $cc_basename in
11126       KCC*)
11127         # Kuck and Associates, Inc. (KAI) C++ Compiler
11128
11129         # KCC will only create a shared library if the output file
11130         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11131         # to its proper name (with version) after linking.
11132         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11133         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11134         # Commands to make compiler produce verbose output that lists
11135         # what "hidden" libraries, object files and flags are used when
11136         # linking a shared library.
11137         #
11138         # There doesn't appear to be a way to prevent this compiler from
11139         # explicitly linking system object files so we need to strip them
11140         # from the output so that they don't get included in the library
11141         # dependencies.
11142         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'
11143
11144         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11145         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11146
11147         # Archives containing C++ object files must be created using
11148         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11149         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11150         ;;
11151       icpc*)
11152         # Intel C++
11153         with_gnu_ld=yes
11154         # version 8.0 and above of icpc choke on multiply defined symbols
11155         # if we add $predep_objects and $postdep_objects, however 7.1 and
11156         # earlier do not add the objects themselves.
11157         case `$CC -V 2>&1` in
11158         *"Version 7."*)
11159           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11160           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11161           ;;
11162         *)  # Version 8.0 or newer
11163           tmp_idyn=
11164           case $host_cpu in
11165             ia64*) tmp_idyn=' -i_dynamic';;
11166           esac
11167           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11168           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11169           ;;
11170         esac
11171         archive_cmds_need_lc_CXX=no
11172         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11173         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11174         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11175         ;;
11176       pgCC*)
11177         # Portland Group C++ compiler
11178         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11179         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11180
11181         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11182         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11183         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11184         ;;
11185       cxx*)
11186         # Compaq C++
11187         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11188         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11189
11190         runpath_var=LD_RUN_PATH
11191         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11192         hardcode_libdir_separator_CXX=:
11193
11194         # Commands to make compiler produce verbose output that lists
11195         # what "hidden" libraries, object files and flags are used when
11196         # linking a shared library.
11197         #
11198         # There doesn't appear to be a way to prevent this compiler from
11199         # explicitly linking system object files so we need to strip them
11200         # from the output so that they don't get included in the library
11201         # dependencies.
11202         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'
11203         ;;
11204     esac
11205     ;;
11206   lynxos*)
11207     # FIXME: insert proper C++ library support
11208     ld_shlibs_CXX=no
11209     ;;
11210   m88k*)
11211     # FIXME: insert proper C++ library support
11212     ld_shlibs_CXX=no
11213     ;;
11214   mvs*)
11215     case $cc_basename in
11216       cxx*)
11217         # FIXME: insert proper C++ library support
11218         ld_shlibs_CXX=no
11219         ;;
11220       *)
11221         # FIXME: insert proper C++ library support
11222         ld_shlibs_CXX=no
11223         ;;
11224     esac
11225     ;;
11226   netbsd*)
11227     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11228       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11229       wlarc=
11230       hardcode_libdir_flag_spec_CXX='-R$libdir'
11231       hardcode_direct_CXX=yes
11232       hardcode_shlibpath_var_CXX=no
11233     fi
11234     # Workaround some broken pre-1.5 toolchains
11235     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11236     ;;
11237   openbsd2*)
11238     # C++ shared libraries are fairly broken
11239     ld_shlibs_CXX=no
11240     ;;
11241   openbsd*)
11242     hardcode_direct_CXX=yes
11243     hardcode_shlibpath_var_CXX=no
11244     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11245     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11247       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11248       export_dynamic_flag_spec_CXX='${wl}-E'
11249       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11250     fi
11251     output_verbose_link_cmd='echo'
11252     ;;
11253   osf3*)
11254     case $cc_basename in
11255       KCC*)
11256         # Kuck and Associates, Inc. (KAI) C++ Compiler
11257
11258         # KCC will only create a shared library if the output file
11259         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11260         # to its proper name (with version) after linking.
11261         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11262
11263         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11264         hardcode_libdir_separator_CXX=:
11265
11266         # Archives containing C++ object files must be created using
11267         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11268         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11269
11270         ;;
11271       RCC*)
11272         # Rational C++ 2.4.1
11273         # FIXME: insert proper C++ library support
11274         ld_shlibs_CXX=no
11275         ;;
11276       cxx*)
11277         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11278         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11279
11280         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11281         hardcode_libdir_separator_CXX=:
11282
11283         # Commands to make compiler produce verbose output that lists
11284         # what "hidden" libraries, object files and flags are used when
11285         # linking a shared library.
11286         #
11287         # There doesn't appear to be a way to prevent this compiler from
11288         # explicitly linking system object files so we need to strip them
11289         # from the output so that they don't get included in the library
11290         # dependencies.
11291         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'
11292         ;;
11293       *)
11294         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11295           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11296           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11297
11298           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11299           hardcode_libdir_separator_CXX=:
11300
11301           # Commands to make compiler produce verbose output that lists
11302           # what "hidden" libraries, object files and flags are used when
11303           # linking a shared library.
11304           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11305
11306         else
11307           # FIXME: insert proper C++ library support
11308           ld_shlibs_CXX=no
11309         fi
11310         ;;
11311     esac
11312     ;;
11313   osf4* | osf5*)
11314     case $cc_basename in
11315       KCC*)
11316         # Kuck and Associates, Inc. (KAI) C++ Compiler
11317
11318         # KCC will only create a shared library if the output file
11319         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11320         # to its proper name (with version) after linking.
11321         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11322
11323         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11324         hardcode_libdir_separator_CXX=:
11325
11326         # Archives containing C++ object files must be created using
11327         # the KAI C++ compiler.
11328         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11329         ;;
11330       RCC*)
11331         # Rational C++ 2.4.1
11332         # FIXME: insert proper C++ library support
11333         ld_shlibs_CXX=no
11334         ;;
11335       cxx*)
11336         allow_undefined_flag_CXX=' -expect_unresolved \*'
11337         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11338         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11339           echo "-hidden">> $lib.exp~
11340           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11341           $rm $lib.exp'
11342
11343         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11344         hardcode_libdir_separator_CXX=:
11345
11346         # Commands to make compiler produce verbose output that lists
11347         # what "hidden" libraries, object files and flags are used when
11348         # linking a shared library.
11349         #
11350         # There doesn't appear to be a way to prevent this compiler from
11351         # explicitly linking system object files so we need to strip them
11352         # from the output so that they don't get included in the library
11353         # dependencies.
11354         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'
11355         ;;
11356       *)
11357         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11358           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11359          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11360
11361           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11362           hardcode_libdir_separator_CXX=:
11363
11364           # Commands to make compiler produce verbose output that lists
11365           # what "hidden" libraries, object files and flags are used when
11366           # linking a shared library.
11367           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11368
11369         else
11370           # FIXME: insert proper C++ library support
11371           ld_shlibs_CXX=no
11372         fi
11373         ;;
11374     esac
11375     ;;
11376   psos*)
11377     # FIXME: insert proper C++ library support
11378     ld_shlibs_CXX=no
11379     ;;
11380   sco*)
11381     archive_cmds_need_lc_CXX=no
11382     case $cc_basename in
11383       CC*)
11384         # FIXME: insert proper C++ library support
11385         ld_shlibs_CXX=no
11386         ;;
11387       *)
11388         # FIXME: insert proper C++ library support
11389         ld_shlibs_CXX=no
11390         ;;
11391     esac
11392     ;;
11393   sunos4*)
11394     case $cc_basename in
11395       CC*)
11396         # Sun C++ 4.x
11397         # FIXME: insert proper C++ library support
11398         ld_shlibs_CXX=no
11399         ;;
11400       lcc*)
11401         # Lucid
11402         # FIXME: insert proper C++ library support
11403         ld_shlibs_CXX=no
11404         ;;
11405       *)
11406         # FIXME: insert proper C++ library support
11407         ld_shlibs_CXX=no
11408         ;;
11409     esac
11410     ;;
11411   solaris*)
11412     case $cc_basename in
11413       CC*)
11414         # Sun C++ 4.2, 5.x and Centerline C++
11415         archive_cmds_need_lc_CXX=yes
11416         no_undefined_flag_CXX=' -zdefs'
11417         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11418         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11419         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11420
11421         hardcode_libdir_flag_spec_CXX='-R$libdir'
11422         hardcode_shlibpath_var_CXX=no
11423         case $host_os in
11424           solaris2.[0-5] | solaris2.[0-5].*) ;;
11425           *)
11426             # The C++ compiler is used as linker so we must use $wl
11427             # flag to pass the commands to the underlying system
11428             # linker. We must also pass each convience library through
11429             # to the system linker between allextract/defaultextract.
11430             # The C++ compiler will combine linker options so we
11431             # cannot just pass the convience library names through
11432             # without $wl.
11433             # Supported since Solaris 2.6 (maybe 2.5.1?)
11434             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11435             ;;
11436         esac
11437         link_all_deplibs_CXX=yes
11438
11439         output_verbose_link_cmd='echo'
11440
11441         # Archives containing C++ object files must be created using
11442         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11443         # necessary to make sure instantiated templates are included
11444         # in the archive.
11445         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11446         ;;
11447       gcx*)
11448         # Green Hills C++ Compiler
11449         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11450
11451         # The C++ compiler must be used to create the archive.
11452         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11453         ;;
11454       *)
11455         # GNU C++ compiler with Solaris linker
11456         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11457           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11458           if $CC --version | grep -v '^2\.7' > /dev/null; then
11459             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11460             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11461                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11462
11463             # Commands to make compiler produce verbose output that lists
11464             # what "hidden" libraries, object files and flags are used when
11465             # linking a shared library.
11466             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11467           else
11468             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11469             # platform.
11470             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11471             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11472                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11473
11474             # Commands to make compiler produce verbose output that lists
11475             # what "hidden" libraries, object files and flags are used when
11476             # linking a shared library.
11477             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11478           fi
11479
11480           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11481         fi
11482         ;;
11483     esac
11484     ;;
11485   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11486     archive_cmds_need_lc_CXX=no
11487     ;;
11488   tandem*)
11489     case $cc_basename in
11490       NCC*)
11491         # NonStop-UX NCC 3.20
11492         # FIXME: insert proper C++ library support
11493         ld_shlibs_CXX=no
11494         ;;
11495       *)
11496         # FIXME: insert proper C++ library support
11497         ld_shlibs_CXX=no
11498         ;;
11499     esac
11500     ;;
11501   vxworks*)
11502     # FIXME: insert proper C++ library support
11503     ld_shlibs_CXX=no
11504     ;;
11505   *)
11506     # FIXME: insert proper C++ library support
11507     ld_shlibs_CXX=no
11508     ;;
11509 esac
11510 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11511 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11512 test "$ld_shlibs_CXX" = no && can_build_shared=no
11513
11514 GCC_CXX="$GXX"
11515 LD_CXX="$LD"
11516
11517
11518 cat > conftest.$ac_ext <<EOF
11519 class Foo
11520 {
11521 public:
11522   Foo (void) { a = 0; }
11523 private:
11524   int a;
11525 };
11526 EOF
11527
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529   (eval $ac_compile) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; then
11533   # Parse the compiler output and extract the necessary
11534   # objects, libraries and library flags.
11535
11536   # Sentinel used to keep track of whether or not we are before
11537   # the conftest object file.
11538   pre_test_object_deps_done=no
11539
11540   # The `*' in the case matches for architectures that use `case' in
11541   # $output_verbose_cmd can trigger glob expansion during the loop
11542   # eval without this substitution.
11543   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11544
11545   for p in `eval $output_verbose_link_cmd`; do
11546     case $p in
11547
11548     -L* | -R* | -l*)
11549        # Some compilers place space between "-{L,R}" and the path.
11550        # Remove the space.
11551        if test $p = "-L" \
11552           || test $p = "-R"; then
11553          prev=$p
11554          continue
11555        else
11556          prev=
11557        fi
11558
11559        if test "$pre_test_object_deps_done" = no; then
11560          case $p in
11561          -L* | -R*)
11562            # Internal compiler library paths should come after those
11563            # provided the user.  The postdeps already come after the
11564            # user supplied libs so there is no need to process them.
11565            if test -z "$compiler_lib_search_path_CXX"; then
11566              compiler_lib_search_path_CXX="${prev}${p}"
11567            else
11568              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11569            fi
11570            ;;
11571          # The "-l" case would never come before the object being
11572          # linked, so don't bother handling this case.
11573          esac
11574        else
11575          if test -z "$postdeps_CXX"; then
11576            postdeps_CXX="${prev}${p}"
11577          else
11578            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11579          fi
11580        fi
11581        ;;
11582
11583     *.$objext)
11584        # This assumes that the test object file only shows up
11585        # once in the compiler output.
11586        if test "$p" = "conftest.$objext"; then
11587          pre_test_object_deps_done=yes
11588          continue
11589        fi
11590
11591        if test "$pre_test_object_deps_done" = no; then
11592          if test -z "$predep_objects_CXX"; then
11593            predep_objects_CXX="$p"
11594          else
11595            predep_objects_CXX="$predep_objects_CXX $p"
11596          fi
11597        else
11598          if test -z "$postdep_objects_CXX"; then
11599            postdep_objects_CXX="$p"
11600          else
11601            postdep_objects_CXX="$postdep_objects_CXX $p"
11602          fi
11603        fi
11604        ;;
11605
11606     *) ;; # Ignore the rest.
11607
11608     esac
11609   done
11610
11611   # Clean up.
11612   rm -f a.out a.exe
11613 else
11614   echo "libtool.m4: error: problem compiling CXX test program"
11615 fi
11616
11617 $rm -f confest.$objext
11618
11619 # PORTME: override above test on systems where it is broken
11620 case $host_os in
11621 solaris*)
11622   case $cc_basename in
11623   CC*)
11624     # Adding this requires a known-good setup of shared libraries for
11625     # Sun compiler versions before 5.6, else PIC objects from an old
11626     # archive will be linked into the output, leading to subtle bugs.
11627     postdeps_CXX='-lCstd -lCrun'
11628     ;;
11629   esac
11630 esac
11631
11632
11633 case " $postdeps_CXX " in
11634 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11635 esac
11636
11637 lt_prog_compiler_wl_CXX=
11638 lt_prog_compiler_pic_CXX=
11639 lt_prog_compiler_static_CXX=
11640
11641 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11642 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11643
11644   # C++ specific cases for pic, static, wl, etc.
11645   if test "$GXX" = yes; then
11646     lt_prog_compiler_wl_CXX='-Wl,'
11647     lt_prog_compiler_static_CXX='-static'
11648
11649     case $host_os in
11650     aix*)
11651       # All AIX code is PIC.
11652       if test "$host_cpu" = ia64; then
11653         # AIX 5 now supports IA64 processor
11654         lt_prog_compiler_static_CXX='-Bstatic'
11655       fi
11656       ;;
11657     amigaos*)
11658       # FIXME: we need at least 68020 code to build shared libraries, but
11659       # adding the `-m68020' flag to GCC prevents building anything better,
11660       # like `-m68040'.
11661       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11662       ;;
11663     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11664       # PIC is the default for these OSes.
11665       ;;
11666     mingw* | os2* | pw32*)
11667       # This hack is so that the source file can tell whether it is being
11668       # built for inclusion in a dll (and should export symbols for example).
11669       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11670       ;;
11671     darwin* | rhapsody*)
11672       # PIC is the default on this platform
11673       # Common symbols not allowed in MH_DYLIB files
11674       lt_prog_compiler_pic_CXX='-fno-common'
11675       ;;
11676     *djgpp*)
11677       # DJGPP does not support shared libraries at all
11678       lt_prog_compiler_pic_CXX=
11679       ;;
11680     sysv4*MP*)
11681       if test -d /usr/nec; then
11682         lt_prog_compiler_pic_CXX=-Kconform_pic
11683       fi
11684       ;;
11685     hpux*)
11686       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11687       # not for PA HP-UX.
11688       case $host_cpu in
11689       hppa*64*|ia64*)
11690         ;;
11691       *)
11692         lt_prog_compiler_pic_CXX='-fPIC'
11693         ;;
11694       esac
11695       ;;
11696     *)
11697       lt_prog_compiler_pic_CXX='-fPIC'
11698       ;;
11699     esac
11700   else
11701     case $host_os in
11702       aix4* | aix5*)
11703         # All AIX code is PIC.
11704         if test "$host_cpu" = ia64; then
11705           # AIX 5 now supports IA64 processor
11706           lt_prog_compiler_static_CXX='-Bstatic'
11707         else
11708           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11709         fi
11710         ;;
11711       chorus*)
11712         case $cc_basename in
11713         cxch68*)
11714           # Green Hills C++ Compiler
11715           # _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"
11716           ;;
11717         esac
11718         ;;
11719        darwin*)
11720          # PIC is the default on this platform
11721          # Common symbols not allowed in MH_DYLIB files
11722          case $cc_basename in
11723            xlc*)
11724            lt_prog_compiler_pic_CXX='-qnocommon'
11725            lt_prog_compiler_wl_CXX='-Wl,'
11726            ;;
11727          esac
11728        ;;
11729       dgux*)
11730         case $cc_basename in
11731           ec++*)
11732             lt_prog_compiler_pic_CXX='-KPIC'
11733             ;;
11734           ghcx*)
11735             # Green Hills C++ Compiler
11736             lt_prog_compiler_pic_CXX='-pic'
11737             ;;
11738           *)
11739             ;;
11740         esac
11741         ;;
11742       freebsd* | kfreebsd*-gnu | dragonfly*)
11743         # FreeBSD uses GNU C++
11744         ;;
11745       hpux9* | hpux10* | hpux11*)
11746         case $cc_basename in
11747           CC*)
11748             lt_prog_compiler_wl_CXX='-Wl,'
11749             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11750             if test "$host_cpu" != ia64; then
11751               lt_prog_compiler_pic_CXX='+Z'
11752             fi
11753             ;;
11754           aCC*)
11755             lt_prog_compiler_wl_CXX='-Wl,'
11756             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11757             case $host_cpu in
11758             hppa*64*|ia64*)
11759               # +Z the default
11760               ;;
11761             *)
11762               lt_prog_compiler_pic_CXX='+Z'
11763               ;;
11764             esac
11765             ;;
11766           *)
11767             ;;
11768         esac
11769         ;;
11770       irix5* | irix6* | nonstopux*)
11771         case $cc_basename in
11772           CC*)
11773             lt_prog_compiler_wl_CXX='-Wl,'
11774             lt_prog_compiler_static_CXX='-non_shared'
11775             # CC pic flag -KPIC is the default.
11776             ;;
11777           *)
11778             ;;
11779         esac
11780         ;;
11781       linux*)
11782         case $cc_basename in
11783           KCC*)
11784             # KAI C++ Compiler
11785             lt_prog_compiler_wl_CXX='--backend -Wl,'
11786             lt_prog_compiler_pic_CXX='-fPIC'
11787             ;;
11788           icpc* | ecpc*)
11789             # Intel C++
11790             lt_prog_compiler_wl_CXX='-Wl,'
11791             lt_prog_compiler_pic_CXX='-KPIC'
11792             lt_prog_compiler_static_CXX='-static'
11793             ;;
11794           pgCC*)
11795             # Portland Group C++ compiler.
11796             lt_prog_compiler_wl_CXX='-Wl,'
11797             lt_prog_compiler_pic_CXX='-fpic'
11798             lt_prog_compiler_static_CXX='-Bstatic'
11799             ;;
11800           cxx*)
11801             # Compaq C++
11802             # Make sure the PIC flag is empty.  It appears that all Alpha
11803             # Linux and Compaq Tru64 Unix objects are PIC.
11804             lt_prog_compiler_pic_CXX=
11805             lt_prog_compiler_static_CXX='-non_shared'
11806             ;;
11807           *)
11808             ;;
11809         esac
11810         ;;
11811       lynxos*)
11812         ;;
11813       m88k*)
11814         ;;
11815       mvs*)
11816         case $cc_basename in
11817           cxx*)
11818             lt_prog_compiler_pic_CXX='-W c,exportall'
11819             ;;
11820           *)
11821             ;;
11822         esac
11823         ;;
11824       netbsd*)
11825         ;;
11826       osf3* | osf4* | osf5*)
11827         case $cc_basename in
11828           KCC*)
11829             lt_prog_compiler_wl_CXX='--backend -Wl,'
11830             ;;
11831           RCC*)
11832             # Rational C++ 2.4.1
11833             lt_prog_compiler_pic_CXX='-pic'
11834             ;;
11835           cxx*)
11836             # Digital/Compaq C++
11837             lt_prog_compiler_wl_CXX='-Wl,'
11838             # Make sure the PIC flag is empty.  It appears that all Alpha
11839             # Linux and Compaq Tru64 Unix objects are PIC.
11840             lt_prog_compiler_pic_CXX=
11841             lt_prog_compiler_static_CXX='-non_shared'
11842             ;;
11843           *)
11844             ;;
11845         esac
11846         ;;
11847       psos*)
11848         ;;
11849       sco*)
11850         case $cc_basename in
11851           CC*)
11852             lt_prog_compiler_pic_CXX='-fPIC'
11853             ;;
11854           *)
11855             ;;
11856         esac
11857         ;;
11858       solaris*)
11859         case $cc_basename in
11860           CC*)
11861             # Sun C++ 4.2, 5.x and Centerline C++
11862             lt_prog_compiler_pic_CXX='-KPIC'
11863             lt_prog_compiler_static_CXX='-Bstatic'
11864             lt_prog_compiler_wl_CXX='-Qoption ld '
11865             ;;
11866           gcx*)
11867             # Green Hills C++ Compiler
11868             lt_prog_compiler_pic_CXX='-PIC'
11869             ;;
11870           *)
11871             ;;
11872         esac
11873         ;;
11874       sunos4*)
11875         case $cc_basename in
11876           CC*)
11877             # Sun C++ 4.x
11878             lt_prog_compiler_pic_CXX='-pic'
11879             lt_prog_compiler_static_CXX='-Bstatic'
11880             ;;
11881           lcc*)
11882             # Lucid
11883             lt_prog_compiler_pic_CXX='-pic'
11884             ;;
11885           *)
11886             ;;
11887         esac
11888         ;;
11889       tandem*)
11890         case $cc_basename in
11891           NCC*)
11892             # NonStop-UX NCC 3.20
11893             lt_prog_compiler_pic_CXX='-KPIC'
11894             ;;
11895           *)
11896             ;;
11897         esac
11898         ;;
11899       unixware*)
11900         ;;
11901       vxworks*)
11902         ;;
11903       *)
11904         lt_prog_compiler_can_build_shared_CXX=no
11905         ;;
11906     esac
11907   fi
11908
11909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11910 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11911
11912 #
11913 # Check to make sure the PIC flag actually works.
11914 #
11915 if test -n "$lt_prog_compiler_pic_CXX"; then
11916
11917 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11919 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   lt_prog_compiler_pic_works_CXX=no
11923   ac_outfile=conftest.$ac_objext
11924    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11925    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11926    # Insert the option either (1) after the last *FLAGS variable, or
11927    # (2) before a word containing "conftest.", or (3) at the end.
11928    # Note that $ac_compile itself does not contain backslashes and begins
11929    # with a dollar sign (not a hyphen), so the echo should work correctly.
11930    # The option is referenced via a variable to avoid confusing sed.
11931    lt_compile=`echo "$ac_compile" | $SED \
11932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11934    -e 's:$: $lt_compiler_flag:'`
11935    (eval echo "\"\$as_me:11935: $lt_compile\"" >&5)
11936    (eval "$lt_compile" 2>conftest.err)
11937    ac_status=$?
11938    cat conftest.err >&5
11939    echo "$as_me:11939: \$? = $ac_status" >&5
11940    if (exit $ac_status) && test -s "$ac_outfile"; then
11941      # The compiler can only warn and ignore the option if not recognized
11942      # So say no if there are warnings other than the usual output.
11943      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11944      $SED '/^$/d' conftest.err >conftest.er2
11945      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11946        lt_prog_compiler_pic_works_CXX=yes
11947      fi
11948    fi
11949    $rm conftest*
11950
11951 fi
11952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11953 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11954
11955 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11956     case $lt_prog_compiler_pic_CXX in
11957      "" | " "*) ;;
11958      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11959      esac
11960 else
11961     lt_prog_compiler_pic_CXX=
11962      lt_prog_compiler_can_build_shared_CXX=no
11963 fi
11964
11965 fi
11966 case $host_os in
11967   # For platforms which do not support PIC, -DPIC is meaningless:
11968   *djgpp*)
11969     lt_prog_compiler_pic_CXX=
11970     ;;
11971   *)
11972     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11973     ;;
11974 esac
11975
11976 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11977 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11978 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   lt_cv_prog_compiler_c_o_CXX=no
11982    $rm -r conftest 2>/dev/null
11983    mkdir conftest
11984    cd conftest
11985    mkdir out
11986    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11987
11988    lt_compiler_flag="-o out/conftest2.$ac_objext"
11989    # Insert the option either (1) after the last *FLAGS variable, or
11990    # (2) before a word containing "conftest.", or (3) at the end.
11991    # Note that $ac_compile itself does not contain backslashes and begins
11992    # with a dollar sign (not a hyphen), so the echo should work correctly.
11993    lt_compile=`echo "$ac_compile" | $SED \
11994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11996    -e 's:$: $lt_compiler_flag:'`
11997    (eval echo "\"\$as_me:11997: $lt_compile\"" >&5)
11998    (eval "$lt_compile" 2>out/conftest.err)
11999    ac_status=$?
12000    cat out/conftest.err >&5
12001    echo "$as_me:12001: \$? = $ac_status" >&5
12002    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12003    then
12004      # The compiler can only warn and ignore the option if not recognized
12005      # So say no if there are warnings
12006      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12007      $SED '/^$/d' out/conftest.err >out/conftest.er2
12008      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12009        lt_cv_prog_compiler_c_o_CXX=yes
12010      fi
12011    fi
12012    chmod u+w . 2>&5
12013    $rm conftest*
12014    # SGI C++ compiler will create directory out/ii_files/ for
12015    # template instantiation
12016    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12017    $rm out/* && rmdir out
12018    cd ..
12019    rmdir conftest
12020    $rm conftest*
12021
12022 fi
12023 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12024 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12025
12026
12027 hard_links="nottested"
12028 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12029   # do not overwrite the value of need_locks provided by the user
12030   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12032   hard_links=yes
12033   $rm conftest*
12034   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12035   touch conftest.a
12036   ln conftest.a conftest.b 2>&5 || hard_links=no
12037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12038   { echo "$as_me:$LINENO: result: $hard_links" >&5
12039 echo "${ECHO_T}$hard_links" >&6; }
12040   if test "$hard_links" = no; then
12041     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12043     need_locks=warn
12044   fi
12045 else
12046   need_locks=no
12047 fi
12048
12049 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12051
12052   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12053   case $host_os in
12054   aix4* | aix5*)
12055     # If we're using GNU nm, then we don't want the "-C" option.
12056     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12057     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12058       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'
12059     else
12060       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'
12061     fi
12062     ;;
12063   pw32*)
12064     export_symbols_cmds_CXX="$ltdll_cmds"
12065   ;;
12066   cygwin* | mingw*)
12067     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12068   ;;
12069   *)
12070     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12071   ;;
12072   esac
12073
12074 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12075 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12076 test "$ld_shlibs_CXX" = no && can_build_shared=no
12077
12078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12079 if test "$GCC" = yes; then
12080   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12081 fi
12082
12083 #
12084 # Do we need to explicitly link libc?
12085 #
12086 case "x$archive_cmds_need_lc_CXX" in
12087 x|xyes)
12088   # Assume -lc should be added
12089   archive_cmds_need_lc_CXX=yes
12090
12091   if test "$enable_shared" = yes && test "$GCC" = yes; then
12092     case $archive_cmds_CXX in
12093     *'~'*)
12094       # FIXME: we may have to deal with multi-command sequences.
12095       ;;
12096     '$CC '*)
12097       # Test whether the compiler implicitly links with -lc since on some
12098       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12099       # to ld, don't add -lc before -lgcc.
12100       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12102       $rm conftest*
12103       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12104
12105       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106   (eval $ac_compile) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } 2>conftest.err; then
12110         soname=conftest
12111         lib=conftest
12112         libobjs=conftest.$ac_objext
12113         deplibs=
12114         wl=$lt_prog_compiler_wl_CXX
12115         compiler_flags=-v
12116         linker_flags=-v
12117         verstring=
12118         output_objdir=.
12119         libname=conftest
12120         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12121         allow_undefined_flag_CXX=
12122         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12123   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }
12127         then
12128           archive_cmds_need_lc_CXX=no
12129         else
12130           archive_cmds_need_lc_CXX=yes
12131         fi
12132         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12133       else
12134         cat conftest.err 1>&5
12135       fi
12136       $rm conftest*
12137       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12138 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12139       ;;
12140     esac
12141   fi
12142   ;;
12143 esac
12144
12145 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12146 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12147 library_names_spec=
12148 libname_spec='lib$name'
12149 soname_spec=
12150 shrext_cmds=".so"
12151 postinstall_cmds=
12152 postuninstall_cmds=
12153 finish_cmds=
12154 finish_eval=
12155 shlibpath_var=
12156 shlibpath_overrides_runpath=unknown
12157 version_type=none
12158 dynamic_linker="$host_os ld.so"
12159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12160 if test "$GCC" = yes; then
12161   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12162   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12163     # if the path contains ";" then we assume it to be the separator
12164     # otherwise default to the standard path separator (i.e. ":") - it is
12165     # assumed that no part of a normal pathname contains ";" but that should
12166     # okay in the real world where ";" in dirpaths is itself problematic.
12167     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12168   else
12169     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12170   fi
12171 else
12172   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12173 fi
12174 need_lib_prefix=unknown
12175 hardcode_into_libs=no
12176
12177 # when you set need_version to no, make sure it does not cause -set_version
12178 # flags to be left without arguments
12179 need_version=unknown
12180
12181 case $host_os in
12182 aix3*)
12183   version_type=linux
12184   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12185   shlibpath_var=LIBPATH
12186
12187   # AIX 3 has no versioning support, so we append a major version to the name.
12188   soname_spec='${libname}${release}${shared_ext}$major'
12189   ;;
12190
12191 aix4* | aix5*)
12192   version_type=linux
12193   need_lib_prefix=no
12194   need_version=no
12195   hardcode_into_libs=yes
12196   if test "$host_cpu" = ia64; then
12197     # AIX 5 supports IA64
12198     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12199     shlibpath_var=LD_LIBRARY_PATH
12200   else
12201     # With GCC up to 2.95.x, collect2 would create an import file
12202     # for dependence libraries.  The import file would start with
12203     # the line `#! .'.  This would cause the generated library to
12204     # depend on `.', always an invalid library.  This was fixed in
12205     # development snapshots of GCC prior to 3.0.
12206     case $host_os in
12207       aix4 | aix4.[01] | aix4.[01].*)
12208       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12209            echo ' yes '
12210            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12211         :
12212       else
12213         can_build_shared=no
12214       fi
12215       ;;
12216     esac
12217     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12218     # soname into executable. Probably we can add versioning support to
12219     # collect2, so additional links can be useful in future.
12220     if test "$aix_use_runtimelinking" = yes; then
12221       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12222       # instead of lib<name>.a to let people know that these are not
12223       # typical AIX shared libraries.
12224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225     else
12226       # We preserve .a as extension for shared libraries through AIX4.2
12227       # and later when we are not doing run time linking.
12228       library_names_spec='${libname}${release}.a $libname.a'
12229       soname_spec='${libname}${release}${shared_ext}$major'
12230     fi
12231     shlibpath_var=LIBPATH
12232   fi
12233   ;;
12234
12235 amigaos*)
12236   library_names_spec='$libname.ixlibrary $libname.a'
12237   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12238   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'
12239   ;;
12240
12241 beos*)
12242   library_names_spec='${libname}${shared_ext}'
12243   dynamic_linker="$host_os ld.so"
12244   shlibpath_var=LIBRARY_PATH
12245   ;;
12246
12247 bsdi[45]*)
12248   version_type=linux
12249   need_version=no
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251   soname_spec='${libname}${release}${shared_ext}$major'
12252   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12253   shlibpath_var=LD_LIBRARY_PATH
12254   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12255   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12256   # the default ld.so.conf also contains /usr/contrib/lib and
12257   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12258   # libtool to hard-code these into programs
12259   ;;
12260
12261 cygwin* | mingw* | pw32*)
12262   version_type=windows
12263   shrext_cmds=".dll"
12264   need_version=no
12265   need_lib_prefix=no
12266
12267   case $GCC,$host_os in
12268   yes,cygwin* | yes,mingw* | yes,pw32*)
12269     library_names_spec='$libname.dll.a'
12270     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12271     postinstall_cmds='base_file=`basename \${file}`~
12272       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12273       dldir=$destdir/`dirname \$dlpath`~
12274       test -d \$dldir || mkdir -p \$dldir~
12275       $install_prog $dir/$dlname \$dldir/$dlname~
12276       chmod a+x \$dldir/$dlname'
12277     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12278       dlpath=$dir/\$dldll~
12279        $rm \$dlpath'
12280     shlibpath_overrides_runpath=yes
12281
12282     case $host_os in
12283     cygwin*)
12284       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12285       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12286       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12287       ;;
12288     mingw*)
12289       # MinGW DLLs use traditional 'lib' prefix
12290       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12291       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12292       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12293         # It is most probably a Windows format PATH printed by
12294         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12295         # path with ; separators, and with drive letters. We can handle the
12296         # drive letters (cygwin fileutils understands them), so leave them,
12297         # especially as we might pass files found there to a mingw objdump,
12298         # which wouldn't understand a cygwinified path. Ahh.
12299         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12300       else
12301         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12302       fi
12303       ;;
12304     pw32*)
12305       # pw32 DLLs use 'pw' prefix rather than 'lib'
12306       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12307       ;;
12308     esac
12309     ;;
12310
12311   *)
12312     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12313     ;;
12314   esac
12315   dynamic_linker='Win32 ld.exe'
12316   # FIXME: first we should search . and the directory the executable is in
12317   shlibpath_var=PATH
12318   ;;
12319
12320 darwin* | rhapsody*)
12321   dynamic_linker="$host_os dyld"
12322   version_type=darwin
12323   need_lib_prefix=no
12324   need_version=no
12325   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12326   soname_spec='${libname}${release}${major}$shared_ext'
12327   shlibpath_overrides_runpath=yes
12328   shlibpath_var=DYLD_LIBRARY_PATH
12329   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12330   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12331   if test "$GCC" = yes; then
12332     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"`
12333   else
12334     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12335   fi
12336   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12337   ;;
12338
12339 dgux*)
12340   version_type=linux
12341   need_lib_prefix=no
12342   need_version=no
12343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12344   soname_spec='${libname}${release}${shared_ext}$major'
12345   shlibpath_var=LD_LIBRARY_PATH
12346   ;;
12347
12348 freebsd1*)
12349   dynamic_linker=no
12350   ;;
12351
12352 kfreebsd*-gnu)
12353   version_type=linux
12354   need_lib_prefix=no
12355   need_version=no
12356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12357   soname_spec='${libname}${release}${shared_ext}$major'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   shlibpath_overrides_runpath=no
12360   hardcode_into_libs=yes
12361   dynamic_linker='GNU ld.so'
12362   ;;
12363
12364 freebsd* | dragonfly*)
12365   # DragonFly does not have aout.  When/if they implement a new
12366   # versioning mechanism, adjust this.
12367   if test -x /usr/bin/objformat; then
12368     objformat=`/usr/bin/objformat`
12369   else
12370     case $host_os in
12371     freebsd[123]*) objformat=aout ;;
12372     *) objformat=elf ;;
12373     esac
12374   fi
12375   version_type=freebsd-$objformat
12376   case $version_type in
12377     freebsd-elf*)
12378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12379       need_version=no
12380       need_lib_prefix=no
12381       ;;
12382     freebsd-*)
12383       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12384       need_version=yes
12385       ;;
12386   esac
12387   shlibpath_var=LD_LIBRARY_PATH
12388   case $host_os in
12389   freebsd2*)
12390     shlibpath_overrides_runpath=yes
12391     ;;
12392   freebsd3.[01]* | freebsdelf3.[01]*)
12393     shlibpath_overrides_runpath=yes
12394     hardcode_into_libs=yes
12395     ;;
12396   *) # from 3.2 on
12397     shlibpath_overrides_runpath=no
12398     hardcode_into_libs=yes
12399     ;;
12400   esac
12401   ;;
12402
12403 gnu*)
12404   version_type=linux
12405   need_lib_prefix=no
12406   need_version=no
12407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12408   soname_spec='${libname}${release}${shared_ext}$major'
12409   shlibpath_var=LD_LIBRARY_PATH
12410   hardcode_into_libs=yes
12411   ;;
12412
12413 hpux9* | hpux10* | hpux11*)
12414   # Give a soname corresponding to the major version so that dld.sl refuses to
12415   # link against other versions.
12416   version_type=sunos
12417   need_lib_prefix=no
12418   need_version=no
12419   case $host_cpu in
12420   ia64*)
12421     shrext_cmds='.so'
12422     hardcode_into_libs=yes
12423     dynamic_linker="$host_os dld.so"
12424     shlibpath_var=LD_LIBRARY_PATH
12425     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427     soname_spec='${libname}${release}${shared_ext}$major'
12428     if test "X$HPUX_IA64_MODE" = X32; then
12429       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12430     else
12431       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12432     fi
12433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12434     ;;
12435    hppa*64*)
12436      shrext_cmds='.sl'
12437      hardcode_into_libs=yes
12438      dynamic_linker="$host_os dld.sl"
12439      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12440      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12441      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442      soname_spec='${libname}${release}${shared_ext}$major'
12443      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12444      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12445      ;;
12446    *)
12447     shrext_cmds='.sl'
12448     dynamic_linker="$host_os dld.sl"
12449     shlibpath_var=SHLIB_PATH
12450     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452     soname_spec='${libname}${release}${shared_ext}$major'
12453     ;;
12454   esac
12455   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12456   postinstall_cmds='chmod 555 $lib'
12457   ;;
12458
12459 irix5* | irix6* | nonstopux*)
12460   case $host_os in
12461     nonstopux*) version_type=nonstopux ;;
12462     *)
12463         if test "$lt_cv_prog_gnu_ld" = yes; then
12464                 version_type=linux
12465         else
12466                 version_type=irix
12467         fi ;;
12468   esac
12469   need_lib_prefix=no
12470   need_version=no
12471   soname_spec='${libname}${release}${shared_ext}$major'
12472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12473   case $host_os in
12474   irix5* | nonstopux*)
12475     libsuff= shlibsuff=
12476     ;;
12477   *)
12478     case $LD in # libtool.m4 will add one of these switches to LD
12479     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12480       libsuff= shlibsuff= libmagic=32-bit;;
12481     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12482       libsuff=32 shlibsuff=N32 libmagic=N32;;
12483     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12484       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12485     *) libsuff= shlibsuff= libmagic=never-match;;
12486     esac
12487     ;;
12488   esac
12489   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12490   shlibpath_overrides_runpath=no
12491   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12492   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12493   hardcode_into_libs=yes
12494   ;;
12495
12496 # No shared lib support for Linux oldld, aout, or coff.
12497 linux*oldld* | linux*aout* | linux*coff*)
12498   dynamic_linker=no
12499   ;;
12500
12501 # This must be Linux ELF.
12502 linux*)
12503   version_type=linux
12504   need_lib_prefix=no
12505   need_version=no
12506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507   soname_spec='${libname}${release}${shared_ext}$major'
12508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12509   shlibpath_var=LD_LIBRARY_PATH
12510   shlibpath_overrides_runpath=no
12511   # This implies no fast_install, which is unacceptable.
12512   # Some rework will be needed to allow for fast_install
12513   # before this can be enabled.
12514   hardcode_into_libs=yes
12515
12516   # Append ld.so.conf contents to the search path
12517   if test -f /etc/ld.so.conf; then
12518     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12519     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12520   fi
12521
12522   # We used to test for /lib/ld.so.1 and disable shared libraries on
12523   # powerpc, because MkLinux only supported shared libraries with the
12524   # GNU dynamic linker.  Since this was broken with cross compilers,
12525   # most powerpc-linux boxes support dynamic linking these days and
12526   # people can always --disable-shared, the test was removed, and we
12527   # assume the GNU/Linux dynamic linker is in use.
12528   dynamic_linker='GNU/Linux ld.so'
12529   ;;
12530
12531 knetbsd*-gnu)
12532   version_type=linux
12533   need_lib_prefix=no
12534   need_version=no
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12536   soname_spec='${libname}${release}${shared_ext}$major'
12537   shlibpath_var=LD_LIBRARY_PATH
12538   shlibpath_overrides_runpath=no
12539   hardcode_into_libs=yes
12540   dynamic_linker='GNU ld.so'
12541   ;;
12542
12543 netbsd*)
12544   version_type=sunos
12545   need_lib_prefix=no
12546   need_version=no
12547   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12550     dynamic_linker='NetBSD (a.out) ld.so'
12551   else
12552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12553     soname_spec='${libname}${release}${shared_ext}$major'
12554     dynamic_linker='NetBSD ld.elf_so'
12555   fi
12556   shlibpath_var=LD_LIBRARY_PATH
12557   shlibpath_overrides_runpath=yes
12558   hardcode_into_libs=yes
12559   ;;
12560
12561 newsos6)
12562   version_type=linux
12563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564   shlibpath_var=LD_LIBRARY_PATH
12565   shlibpath_overrides_runpath=yes
12566   ;;
12567
12568 nto-qnx*)
12569   version_type=linux
12570   need_lib_prefix=no
12571   need_version=no
12572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573   soname_spec='${libname}${release}${shared_ext}$major'
12574   shlibpath_var=LD_LIBRARY_PATH
12575   shlibpath_overrides_runpath=yes
12576   ;;
12577
12578 openbsd*)
12579   version_type=sunos
12580   need_lib_prefix=no
12581   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12582   case $host_os in
12583     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12584     *)                         need_version=no  ;;
12585   esac
12586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12588   shlibpath_var=LD_LIBRARY_PATH
12589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12590     case $host_os in
12591       openbsd2.[89] | openbsd2.[89].*)
12592         shlibpath_overrides_runpath=no
12593         ;;
12594       *)
12595         shlibpath_overrides_runpath=yes
12596         ;;
12597       esac
12598   else
12599     shlibpath_overrides_runpath=yes
12600   fi
12601   ;;
12602
12603 os2*)
12604   libname_spec='$name'
12605   shrext_cmds=".dll"
12606   need_lib_prefix=no
12607   library_names_spec='$libname${shared_ext} $libname.a'
12608   dynamic_linker='OS/2 ld.exe'
12609   shlibpath_var=LIBPATH
12610   ;;
12611
12612 osf3* | osf4* | osf5*)
12613   version_type=osf
12614   need_lib_prefix=no
12615   need_version=no
12616   soname_spec='${libname}${release}${shared_ext}$major'
12617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618   shlibpath_var=LD_LIBRARY_PATH
12619   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12620   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12621   ;;
12622
12623 sco3.2v5*)
12624   version_type=osf
12625   soname_spec='${libname}${release}${shared_ext}$major'
12626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627   shlibpath_var=LD_LIBRARY_PATH
12628   ;;
12629
12630 solaris*)
12631   version_type=linux
12632   need_lib_prefix=no
12633   need_version=no
12634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635   soname_spec='${libname}${release}${shared_ext}$major'
12636   shlibpath_var=LD_LIBRARY_PATH
12637   shlibpath_overrides_runpath=yes
12638   hardcode_into_libs=yes
12639   # ldd complains unless libraries are executable
12640   postinstall_cmds='chmod +x $lib'
12641   ;;
12642
12643 sunos4*)
12644   version_type=sunos
12645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12646   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12647   shlibpath_var=LD_LIBRARY_PATH
12648   shlibpath_overrides_runpath=yes
12649   if test "$with_gnu_ld" = yes; then
12650     need_lib_prefix=no
12651   fi
12652   need_version=yes
12653   ;;
12654
12655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12656   version_type=linux
12657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658   soname_spec='${libname}${release}${shared_ext}$major'
12659   shlibpath_var=LD_LIBRARY_PATH
12660   case $host_vendor in
12661     sni)
12662       shlibpath_overrides_runpath=no
12663       need_lib_prefix=no
12664       export_dynamic_flag_spec='${wl}-Blargedynsym'
12665       runpath_var=LD_RUN_PATH
12666       ;;
12667     siemens)
12668       need_lib_prefix=no
12669       ;;
12670     motorola)
12671       need_lib_prefix=no
12672       need_version=no
12673       shlibpath_overrides_runpath=no
12674       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12675       ;;
12676   esac
12677   ;;
12678
12679 sysv4*MP*)
12680   if test -d /usr/nec ;then
12681     version_type=linux
12682     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12683     soname_spec='$libname${shared_ext}.$major'
12684     shlibpath_var=LD_LIBRARY_PATH
12685   fi
12686   ;;
12687
12688 uts4*)
12689   version_type=linux
12690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12691   soname_spec='${libname}${release}${shared_ext}$major'
12692   shlibpath_var=LD_LIBRARY_PATH
12693   ;;
12694
12695 *)
12696   dynamic_linker=no
12697   ;;
12698 esac
12699 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12700 echo "${ECHO_T}$dynamic_linker" >&6; }
12701 test "$dynamic_linker" = no && can_build_shared=no
12702
12703 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12704 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12705 hardcode_action_CXX=
12706 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12707    test -n "$runpath_var_CXX" || \
12708    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12709
12710   # We can hardcode non-existant directories.
12711   if test "$hardcode_direct_CXX" != no &&
12712      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12713      # have to relink, otherwise we might link with an installed library
12714      # when we should be linking with a yet-to-be-installed one
12715      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12716      test "$hardcode_minus_L_CXX" != no; then
12717     # Linking always hardcodes the temporary library directory.
12718     hardcode_action_CXX=relink
12719   else
12720     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12721     hardcode_action_CXX=immediate
12722   fi
12723 else
12724   # We cannot hardcode anything, or else we can only hardcode existing
12725   # directories.
12726   hardcode_action_CXX=unsupported
12727 fi
12728 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12729 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12730
12731 if test "$hardcode_action_CXX" = relink; then
12732   # Fast installation is not supported
12733   enable_fast_install=no
12734 elif test "$shlibpath_overrides_runpath" = yes ||
12735      test "$enable_shared" = no; then
12736   # Fast installation is not necessary
12737   enable_fast_install=needless
12738 fi
12739
12740 striplib=
12741 old_striplib=
12742 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12743 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12744 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12745   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12746   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12747   { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12749 else
12750 # FIXME - insert some real tests, host_os isn't really good enough
12751   case $host_os in
12752    darwin*)
12753        if test -n "$STRIP" ; then
12754          striplib="$STRIP -x"
12755          { echo "$as_me:$LINENO: result: yes" >&5
12756 echo "${ECHO_T}yes" >&6; }
12757        else
12758   { echo "$as_me:$LINENO: result: no" >&5
12759 echo "${ECHO_T}no" >&6; }
12760 fi
12761        ;;
12762    *)
12763   { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12765     ;;
12766   esac
12767 fi
12768
12769 if test "x$enable_dlopen" != xyes; then
12770   enable_dlopen=unknown
12771   enable_dlopen_self=unknown
12772   enable_dlopen_self_static=unknown
12773 else
12774   lt_cv_dlopen=no
12775   lt_cv_dlopen_libs=
12776
12777   case $host_os in
12778   beos*)
12779     lt_cv_dlopen="load_add_on"
12780     lt_cv_dlopen_libs=
12781     lt_cv_dlopen_self=yes
12782     ;;
12783
12784   mingw* | pw32*)
12785     lt_cv_dlopen="LoadLibrary"
12786     lt_cv_dlopen_libs=
12787    ;;
12788
12789   cygwin*)
12790     lt_cv_dlopen="dlopen"
12791     lt_cv_dlopen_libs=
12792    ;;
12793
12794   darwin*)
12795   # if libdl is installed we need to link against it
12796     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12797 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-ldl  $LIBS"
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char dlopen ();
12817 int
12818 main ()
12819 {
12820 return dlopen ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_link") 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } && {
12839          test -z "$ac_cxx_werror_flag" ||
12840          test ! -s conftest.err
12841        } && test -s conftest$ac_exeext &&
12842        $as_test_x conftest$ac_exeext; then
12843   ac_cv_lib_dl_dlopen=yes
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848         ac_cv_lib_dl_dlopen=no
12849 fi
12850
12851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12852       conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12854 fi
12855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12857 if test $ac_cv_lib_dl_dlopen = yes; then
12858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12859 else
12860
12861     lt_cv_dlopen="dyld"
12862     lt_cv_dlopen_libs=
12863     lt_cv_dlopen_self=yes
12864
12865 fi
12866
12867    ;;
12868
12869   *)
12870     { echo "$as_me:$LINENO: checking for shl_load" >&5
12871 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12872 if test "${ac_cv_func_shl_load+set}" = set; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12883 #define shl_load innocuous_shl_load
12884
12885 /* System header to define __stub macros and hopefully few prototypes,
12886     which can conflict with char shl_load (); below.
12887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888     <limits.h> exists even on freestanding compilers.  */
12889
12890 #ifdef __STDC__
12891 # include <limits.h>
12892 #else
12893 # include <assert.h>
12894 #endif
12895
12896 #undef shl_load
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char shl_load ();
12905 /* The GNU C library defines this for functions which it implements
12906     to always fail with ENOSYS.  Some functions are actually named
12907     something starting with __ and the normal name is an alias.  */
12908 #if defined __stub_shl_load || defined __stub___shl_load
12909 choke me
12910 #endif
12911
12912 int
12913 main ()
12914 {
12915 return shl_load ();
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_link") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } && {
12934          test -z "$ac_cxx_werror_flag" ||
12935          test ! -s conftest.err
12936        } && test -s conftest$ac_exeext &&
12937        $as_test_x conftest$ac_exeext; then
12938   ac_cv_func_shl_load=yes
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943         ac_cv_func_shl_load=no
12944 fi
12945
12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947       conftest$ac_exeext conftest.$ac_ext
12948 fi
12949 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12950 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12951 if test $ac_cv_func_shl_load = yes; then
12952   lt_cv_dlopen="shl_load"
12953 else
12954   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12955 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12956 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   ac_check_lib_save_LIBS=$LIBS
12960 LIBS="-ldld  $LIBS"
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969    Use char because int might match the return type of a GCC
12970    builtin and then its argument prototype would still apply.  */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char shl_load ();
12975 int
12976 main ()
12977 {
12978 return shl_load ();
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_link") 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } && {
12997          test -z "$ac_cxx_werror_flag" ||
12998          test ! -s conftest.err
12999        } && test -s conftest$ac_exeext &&
13000        $as_test_x conftest$ac_exeext; then
13001   ac_cv_lib_dld_shl_load=yes
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006         ac_cv_lib_dld_shl_load=no
13007 fi
13008
13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13010       conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13014 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13015 if test $ac_cv_lib_dld_shl_load = yes; then
13016   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13017 else
13018   { echo "$as_me:$LINENO: checking for dlopen" >&5
13019 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13020 if test "${ac_cv_func_dlopen+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13031 #define dlopen innocuous_dlopen
13032
13033 /* System header to define __stub macros and hopefully few prototypes,
13034     which can conflict with char dlopen (); below.
13035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036     <limits.h> exists even on freestanding compilers.  */
13037
13038 #ifdef __STDC__
13039 # include <limits.h>
13040 #else
13041 # include <assert.h>
13042 #endif
13043
13044 #undef dlopen
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047    Use char because int might match the return type of a GCC
13048    builtin and then its argument prototype would still apply.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char dlopen ();
13053 /* The GNU C library defines this for functions which it implements
13054     to always fail with ENOSYS.  Some functions are actually named
13055     something starting with __ and the normal name is an alias.  */
13056 #if defined __stub_dlopen || defined __stub___dlopen
13057 choke me
13058 #endif
13059
13060 int
13061 main ()
13062 {
13063 return dlopen ();
13064   ;
13065   return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_link") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } && {
13082          test -z "$ac_cxx_werror_flag" ||
13083          test ! -s conftest.err
13084        } && test -s conftest$ac_exeext &&
13085        $as_test_x conftest$ac_exeext; then
13086   ac_cv_func_dlopen=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091         ac_cv_func_dlopen=no
13092 fi
13093
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095       conftest$ac_exeext conftest.$ac_ext
13096 fi
13097 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13098 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13099 if test $ac_cv_func_dlopen = yes; then
13100   lt_cv_dlopen="dlopen"
13101 else
13102   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13103 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-ldl  $LIBS"
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116 /* Override any GCC internal prototype to avoid an error.
13117    Use char because int might match the return type of a GCC
13118    builtin and then its argument prototype would still apply.  */
13119 #ifdef __cplusplus
13120 extern "C"
13121 #endif
13122 char dlopen ();
13123 int
13124 main ()
13125 {
13126 return dlopen ();
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_link") 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } && {
13145          test -z "$ac_cxx_werror_flag" ||
13146          test ! -s conftest.err
13147        } && test -s conftest$ac_exeext &&
13148        $as_test_x conftest$ac_exeext; then
13149   ac_cv_lib_dl_dlopen=yes
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154         ac_cv_lib_dl_dlopen=no
13155 fi
13156
13157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13158       conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13162 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13163 if test $ac_cv_lib_dl_dlopen = yes; then
13164   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13165 else
13166   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13167 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13168 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsvld  $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181    Use char because int might match the return type of a GCC
13182    builtin and then its argument prototype would still apply.  */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char dlopen ();
13187 int
13188 main ()
13189 {
13190 return dlopen ();
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_link") 2>conftest.er1
13203   ac_status=$?
13204   grep -v '^ *+' conftest.er1 >conftest.err
13205   rm -f conftest.er1
13206   cat conftest.err >&5
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } && {
13209          test -z "$ac_cxx_werror_flag" ||
13210          test ! -s conftest.err
13211        } && test -s conftest$ac_exeext &&
13212        $as_test_x conftest$ac_exeext; then
13213   ac_cv_lib_svld_dlopen=yes
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218         ac_cv_lib_svld_dlopen=no
13219 fi
13220
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222       conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13224 fi
13225 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13227 if test $ac_cv_lib_svld_dlopen = yes; then
13228   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13229 else
13230   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-ldld  $LIBS"
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h.  */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h.  */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char dld_link ();
13251 int
13252 main ()
13253 {
13254 return dld_link ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_link") 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } && {
13273          test -z "$ac_cxx_werror_flag" ||
13274          test ! -s conftest.err
13275        } && test -s conftest$ac_exeext &&
13276        $as_test_x conftest$ac_exeext; then
13277   ac_cv_lib_dld_dld_link=yes
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282         ac_cv_lib_dld_dld_link=no
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286       conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13288 fi
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13291 if test $ac_cv_lib_dld_dld_link = yes; then
13292   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13293 fi
13294
13295
13296 fi
13297
13298
13299 fi
13300
13301
13302 fi
13303
13304
13305 fi
13306
13307
13308 fi
13309
13310     ;;
13311   esac
13312
13313   if test "x$lt_cv_dlopen" != xno; then
13314     enable_dlopen=yes
13315   else
13316     enable_dlopen=no
13317   fi
13318
13319   case $lt_cv_dlopen in
13320   dlopen)
13321     save_CPPFLAGS="$CPPFLAGS"
13322     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13323
13324     save_LDFLAGS="$LDFLAGS"
13325     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13326
13327     save_LIBS="$LIBS"
13328     LIBS="$lt_cv_dlopen_libs $LIBS"
13329
13330     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13331 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13332 if test "${lt_cv_dlopen_self+set}" = set; then
13333   echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335           if test "$cross_compiling" = yes; then :
13336   lt_cv_dlopen_self=cross
13337 else
13338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13339   lt_status=$lt_dlunknown
13340   cat > conftest.$ac_ext <<EOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13343
13344 #if HAVE_DLFCN_H
13345 #include <dlfcn.h>
13346 #endif
13347
13348 #include <stdio.h>
13349
13350 #ifdef RTLD_GLOBAL
13351 #  define LT_DLGLOBAL           RTLD_GLOBAL
13352 #else
13353 #  ifdef DL_GLOBAL
13354 #    define LT_DLGLOBAL         DL_GLOBAL
13355 #  else
13356 #    define LT_DLGLOBAL         0
13357 #  endif
13358 #endif
13359
13360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13361    find out it does not work in some platform. */
13362 #ifndef LT_DLLAZY_OR_NOW
13363 #  ifdef RTLD_LAZY
13364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13365 #  else
13366 #    ifdef DL_LAZY
13367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13368 #    else
13369 #      ifdef RTLD_NOW
13370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13371 #      else
13372 #        ifdef DL_NOW
13373 #          define LT_DLLAZY_OR_NOW      DL_NOW
13374 #        else
13375 #          define LT_DLLAZY_OR_NOW      0
13376 #        endif
13377 #      endif
13378 #    endif
13379 #  endif
13380 #endif
13381
13382 #ifdef __cplusplus
13383 extern "C" void exit (int);
13384 #endif
13385
13386 void fnord() { int i=42;}
13387 int main ()
13388 {
13389   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13390   int status = $lt_dlunknown;
13391
13392   if (self)
13393     {
13394       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13395       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13396       /* dlclose (self); */
13397     }
13398
13399     exit (status);
13400 }
13401 EOF
13402   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13403   (eval $ac_link) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13407     (./conftest; exit; ) >&5 2>/dev/null
13408     lt_status=$?
13409     case x$lt_status in
13410       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13411       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13412       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13413     esac
13414   else :
13415     # compilation failed
13416     lt_cv_dlopen_self=no
13417   fi
13418 fi
13419 rm -fr conftest*
13420
13421
13422 fi
13423 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13425
13426     if test "x$lt_cv_dlopen_self" = xyes; then
13427       LDFLAGS="$LDFLAGS $link_static_flag"
13428       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13430 if test "${lt_cv_dlopen_self_static+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433           if test "$cross_compiling" = yes; then :
13434   lt_cv_dlopen_self_static=cross
13435 else
13436   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13437   lt_status=$lt_dlunknown
13438   cat > conftest.$ac_ext <<EOF
13439 #line 13439 "configure"
13440 #include "confdefs.h"
13441
13442 #if HAVE_DLFCN_H
13443 #include <dlfcn.h>
13444 #endif
13445
13446 #include <stdio.h>
13447
13448 #ifdef RTLD_GLOBAL
13449 #  define LT_DLGLOBAL           RTLD_GLOBAL
13450 #else
13451 #  ifdef DL_GLOBAL
13452 #    define LT_DLGLOBAL         DL_GLOBAL
13453 #  else
13454 #    define LT_DLGLOBAL         0
13455 #  endif
13456 #endif
13457
13458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13459    find out it does not work in some platform. */
13460 #ifndef LT_DLLAZY_OR_NOW
13461 #  ifdef RTLD_LAZY
13462 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13463 #  else
13464 #    ifdef DL_LAZY
13465 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13466 #    else
13467 #      ifdef RTLD_NOW
13468 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13469 #      else
13470 #        ifdef DL_NOW
13471 #          define LT_DLLAZY_OR_NOW      DL_NOW
13472 #        else
13473 #          define LT_DLLAZY_OR_NOW      0
13474 #        endif
13475 #      endif
13476 #    endif
13477 #  endif
13478 #endif
13479
13480 #ifdef __cplusplus
13481 extern "C" void exit (int);
13482 #endif
13483
13484 void fnord() { int i=42;}
13485 int main ()
13486 {
13487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13488   int status = $lt_dlunknown;
13489
13490   if (self)
13491     {
13492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13493       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13494       /* dlclose (self); */
13495     }
13496
13497     exit (status);
13498 }
13499 EOF
13500   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501   (eval $ac_link) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13505     (./conftest; exit; ) >&5 2>/dev/null
13506     lt_status=$?
13507     case x$lt_status in
13508       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13509       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13510       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13511     esac
13512   else :
13513     # compilation failed
13514     lt_cv_dlopen_self_static=no
13515   fi
13516 fi
13517 rm -fr conftest*
13518
13519
13520 fi
13521 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13522 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13523     fi
13524
13525     CPPFLAGS="$save_CPPFLAGS"
13526     LDFLAGS="$save_LDFLAGS"
13527     LIBS="$save_LIBS"
13528     ;;
13529   esac
13530
13531   case $lt_cv_dlopen_self in
13532   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13533   *) enable_dlopen_self=unknown ;;
13534   esac
13535
13536   case $lt_cv_dlopen_self_static in
13537   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13538   *) enable_dlopen_self_static=unknown ;;
13539   esac
13540 fi
13541
13542
13543 # The else clause should only fire when bootstrapping the
13544 # libtool distribution, otherwise you forgot to ship ltmain.sh
13545 # with your package, and you will get complaints that there are
13546 # no rules to generate ltmain.sh.
13547 if test -f "$ltmain"; then
13548   # See if we are running on zsh, and set the options which allow our commands through
13549   # without removal of \ escapes.
13550   if test -n "${ZSH_VERSION+set}" ; then
13551     setopt NO_GLOB_SUBST
13552   fi
13553   # Now quote all the things that may contain metacharacters while being
13554   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13555   # variables and quote the copies for generation of the libtool script.
13556   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13557     SED SHELL STRIP \
13558     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13559     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13560     deplibs_check_method reload_flag reload_cmds need_locks \
13561     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13562     lt_cv_sys_global_symbol_to_c_name_address \
13563     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13564     old_postinstall_cmds old_postuninstall_cmds \
13565     compiler_CXX \
13566     CC_CXX \
13567     LD_CXX \
13568     lt_prog_compiler_wl_CXX \
13569     lt_prog_compiler_pic_CXX \
13570     lt_prog_compiler_static_CXX \
13571     lt_prog_compiler_no_builtin_flag_CXX \
13572     export_dynamic_flag_spec_CXX \
13573     thread_safe_flag_spec_CXX \
13574     whole_archive_flag_spec_CXX \
13575     enable_shared_with_static_runtimes_CXX \
13576     old_archive_cmds_CXX \
13577     old_archive_from_new_cmds_CXX \
13578     predep_objects_CXX \
13579     postdep_objects_CXX \
13580     predeps_CXX \
13581     postdeps_CXX \
13582     compiler_lib_search_path_CXX \
13583     archive_cmds_CXX \
13584     archive_expsym_cmds_CXX \
13585     postinstall_cmds_CXX \
13586     postuninstall_cmds_CXX \
13587     old_archive_from_expsyms_cmds_CXX \
13588     allow_undefined_flag_CXX \
13589     no_undefined_flag_CXX \
13590     export_symbols_cmds_CXX \
13591     hardcode_libdir_flag_spec_CXX \
13592     hardcode_libdir_flag_spec_ld_CXX \
13593     hardcode_libdir_separator_CXX \
13594     hardcode_automatic_CXX \
13595     module_cmds_CXX \
13596     module_expsym_cmds_CXX \
13597     lt_cv_prog_compiler_c_o_CXX \
13598     exclude_expsyms_CXX \
13599     include_expsyms_CXX; do
13600
13601     case $var in
13602     old_archive_cmds_CXX | \
13603     old_archive_from_new_cmds_CXX | \
13604     archive_cmds_CXX | \
13605     archive_expsym_cmds_CXX | \
13606     module_cmds_CXX | \
13607     module_expsym_cmds_CXX | \
13608     old_archive_from_expsyms_cmds_CXX | \
13609     export_symbols_cmds_CXX | \
13610     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13611     postinstall_cmds | postuninstall_cmds | \
13612     old_postinstall_cmds | old_postuninstall_cmds | \
13613     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13614       # Double-quote double-evaled strings.
13615       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13616       ;;
13617     *)
13618       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13619       ;;
13620     esac
13621   done
13622
13623   case $lt_echo in
13624   *'\$0 --fallback-echo"')
13625     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13626     ;;
13627   esac
13628
13629 cfgfile="$ofile"
13630
13631   cat <<__EOF__ >> "$cfgfile"
13632 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13633
13634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13635
13636 # Shell to use when invoking shell scripts.
13637 SHELL=$lt_SHELL
13638
13639 # Whether or not to build shared libraries.
13640 build_libtool_libs=$enable_shared
13641
13642 # Whether or not to build static libraries.
13643 build_old_libs=$enable_static
13644
13645 # Whether or not to add -lc for building shared libraries.
13646 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13647
13648 # Whether or not to disallow shared libs when runtime libs are static
13649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13650
13651 # Whether or not to optimize for fast installation.
13652 fast_install=$enable_fast_install
13653
13654 # The host system.
13655 host_alias=$host_alias
13656 host=$host
13657 host_os=$host_os
13658
13659 # The build system.
13660 build_alias=$build_alias
13661 build=$build
13662 build_os=$build_os
13663
13664 # An echo program that does not interpret backslashes.
13665 echo=$lt_echo
13666
13667 # The archiver.
13668 AR=$lt_AR
13669 AR_FLAGS=$lt_AR_FLAGS
13670
13671 # A C compiler.
13672 LTCC=$lt_LTCC
13673
13674 # A language-specific compiler.
13675 CC=$lt_compiler_CXX
13676
13677 # Is the compiler the GNU C compiler?
13678 with_gcc=$GCC_CXX
13679
13680 # An ERE matcher.
13681 EGREP=$lt_EGREP
13682
13683 # The linker used to build libraries.
13684 LD=$lt_LD_CXX
13685
13686 # Whether we need hard or soft links.
13687 LN_S=$lt_LN_S
13688
13689 # A BSD-compatible nm program.
13690 NM=$lt_NM
13691
13692 # A symbol stripping program
13693 STRIP=$lt_STRIP
13694
13695 # Used to examine libraries when file_magic_cmd begins "file"
13696 MAGIC_CMD=$MAGIC_CMD
13697
13698 # Used on cygwin: DLL creation program.
13699 DLLTOOL="$DLLTOOL"
13700
13701 # Used on cygwin: object dumper.
13702 OBJDUMP="$OBJDUMP"
13703
13704 # Used on cygwin: assembler.
13705 AS="$AS"
13706
13707 # The name of the directory that contains temporary libtool files.
13708 objdir=$objdir
13709
13710 # How to create reloadable object files.
13711 reload_flag=$lt_reload_flag
13712 reload_cmds=$lt_reload_cmds
13713
13714 # How to pass a linker flag through the compiler.
13715 wl=$lt_lt_prog_compiler_wl_CXX
13716
13717 # Object file suffix (normally "o").
13718 objext="$ac_objext"
13719
13720 # Old archive suffix (normally "a").
13721 libext="$libext"
13722
13723 # Shared library suffix (normally ".so").
13724 shrext_cmds='$shrext_cmds'
13725
13726 # Executable file suffix (normally "").
13727 exeext="$exeext"
13728
13729 # Additional compiler flags for building library objects.
13730 pic_flag=$lt_lt_prog_compiler_pic_CXX
13731 pic_mode=$pic_mode
13732
13733 # What is the maximum length of a command?
13734 max_cmd_len=$lt_cv_sys_max_cmd_len
13735
13736 # Does compiler simultaneously support -c and -o options?
13737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13738
13739 # Must we lock files when doing compilation?
13740 need_locks=$lt_need_locks
13741
13742 # Do we need the lib prefix for modules?
13743 need_lib_prefix=$need_lib_prefix
13744
13745 # Do we need a version for libraries?
13746 need_version=$need_version
13747
13748 # Whether dlopen is supported.
13749 dlopen_support=$enable_dlopen
13750
13751 # Whether dlopen of programs is supported.
13752 dlopen_self=$enable_dlopen_self
13753
13754 # Whether dlopen of statically linked programs is supported.
13755 dlopen_self_static=$enable_dlopen_self_static
13756
13757 # Compiler flag to prevent dynamic linking.
13758 link_static_flag=$lt_lt_prog_compiler_static_CXX
13759
13760 # Compiler flag to turn off builtin functions.
13761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13762
13763 # Compiler flag to allow reflexive dlopens.
13764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13765
13766 # Compiler flag to generate shared objects directly from archives.
13767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13768
13769 # Compiler flag to generate thread-safe objects.
13770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13771
13772 # Library versioning type.
13773 version_type=$version_type
13774
13775 # Format of library name prefix.
13776 libname_spec=$lt_libname_spec
13777
13778 # List of archive names.  First name is the real one, the rest are links.
13779 # The last name is the one that the linker finds with -lNAME.
13780 library_names_spec=$lt_library_names_spec
13781
13782 # The coded name of the library, if different from the real name.
13783 soname_spec=$lt_soname_spec
13784
13785 # Commands used to build and install an old-style archive.
13786 RANLIB=$lt_RANLIB
13787 old_archive_cmds=$lt_old_archive_cmds_CXX
13788 old_postinstall_cmds=$lt_old_postinstall_cmds
13789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13790
13791 # Create an old-style archive from a shared archive.
13792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13793
13794 # Create a temporary old-style archive to link instead of a shared archive.
13795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13796
13797 # Commands used to build and install a shared archive.
13798 archive_cmds=$lt_archive_cmds_CXX
13799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13800 postinstall_cmds=$lt_postinstall_cmds
13801 postuninstall_cmds=$lt_postuninstall_cmds
13802
13803 # Commands used to build a loadable module (assumed same as above if empty)
13804 module_cmds=$lt_module_cmds_CXX
13805 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13806
13807 # Commands to strip libraries.
13808 old_striplib=$lt_old_striplib
13809 striplib=$lt_striplib
13810
13811 # Dependencies to place before the objects being linked to create a
13812 # shared library.
13813 predep_objects=$lt_predep_objects_CXX
13814
13815 # Dependencies to place after the objects being linked to create a
13816 # shared library.
13817 postdep_objects=$lt_postdep_objects_CXX
13818
13819 # Dependencies to place before the objects being linked to create a
13820 # shared library.
13821 predeps=$lt_predeps_CXX
13822
13823 # Dependencies to place after the objects being linked to create a
13824 # shared library.
13825 postdeps=$lt_postdeps_CXX
13826
13827 # The library search path used internally by the compiler when linking
13828 # a shared library.
13829 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13830
13831 # Method to check whether dependent libraries are shared objects.
13832 deplibs_check_method=$lt_deplibs_check_method
13833
13834 # Command to use when deplibs_check_method == file_magic.
13835 file_magic_cmd=$lt_file_magic_cmd
13836
13837 # Flag that allows shared libraries with undefined symbols to be built.
13838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13839
13840 # Flag that forces no undefined symbols.
13841 no_undefined_flag=$lt_no_undefined_flag_CXX
13842
13843 # Commands used to finish a libtool library installation in a directory.
13844 finish_cmds=$lt_finish_cmds
13845
13846 # Same as above, but a single script fragment to be evaled but not shown.
13847 finish_eval=$lt_finish_eval
13848
13849 # Take the output of nm and produce a listing of raw symbols and C names.
13850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13851
13852 # Transform the output of nm in a proper C declaration
13853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13854
13855 # Transform the output of nm in a C name address pair
13856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13857
13858 # This is the shared library runtime path variable.
13859 runpath_var=$runpath_var
13860
13861 # This is the shared library path variable.
13862 shlibpath_var=$shlibpath_var
13863
13864 # Is shlibpath searched before the hard-coded library search path?
13865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13866
13867 # How to hardcode a shared library path into an executable.
13868 hardcode_action=$hardcode_action_CXX
13869
13870 # Whether we should hardcode library paths into libraries.
13871 hardcode_into_libs=$hardcode_into_libs
13872
13873 # Flag to hardcode \$libdir into a binary during linking.
13874 # This must work even if \$libdir does not exist.
13875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13876
13877 # If ld is used when linking, flag to hardcode \$libdir into
13878 # a binary during linking. This must work even if \$libdir does
13879 # not exist.
13880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13881
13882 # Whether we need a single -rpath flag with a separated argument.
13883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13884
13885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13886 # resulting binary.
13887 hardcode_direct=$hardcode_direct_CXX
13888
13889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13890 # resulting binary.
13891 hardcode_minus_L=$hardcode_minus_L_CXX
13892
13893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13894 # the resulting binary.
13895 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13896
13897 # Set to yes if building a shared library automatically hardcodes DIR into the library
13898 # and all subsequent libraries and executables linked against it.
13899 hardcode_automatic=$hardcode_automatic_CXX
13900
13901 # Variables whose values should be saved in libtool wrapper scripts and
13902 # restored at relink time.
13903 variables_saved_for_relink="$variables_saved_for_relink"
13904
13905 # Whether libtool must link a program against all its dependency libraries.
13906 link_all_deplibs=$link_all_deplibs_CXX
13907
13908 # Compile-time system search path for libraries
13909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13910
13911 # Run-time system search path for libraries
13912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13913
13914 # Fix the shell variable \$srcfile for the compiler.
13915 fix_srcfile_path="$fix_srcfile_path_CXX"
13916
13917 # Set to yes if exported symbols are required.
13918 always_export_symbols=$always_export_symbols_CXX
13919
13920 # The commands to list exported symbols.
13921 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13922
13923 # The commands to extract the exported symbol list from a shared archive.
13924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13925
13926 # Symbols that should not be listed in the preloaded symbols.
13927 exclude_expsyms=$lt_exclude_expsyms_CXX
13928
13929 # Symbols that must always be exported.
13930 include_expsyms=$lt_include_expsyms_CXX
13931
13932 # ### END LIBTOOL TAG CONFIG: $tagname
13933
13934 __EOF__
13935
13936
13937 else
13938   # If there is no Makefile yet, we rely on a make rule to execute
13939   # `config.status --recheck' to rerun these tests and create the
13940   # libtool script then.
13941   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13942   if test -f "$ltmain_in"; then
13943     test -f Makefile && make "$ltmain"
13944   fi
13945 fi
13946
13947
13948 ac_ext=c
13949 ac_cpp='$CPP $CPPFLAGS'
13950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13953
13954 CC=$lt_save_CC
13955 LDCXX=$LD
13956 LD=$lt_save_LD
13957 GCC=$lt_save_GCC
13958 with_gnu_ldcxx=$with_gnu_ld
13959 with_gnu_ld=$lt_save_with_gnu_ld
13960 lt_cv_path_LDCXX=$lt_cv_path_LD
13961 lt_cv_path_LD=$lt_save_path_LD
13962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13964
13965         else
13966           tagname=""
13967         fi
13968         ;;
13969
13970       F77)
13971         if test -n "$F77" && test "X$F77" != "Xno"; then
13972
13973 ac_ext=f
13974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13977
13978
13979 archive_cmds_need_lc_F77=no
13980 allow_undefined_flag_F77=
13981 always_export_symbols_F77=no
13982 archive_expsym_cmds_F77=
13983 export_dynamic_flag_spec_F77=
13984 hardcode_direct_F77=no
13985 hardcode_libdir_flag_spec_F77=
13986 hardcode_libdir_flag_spec_ld_F77=
13987 hardcode_libdir_separator_F77=
13988 hardcode_minus_L_F77=no
13989 hardcode_automatic_F77=no
13990 module_cmds_F77=
13991 module_expsym_cmds_F77=
13992 link_all_deplibs_F77=unknown
13993 old_archive_cmds_F77=$old_archive_cmds
13994 no_undefined_flag_F77=
13995 whole_archive_flag_spec_F77=
13996 enable_shared_with_static_runtimes_F77=no
13997
13998 # Source file extension for f77 test sources.
13999 ac_ext=f
14000
14001 # Object file extension for compiled f77 test sources.
14002 objext=o
14003 objext_F77=$objext
14004
14005 # Code to be used in simple compile tests
14006 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14007
14008 # Code to be used in simple link tests
14009 lt_simple_link_test_code="      program t\n      end\n"
14010
14011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14012
14013 # If no C compiler was specified, use CC.
14014 LTCC=${LTCC-"$CC"}
14015
14016 # Allow CC to be a program name with arguments.
14017 compiler=$CC
14018
14019
14020 # save warnings/boilerplate of simple test code
14021 ac_outfile=conftest.$ac_objext
14022 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14024 _lt_compiler_boilerplate=`cat conftest.err`
14025 $rm conftest*
14026
14027 ac_outfile=conftest.$ac_objext
14028 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14030 _lt_linker_boilerplate=`cat conftest.err`
14031 $rm conftest*
14032
14033
14034 # Allow CC to be a program name with arguments.
14035 lt_save_CC="$CC"
14036 CC=${F77-"f77"}
14037 compiler=$CC
14038 compiler_F77=$CC
14039 for cc_temp in $compiler""; do
14040   case $cc_temp in
14041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14043     \-*) ;;
14044     *) break;;
14045   esac
14046 done
14047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14048
14049
14050 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14051 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14052 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14053 echo "${ECHO_T}$can_build_shared" >&6; }
14054
14055 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14056 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14057 test "$can_build_shared" = "no" && enable_shared=no
14058
14059 # On AIX, shared libraries and static libraries use the same namespace, and
14060 # are all built from PIC.
14061 case $host_os in
14062 aix3*)
14063   test "$enable_shared" = yes && enable_static=no
14064   if test -n "$RANLIB"; then
14065     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14066     postinstall_cmds='$RANLIB $lib'
14067   fi
14068   ;;
14069 aix4* | aix5*)
14070   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14071     test "$enable_shared" = yes && enable_static=no
14072   fi
14073   ;;
14074 esac
14075 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14076 echo "${ECHO_T}$enable_shared" >&6; }
14077
14078 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14079 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14080 # Make sure either enable_shared or enable_static is yes.
14081 test "$enable_shared" = yes || enable_static=yes
14082 { echo "$as_me:$LINENO: result: $enable_static" >&5
14083 echo "${ECHO_T}$enable_static" >&6; }
14084
14085 test "$ld_shlibs_F77" = no && can_build_shared=no
14086
14087 GCC_F77="$G77"
14088 LD_F77="$LD"
14089
14090 lt_prog_compiler_wl_F77=
14091 lt_prog_compiler_pic_F77=
14092 lt_prog_compiler_static_F77=
14093
14094 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14096
14097   if test "$GCC" = yes; then
14098     lt_prog_compiler_wl_F77='-Wl,'
14099     lt_prog_compiler_static_F77='-static'
14100
14101     case $host_os in
14102       aix*)
14103       # All AIX code is PIC.
14104       if test "$host_cpu" = ia64; then
14105         # AIX 5 now supports IA64 processor
14106         lt_prog_compiler_static_F77='-Bstatic'
14107       fi
14108       ;;
14109
14110     amigaos*)
14111       # FIXME: we need at least 68020 code to build shared libraries, but
14112       # adding the `-m68020' flag to GCC prevents building anything better,
14113       # like `-m68040'.
14114       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14115       ;;
14116
14117     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14118       # PIC is the default for these OSes.
14119       ;;
14120
14121     mingw* | pw32* | os2*)
14122       # This hack is so that the source file can tell whether it is being
14123       # built for inclusion in a dll (and should export symbols for example).
14124       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14125       ;;
14126
14127     darwin* | rhapsody*)
14128       # PIC is the default on this platform
14129       # Common symbols not allowed in MH_DYLIB files
14130       lt_prog_compiler_pic_F77='-fno-common'
14131       ;;
14132
14133     msdosdjgpp*)
14134       # Just because we use GCC doesn't mean we suddenly get shared libraries
14135       # on systems that don't support them.
14136       lt_prog_compiler_can_build_shared_F77=no
14137       enable_shared=no
14138       ;;
14139
14140     sysv4*MP*)
14141       if test -d /usr/nec; then
14142         lt_prog_compiler_pic_F77=-Kconform_pic
14143       fi
14144       ;;
14145
14146     hpux*)
14147       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14148       # not for PA HP-UX.
14149       case $host_cpu in
14150       hppa*64*|ia64*)
14151         # +Z the default
14152         ;;
14153       *)
14154         lt_prog_compiler_pic_F77='-fPIC'
14155         ;;
14156       esac
14157       ;;
14158
14159     *)
14160       lt_prog_compiler_pic_F77='-fPIC'
14161       ;;
14162     esac
14163   else
14164     # PORTME Check for flag to pass linker flags through the system compiler.
14165     case $host_os in
14166     aix*)
14167       lt_prog_compiler_wl_F77='-Wl,'
14168       if test "$host_cpu" = ia64; then
14169         # AIX 5 now supports IA64 processor
14170         lt_prog_compiler_static_F77='-Bstatic'
14171       else
14172         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14173       fi
14174       ;;
14175       darwin*)
14176         # PIC is the default on this platform
14177         # Common symbols not allowed in MH_DYLIB files
14178        case $cc_basename in
14179          xlc*)
14180          lt_prog_compiler_pic_F77='-qnocommon'
14181          lt_prog_compiler_wl_F77='-Wl,'
14182          ;;
14183        esac
14184        ;;
14185
14186     mingw* | pw32* | os2*)
14187       # This hack is so that the source file can tell whether it is being
14188       # built for inclusion in a dll (and should export symbols for example).
14189       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14190       ;;
14191
14192     hpux9* | hpux10* | hpux11*)
14193       lt_prog_compiler_wl_F77='-Wl,'
14194       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14195       # not for PA HP-UX.
14196       case $host_cpu in
14197       hppa*64*|ia64*)
14198         # +Z the default
14199         ;;
14200       *)
14201         lt_prog_compiler_pic_F77='+Z'
14202         ;;
14203       esac
14204       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14205       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14206       ;;
14207
14208     irix5* | irix6* | nonstopux*)
14209       lt_prog_compiler_wl_F77='-Wl,'
14210       # PIC (with -KPIC) is the default.
14211       lt_prog_compiler_static_F77='-non_shared'
14212       ;;
14213
14214     newsos6)
14215       lt_prog_compiler_pic_F77='-KPIC'
14216       lt_prog_compiler_static_F77='-Bstatic'
14217       ;;
14218
14219     linux*)
14220       case $cc_basename in
14221       icc* | ecc*)
14222         lt_prog_compiler_wl_F77='-Wl,'
14223         lt_prog_compiler_pic_F77='-KPIC'
14224         lt_prog_compiler_static_F77='-static'
14225         ;;
14226       pgcc* | pgf77* | pgf90* | pgf95*)
14227         # Portland Group compilers (*not* the Pentium gcc compiler,
14228         # which looks to be a dead project)
14229         lt_prog_compiler_wl_F77='-Wl,'
14230         lt_prog_compiler_pic_F77='-fpic'
14231         lt_prog_compiler_static_F77='-Bstatic'
14232         ;;
14233       ccc*)
14234         lt_prog_compiler_wl_F77='-Wl,'
14235         # All Alpha code is PIC.
14236         lt_prog_compiler_static_F77='-non_shared'
14237         ;;
14238       esac
14239       ;;
14240
14241     osf3* | osf4* | osf5*)
14242       lt_prog_compiler_wl_F77='-Wl,'
14243       # All OSF/1 code is PIC.
14244       lt_prog_compiler_static_F77='-non_shared'
14245       ;;
14246
14247     sco3.2v5*)
14248       lt_prog_compiler_pic_F77='-Kpic'
14249       lt_prog_compiler_static_F77='-dn'
14250       ;;
14251
14252     solaris*)
14253       lt_prog_compiler_pic_F77='-KPIC'
14254       lt_prog_compiler_static_F77='-Bstatic'
14255       case $cc_basename in
14256       f77* | f90* | f95*)
14257         lt_prog_compiler_wl_F77='-Qoption ld ';;
14258       *)
14259         lt_prog_compiler_wl_F77='-Wl,';;
14260       esac
14261       ;;
14262
14263     sunos4*)
14264       lt_prog_compiler_wl_F77='-Qoption ld '
14265       lt_prog_compiler_pic_F77='-PIC'
14266       lt_prog_compiler_static_F77='-Bstatic'
14267       ;;
14268
14269     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14270       lt_prog_compiler_wl_F77='-Wl,'
14271       lt_prog_compiler_pic_F77='-KPIC'
14272       lt_prog_compiler_static_F77='-Bstatic'
14273       ;;
14274
14275     sysv4*MP*)
14276       if test -d /usr/nec ;then
14277         lt_prog_compiler_pic_F77='-Kconform_pic'
14278         lt_prog_compiler_static_F77='-Bstatic'
14279       fi
14280       ;;
14281
14282     unicos*)
14283       lt_prog_compiler_wl_F77='-Wl,'
14284       lt_prog_compiler_can_build_shared_F77=no
14285       ;;
14286
14287     uts4*)
14288       lt_prog_compiler_pic_F77='-pic'
14289       lt_prog_compiler_static_F77='-Bstatic'
14290       ;;
14291
14292     *)
14293       lt_prog_compiler_can_build_shared_F77=no
14294       ;;
14295     esac
14296   fi
14297
14298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14299 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14300
14301 #
14302 # Check to make sure the PIC flag actually works.
14303 #
14304 if test -n "$lt_prog_compiler_pic_F77"; then
14305
14306 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14307 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14308 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   lt_prog_compiler_pic_works_F77=no
14312   ac_outfile=conftest.$ac_objext
14313    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14314    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14315    # Insert the option either (1) after the last *FLAGS variable, or
14316    # (2) before a word containing "conftest.", or (3) at the end.
14317    # Note that $ac_compile itself does not contain backslashes and begins
14318    # with a dollar sign (not a hyphen), so the echo should work correctly.
14319    # The option is referenced via a variable to avoid confusing sed.
14320    lt_compile=`echo "$ac_compile" | $SED \
14321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14323    -e 's:$: $lt_compiler_flag:'`
14324    (eval echo "\"\$as_me:14324: $lt_compile\"" >&5)
14325    (eval "$lt_compile" 2>conftest.err)
14326    ac_status=$?
14327    cat conftest.err >&5
14328    echo "$as_me:14328: \$? = $ac_status" >&5
14329    if (exit $ac_status) && test -s "$ac_outfile"; then
14330      # The compiler can only warn and ignore the option if not recognized
14331      # So say no if there are warnings other than the usual output.
14332      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14333      $SED '/^$/d' conftest.err >conftest.er2
14334      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14335        lt_prog_compiler_pic_works_F77=yes
14336      fi
14337    fi
14338    $rm conftest*
14339
14340 fi
14341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14342 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14343
14344 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14345     case $lt_prog_compiler_pic_F77 in
14346      "" | " "*) ;;
14347      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14348      esac
14349 else
14350     lt_prog_compiler_pic_F77=
14351      lt_prog_compiler_can_build_shared_F77=no
14352 fi
14353
14354 fi
14355 case $host_os in
14356   # For platforms which do not support PIC, -DPIC is meaningless:
14357   *djgpp*)
14358     lt_prog_compiler_pic_F77=
14359     ;;
14360   *)
14361     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14362     ;;
14363 esac
14364
14365 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   lt_cv_prog_compiler_c_o_F77=no
14371    $rm -r conftest 2>/dev/null
14372    mkdir conftest
14373    cd conftest
14374    mkdir out
14375    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14376
14377    lt_compiler_flag="-o out/conftest2.$ac_objext"
14378    # Insert the option either (1) after the last *FLAGS variable, or
14379    # (2) before a word containing "conftest.", or (3) at the end.
14380    # Note that $ac_compile itself does not contain backslashes and begins
14381    # with a dollar sign (not a hyphen), so the echo should work correctly.
14382    lt_compile=`echo "$ac_compile" | $SED \
14383    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14385    -e 's:$: $lt_compiler_flag:'`
14386    (eval echo "\"\$as_me:14386: $lt_compile\"" >&5)
14387    (eval "$lt_compile" 2>out/conftest.err)
14388    ac_status=$?
14389    cat out/conftest.err >&5
14390    echo "$as_me:14390: \$? = $ac_status" >&5
14391    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14392    then
14393      # The compiler can only warn and ignore the option if not recognized
14394      # So say no if there are warnings
14395      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14396      $SED '/^$/d' out/conftest.err >out/conftest.er2
14397      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14398        lt_cv_prog_compiler_c_o_F77=yes
14399      fi
14400    fi
14401    chmod u+w . 2>&5
14402    $rm conftest*
14403    # SGI C++ compiler will create directory out/ii_files/ for
14404    # template instantiation
14405    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14406    $rm out/* && rmdir out
14407    cd ..
14408    rmdir conftest
14409    $rm conftest*
14410
14411 fi
14412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14413 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14414
14415
14416 hard_links="nottested"
14417 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14418   # do not overwrite the value of need_locks provided by the user
14419   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14420 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14421   hard_links=yes
14422   $rm conftest*
14423   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14424   touch conftest.a
14425   ln conftest.a conftest.b 2>&5 || hard_links=no
14426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14427   { echo "$as_me:$LINENO: result: $hard_links" >&5
14428 echo "${ECHO_T}$hard_links" >&6; }
14429   if test "$hard_links" = no; then
14430     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14431 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14432     need_locks=warn
14433   fi
14434 else
14435   need_locks=no
14436 fi
14437
14438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14440
14441   runpath_var=
14442   allow_undefined_flag_F77=
14443   enable_shared_with_static_runtimes_F77=no
14444   archive_cmds_F77=
14445   archive_expsym_cmds_F77=
14446   old_archive_From_new_cmds_F77=
14447   old_archive_from_expsyms_cmds_F77=
14448   export_dynamic_flag_spec_F77=
14449   whole_archive_flag_spec_F77=
14450   thread_safe_flag_spec_F77=
14451   hardcode_libdir_flag_spec_F77=
14452   hardcode_libdir_flag_spec_ld_F77=
14453   hardcode_libdir_separator_F77=
14454   hardcode_direct_F77=no
14455   hardcode_minus_L_F77=no
14456   hardcode_shlibpath_var_F77=unsupported
14457   link_all_deplibs_F77=unknown
14458   hardcode_automatic_F77=no
14459   module_cmds_F77=
14460   module_expsym_cmds_F77=
14461   always_export_symbols_F77=no
14462   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14463   # include_expsyms should be a list of space-separated symbols to be *always*
14464   # included in the symbol list
14465   include_expsyms_F77=
14466   # exclude_expsyms can be an extended regexp of symbols to exclude
14467   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14468   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14469   # as well as any symbol that contains `d'.
14470   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14471   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14472   # platforms (ab)use it in PIC code, but their linkers get confused if
14473   # the symbol is explicitly referenced.  Since portable code cannot
14474   # rely on this symbol name, it's probably fine to never include it in
14475   # preloaded symbol tables.
14476   extract_expsyms_cmds=
14477   # Just being paranoid about ensuring that cc_basename is set.
14478   for cc_temp in $compiler""; do
14479   case $cc_temp in
14480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14482     \-*) ;;
14483     *) break;;
14484   esac
14485 done
14486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14487
14488   case $host_os in
14489   cygwin* | mingw* | pw32*)
14490     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14491     # When not using gcc, we currently assume that we are using
14492     # Microsoft Visual C++.
14493     if test "$GCC" != yes; then
14494       with_gnu_ld=no
14495     fi
14496     ;;
14497   openbsd*)
14498     with_gnu_ld=no
14499     ;;
14500   esac
14501
14502   ld_shlibs_F77=yes
14503   if test "$with_gnu_ld" = yes; then
14504     # If archive_cmds runs LD, not CC, wlarc should be empty
14505     wlarc='${wl}'
14506
14507     # Set some defaults for GNU ld with shared library support. These
14508     # are reset later if shared libraries are not supported. Putting them
14509     # here allows them to be overridden if necessary.
14510     runpath_var=LD_RUN_PATH
14511     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14512     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14513     # ancient GNU ld didn't support --whole-archive et. al.
14514     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14515         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14516       else
14517         whole_archive_flag_spec_F77=
14518     fi
14519     supports_anon_versioning=no
14520     case `$LD -v 2>/dev/null` in
14521       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14522       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14523       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14524       *\ 2.11.*) ;; # other 2.11 versions
14525       *) supports_anon_versioning=yes ;;
14526     esac
14527
14528     # See if GNU ld supports shared libraries.
14529     case $host_os in
14530     aix3* | aix4* | aix5*)
14531       # On AIX/PPC, the GNU linker is very broken
14532       if test "$host_cpu" != ia64; then
14533         ld_shlibs_F77=no
14534         cat <<EOF 1>&2
14535
14536 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14537 *** to be unable to reliably create shared libraries on AIX.
14538 *** Therefore, libtool is disabling shared libraries support.  If you
14539 *** really care for shared libraries, you may want to modify your PATH
14540 *** so that a non-GNU linker is found, and then restart.
14541
14542 EOF
14543       fi
14544       ;;
14545
14546     amigaos*)
14547       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)'
14548       hardcode_libdir_flag_spec_F77='-L$libdir'
14549       hardcode_minus_L_F77=yes
14550
14551       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14552       # that the semantics of dynamic libraries on AmigaOS, at least up
14553       # to version 4, is to share data among multiple programs linked
14554       # with the same dynamic library.  Since this doesn't match the
14555       # behavior of shared libraries on other platforms, we can't use
14556       # them.
14557       ld_shlibs_F77=no
14558       ;;
14559
14560     beos*)
14561       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14562         allow_undefined_flag_F77=unsupported
14563         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14564         # support --undefined.  This deserves some investigation.  FIXME
14565         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566       else
14567         ld_shlibs_F77=no
14568       fi
14569       ;;
14570
14571     cygwin* | mingw* | pw32*)
14572       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14573       # as there is no search path for DLLs.
14574       hardcode_libdir_flag_spec_F77='-L$libdir'
14575       allow_undefined_flag_F77=unsupported
14576       always_export_symbols_F77=no
14577       enable_shared_with_static_runtimes_F77=yes
14578       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14579
14580       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14581         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14582         # If the export-symbols file already is a .def file (1st line
14583         # is EXPORTS), use it as is; otherwise, prepend...
14584         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14585           cp $export_symbols $output_objdir/$soname.def;
14586         else
14587           echo EXPORTS > $output_objdir/$soname.def;
14588           cat $export_symbols >> $output_objdir/$soname.def;
14589         fi~
14590         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14591       else
14592         ld_shlibs_F77=no
14593       fi
14594       ;;
14595
14596     linux*)
14597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14598         tmp_addflag=
14599         case $cc_basename,$host_cpu in
14600         pgcc*)                          # Portland Group C compiler
14601           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14602           tmp_addflag=' $pic_flag'
14603           ;;
14604         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14605           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14606           tmp_addflag=' $pic_flag -Mnomain' ;;
14607         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14608           tmp_addflag=' -i_dynamic' ;;
14609         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14610           tmp_addflag=' -i_dynamic -nofor_main' ;;
14611         ifc* | ifort*)                  # Intel Fortran compiler
14612           tmp_addflag=' -nofor_main' ;;
14613         esac
14614         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615
14616         if test $supports_anon_versioning = yes; then
14617           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14618   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14619   $echo "local: *; };" >> $output_objdir/$libname.ver~
14620           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14621         fi
14622       else
14623         ld_shlibs_F77=no
14624       fi
14625       ;;
14626
14627     netbsd*)
14628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14629         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14630         wlarc=
14631       else
14632         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14633         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14634       fi
14635       ;;
14636
14637     solaris* | sysv5*)
14638       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14639         ld_shlibs_F77=no
14640         cat <<EOF 1>&2
14641
14642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14643 *** create shared libraries on Solaris systems.  Therefore, libtool
14644 *** is disabling shared libraries support.  We urge you to upgrade GNU
14645 *** binutils to release 2.9.1 or newer.  Another option is to modify
14646 *** your PATH or compiler configuration so that the native linker is
14647 *** used, and then restart.
14648
14649 EOF
14650       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14651         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14653       else
14654         ld_shlibs_F77=no
14655       fi
14656       ;;
14657
14658     sunos4*)
14659       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14660       wlarc=
14661       hardcode_direct_F77=yes
14662       hardcode_shlibpath_var_F77=no
14663       ;;
14664
14665     *)
14666       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14667         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14668         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14669       else
14670         ld_shlibs_F77=no
14671       fi
14672       ;;
14673     esac
14674
14675     if test "$ld_shlibs_F77" = no; then
14676       runpath_var=
14677       hardcode_libdir_flag_spec_F77=
14678       export_dynamic_flag_spec_F77=
14679       whole_archive_flag_spec_F77=
14680     fi
14681   else
14682     # PORTME fill in a description of your system's linker (not GNU ld)
14683     case $host_os in
14684     aix3*)
14685       allow_undefined_flag_F77=unsupported
14686       always_export_symbols_F77=yes
14687       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'
14688       # Note: this linker hardcodes the directories in LIBPATH if there
14689       # are no directories specified by -L.
14690       hardcode_minus_L_F77=yes
14691       if test "$GCC" = yes && test -z "$link_static_flag"; then
14692         # Neither direct hardcoding nor static linking is supported with a
14693         # broken collect2.
14694         hardcode_direct_F77=unsupported
14695       fi
14696       ;;
14697
14698     aix4* | aix5*)
14699       if test "$host_cpu" = ia64; then
14700         # On IA64, the linker does run time linking by default, so we don't
14701         # have to do anything special.
14702         aix_use_runtimelinking=no
14703         exp_sym_flag='-Bexport'
14704         no_entry_flag=""
14705       else
14706         # If we're using GNU nm, then we don't want the "-C" option.
14707         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14708         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14709           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'
14710         else
14711           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'
14712         fi
14713         aix_use_runtimelinking=no
14714
14715         # Test if we are trying to use run time linking or normal
14716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14717         # need to do runtime linking.
14718         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14719           for ld_flag in $LDFLAGS; do
14720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14721             aix_use_runtimelinking=yes
14722             break
14723           fi
14724           done
14725         esac
14726
14727         exp_sym_flag='-bexport'
14728         no_entry_flag='-bnoentry'
14729       fi
14730
14731       # When large executables or shared objects are built, AIX ld can
14732       # have problems creating the table of contents.  If linking a library
14733       # or program results in "error TOC overflow" add -mminimal-toc to
14734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14736
14737       archive_cmds_F77=''
14738       hardcode_direct_F77=yes
14739       hardcode_libdir_separator_F77=':'
14740       link_all_deplibs_F77=yes
14741
14742       if test "$GCC" = yes; then
14743         case $host_os in aix4.[012]|aix4.[012].*)
14744         # We only want to do this on AIX 4.2 and lower, the check
14745         # below for broken collect2 doesn't work under 4.3+
14746           collect2name=`${CC} -print-prog-name=collect2`
14747           if test -f "$collect2name" && \
14748            strings "$collect2name" | grep resolve_lib_name >/dev/null
14749           then
14750           # We have reworked collect2
14751           hardcode_direct_F77=yes
14752           else
14753           # We have old collect2
14754           hardcode_direct_F77=unsupported
14755           # It fails to find uninstalled libraries when the uninstalled
14756           # path is not listed in the libpath.  Setting hardcode_minus_L
14757           # to unsupported forces relinking
14758           hardcode_minus_L_F77=yes
14759           hardcode_libdir_flag_spec_F77='-L$libdir'
14760           hardcode_libdir_separator_F77=
14761           fi
14762         esac
14763         shared_flag='-shared'
14764         if test "$aix_use_runtimelinking" = yes; then
14765           shared_flag="$shared_flag "'${wl}-G'
14766         fi
14767       else
14768         # not using gcc
14769         if test "$host_cpu" = ia64; then
14770         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14771         # chokes on -Wl,-G. The following line is correct:
14772           shared_flag='-G'
14773         else
14774         if test "$aix_use_runtimelinking" = yes; then
14775             shared_flag='${wl}-G'
14776           else
14777             shared_flag='${wl}-bM:SRE'
14778         fi
14779         fi
14780       fi
14781
14782       # It seems that -bexpall does not export symbols beginning with
14783       # underscore (_), so it is better to generate a list of symbols to export.
14784       always_export_symbols_F77=yes
14785       if test "$aix_use_runtimelinking" = yes; then
14786         # Warning - without using the other runtime loading flags (-brtl),
14787         # -berok will link without error, but may produce a broken library.
14788         allow_undefined_flag_F77='-berok'
14789        # Determine the default libpath from the value encoded in an empty executable.
14790        cat >conftest.$ac_ext <<_ACEOF
14791       program main
14792
14793       end
14794 _ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (ac_try="$ac_link"
14797 case "(($ac_try" in
14798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799   *) ac_try_echo=$ac_try;;
14800 esac
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802   (eval "$ac_link") 2>conftest.er1
14803   ac_status=$?
14804   grep -v '^ *+' conftest.er1 >conftest.err
14805   rm -f conftest.er1
14806   cat conftest.err >&5
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } && {
14809          test -z "$ac_f77_werror_flag" ||
14810          test ! -s conftest.err
14811        } && test -s conftest$ac_exeext &&
14812        $as_test_x conftest$ac_exeext; then
14813
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14815 }'`
14816 # Check for a 64-bit object if we didn't find anything.
14817 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; }
14818 }'`; fi
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823
14824 fi
14825
14826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14827       conftest$ac_exeext conftest.$ac_ext
14828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14829
14830        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14831         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14832        else
14833         if test "$host_cpu" = ia64; then
14834           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14835           allow_undefined_flag_F77="-z nodefs"
14836           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14837         else
14838          # Determine the default libpath from the value encoded in an empty executable.
14839          cat >conftest.$ac_ext <<_ACEOF
14840       program main
14841
14842       end
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851   (eval "$ac_link") 2>conftest.er1
14852   ac_status=$?
14853   grep -v '^ *+' conftest.er1 >conftest.err
14854   rm -f conftest.er1
14855   cat conftest.err >&5
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } && {
14858          test -z "$ac_f77_werror_flag" ||
14859          test ! -s conftest.err
14860        } && test -s conftest$ac_exeext &&
14861        $as_test_x conftest$ac_exeext; then
14862
14863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14864 }'`
14865 # Check for a 64-bit object if we didn't find anything.
14866 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; }
14867 }'`; fi
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14876       conftest$ac_exeext conftest.$ac_ext
14877 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14878
14879          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14880           # Warning - without using the other run time loading flags,
14881           # -berok will link without error, but may produce a broken library.
14882           no_undefined_flag_F77=' ${wl}-bernotok'
14883           allow_undefined_flag_F77=' ${wl}-berok'
14884           # -bexpall does not export symbols beginning with underscore (_)
14885           always_export_symbols_F77=yes
14886           # Exported symbols can be pulled into shared objects from archives
14887           whole_archive_flag_spec_F77=' '
14888           archive_cmds_need_lc_F77=yes
14889           # This is similar to how AIX traditionally builds its shared libraries.
14890           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14891         fi
14892       fi
14893       ;;
14894
14895     amigaos*)
14896       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)'
14897       hardcode_libdir_flag_spec_F77='-L$libdir'
14898       hardcode_minus_L_F77=yes
14899       # see comment about different semantics on the GNU ld section
14900       ld_shlibs_F77=no
14901       ;;
14902
14903     bsdi[45]*)
14904       export_dynamic_flag_spec_F77=-rdynamic
14905       ;;
14906
14907     cygwin* | mingw* | pw32*)
14908       # When not using gcc, we currently assume that we are using
14909       # Microsoft Visual C++.
14910       # hardcode_libdir_flag_spec is actually meaningless, as there is
14911       # no search path for DLLs.
14912       hardcode_libdir_flag_spec_F77=' '
14913       allow_undefined_flag_F77=unsupported
14914       # Tell ltmain to make .lib files, not .a files.
14915       libext=lib
14916       # Tell ltmain to make .dll files, not .so files.
14917       shrext_cmds=".dll"
14918       # FIXME: Setting linknames here is a bad hack.
14919       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14920       # The linker will automatically build a .lib file if we build a DLL.
14921       old_archive_From_new_cmds_F77='true'
14922       # FIXME: Should let the user specify the lib program.
14923       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14924       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14925       enable_shared_with_static_runtimes_F77=yes
14926       ;;
14927
14928     darwin* | rhapsody*)
14929       case $host_os in
14930         rhapsody* | darwin1.[012])
14931          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14932          ;;
14933        *) # Darwin 1.3 on
14934          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14935            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14936          else
14937            case ${MACOSX_DEPLOYMENT_TARGET} in
14938              10.[012])
14939                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14940                ;;
14941              10.*)
14942                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14943                ;;
14944            esac
14945          fi
14946          ;;
14947       esac
14948       archive_cmds_need_lc_F77=no
14949       hardcode_direct_F77=no
14950       hardcode_automatic_F77=yes
14951       hardcode_shlibpath_var_F77=unsupported
14952       whole_archive_flag_spec_F77=''
14953       link_all_deplibs_F77=yes
14954     if test "$GCC" = yes ; then
14955         output_verbose_link_cmd='echo'
14956         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14957       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14958       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14959       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14960       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14961     else
14962       case $cc_basename in
14963         xlc*)
14964          output_verbose_link_cmd='echo'
14965          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14966          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14967           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14968          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14969           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14970           ;;
14971        *)
14972          ld_shlibs_F77=no
14973           ;;
14974       esac
14975     fi
14976       ;;
14977
14978     dgux*)
14979       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980       hardcode_libdir_flag_spec_F77='-L$libdir'
14981       hardcode_shlibpath_var_F77=no
14982       ;;
14983
14984     freebsd1*)
14985       ld_shlibs_F77=no
14986       ;;
14987
14988     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14989     # support.  Future versions do this automatically, but an explicit c++rt0.o
14990     # does not break anything, and helps significantly (at the cost of a little
14991     # extra space).
14992     freebsd2.2*)
14993       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14994       hardcode_libdir_flag_spec_F77='-R$libdir'
14995       hardcode_direct_F77=yes
14996       hardcode_shlibpath_var_F77=no
14997       ;;
14998
14999     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15000     freebsd2*)
15001       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15002       hardcode_direct_F77=yes
15003       hardcode_minus_L_F77=yes
15004       hardcode_shlibpath_var_F77=no
15005       ;;
15006
15007     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15008     freebsd* | kfreebsd*-gnu | dragonfly*)
15009       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15010       hardcode_libdir_flag_spec_F77='-R$libdir'
15011       hardcode_direct_F77=yes
15012       hardcode_shlibpath_var_F77=no
15013       ;;
15014
15015     hpux9*)
15016       if test "$GCC" = yes; then
15017         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15018       else
15019         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'
15020       fi
15021       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15022       hardcode_libdir_separator_F77=:
15023       hardcode_direct_F77=yes
15024
15025       # hardcode_minus_L: Not really in the search PATH,
15026       # but as the default location of the library.
15027       hardcode_minus_L_F77=yes
15028       export_dynamic_flag_spec_F77='${wl}-E'
15029       ;;
15030
15031     hpux10* | hpux11*)
15032       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15033         case $host_cpu in
15034         hppa*64*|ia64*)
15035           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15036           ;;
15037         *)
15038           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15039           ;;
15040         esac
15041       else
15042         case $host_cpu in
15043         hppa*64*|ia64*)
15044           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15045           ;;
15046         *)
15047           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15048           ;;
15049         esac
15050       fi
15051       if test "$with_gnu_ld" = no; then
15052         case $host_cpu in
15053         hppa*64*)
15054           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15055           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15056           hardcode_libdir_separator_F77=:
15057           hardcode_direct_F77=no
15058           hardcode_shlibpath_var_F77=no
15059           ;;
15060         ia64*)
15061           hardcode_libdir_flag_spec_F77='-L$libdir'
15062           hardcode_direct_F77=no
15063           hardcode_shlibpath_var_F77=no
15064
15065           # hardcode_minus_L: Not really in the search PATH,
15066           # but as the default location of the library.
15067           hardcode_minus_L_F77=yes
15068           ;;
15069         *)
15070           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15071           hardcode_libdir_separator_F77=:
15072           hardcode_direct_F77=yes
15073           export_dynamic_flag_spec_F77='${wl}-E'
15074
15075           # hardcode_minus_L: Not really in the search PATH,
15076           # but as the default location of the library.
15077           hardcode_minus_L_F77=yes
15078           ;;
15079         esac
15080       fi
15081       ;;
15082
15083     irix5* | irix6* | nonstopux*)
15084       if test "$GCC" = yes; then
15085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15086       else
15087         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'
15088         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15089       fi
15090       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15091       hardcode_libdir_separator_F77=:
15092       link_all_deplibs_F77=yes
15093       ;;
15094
15095     netbsd*)
15096       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15097         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15098       else
15099         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15100       fi
15101       hardcode_libdir_flag_spec_F77='-R$libdir'
15102       hardcode_direct_F77=yes
15103       hardcode_shlibpath_var_F77=no
15104       ;;
15105
15106     newsos6)
15107       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15108       hardcode_direct_F77=yes
15109       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15110       hardcode_libdir_separator_F77=:
15111       hardcode_shlibpath_var_F77=no
15112       ;;
15113
15114     openbsd*)
15115       hardcode_direct_F77=yes
15116       hardcode_shlibpath_var_F77=no
15117       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15118         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15119         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15120         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15121         export_dynamic_flag_spec_F77='${wl}-E'
15122       else
15123        case $host_os in
15124          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15125            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126            hardcode_libdir_flag_spec_F77='-R$libdir'
15127            ;;
15128          *)
15129            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15130            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15131            ;;
15132        esac
15133       fi
15134       ;;
15135
15136     os2*)
15137       hardcode_libdir_flag_spec_F77='-L$libdir'
15138       hardcode_minus_L_F77=yes
15139       allow_undefined_flag_F77=unsupported
15140       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15141       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15142       ;;
15143
15144     osf3*)
15145       if test "$GCC" = yes; then
15146         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15147         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15148       else
15149         allow_undefined_flag_F77=' -expect_unresolved \*'
15150         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'
15151       fi
15152       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15153       hardcode_libdir_separator_F77=:
15154       ;;
15155
15156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15157       if test "$GCC" = yes; then
15158         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15159         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15160         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15161       else
15162         allow_undefined_flag_F77=' -expect_unresolved \*'
15163         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'
15164         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~
15165         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15166
15167         # Both c and cxx compiler support -rpath directly
15168         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15169       fi
15170       hardcode_libdir_separator_F77=:
15171       ;;
15172
15173     sco3.2v5*)
15174       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175       hardcode_shlibpath_var_F77=no
15176       export_dynamic_flag_spec_F77='${wl}-Bexport'
15177       runpath_var=LD_RUN_PATH
15178       hardcode_runpath_var=yes
15179       ;;
15180
15181     solaris*)
15182       no_undefined_flag_F77=' -z text'
15183       if test "$GCC" = yes; then
15184         wlarc='${wl}'
15185         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15187           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15188       else
15189         wlarc=''
15190         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15192         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15193       fi
15194       hardcode_libdir_flag_spec_F77='-R$libdir'
15195       hardcode_shlibpath_var_F77=no
15196       case $host_os in
15197       solaris2.[0-5] | solaris2.[0-5].*) ;;
15198       *)
15199         # The compiler driver will combine linker options so we
15200         # cannot just pass the convience library names through
15201         # without $wl, iff we do not link with $LD.
15202         # Luckily, gcc supports the same syntax we need for Sun Studio.
15203         # Supported since Solaris 2.6 (maybe 2.5.1?)
15204         case $wlarc in
15205         '')
15206           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15207         *)
15208           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15209         esac ;;
15210       esac
15211       link_all_deplibs_F77=yes
15212       ;;
15213
15214     sunos4*)
15215       if test "x$host_vendor" = xsequent; then
15216         # Use $CC to link under sequent, because it throws in some extra .o
15217         # files that make .init and .fini sections work.
15218         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15219       else
15220         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15221       fi
15222       hardcode_libdir_flag_spec_F77='-L$libdir'
15223       hardcode_direct_F77=yes
15224       hardcode_minus_L_F77=yes
15225       hardcode_shlibpath_var_F77=no
15226       ;;
15227
15228     sysv4)
15229       case $host_vendor in
15230         sni)
15231           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15232           hardcode_direct_F77=yes # is this really true???
15233         ;;
15234         siemens)
15235           ## LD is ld it makes a PLAMLIB
15236           ## CC just makes a GrossModule.
15237           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15238           reload_cmds_F77='$CC -r -o $output$reload_objs'
15239           hardcode_direct_F77=no
15240         ;;
15241         motorola)
15242           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15243           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15244         ;;
15245       esac
15246       runpath_var='LD_RUN_PATH'
15247       hardcode_shlibpath_var_F77=no
15248       ;;
15249
15250     sysv4.3*)
15251       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252       hardcode_shlibpath_var_F77=no
15253       export_dynamic_flag_spec_F77='-Bexport'
15254       ;;
15255
15256     sysv4*MP*)
15257       if test -d /usr/nec; then
15258         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15259         hardcode_shlibpath_var_F77=no
15260         runpath_var=LD_RUN_PATH
15261         hardcode_runpath_var=yes
15262         ld_shlibs_F77=yes
15263       fi
15264       ;;
15265
15266     sysv4.2uw2*)
15267       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15268       hardcode_direct_F77=yes
15269       hardcode_minus_L_F77=no
15270       hardcode_shlibpath_var_F77=no
15271       hardcode_runpath_var=yes
15272       runpath_var=LD_RUN_PATH
15273       ;;
15274
15275    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15276       no_undefined_flag_F77='${wl}-z ${wl}text'
15277       if test "$GCC" = yes; then
15278         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15279       else
15280         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15281       fi
15282       runpath_var='LD_RUN_PATH'
15283       hardcode_shlibpath_var_F77=no
15284       ;;
15285
15286     sysv5*)
15287       no_undefined_flag_F77=' -z text'
15288       # $CC -shared without GNU ld will not create a library from C++
15289       # object files and a static libstdc++, better avoid it by now
15290       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15291       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15292                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15293       hardcode_libdir_flag_spec_F77=
15294       hardcode_shlibpath_var_F77=no
15295       runpath_var='LD_RUN_PATH'
15296       ;;
15297
15298     uts4*)
15299       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15300       hardcode_libdir_flag_spec_F77='-L$libdir'
15301       hardcode_shlibpath_var_F77=no
15302       ;;
15303
15304     *)
15305       ld_shlibs_F77=no
15306       ;;
15307     esac
15308   fi
15309
15310 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15311 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15312 test "$ld_shlibs_F77" = no && can_build_shared=no
15313
15314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15315 if test "$GCC" = yes; then
15316   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15317 fi
15318
15319 #
15320 # Do we need to explicitly link libc?
15321 #
15322 case "x$archive_cmds_need_lc_F77" in
15323 x|xyes)
15324   # Assume -lc should be added
15325   archive_cmds_need_lc_F77=yes
15326
15327   if test "$enable_shared" = yes && test "$GCC" = yes; then
15328     case $archive_cmds_F77 in
15329     *'~'*)
15330       # FIXME: we may have to deal with multi-command sequences.
15331       ;;
15332     '$CC '*)
15333       # Test whether the compiler implicitly links with -lc since on some
15334       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15335       # to ld, don't add -lc before -lgcc.
15336       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15337 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15338       $rm conftest*
15339       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15340
15341       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342   (eval $ac_compile) 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } 2>conftest.err; then
15346         soname=conftest
15347         lib=conftest
15348         libobjs=conftest.$ac_objext
15349         deplibs=
15350         wl=$lt_prog_compiler_wl_F77
15351         compiler_flags=-v
15352         linker_flags=-v
15353         verstring=
15354         output_objdir=.
15355         libname=conftest
15356         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15357         allow_undefined_flag_F77=
15358         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15359   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }
15363         then
15364           archive_cmds_need_lc_F77=no
15365         else
15366           archive_cmds_need_lc_F77=yes
15367         fi
15368         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15369       else
15370         cat conftest.err 1>&5
15371       fi
15372       $rm conftest*
15373       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15374 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15375       ;;
15376     esac
15377   fi
15378   ;;
15379 esac
15380
15381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15383 library_names_spec=
15384 libname_spec='lib$name'
15385 soname_spec=
15386 shrext_cmds=".so"
15387 postinstall_cmds=
15388 postuninstall_cmds=
15389 finish_cmds=
15390 finish_eval=
15391 shlibpath_var=
15392 shlibpath_overrides_runpath=unknown
15393 version_type=none
15394 dynamic_linker="$host_os ld.so"
15395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15396 if test "$GCC" = yes; then
15397   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15398   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15399     # if the path contains ";" then we assume it to be the separator
15400     # otherwise default to the standard path separator (i.e. ":") - it is
15401     # assumed that no part of a normal pathname contains ";" but that should
15402     # okay in the real world where ";" in dirpaths is itself problematic.
15403     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15404   else
15405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15406   fi
15407 else
15408   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15409 fi
15410 need_lib_prefix=unknown
15411 hardcode_into_libs=no
15412
15413 # when you set need_version to no, make sure it does not cause -set_version
15414 # flags to be left without arguments
15415 need_version=unknown
15416
15417 case $host_os in
15418 aix3*)
15419   version_type=linux
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15421   shlibpath_var=LIBPATH
15422
15423   # AIX 3 has no versioning support, so we append a major version to the name.
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   ;;
15426
15427 aix4* | aix5*)
15428   version_type=linux
15429   need_lib_prefix=no
15430   need_version=no
15431   hardcode_into_libs=yes
15432   if test "$host_cpu" = ia64; then
15433     # AIX 5 supports IA64
15434     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15435     shlibpath_var=LD_LIBRARY_PATH
15436   else
15437     # With GCC up to 2.95.x, collect2 would create an import file
15438     # for dependence libraries.  The import file would start with
15439     # the line `#! .'.  This would cause the generated library to
15440     # depend on `.', always an invalid library.  This was fixed in
15441     # development snapshots of GCC prior to 3.0.
15442     case $host_os in
15443       aix4 | aix4.[01] | aix4.[01].*)
15444       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15445            echo ' yes '
15446            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15447         :
15448       else
15449         can_build_shared=no
15450       fi
15451       ;;
15452     esac
15453     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15454     # soname into executable. Probably we can add versioning support to
15455     # collect2, so additional links can be useful in future.
15456     if test "$aix_use_runtimelinking" = yes; then
15457       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15458       # instead of lib<name>.a to let people know that these are not
15459       # typical AIX shared libraries.
15460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461     else
15462       # We preserve .a as extension for shared libraries through AIX4.2
15463       # and later when we are not doing run time linking.
15464       library_names_spec='${libname}${release}.a $libname.a'
15465       soname_spec='${libname}${release}${shared_ext}$major'
15466     fi
15467     shlibpath_var=LIBPATH
15468   fi
15469   ;;
15470
15471 amigaos*)
15472   library_names_spec='$libname.ixlibrary $libname.a'
15473   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15474   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'
15475   ;;
15476
15477 beos*)
15478   library_names_spec='${libname}${shared_ext}'
15479   dynamic_linker="$host_os ld.so"
15480   shlibpath_var=LIBRARY_PATH
15481   ;;
15482
15483 bsdi[45]*)
15484   version_type=linux
15485   need_version=no
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487   soname_spec='${libname}${release}${shared_ext}$major'
15488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15489   shlibpath_var=LD_LIBRARY_PATH
15490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15492   # the default ld.so.conf also contains /usr/contrib/lib and
15493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15494   # libtool to hard-code these into programs
15495   ;;
15496
15497 cygwin* | mingw* | pw32*)
15498   version_type=windows
15499   shrext_cmds=".dll"
15500   need_version=no
15501   need_lib_prefix=no
15502
15503   case $GCC,$host_os in
15504   yes,cygwin* | yes,mingw* | yes,pw32*)
15505     library_names_spec='$libname.dll.a'
15506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15507     postinstall_cmds='base_file=`basename \${file}`~
15508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15509       dldir=$destdir/`dirname \$dlpath`~
15510       test -d \$dldir || mkdir -p \$dldir~
15511       $install_prog $dir/$dlname \$dldir/$dlname~
15512       chmod a+x \$dldir/$dlname'
15513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15514       dlpath=$dir/\$dldll~
15515        $rm \$dlpath'
15516     shlibpath_overrides_runpath=yes
15517
15518     case $host_os in
15519     cygwin*)
15520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15523       ;;
15524     mingw*)
15525       # MinGW DLLs use traditional 'lib' prefix
15526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15529         # It is most probably a Windows format PATH printed by
15530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15531         # path with ; separators, and with drive letters. We can handle the
15532         # drive letters (cygwin fileutils understands them), so leave them,
15533         # especially as we might pass files found there to a mingw objdump,
15534         # which wouldn't understand a cygwinified path. Ahh.
15535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15536       else
15537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15538       fi
15539       ;;
15540     pw32*)
15541       # pw32 DLLs use 'pw' prefix rather than 'lib'
15542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15543       ;;
15544     esac
15545     ;;
15546
15547   *)
15548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15549     ;;
15550   esac
15551   dynamic_linker='Win32 ld.exe'
15552   # FIXME: first we should search . and the directory the executable is in
15553   shlibpath_var=PATH
15554   ;;
15555
15556 darwin* | rhapsody*)
15557   dynamic_linker="$host_os dyld"
15558   version_type=darwin
15559   need_lib_prefix=no
15560   need_version=no
15561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15562   soname_spec='${libname}${release}${major}$shared_ext'
15563   shlibpath_overrides_runpath=yes
15564   shlibpath_var=DYLD_LIBRARY_PATH
15565   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15567   if test "$GCC" = yes; then
15568     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"`
15569   else
15570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15571   fi
15572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15573   ;;
15574
15575 dgux*)
15576   version_type=linux
15577   need_lib_prefix=no
15578   need_version=no
15579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15580   soname_spec='${libname}${release}${shared_ext}$major'
15581   shlibpath_var=LD_LIBRARY_PATH
15582   ;;
15583
15584 freebsd1*)
15585   dynamic_linker=no
15586   ;;
15587
15588 kfreebsd*-gnu)
15589   version_type=linux
15590   need_lib_prefix=no
15591   need_version=no
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593   soname_spec='${libname}${release}${shared_ext}$major'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   shlibpath_overrides_runpath=no
15596   hardcode_into_libs=yes
15597   dynamic_linker='GNU ld.so'
15598   ;;
15599
15600 freebsd* | dragonfly*)
15601   # DragonFly does not have aout.  When/if they implement a new
15602   # versioning mechanism, adjust this.
15603   if test -x /usr/bin/objformat; then
15604     objformat=`/usr/bin/objformat`
15605   else
15606     case $host_os in
15607     freebsd[123]*) objformat=aout ;;
15608     *) objformat=elf ;;
15609     esac
15610   fi
15611   version_type=freebsd-$objformat
15612   case $version_type in
15613     freebsd-elf*)
15614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15615       need_version=no
15616       need_lib_prefix=no
15617       ;;
15618     freebsd-*)
15619       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15620       need_version=yes
15621       ;;
15622   esac
15623   shlibpath_var=LD_LIBRARY_PATH
15624   case $host_os in
15625   freebsd2*)
15626     shlibpath_overrides_runpath=yes
15627     ;;
15628   freebsd3.[01]* | freebsdelf3.[01]*)
15629     shlibpath_overrides_runpath=yes
15630     hardcode_into_libs=yes
15631     ;;
15632   *) # from 3.2 on
15633     shlibpath_overrides_runpath=no
15634     hardcode_into_libs=yes
15635     ;;
15636   esac
15637   ;;
15638
15639 gnu*)
15640   version_type=linux
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   hardcode_into_libs=yes
15647   ;;
15648
15649 hpux9* | hpux10* | hpux11*)
15650   # Give a soname corresponding to the major version so that dld.sl refuses to
15651   # link against other versions.
15652   version_type=sunos
15653   need_lib_prefix=no
15654   need_version=no
15655   case $host_cpu in
15656   ia64*)
15657     shrext_cmds='.so'
15658     hardcode_into_libs=yes
15659     dynamic_linker="$host_os dld.so"
15660     shlibpath_var=LD_LIBRARY_PATH
15661     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663     soname_spec='${libname}${release}${shared_ext}$major'
15664     if test "X$HPUX_IA64_MODE" = X32; then
15665       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15666     else
15667       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15668     fi
15669     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15670     ;;
15671    hppa*64*)
15672      shrext_cmds='.sl'
15673      hardcode_into_libs=yes
15674      dynamic_linker="$host_os dld.sl"
15675      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15676      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15677      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678      soname_spec='${libname}${release}${shared_ext}$major'
15679      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15680      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15681      ;;
15682    *)
15683     shrext_cmds='.sl'
15684     dynamic_linker="$host_os dld.sl"
15685     shlibpath_var=SHLIB_PATH
15686     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688     soname_spec='${libname}${release}${shared_ext}$major'
15689     ;;
15690   esac
15691   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15692   postinstall_cmds='chmod 555 $lib'
15693   ;;
15694
15695 irix5* | irix6* | nonstopux*)
15696   case $host_os in
15697     nonstopux*) version_type=nonstopux ;;
15698     *)
15699         if test "$lt_cv_prog_gnu_ld" = yes; then
15700                 version_type=linux
15701         else
15702                 version_type=irix
15703         fi ;;
15704   esac
15705   need_lib_prefix=no
15706   need_version=no
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15709   case $host_os in
15710   irix5* | nonstopux*)
15711     libsuff= shlibsuff=
15712     ;;
15713   *)
15714     case $LD in # libtool.m4 will add one of these switches to LD
15715     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15716       libsuff= shlibsuff= libmagic=32-bit;;
15717     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15718       libsuff=32 shlibsuff=N32 libmagic=N32;;
15719     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15720       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15721     *) libsuff= shlibsuff= libmagic=never-match;;
15722     esac
15723     ;;
15724   esac
15725   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15726   shlibpath_overrides_runpath=no
15727   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15728   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15729   hardcode_into_libs=yes
15730   ;;
15731
15732 # No shared lib support for Linux oldld, aout, or coff.
15733 linux*oldld* | linux*aout* | linux*coff*)
15734   dynamic_linker=no
15735   ;;
15736
15737 # This must be Linux ELF.
15738 linux*)
15739   version_type=linux
15740   need_lib_prefix=no
15741   need_version=no
15742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743   soname_spec='${libname}${release}${shared_ext}$major'
15744   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   shlibpath_overrides_runpath=no
15747   # This implies no fast_install, which is unacceptable.
15748   # Some rework will be needed to allow for fast_install
15749   # before this can be enabled.
15750   hardcode_into_libs=yes
15751
15752   # Append ld.so.conf contents to the search path
15753   if test -f /etc/ld.so.conf; then
15754     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15755     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15756   fi
15757
15758   # We used to test for /lib/ld.so.1 and disable shared libraries on
15759   # powerpc, because MkLinux only supported shared libraries with the
15760   # GNU dynamic linker.  Since this was broken with cross compilers,
15761   # most powerpc-linux boxes support dynamic linking these days and
15762   # people can always --disable-shared, the test was removed, and we
15763   # assume the GNU/Linux dynamic linker is in use.
15764   dynamic_linker='GNU/Linux ld.so'
15765   ;;
15766
15767 knetbsd*-gnu)
15768   version_type=linux
15769   need_lib_prefix=no
15770   need_version=no
15771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15772   soname_spec='${libname}${release}${shared_ext}$major'
15773   shlibpath_var=LD_LIBRARY_PATH
15774   shlibpath_overrides_runpath=no
15775   hardcode_into_libs=yes
15776   dynamic_linker='GNU ld.so'
15777   ;;
15778
15779 netbsd*)
15780   version_type=sunos
15781   need_lib_prefix=no
15782   need_version=no
15783   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15785     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15786     dynamic_linker='NetBSD (a.out) ld.so'
15787   else
15788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15789     soname_spec='${libname}${release}${shared_ext}$major'
15790     dynamic_linker='NetBSD ld.elf_so'
15791   fi
15792   shlibpath_var=LD_LIBRARY_PATH
15793   shlibpath_overrides_runpath=yes
15794   hardcode_into_libs=yes
15795   ;;
15796
15797 newsos6)
15798   version_type=linux
15799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800   shlibpath_var=LD_LIBRARY_PATH
15801   shlibpath_overrides_runpath=yes
15802   ;;
15803
15804 nto-qnx*)
15805   version_type=linux
15806   need_lib_prefix=no
15807   need_version=no
15808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809   soname_spec='${libname}${release}${shared_ext}$major'
15810   shlibpath_var=LD_LIBRARY_PATH
15811   shlibpath_overrides_runpath=yes
15812   ;;
15813
15814 openbsd*)
15815   version_type=sunos
15816   need_lib_prefix=no
15817   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15818   case $host_os in
15819     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15820     *)                         need_version=no  ;;
15821   esac
15822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15824   shlibpath_var=LD_LIBRARY_PATH
15825   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826     case $host_os in
15827       openbsd2.[89] | openbsd2.[89].*)
15828         shlibpath_overrides_runpath=no
15829         ;;
15830       *)
15831         shlibpath_overrides_runpath=yes
15832         ;;
15833       esac
15834   else
15835     shlibpath_overrides_runpath=yes
15836   fi
15837   ;;
15838
15839 os2*)
15840   libname_spec='$name'
15841   shrext_cmds=".dll"
15842   need_lib_prefix=no
15843   library_names_spec='$libname${shared_ext} $libname.a'
15844   dynamic_linker='OS/2 ld.exe'
15845   shlibpath_var=LIBPATH
15846   ;;
15847
15848 osf3* | osf4* | osf5*)
15849   version_type=osf
15850   need_lib_prefix=no
15851   need_version=no
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15857   ;;
15858
15859 sco3.2v5*)
15860   version_type=osf
15861   soname_spec='${libname}${release}${shared_ext}$major'
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863   shlibpath_var=LD_LIBRARY_PATH
15864   ;;
15865
15866 solaris*)
15867   version_type=linux
15868   need_lib_prefix=no
15869   need_version=no
15870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871   soname_spec='${libname}${release}${shared_ext}$major'
15872   shlibpath_var=LD_LIBRARY_PATH
15873   shlibpath_overrides_runpath=yes
15874   hardcode_into_libs=yes
15875   # ldd complains unless libraries are executable
15876   postinstall_cmds='chmod +x $lib'
15877   ;;
15878
15879 sunos4*)
15880   version_type=sunos
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15882   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15883   shlibpath_var=LD_LIBRARY_PATH
15884   shlibpath_overrides_runpath=yes
15885   if test "$with_gnu_ld" = yes; then
15886     need_lib_prefix=no
15887   fi
15888   need_version=yes
15889   ;;
15890
15891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15892   version_type=linux
15893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894   soname_spec='${libname}${release}${shared_ext}$major'
15895   shlibpath_var=LD_LIBRARY_PATH
15896   case $host_vendor in
15897     sni)
15898       shlibpath_overrides_runpath=no
15899       need_lib_prefix=no
15900       export_dynamic_flag_spec='${wl}-Blargedynsym'
15901       runpath_var=LD_RUN_PATH
15902       ;;
15903     siemens)
15904       need_lib_prefix=no
15905       ;;
15906     motorola)
15907       need_lib_prefix=no
15908       need_version=no
15909       shlibpath_overrides_runpath=no
15910       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15911       ;;
15912   esac
15913   ;;
15914
15915 sysv4*MP*)
15916   if test -d /usr/nec ;then
15917     version_type=linux
15918     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15919     soname_spec='$libname${shared_ext}.$major'
15920     shlibpath_var=LD_LIBRARY_PATH
15921   fi
15922   ;;
15923
15924 uts4*)
15925   version_type=linux
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   shlibpath_var=LD_LIBRARY_PATH
15929   ;;
15930
15931 *)
15932   dynamic_linker=no
15933   ;;
15934 esac
15935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15936 echo "${ECHO_T}$dynamic_linker" >&6; }
15937 test "$dynamic_linker" = no && can_build_shared=no
15938
15939 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15940 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15941 hardcode_action_F77=
15942 if test -n "$hardcode_libdir_flag_spec_F77" || \
15943    test -n "$runpath_var_F77" || \
15944    test "X$hardcode_automatic_F77" = "Xyes" ; then
15945
15946   # We can hardcode non-existant directories.
15947   if test "$hardcode_direct_F77" != no &&
15948      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15949      # have to relink, otherwise we might link with an installed library
15950      # when we should be linking with a yet-to-be-installed one
15951      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15952      test "$hardcode_minus_L_F77" != no; then
15953     # Linking always hardcodes the temporary library directory.
15954     hardcode_action_F77=relink
15955   else
15956     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15957     hardcode_action_F77=immediate
15958   fi
15959 else
15960   # We cannot hardcode anything, or else we can only hardcode existing
15961   # directories.
15962   hardcode_action_F77=unsupported
15963 fi
15964 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15965 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15966
15967 if test "$hardcode_action_F77" = relink; then
15968   # Fast installation is not supported
15969   enable_fast_install=no
15970 elif test "$shlibpath_overrides_runpath" = yes ||
15971      test "$enable_shared" = no; then
15972   # Fast installation is not necessary
15973   enable_fast_install=needless
15974 fi
15975
15976 striplib=
15977 old_striplib=
15978 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15979 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15981   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15982   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15983   { echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6; }
15985 else
15986 # FIXME - insert some real tests, host_os isn't really good enough
15987   case $host_os in
15988    darwin*)
15989        if test -n "$STRIP" ; then
15990          striplib="$STRIP -x"
15991          { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15993        else
15994   { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15996 fi
15997        ;;
15998    *)
15999   { echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6; }
16001     ;;
16002   esac
16003 fi
16004
16005
16006
16007 # The else clause should only fire when bootstrapping the
16008 # libtool distribution, otherwise you forgot to ship ltmain.sh
16009 # with your package, and you will get complaints that there are
16010 # no rules to generate ltmain.sh.
16011 if test -f "$ltmain"; then
16012   # See if we are running on zsh, and set the options which allow our commands through
16013   # without removal of \ escapes.
16014   if test -n "${ZSH_VERSION+set}" ; then
16015     setopt NO_GLOB_SUBST
16016   fi
16017   # Now quote all the things that may contain metacharacters while being
16018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16019   # variables and quote the copies for generation of the libtool script.
16020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16021     SED SHELL STRIP \
16022     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16023     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16024     deplibs_check_method reload_flag reload_cmds need_locks \
16025     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16026     lt_cv_sys_global_symbol_to_c_name_address \
16027     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16028     old_postinstall_cmds old_postuninstall_cmds \
16029     compiler_F77 \
16030     CC_F77 \
16031     LD_F77 \
16032     lt_prog_compiler_wl_F77 \
16033     lt_prog_compiler_pic_F77 \
16034     lt_prog_compiler_static_F77 \
16035     lt_prog_compiler_no_builtin_flag_F77 \
16036     export_dynamic_flag_spec_F77 \
16037     thread_safe_flag_spec_F77 \
16038     whole_archive_flag_spec_F77 \
16039     enable_shared_with_static_runtimes_F77 \
16040     old_archive_cmds_F77 \
16041     old_archive_from_new_cmds_F77 \
16042     predep_objects_F77 \
16043     postdep_objects_F77 \
16044     predeps_F77 \
16045     postdeps_F77 \
16046     compiler_lib_search_path_F77 \
16047     archive_cmds_F77 \
16048     archive_expsym_cmds_F77 \
16049     postinstall_cmds_F77 \
16050     postuninstall_cmds_F77 \
16051     old_archive_from_expsyms_cmds_F77 \
16052     allow_undefined_flag_F77 \
16053     no_undefined_flag_F77 \
16054     export_symbols_cmds_F77 \
16055     hardcode_libdir_flag_spec_F77 \
16056     hardcode_libdir_flag_spec_ld_F77 \
16057     hardcode_libdir_separator_F77 \
16058     hardcode_automatic_F77 \
16059     module_cmds_F77 \
16060     module_expsym_cmds_F77 \
16061     lt_cv_prog_compiler_c_o_F77 \
16062     exclude_expsyms_F77 \
16063     include_expsyms_F77; do
16064
16065     case $var in
16066     old_archive_cmds_F77 | \
16067     old_archive_from_new_cmds_F77 | \
16068     archive_cmds_F77 | \
16069     archive_expsym_cmds_F77 | \
16070     module_cmds_F77 | \
16071     module_expsym_cmds_F77 | \
16072     old_archive_from_expsyms_cmds_F77 | \
16073     export_symbols_cmds_F77 | \
16074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16075     postinstall_cmds | postuninstall_cmds | \
16076     old_postinstall_cmds | old_postuninstall_cmds | \
16077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16078       # Double-quote double-evaled strings.
16079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16080       ;;
16081     *)
16082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16083       ;;
16084     esac
16085   done
16086
16087   case $lt_echo in
16088   *'\$0 --fallback-echo"')
16089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16090     ;;
16091   esac
16092
16093 cfgfile="$ofile"
16094
16095   cat <<__EOF__ >> "$cfgfile"
16096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16097
16098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16099
16100 # Shell to use when invoking shell scripts.
16101 SHELL=$lt_SHELL
16102
16103 # Whether or not to build shared libraries.
16104 build_libtool_libs=$enable_shared
16105
16106 # Whether or not to build static libraries.
16107 build_old_libs=$enable_static
16108
16109 # Whether or not to add -lc for building shared libraries.
16110 build_libtool_need_lc=$archive_cmds_need_lc_F77
16111
16112 # Whether or not to disallow shared libs when runtime libs are static
16113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16114
16115 # Whether or not to optimize for fast installation.
16116 fast_install=$enable_fast_install
16117
16118 # The host system.
16119 host_alias=$host_alias
16120 host=$host
16121 host_os=$host_os
16122
16123 # The build system.
16124 build_alias=$build_alias
16125 build=$build
16126 build_os=$build_os
16127
16128 # An echo program that does not interpret backslashes.
16129 echo=$lt_echo
16130
16131 # The archiver.
16132 AR=$lt_AR
16133 AR_FLAGS=$lt_AR_FLAGS
16134
16135 # A C compiler.
16136 LTCC=$lt_LTCC
16137
16138 # A language-specific compiler.
16139 CC=$lt_compiler_F77
16140
16141 # Is the compiler the GNU C compiler?
16142 with_gcc=$GCC_F77
16143
16144 # An ERE matcher.
16145 EGREP=$lt_EGREP
16146
16147 # The linker used to build libraries.
16148 LD=$lt_LD_F77
16149
16150 # Whether we need hard or soft links.
16151 LN_S=$lt_LN_S
16152
16153 # A BSD-compatible nm program.
16154 NM=$lt_NM
16155
16156 # A symbol stripping program
16157 STRIP=$lt_STRIP
16158
16159 # Used to examine libraries when file_magic_cmd begins "file"
16160 MAGIC_CMD=$MAGIC_CMD
16161
16162 # Used on cygwin: DLL creation program.
16163 DLLTOOL="$DLLTOOL"
16164
16165 # Used on cygwin: object dumper.
16166 OBJDUMP="$OBJDUMP"
16167
16168 # Used on cygwin: assembler.
16169 AS="$AS"
16170
16171 # The name of the directory that contains temporary libtool files.
16172 objdir=$objdir
16173
16174 # How to create reloadable object files.
16175 reload_flag=$lt_reload_flag
16176 reload_cmds=$lt_reload_cmds
16177
16178 # How to pass a linker flag through the compiler.
16179 wl=$lt_lt_prog_compiler_wl_F77
16180
16181 # Object file suffix (normally "o").
16182 objext="$ac_objext"
16183
16184 # Old archive suffix (normally "a").
16185 libext="$libext"
16186
16187 # Shared library suffix (normally ".so").
16188 shrext_cmds='$shrext_cmds'
16189
16190 # Executable file suffix (normally "").
16191 exeext="$exeext"
16192
16193 # Additional compiler flags for building library objects.
16194 pic_flag=$lt_lt_prog_compiler_pic_F77
16195 pic_mode=$pic_mode
16196
16197 # What is the maximum length of a command?
16198 max_cmd_len=$lt_cv_sys_max_cmd_len
16199
16200 # Does compiler simultaneously support -c and -o options?
16201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16202
16203 # Must we lock files when doing compilation?
16204 need_locks=$lt_need_locks
16205
16206 # Do we need the lib prefix for modules?
16207 need_lib_prefix=$need_lib_prefix
16208
16209 # Do we need a version for libraries?
16210 need_version=$need_version
16211
16212 # Whether dlopen is supported.
16213 dlopen_support=$enable_dlopen
16214
16215 # Whether dlopen of programs is supported.
16216 dlopen_self=$enable_dlopen_self
16217
16218 # Whether dlopen of statically linked programs is supported.
16219 dlopen_self_static=$enable_dlopen_self_static
16220
16221 # Compiler flag to prevent dynamic linking.
16222 link_static_flag=$lt_lt_prog_compiler_static_F77
16223
16224 # Compiler flag to turn off builtin functions.
16225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16226
16227 # Compiler flag to allow reflexive dlopens.
16228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16229
16230 # Compiler flag to generate shared objects directly from archives.
16231 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16232
16233 # Compiler flag to generate thread-safe objects.
16234 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16235
16236 # Library versioning type.
16237 version_type=$version_type
16238
16239 # Format of library name prefix.
16240 libname_spec=$lt_libname_spec
16241
16242 # List of archive names.  First name is the real one, the rest are links.
16243 # The last name is the one that the linker finds with -lNAME.
16244 library_names_spec=$lt_library_names_spec
16245
16246 # The coded name of the library, if different from the real name.
16247 soname_spec=$lt_soname_spec
16248
16249 # Commands used to build and install an old-style archive.
16250 RANLIB=$lt_RANLIB
16251 old_archive_cmds=$lt_old_archive_cmds_F77
16252 old_postinstall_cmds=$lt_old_postinstall_cmds
16253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16254
16255 # Create an old-style archive from a shared archive.
16256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16257
16258 # Create a temporary old-style archive to link instead of a shared archive.
16259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16260
16261 # Commands used to build and install a shared archive.
16262 archive_cmds=$lt_archive_cmds_F77
16263 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16264 postinstall_cmds=$lt_postinstall_cmds
16265 postuninstall_cmds=$lt_postuninstall_cmds
16266
16267 # Commands used to build a loadable module (assumed same as above if empty)
16268 module_cmds=$lt_module_cmds_F77
16269 module_expsym_cmds=$lt_module_expsym_cmds_F77
16270
16271 # Commands to strip libraries.
16272 old_striplib=$lt_old_striplib
16273 striplib=$lt_striplib
16274
16275 # Dependencies to place before the objects being linked to create a
16276 # shared library.
16277 predep_objects=$lt_predep_objects_F77
16278
16279 # Dependencies to place after the objects being linked to create a
16280 # shared library.
16281 postdep_objects=$lt_postdep_objects_F77
16282
16283 # Dependencies to place before the objects being linked to create a
16284 # shared library.
16285 predeps=$lt_predeps_F77
16286
16287 # Dependencies to place after the objects being linked to create a
16288 # shared library.
16289 postdeps=$lt_postdeps_F77
16290
16291 # The library search path used internally by the compiler when linking
16292 # a shared library.
16293 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16294
16295 # Method to check whether dependent libraries are shared objects.
16296 deplibs_check_method=$lt_deplibs_check_method
16297
16298 # Command to use when deplibs_check_method == file_magic.
16299 file_magic_cmd=$lt_file_magic_cmd
16300
16301 # Flag that allows shared libraries with undefined symbols to be built.
16302 allow_undefined_flag=$lt_allow_undefined_flag_F77
16303
16304 # Flag that forces no undefined symbols.
16305 no_undefined_flag=$lt_no_undefined_flag_F77
16306
16307 # Commands used to finish a libtool library installation in a directory.
16308 finish_cmds=$lt_finish_cmds
16309
16310 # Same as above, but a single script fragment to be evaled but not shown.
16311 finish_eval=$lt_finish_eval
16312
16313 # Take the output of nm and produce a listing of raw symbols and C names.
16314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16315
16316 # Transform the output of nm in a proper C declaration
16317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16318
16319 # Transform the output of nm in a C name address pair
16320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16321
16322 # This is the shared library runtime path variable.
16323 runpath_var=$runpath_var
16324
16325 # This is the shared library path variable.
16326 shlibpath_var=$shlibpath_var
16327
16328 # Is shlibpath searched before the hard-coded library search path?
16329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16330
16331 # How to hardcode a shared library path into an executable.
16332 hardcode_action=$hardcode_action_F77
16333
16334 # Whether we should hardcode library paths into libraries.
16335 hardcode_into_libs=$hardcode_into_libs
16336
16337 # Flag to hardcode \$libdir into a binary during linking.
16338 # This must work even if \$libdir does not exist.
16339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16340
16341 # If ld is used when linking, flag to hardcode \$libdir into
16342 # a binary during linking. This must work even if \$libdir does
16343 # not exist.
16344 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16345
16346 # Whether we need a single -rpath flag with a separated argument.
16347 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16348
16349 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16350 # resulting binary.
16351 hardcode_direct=$hardcode_direct_F77
16352
16353 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16354 # resulting binary.
16355 hardcode_minus_L=$hardcode_minus_L_F77
16356
16357 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16358 # the resulting binary.
16359 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16360
16361 # Set to yes if building a shared library automatically hardcodes DIR into the library
16362 # and all subsequent libraries and executables linked against it.
16363 hardcode_automatic=$hardcode_automatic_F77
16364
16365 # Variables whose values should be saved in libtool wrapper scripts and
16366 # restored at relink time.
16367 variables_saved_for_relink="$variables_saved_for_relink"
16368
16369 # Whether libtool must link a program against all its dependency libraries.
16370 link_all_deplibs=$link_all_deplibs_F77
16371
16372 # Compile-time system search path for libraries
16373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16374
16375 # Run-time system search path for libraries
16376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16377
16378 # Fix the shell variable \$srcfile for the compiler.
16379 fix_srcfile_path="$fix_srcfile_path_F77"
16380
16381 # Set to yes if exported symbols are required.
16382 always_export_symbols=$always_export_symbols_F77
16383
16384 # The commands to list exported symbols.
16385 export_symbols_cmds=$lt_export_symbols_cmds_F77
16386
16387 # The commands to extract the exported symbol list from a shared archive.
16388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16389
16390 # Symbols that should not be listed in the preloaded symbols.
16391 exclude_expsyms=$lt_exclude_expsyms_F77
16392
16393 # Symbols that must always be exported.
16394 include_expsyms=$lt_include_expsyms_F77
16395
16396 # ### END LIBTOOL TAG CONFIG: $tagname
16397
16398 __EOF__
16399
16400
16401 else
16402   # If there is no Makefile yet, we rely on a make rule to execute
16403   # `config.status --recheck' to rerun these tests and create the
16404   # libtool script then.
16405   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16406   if test -f "$ltmain_in"; then
16407     test -f Makefile && make "$ltmain"
16408   fi
16409 fi
16410
16411
16412 ac_ext=c
16413 ac_cpp='$CPP $CPPFLAGS'
16414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16417
16418 CC="$lt_save_CC"
16419
16420         else
16421           tagname=""
16422         fi
16423         ;;
16424
16425       GCJ)
16426         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16427
16428
16429 # Source file extension for Java test sources.
16430 ac_ext=java
16431
16432 # Object file extension for compiled Java test sources.
16433 objext=o
16434 objext_GCJ=$objext
16435
16436 # Code to be used in simple compile tests
16437 lt_simple_compile_test_code="class foo {}\n"
16438
16439 # Code to be used in simple link tests
16440 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16441
16442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16443
16444 # If no C compiler was specified, use CC.
16445 LTCC=${LTCC-"$CC"}
16446
16447 # Allow CC to be a program name with arguments.
16448 compiler=$CC
16449
16450
16451 # save warnings/boilerplate of simple test code
16452 ac_outfile=conftest.$ac_objext
16453 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16454 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16455 _lt_compiler_boilerplate=`cat conftest.err`
16456 $rm conftest*
16457
16458 ac_outfile=conftest.$ac_objext
16459 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16460 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16461 _lt_linker_boilerplate=`cat conftest.err`
16462 $rm conftest*
16463
16464
16465 # Allow CC to be a program name with arguments.
16466 lt_save_CC="$CC"
16467 CC=${GCJ-"gcj"}
16468 compiler=$CC
16469 compiler_GCJ=$CC
16470 for cc_temp in $compiler""; do
16471   case $cc_temp in
16472     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16473     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16474     \-*) ;;
16475     *) break;;
16476   esac
16477 done
16478 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16479
16480
16481 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16482 archive_cmds_need_lc_GCJ=no
16483
16484 old_archive_cmds_GCJ=$old_archive_cmds
16485
16486
16487 lt_prog_compiler_no_builtin_flag_GCJ=
16488
16489 if test "$GCC" = yes; then
16490   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16491
16492
16493 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16494 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16495 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   lt_cv_prog_compiler_rtti_exceptions=no
16499   ac_outfile=conftest.$ac_objext
16500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16501    lt_compiler_flag="-fno-rtti -fno-exceptions"
16502    # Insert the option either (1) after the last *FLAGS variable, or
16503    # (2) before a word containing "conftest.", or (3) at the end.
16504    # Note that $ac_compile itself does not contain backslashes and begins
16505    # with a dollar sign (not a hyphen), so the echo should work correctly.
16506    # The option is referenced via a variable to avoid confusing sed.
16507    lt_compile=`echo "$ac_compile" | $SED \
16508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16510    -e 's:$: $lt_compiler_flag:'`
16511    (eval echo "\"\$as_me:16511: $lt_compile\"" >&5)
16512    (eval "$lt_compile" 2>conftest.err)
16513    ac_status=$?
16514    cat conftest.err >&5
16515    echo "$as_me:16515: \$? = $ac_status" >&5
16516    if (exit $ac_status) && test -s "$ac_outfile"; then
16517      # The compiler can only warn and ignore the option if not recognized
16518      # So say no if there are warnings other than the usual output.
16519      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16520      $SED '/^$/d' conftest.err >conftest.er2
16521      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16522        lt_cv_prog_compiler_rtti_exceptions=yes
16523      fi
16524    fi
16525    $rm conftest*
16526
16527 fi
16528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16529 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16530
16531 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16532     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16533 else
16534     :
16535 fi
16536
16537 fi
16538
16539 lt_prog_compiler_wl_GCJ=
16540 lt_prog_compiler_pic_GCJ=
16541 lt_prog_compiler_static_GCJ=
16542
16543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16545
16546   if test "$GCC" = yes; then
16547     lt_prog_compiler_wl_GCJ='-Wl,'
16548     lt_prog_compiler_static_GCJ='-static'
16549
16550     case $host_os in
16551       aix*)
16552       # All AIX code is PIC.
16553       if test "$host_cpu" = ia64; then
16554         # AIX 5 now supports IA64 processor
16555         lt_prog_compiler_static_GCJ='-Bstatic'
16556       fi
16557       ;;
16558
16559     amigaos*)
16560       # FIXME: we need at least 68020 code to build shared libraries, but
16561       # adding the `-m68020' flag to GCC prevents building anything better,
16562       # like `-m68040'.
16563       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16564       ;;
16565
16566     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16567       # PIC is the default for these OSes.
16568       ;;
16569
16570     mingw* | pw32* | os2*)
16571       # This hack is so that the source file can tell whether it is being
16572       # built for inclusion in a dll (and should export symbols for example).
16573       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16574       ;;
16575
16576     darwin* | rhapsody*)
16577       # PIC is the default on this platform
16578       # Common symbols not allowed in MH_DYLIB files
16579       lt_prog_compiler_pic_GCJ='-fno-common'
16580       ;;
16581
16582     msdosdjgpp*)
16583       # Just because we use GCC doesn't mean we suddenly get shared libraries
16584       # on systems that don't support them.
16585       lt_prog_compiler_can_build_shared_GCJ=no
16586       enable_shared=no
16587       ;;
16588
16589     sysv4*MP*)
16590       if test -d /usr/nec; then
16591         lt_prog_compiler_pic_GCJ=-Kconform_pic
16592       fi
16593       ;;
16594
16595     hpux*)
16596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16597       # not for PA HP-UX.
16598       case $host_cpu in
16599       hppa*64*|ia64*)
16600         # +Z the default
16601         ;;
16602       *)
16603         lt_prog_compiler_pic_GCJ='-fPIC'
16604         ;;
16605       esac
16606       ;;
16607
16608     *)
16609       lt_prog_compiler_pic_GCJ='-fPIC'
16610       ;;
16611     esac
16612   else
16613     # PORTME Check for flag to pass linker flags through the system compiler.
16614     case $host_os in
16615     aix*)
16616       lt_prog_compiler_wl_GCJ='-Wl,'
16617       if test "$host_cpu" = ia64; then
16618         # AIX 5 now supports IA64 processor
16619         lt_prog_compiler_static_GCJ='-Bstatic'
16620       else
16621         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16622       fi
16623       ;;
16624       darwin*)
16625         # PIC is the default on this platform
16626         # Common symbols not allowed in MH_DYLIB files
16627        case $cc_basename in
16628          xlc*)
16629          lt_prog_compiler_pic_GCJ='-qnocommon'
16630          lt_prog_compiler_wl_GCJ='-Wl,'
16631          ;;
16632        esac
16633        ;;
16634
16635     mingw* | pw32* | os2*)
16636       # This hack is so that the source file can tell whether it is being
16637       # built for inclusion in a dll (and should export symbols for example).
16638       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16639       ;;
16640
16641     hpux9* | hpux10* | hpux11*)
16642       lt_prog_compiler_wl_GCJ='-Wl,'
16643       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16644       # not for PA HP-UX.
16645       case $host_cpu in
16646       hppa*64*|ia64*)
16647         # +Z the default
16648         ;;
16649       *)
16650         lt_prog_compiler_pic_GCJ='+Z'
16651         ;;
16652       esac
16653       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16654       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16655       ;;
16656
16657     irix5* | irix6* | nonstopux*)
16658       lt_prog_compiler_wl_GCJ='-Wl,'
16659       # PIC (with -KPIC) is the default.
16660       lt_prog_compiler_static_GCJ='-non_shared'
16661       ;;
16662
16663     newsos6)
16664       lt_prog_compiler_pic_GCJ='-KPIC'
16665       lt_prog_compiler_static_GCJ='-Bstatic'
16666       ;;
16667
16668     linux*)
16669       case $cc_basename in
16670       icc* | ecc*)
16671         lt_prog_compiler_wl_GCJ='-Wl,'
16672         lt_prog_compiler_pic_GCJ='-KPIC'
16673         lt_prog_compiler_static_GCJ='-static'
16674         ;;
16675       pgcc* | pgf77* | pgf90* | pgf95*)
16676         # Portland Group compilers (*not* the Pentium gcc compiler,
16677         # which looks to be a dead project)
16678         lt_prog_compiler_wl_GCJ='-Wl,'
16679         lt_prog_compiler_pic_GCJ='-fpic'
16680         lt_prog_compiler_static_GCJ='-Bstatic'
16681         ;;
16682       ccc*)
16683         lt_prog_compiler_wl_GCJ='-Wl,'
16684         # All Alpha code is PIC.
16685         lt_prog_compiler_static_GCJ='-non_shared'
16686         ;;
16687       esac
16688       ;;
16689
16690     osf3* | osf4* | osf5*)
16691       lt_prog_compiler_wl_GCJ='-Wl,'
16692       # All OSF/1 code is PIC.
16693       lt_prog_compiler_static_GCJ='-non_shared'
16694       ;;
16695
16696     sco3.2v5*)
16697       lt_prog_compiler_pic_GCJ='-Kpic'
16698       lt_prog_compiler_static_GCJ='-dn'
16699       ;;
16700
16701     solaris*)
16702       lt_prog_compiler_pic_GCJ='-KPIC'
16703       lt_prog_compiler_static_GCJ='-Bstatic'
16704       case $cc_basename in
16705       f77* | f90* | f95*)
16706         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16707       *)
16708         lt_prog_compiler_wl_GCJ='-Wl,';;
16709       esac
16710       ;;
16711
16712     sunos4*)
16713       lt_prog_compiler_wl_GCJ='-Qoption ld '
16714       lt_prog_compiler_pic_GCJ='-PIC'
16715       lt_prog_compiler_static_GCJ='-Bstatic'
16716       ;;
16717
16718     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16719       lt_prog_compiler_wl_GCJ='-Wl,'
16720       lt_prog_compiler_pic_GCJ='-KPIC'
16721       lt_prog_compiler_static_GCJ='-Bstatic'
16722       ;;
16723
16724     sysv4*MP*)
16725       if test -d /usr/nec ;then
16726         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16727         lt_prog_compiler_static_GCJ='-Bstatic'
16728       fi
16729       ;;
16730
16731     unicos*)
16732       lt_prog_compiler_wl_GCJ='-Wl,'
16733       lt_prog_compiler_can_build_shared_GCJ=no
16734       ;;
16735
16736     uts4*)
16737       lt_prog_compiler_pic_GCJ='-pic'
16738       lt_prog_compiler_static_GCJ='-Bstatic'
16739       ;;
16740
16741     *)
16742       lt_prog_compiler_can_build_shared_GCJ=no
16743       ;;
16744     esac
16745   fi
16746
16747 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16748 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16749
16750 #
16751 # Check to make sure the PIC flag actually works.
16752 #
16753 if test -n "$lt_prog_compiler_pic_GCJ"; then
16754
16755 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16757 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16758   echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760   lt_prog_compiler_pic_works_GCJ=no
16761   ac_outfile=conftest.$ac_objext
16762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16764    # Insert the option either (1) after the last *FLAGS variable, or
16765    # (2) before a word containing "conftest.", or (3) at the end.
16766    # Note that $ac_compile itself does not contain backslashes and begins
16767    # with a dollar sign (not a hyphen), so the echo should work correctly.
16768    # The option is referenced via a variable to avoid confusing sed.
16769    lt_compile=`echo "$ac_compile" | $SED \
16770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16772    -e 's:$: $lt_compiler_flag:'`
16773    (eval echo "\"\$as_me:16773: $lt_compile\"" >&5)
16774    (eval "$lt_compile" 2>conftest.err)
16775    ac_status=$?
16776    cat conftest.err >&5
16777    echo "$as_me:16777: \$? = $ac_status" >&5
16778    if (exit $ac_status) && test -s "$ac_outfile"; then
16779      # The compiler can only warn and ignore the option if not recognized
16780      # So say no if there are warnings other than the usual output.
16781      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16782      $SED '/^$/d' conftest.err >conftest.er2
16783      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16784        lt_prog_compiler_pic_works_GCJ=yes
16785      fi
16786    fi
16787    $rm conftest*
16788
16789 fi
16790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16791 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16792
16793 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16794     case $lt_prog_compiler_pic_GCJ in
16795      "" | " "*) ;;
16796      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16797      esac
16798 else
16799     lt_prog_compiler_pic_GCJ=
16800      lt_prog_compiler_can_build_shared_GCJ=no
16801 fi
16802
16803 fi
16804 case $host_os in
16805   # For platforms which do not support PIC, -DPIC is meaningless:
16806   *djgpp*)
16807     lt_prog_compiler_pic_GCJ=
16808     ;;
16809   *)
16810     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16811     ;;
16812 esac
16813
16814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16816 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   lt_cv_prog_compiler_c_o_GCJ=no
16820    $rm -r conftest 2>/dev/null
16821    mkdir conftest
16822    cd conftest
16823    mkdir out
16824    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16825
16826    lt_compiler_flag="-o out/conftest2.$ac_objext"
16827    # Insert the option either (1) after the last *FLAGS variable, or
16828    # (2) before a word containing "conftest.", or (3) at the end.
16829    # Note that $ac_compile itself does not contain backslashes and begins
16830    # with a dollar sign (not a hyphen), so the echo should work correctly.
16831    lt_compile=`echo "$ac_compile" | $SED \
16832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16834    -e 's:$: $lt_compiler_flag:'`
16835    (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
16836    (eval "$lt_compile" 2>out/conftest.err)
16837    ac_status=$?
16838    cat out/conftest.err >&5
16839    echo "$as_me:16839: \$? = $ac_status" >&5
16840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16841    then
16842      # The compiler can only warn and ignore the option if not recognized
16843      # So say no if there are warnings
16844      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16845      $SED '/^$/d' out/conftest.err >out/conftest.er2
16846      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16847        lt_cv_prog_compiler_c_o_GCJ=yes
16848      fi
16849    fi
16850    chmod u+w . 2>&5
16851    $rm conftest*
16852    # SGI C++ compiler will create directory out/ii_files/ for
16853    # template instantiation
16854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16855    $rm out/* && rmdir out
16856    cd ..
16857    rmdir conftest
16858    $rm conftest*
16859
16860 fi
16861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16863
16864
16865 hard_links="nottested"
16866 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16867   # do not overwrite the value of need_locks provided by the user
16868   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16870   hard_links=yes
16871   $rm conftest*
16872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16873   touch conftest.a
16874   ln conftest.a conftest.b 2>&5 || hard_links=no
16875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876   { echo "$as_me:$LINENO: result: $hard_links" >&5
16877 echo "${ECHO_T}$hard_links" >&6; }
16878   if test "$hard_links" = no; then
16879     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16881     need_locks=warn
16882   fi
16883 else
16884   need_locks=no
16885 fi
16886
16887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16889
16890   runpath_var=
16891   allow_undefined_flag_GCJ=
16892   enable_shared_with_static_runtimes_GCJ=no
16893   archive_cmds_GCJ=
16894   archive_expsym_cmds_GCJ=
16895   old_archive_From_new_cmds_GCJ=
16896   old_archive_from_expsyms_cmds_GCJ=
16897   export_dynamic_flag_spec_GCJ=
16898   whole_archive_flag_spec_GCJ=
16899   thread_safe_flag_spec_GCJ=
16900   hardcode_libdir_flag_spec_GCJ=
16901   hardcode_libdir_flag_spec_ld_GCJ=
16902   hardcode_libdir_separator_GCJ=
16903   hardcode_direct_GCJ=no
16904   hardcode_minus_L_GCJ=no
16905   hardcode_shlibpath_var_GCJ=unsupported
16906   link_all_deplibs_GCJ=unknown
16907   hardcode_automatic_GCJ=no
16908   module_cmds_GCJ=
16909   module_expsym_cmds_GCJ=
16910   always_export_symbols_GCJ=no
16911   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912   # include_expsyms should be a list of space-separated symbols to be *always*
16913   # included in the symbol list
16914   include_expsyms_GCJ=
16915   # exclude_expsyms can be an extended regexp of symbols to exclude
16916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16918   # as well as any symbol that contains `d'.
16919   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16921   # platforms (ab)use it in PIC code, but their linkers get confused if
16922   # the symbol is explicitly referenced.  Since portable code cannot
16923   # rely on this symbol name, it's probably fine to never include it in
16924   # preloaded symbol tables.
16925   extract_expsyms_cmds=
16926   # Just being paranoid about ensuring that cc_basename is set.
16927   for cc_temp in $compiler""; do
16928   case $cc_temp in
16929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16931     \-*) ;;
16932     *) break;;
16933   esac
16934 done
16935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16936
16937   case $host_os in
16938   cygwin* | mingw* | pw32*)
16939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16940     # When not using gcc, we currently assume that we are using
16941     # Microsoft Visual C++.
16942     if test "$GCC" != yes; then
16943       with_gnu_ld=no
16944     fi
16945     ;;
16946   openbsd*)
16947     with_gnu_ld=no
16948     ;;
16949   esac
16950
16951   ld_shlibs_GCJ=yes
16952   if test "$with_gnu_ld" = yes; then
16953     # If archive_cmds runs LD, not CC, wlarc should be empty
16954     wlarc='${wl}'
16955
16956     # Set some defaults for GNU ld with shared library support. These
16957     # are reset later if shared libraries are not supported. Putting them
16958     # here allows them to be overridden if necessary.
16959     runpath_var=LD_RUN_PATH
16960     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16961     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16962     # ancient GNU ld didn't support --whole-archive et. al.
16963     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16964         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16965       else
16966         whole_archive_flag_spec_GCJ=
16967     fi
16968     supports_anon_versioning=no
16969     case `$LD -v 2>/dev/null` in
16970       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16971       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16972       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16973       *\ 2.11.*) ;; # other 2.11 versions
16974       *) supports_anon_versioning=yes ;;
16975     esac
16976
16977     # See if GNU ld supports shared libraries.
16978     case $host_os in
16979     aix3* | aix4* | aix5*)
16980       # On AIX/PPC, the GNU linker is very broken
16981       if test "$host_cpu" != ia64; then
16982         ld_shlibs_GCJ=no
16983         cat <<EOF 1>&2
16984
16985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16986 *** to be unable to reliably create shared libraries on AIX.
16987 *** Therefore, libtool is disabling shared libraries support.  If you
16988 *** really care for shared libraries, you may want to modify your PATH
16989 *** so that a non-GNU linker is found, and then restart.
16990
16991 EOF
16992       fi
16993       ;;
16994
16995     amigaos*)
16996       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)'
16997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998       hardcode_minus_L_GCJ=yes
16999
17000       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17001       # that the semantics of dynamic libraries on AmigaOS, at least up
17002       # to version 4, is to share data among multiple programs linked
17003       # with the same dynamic library.  Since this doesn't match the
17004       # behavior of shared libraries on other platforms, we can't use
17005       # them.
17006       ld_shlibs_GCJ=no
17007       ;;
17008
17009     beos*)
17010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17011         allow_undefined_flag_GCJ=unsupported
17012         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17013         # support --undefined.  This deserves some investigation.  FIXME
17014         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17015       else
17016         ld_shlibs_GCJ=no
17017       fi
17018       ;;
17019
17020     cygwin* | mingw* | pw32*)
17021       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17022       # as there is no search path for DLLs.
17023       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024       allow_undefined_flag_GCJ=unsupported
17025       always_export_symbols_GCJ=no
17026       enable_shared_with_static_runtimes_GCJ=yes
17027       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17028
17029       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17030         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17031         # If the export-symbols file already is a .def file (1st line
17032         # is EXPORTS), use it as is; otherwise, prepend...
17033         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17034           cp $export_symbols $output_objdir/$soname.def;
17035         else
17036           echo EXPORTS > $output_objdir/$soname.def;
17037           cat $export_symbols >> $output_objdir/$soname.def;
17038         fi~
17039         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17040       else
17041         ld_shlibs_GCJ=no
17042       fi
17043       ;;
17044
17045     linux*)
17046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17047         tmp_addflag=
17048         case $cc_basename,$host_cpu in
17049         pgcc*)                          # Portland Group C compiler
17050           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17051           tmp_addflag=' $pic_flag'
17052           ;;
17053         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17054           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17055           tmp_addflag=' $pic_flag -Mnomain' ;;
17056         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17057           tmp_addflag=' -i_dynamic' ;;
17058         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17059           tmp_addflag=' -i_dynamic -nofor_main' ;;
17060         ifc* | ifort*)                  # Intel Fortran compiler
17061           tmp_addflag=' -nofor_main' ;;
17062         esac
17063         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064
17065         if test $supports_anon_versioning = yes; then
17066           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17067   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17068   $echo "local: *; };" >> $output_objdir/$libname.ver~
17069           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17070         fi
17071       else
17072         ld_shlibs_GCJ=no
17073       fi
17074       ;;
17075
17076     netbsd*)
17077       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17078         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17079         wlarc=
17080       else
17081         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17083       fi
17084       ;;
17085
17086     solaris* | sysv5*)
17087       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17088         ld_shlibs_GCJ=no
17089         cat <<EOF 1>&2
17090
17091 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17092 *** create shared libraries on Solaris systems.  Therefore, libtool
17093 *** is disabling shared libraries support.  We urge you to upgrade GNU
17094 *** binutils to release 2.9.1 or newer.  Another option is to modify
17095 *** your PATH or compiler configuration so that the native linker is
17096 *** used, and then restart.
17097
17098 EOF
17099       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17101         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17102       else
17103         ld_shlibs_GCJ=no
17104       fi
17105       ;;
17106
17107     sunos4*)
17108       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17109       wlarc=
17110       hardcode_direct_GCJ=yes
17111       hardcode_shlibpath_var_GCJ=no
17112       ;;
17113
17114     *)
17115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118       else
17119         ld_shlibs_GCJ=no
17120       fi
17121       ;;
17122     esac
17123
17124     if test "$ld_shlibs_GCJ" = no; then
17125       runpath_var=
17126       hardcode_libdir_flag_spec_GCJ=
17127       export_dynamic_flag_spec_GCJ=
17128       whole_archive_flag_spec_GCJ=
17129     fi
17130   else
17131     # PORTME fill in a description of your system's linker (not GNU ld)
17132     case $host_os in
17133     aix3*)
17134       allow_undefined_flag_GCJ=unsupported
17135       always_export_symbols_GCJ=yes
17136       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'
17137       # Note: this linker hardcodes the directories in LIBPATH if there
17138       # are no directories specified by -L.
17139       hardcode_minus_L_GCJ=yes
17140       if test "$GCC" = yes && test -z "$link_static_flag"; then
17141         # Neither direct hardcoding nor static linking is supported with a
17142         # broken collect2.
17143         hardcode_direct_GCJ=unsupported
17144       fi
17145       ;;
17146
17147     aix4* | aix5*)
17148       if test "$host_cpu" = ia64; then
17149         # On IA64, the linker does run time linking by default, so we don't
17150         # have to do anything special.
17151         aix_use_runtimelinking=no
17152         exp_sym_flag='-Bexport'
17153         no_entry_flag=""
17154       else
17155         # If we're using GNU nm, then we don't want the "-C" option.
17156         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17157         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17158           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'
17159         else
17160           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'
17161         fi
17162         aix_use_runtimelinking=no
17163
17164         # Test if we are trying to use run time linking or normal
17165         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17166         # need to do runtime linking.
17167         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17168           for ld_flag in $LDFLAGS; do
17169           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17170             aix_use_runtimelinking=yes
17171             break
17172           fi
17173           done
17174         esac
17175
17176         exp_sym_flag='-bexport'
17177         no_entry_flag='-bnoentry'
17178       fi
17179
17180       # When large executables or shared objects are built, AIX ld can
17181       # have problems creating the table of contents.  If linking a library
17182       # or program results in "error TOC overflow" add -mminimal-toc to
17183       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17184       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17185
17186       archive_cmds_GCJ=''
17187       hardcode_direct_GCJ=yes
17188       hardcode_libdir_separator_GCJ=':'
17189       link_all_deplibs_GCJ=yes
17190
17191       if test "$GCC" = yes; then
17192         case $host_os in aix4.[012]|aix4.[012].*)
17193         # We only want to do this on AIX 4.2 and lower, the check
17194         # below for broken collect2 doesn't work under 4.3+
17195           collect2name=`${CC} -print-prog-name=collect2`
17196           if test -f "$collect2name" && \
17197            strings "$collect2name" | grep resolve_lib_name >/dev/null
17198           then
17199           # We have reworked collect2
17200           hardcode_direct_GCJ=yes
17201           else
17202           # We have old collect2
17203           hardcode_direct_GCJ=unsupported
17204           # It fails to find uninstalled libraries when the uninstalled
17205           # path is not listed in the libpath.  Setting hardcode_minus_L
17206           # to unsupported forces relinking
17207           hardcode_minus_L_GCJ=yes
17208           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17209           hardcode_libdir_separator_GCJ=
17210           fi
17211         esac
17212         shared_flag='-shared'
17213         if test "$aix_use_runtimelinking" = yes; then
17214           shared_flag="$shared_flag "'${wl}-G'
17215         fi
17216       else
17217         # not using gcc
17218         if test "$host_cpu" = ia64; then
17219         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17220         # chokes on -Wl,-G. The following line is correct:
17221           shared_flag='-G'
17222         else
17223         if test "$aix_use_runtimelinking" = yes; then
17224             shared_flag='${wl}-G'
17225           else
17226             shared_flag='${wl}-bM:SRE'
17227         fi
17228         fi
17229       fi
17230
17231       # It seems that -bexpall does not export symbols beginning with
17232       # underscore (_), so it is better to generate a list of symbols to export.
17233       always_export_symbols_GCJ=yes
17234       if test "$aix_use_runtimelinking" = yes; then
17235         # Warning - without using the other runtime loading flags (-brtl),
17236         # -berok will link without error, but may produce a broken library.
17237         allow_undefined_flag_GCJ='-berok'
17238        # Determine the default libpath from the value encoded in an empty executable.
17239        cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h.  */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h.  */
17245
17246 int
17247 main ()
17248 {
17249
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_link") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } && {
17268          test -z "$ac_c_werror_flag" ||
17269          test ! -s conftest.err
17270        } && test -s conftest$ac_exeext &&
17271        $as_test_x conftest$ac_exeext; then
17272
17273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17274 }'`
17275 # Check for a 64-bit object if we didn't find anything.
17276 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; }
17277 }'`; fi
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282
17283 fi
17284
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286       conftest$ac_exeext conftest.$ac_ext
17287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17288
17289        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17290         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17291        else
17292         if test "$host_cpu" = ia64; then
17293           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17294           allow_undefined_flag_GCJ="-z nodefs"
17295           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17296         else
17297          # Determine the default libpath from the value encoded in an empty executable.
17298          cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304
17305 int
17306 main ()
17307 {
17308
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_link") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_c_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest$ac_exeext &&
17330        $as_test_x conftest$ac_exeext; then
17331
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17333 }'`
17334 # Check for a 64-bit object if we didn't find anything.
17335 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; }
17336 }'`; fi
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341
17342 fi
17343
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345       conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17349           # Warning - without using the other run time loading flags,
17350           # -berok will link without error, but may produce a broken library.
17351           no_undefined_flag_GCJ=' ${wl}-bernotok'
17352           allow_undefined_flag_GCJ=' ${wl}-berok'
17353           # -bexpall does not export symbols beginning with underscore (_)
17354           always_export_symbols_GCJ=yes
17355           # Exported symbols can be pulled into shared objects from archives
17356           whole_archive_flag_spec_GCJ=' '
17357           archive_cmds_need_lc_GCJ=yes
17358           # This is similar to how AIX traditionally builds its shared libraries.
17359           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17360         fi
17361       fi
17362       ;;
17363
17364     amigaos*)
17365       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)'
17366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367       hardcode_minus_L_GCJ=yes
17368       # see comment about different semantics on the GNU ld section
17369       ld_shlibs_GCJ=no
17370       ;;
17371
17372     bsdi[45]*)
17373       export_dynamic_flag_spec_GCJ=-rdynamic
17374       ;;
17375
17376     cygwin* | mingw* | pw32*)
17377       # When not using gcc, we currently assume that we are using
17378       # Microsoft Visual C++.
17379       # hardcode_libdir_flag_spec is actually meaningless, as there is
17380       # no search path for DLLs.
17381       hardcode_libdir_flag_spec_GCJ=' '
17382       allow_undefined_flag_GCJ=unsupported
17383       # Tell ltmain to make .lib files, not .a files.
17384       libext=lib
17385       # Tell ltmain to make .dll files, not .so files.
17386       shrext_cmds=".dll"
17387       # FIXME: Setting linknames here is a bad hack.
17388       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17389       # The linker will automatically build a .lib file if we build a DLL.
17390       old_archive_From_new_cmds_GCJ='true'
17391       # FIXME: Should let the user specify the lib program.
17392       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17393       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17394       enable_shared_with_static_runtimes_GCJ=yes
17395       ;;
17396
17397     darwin* | rhapsody*)
17398       case $host_os in
17399         rhapsody* | darwin1.[012])
17400          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17401          ;;
17402        *) # Darwin 1.3 on
17403          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17404            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17405          else
17406            case ${MACOSX_DEPLOYMENT_TARGET} in
17407              10.[012])
17408                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17409                ;;
17410              10.*)
17411                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17412                ;;
17413            esac
17414          fi
17415          ;;
17416       esac
17417       archive_cmds_need_lc_GCJ=no
17418       hardcode_direct_GCJ=no
17419       hardcode_automatic_GCJ=yes
17420       hardcode_shlibpath_var_GCJ=unsupported
17421       whole_archive_flag_spec_GCJ=''
17422       link_all_deplibs_GCJ=yes
17423     if test "$GCC" = yes ; then
17424         output_verbose_link_cmd='echo'
17425         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17426       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17427       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17428       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17429       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17430     else
17431       case $cc_basename in
17432         xlc*)
17433          output_verbose_link_cmd='echo'
17434          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17435          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17438           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17439           ;;
17440        *)
17441          ld_shlibs_GCJ=no
17442           ;;
17443       esac
17444     fi
17445       ;;
17446
17447     dgux*)
17448       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450       hardcode_shlibpath_var_GCJ=no
17451       ;;
17452
17453     freebsd1*)
17454       ld_shlibs_GCJ=no
17455       ;;
17456
17457     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17458     # support.  Future versions do this automatically, but an explicit c++rt0.o
17459     # does not break anything, and helps significantly (at the cost of a little
17460     # extra space).
17461     freebsd2.2*)
17462       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17463       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464       hardcode_direct_GCJ=yes
17465       hardcode_shlibpath_var_GCJ=no
17466       ;;
17467
17468     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17469     freebsd2*)
17470       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17471       hardcode_direct_GCJ=yes
17472       hardcode_minus_L_GCJ=yes
17473       hardcode_shlibpath_var_GCJ=no
17474       ;;
17475
17476     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17477     freebsd* | kfreebsd*-gnu | dragonfly*)
17478       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17479       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480       hardcode_direct_GCJ=yes
17481       hardcode_shlibpath_var_GCJ=no
17482       ;;
17483
17484     hpux9*)
17485       if test "$GCC" = yes; then
17486         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17487       else
17488         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'
17489       fi
17490       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491       hardcode_libdir_separator_GCJ=:
17492       hardcode_direct_GCJ=yes
17493
17494       # hardcode_minus_L: Not really in the search PATH,
17495       # but as the default location of the library.
17496       hardcode_minus_L_GCJ=yes
17497       export_dynamic_flag_spec_GCJ='${wl}-E'
17498       ;;
17499
17500     hpux10* | hpux11*)
17501       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17502         case $host_cpu in
17503         hppa*64*|ia64*)
17504           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17505           ;;
17506         *)
17507           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17508           ;;
17509         esac
17510       else
17511         case $host_cpu in
17512         hppa*64*|ia64*)
17513           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17514           ;;
17515         *)
17516           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17517           ;;
17518         esac
17519       fi
17520       if test "$with_gnu_ld" = no; then
17521         case $host_cpu in
17522         hppa*64*)
17523           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17524           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17525           hardcode_libdir_separator_GCJ=:
17526           hardcode_direct_GCJ=no
17527           hardcode_shlibpath_var_GCJ=no
17528           ;;
17529         ia64*)
17530           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531           hardcode_direct_GCJ=no
17532           hardcode_shlibpath_var_GCJ=no
17533
17534           # hardcode_minus_L: Not really in the search PATH,
17535           # but as the default location of the library.
17536           hardcode_minus_L_GCJ=yes
17537           ;;
17538         *)
17539           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17540           hardcode_libdir_separator_GCJ=:
17541           hardcode_direct_GCJ=yes
17542           export_dynamic_flag_spec_GCJ='${wl}-E'
17543
17544           # hardcode_minus_L: Not really in the search PATH,
17545           # but as the default location of the library.
17546           hardcode_minus_L_GCJ=yes
17547           ;;
17548         esac
17549       fi
17550       ;;
17551
17552     irix5* | irix6* | nonstopux*)
17553       if test "$GCC" = yes; then
17554         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17555       else
17556         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'
17557         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17558       fi
17559       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17560       hardcode_libdir_separator_GCJ=:
17561       link_all_deplibs_GCJ=yes
17562       ;;
17563
17564     netbsd*)
17565       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17566         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17567       else
17568         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17569       fi
17570       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17571       hardcode_direct_GCJ=yes
17572       hardcode_shlibpath_var_GCJ=no
17573       ;;
17574
17575     newsos6)
17576       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577       hardcode_direct_GCJ=yes
17578       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17579       hardcode_libdir_separator_GCJ=:
17580       hardcode_shlibpath_var_GCJ=no
17581       ;;
17582
17583     openbsd*)
17584       hardcode_direct_GCJ=yes
17585       hardcode_shlibpath_var_GCJ=no
17586       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17587         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17588         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17589         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17590         export_dynamic_flag_spec_GCJ='${wl}-E'
17591       else
17592        case $host_os in
17593          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17594            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17595            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17596            ;;
17597          *)
17598            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17599            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17600            ;;
17601        esac
17602       fi
17603       ;;
17604
17605     os2*)
17606       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17607       hardcode_minus_L_GCJ=yes
17608       allow_undefined_flag_GCJ=unsupported
17609       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17610       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17611       ;;
17612
17613     osf3*)
17614       if test "$GCC" = yes; then
17615         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17616         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17617       else
17618         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17619         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'
17620       fi
17621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17622       hardcode_libdir_separator_GCJ=:
17623       ;;
17624
17625     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17626       if test "$GCC" = yes; then
17627         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17628         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17629         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17630       else
17631         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17632         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'
17633         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~
17634         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17635
17636         # Both c and cxx compiler support -rpath directly
17637         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17638       fi
17639       hardcode_libdir_separator_GCJ=:
17640       ;;
17641
17642     sco3.2v5*)
17643       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17644       hardcode_shlibpath_var_GCJ=no
17645       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17646       runpath_var=LD_RUN_PATH
17647       hardcode_runpath_var=yes
17648       ;;
17649
17650     solaris*)
17651       no_undefined_flag_GCJ=' -z text'
17652       if test "$GCC" = yes; then
17653         wlarc='${wl}'
17654         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17655         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17656           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17657       else
17658         wlarc=''
17659         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17661         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17662       fi
17663       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17664       hardcode_shlibpath_var_GCJ=no
17665       case $host_os in
17666       solaris2.[0-5] | solaris2.[0-5].*) ;;
17667       *)
17668         # The compiler driver will combine linker options so we
17669         # cannot just pass the convience library names through
17670         # without $wl, iff we do not link with $LD.
17671         # Luckily, gcc supports the same syntax we need for Sun Studio.
17672         # Supported since Solaris 2.6 (maybe 2.5.1?)
17673         case $wlarc in
17674         '')
17675           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17676         *)
17677           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17678         esac ;;
17679       esac
17680       link_all_deplibs_GCJ=yes
17681       ;;
17682
17683     sunos4*)
17684       if test "x$host_vendor" = xsequent; then
17685         # Use $CC to link under sequent, because it throws in some extra .o
17686         # files that make .init and .fini sections work.
17687         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17688       else
17689         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17690       fi
17691       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692       hardcode_direct_GCJ=yes
17693       hardcode_minus_L_GCJ=yes
17694       hardcode_shlibpath_var_GCJ=no
17695       ;;
17696
17697     sysv4)
17698       case $host_vendor in
17699         sni)
17700           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701           hardcode_direct_GCJ=yes # is this really true???
17702         ;;
17703         siemens)
17704           ## LD is ld it makes a PLAMLIB
17705           ## CC just makes a GrossModule.
17706           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17707           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17708           hardcode_direct_GCJ=no
17709         ;;
17710         motorola)
17711           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17712           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17713         ;;
17714       esac
17715       runpath_var='LD_RUN_PATH'
17716       hardcode_shlibpath_var_GCJ=no
17717       ;;
17718
17719     sysv4.3*)
17720       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17721       hardcode_shlibpath_var_GCJ=no
17722       export_dynamic_flag_spec_GCJ='-Bexport'
17723       ;;
17724
17725     sysv4*MP*)
17726       if test -d /usr/nec; then
17727         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728         hardcode_shlibpath_var_GCJ=no
17729         runpath_var=LD_RUN_PATH
17730         hardcode_runpath_var=yes
17731         ld_shlibs_GCJ=yes
17732       fi
17733       ;;
17734
17735     sysv4.2uw2*)
17736       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17737       hardcode_direct_GCJ=yes
17738       hardcode_minus_L_GCJ=no
17739       hardcode_shlibpath_var_GCJ=no
17740       hardcode_runpath_var=yes
17741       runpath_var=LD_RUN_PATH
17742       ;;
17743
17744    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17745       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17746       if test "$GCC" = yes; then
17747         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17748       else
17749         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17750       fi
17751       runpath_var='LD_RUN_PATH'
17752       hardcode_shlibpath_var_GCJ=no
17753       ;;
17754
17755     sysv5*)
17756       no_undefined_flag_GCJ=' -z text'
17757       # $CC -shared without GNU ld will not create a library from C++
17758       # object files and a static libstdc++, better avoid it by now
17759       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17760       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17761                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17762       hardcode_libdir_flag_spec_GCJ=
17763       hardcode_shlibpath_var_GCJ=no
17764       runpath_var='LD_RUN_PATH'
17765       ;;
17766
17767     uts4*)
17768       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17770       hardcode_shlibpath_var_GCJ=no
17771       ;;
17772
17773     *)
17774       ld_shlibs_GCJ=no
17775       ;;
17776     esac
17777   fi
17778
17779 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17780 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17781 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17782
17783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17784 if test "$GCC" = yes; then
17785   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17786 fi
17787
17788 #
17789 # Do we need to explicitly link libc?
17790 #
17791 case "x$archive_cmds_need_lc_GCJ" in
17792 x|xyes)
17793   # Assume -lc should be added
17794   archive_cmds_need_lc_GCJ=yes
17795
17796   if test "$enable_shared" = yes && test "$GCC" = yes; then
17797     case $archive_cmds_GCJ in
17798     *'~'*)
17799       # FIXME: we may have to deal with multi-command sequences.
17800       ;;
17801     '$CC '*)
17802       # Test whether the compiler implicitly links with -lc since on some
17803       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17804       # to ld, don't add -lc before -lgcc.
17805       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17806 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17807       $rm conftest*
17808       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17809
17810       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811   (eval $ac_compile) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } 2>conftest.err; then
17815         soname=conftest
17816         lib=conftest
17817         libobjs=conftest.$ac_objext
17818         deplibs=
17819         wl=$lt_prog_compiler_wl_GCJ
17820         compiler_flags=-v
17821         linker_flags=-v
17822         verstring=
17823         output_objdir=.
17824         libname=conftest
17825         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17826         allow_undefined_flag_GCJ=
17827         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17828   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }
17832         then
17833           archive_cmds_need_lc_GCJ=no
17834         else
17835           archive_cmds_need_lc_GCJ=yes
17836         fi
17837         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17838       else
17839         cat conftest.err 1>&5
17840       fi
17841       $rm conftest*
17842       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17843 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17844       ;;
17845     esac
17846   fi
17847   ;;
17848 esac
17849
17850 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17852 library_names_spec=
17853 libname_spec='lib$name'
17854 soname_spec=
17855 shrext_cmds=".so"
17856 postinstall_cmds=
17857 postuninstall_cmds=
17858 finish_cmds=
17859 finish_eval=
17860 shlibpath_var=
17861 shlibpath_overrides_runpath=unknown
17862 version_type=none
17863 dynamic_linker="$host_os ld.so"
17864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17865 if test "$GCC" = yes; then
17866   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17868     # if the path contains ";" then we assume it to be the separator
17869     # otherwise default to the standard path separator (i.e. ":") - it is
17870     # assumed that no part of a normal pathname contains ";" but that should
17871     # okay in the real world where ";" in dirpaths is itself problematic.
17872     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17873   else
17874     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17875   fi
17876 else
17877   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17878 fi
17879 need_lib_prefix=unknown
17880 hardcode_into_libs=no
17881
17882 # when you set need_version to no, make sure it does not cause -set_version
17883 # flags to be left without arguments
17884 need_version=unknown
17885
17886 case $host_os in
17887 aix3*)
17888   version_type=linux
17889   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17890   shlibpath_var=LIBPATH
17891
17892   # AIX 3 has no versioning support, so we append a major version to the name.
17893   soname_spec='${libname}${release}${shared_ext}$major'
17894   ;;
17895
17896 aix4* | aix5*)
17897   version_type=linux
17898   need_lib_prefix=no
17899   need_version=no
17900   hardcode_into_libs=yes
17901   if test "$host_cpu" = ia64; then
17902     # AIX 5 supports IA64
17903     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17904     shlibpath_var=LD_LIBRARY_PATH
17905   else
17906     # With GCC up to 2.95.x, collect2 would create an import file
17907     # for dependence libraries.  The import file would start with
17908     # the line `#! .'.  This would cause the generated library to
17909     # depend on `.', always an invalid library.  This was fixed in
17910     # development snapshots of GCC prior to 3.0.
17911     case $host_os in
17912       aix4 | aix4.[01] | aix4.[01].*)
17913       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17914            echo ' yes '
17915            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17916         :
17917       else
17918         can_build_shared=no
17919       fi
17920       ;;
17921     esac
17922     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17923     # soname into executable. Probably we can add versioning support to
17924     # collect2, so additional links can be useful in future.
17925     if test "$aix_use_runtimelinking" = yes; then
17926       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17927       # instead of lib<name>.a to let people know that these are not
17928       # typical AIX shared libraries.
17929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17930     else
17931       # We preserve .a as extension for shared libraries through AIX4.2
17932       # and later when we are not doing run time linking.
17933       library_names_spec='${libname}${release}.a $libname.a'
17934       soname_spec='${libname}${release}${shared_ext}$major'
17935     fi
17936     shlibpath_var=LIBPATH
17937   fi
17938   ;;
17939
17940 amigaos*)
17941   library_names_spec='$libname.ixlibrary $libname.a'
17942   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17943   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'
17944   ;;
17945
17946 beos*)
17947   library_names_spec='${libname}${shared_ext}'
17948   dynamic_linker="$host_os ld.so"
17949   shlibpath_var=LIBRARY_PATH
17950   ;;
17951
17952 bsdi[45]*)
17953   version_type=linux
17954   need_version=no
17955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956   soname_spec='${libname}${release}${shared_ext}$major'
17957   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17958   shlibpath_var=LD_LIBRARY_PATH
17959   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17960   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17961   # the default ld.so.conf also contains /usr/contrib/lib and
17962   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17963   # libtool to hard-code these into programs
17964   ;;
17965
17966 cygwin* | mingw* | pw32*)
17967   version_type=windows
17968   shrext_cmds=".dll"
17969   need_version=no
17970   need_lib_prefix=no
17971
17972   case $GCC,$host_os in
17973   yes,cygwin* | yes,mingw* | yes,pw32*)
17974     library_names_spec='$libname.dll.a'
17975     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17976     postinstall_cmds='base_file=`basename \${file}`~
17977       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17978       dldir=$destdir/`dirname \$dlpath`~
17979       test -d \$dldir || mkdir -p \$dldir~
17980       $install_prog $dir/$dlname \$dldir/$dlname~
17981       chmod a+x \$dldir/$dlname'
17982     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17983       dlpath=$dir/\$dldll~
17984        $rm \$dlpath'
17985     shlibpath_overrides_runpath=yes
17986
17987     case $host_os in
17988     cygwin*)
17989       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17990       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17991       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17992       ;;
17993     mingw*)
17994       # MinGW DLLs use traditional 'lib' prefix
17995       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17996       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17997       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17998         # It is most probably a Windows format PATH printed by
17999         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18000         # path with ; separators, and with drive letters. We can handle the
18001         # drive letters (cygwin fileutils understands them), so leave them,
18002         # especially as we might pass files found there to a mingw objdump,
18003         # which wouldn't understand a cygwinified path. Ahh.
18004         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18005       else
18006         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18007       fi
18008       ;;
18009     pw32*)
18010       # pw32 DLLs use 'pw' prefix rather than 'lib'
18011       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18012       ;;
18013     esac
18014     ;;
18015
18016   *)
18017     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18018     ;;
18019   esac
18020   dynamic_linker='Win32 ld.exe'
18021   # FIXME: first we should search . and the directory the executable is in
18022   shlibpath_var=PATH
18023   ;;
18024
18025 darwin* | rhapsody*)
18026   dynamic_linker="$host_os dyld"
18027   version_type=darwin
18028   need_lib_prefix=no
18029   need_version=no
18030   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18031   soname_spec='${libname}${release}${major}$shared_ext'
18032   shlibpath_overrides_runpath=yes
18033   shlibpath_var=DYLD_LIBRARY_PATH
18034   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18035   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18036   if test "$GCC" = yes; then
18037     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"`
18038   else
18039     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18040   fi
18041   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18042   ;;
18043
18044 dgux*)
18045   version_type=linux
18046   need_lib_prefix=no
18047   need_version=no
18048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18049   soname_spec='${libname}${release}${shared_ext}$major'
18050   shlibpath_var=LD_LIBRARY_PATH
18051   ;;
18052
18053 freebsd1*)
18054   dynamic_linker=no
18055   ;;
18056
18057 kfreebsd*-gnu)
18058   version_type=linux
18059   need_lib_prefix=no
18060   need_version=no
18061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18062   soname_spec='${libname}${release}${shared_ext}$major'
18063   shlibpath_var=LD_LIBRARY_PATH
18064   shlibpath_overrides_runpath=no
18065   hardcode_into_libs=yes
18066   dynamic_linker='GNU ld.so'
18067   ;;
18068
18069 freebsd* | dragonfly*)
18070   # DragonFly does not have aout.  When/if they implement a new
18071   # versioning mechanism, adjust this.
18072   if test -x /usr/bin/objformat; then
18073     objformat=`/usr/bin/objformat`
18074   else
18075     case $host_os in
18076     freebsd[123]*) objformat=aout ;;
18077     *) objformat=elf ;;
18078     esac
18079   fi
18080   version_type=freebsd-$objformat
18081   case $version_type in
18082     freebsd-elf*)
18083       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18084       need_version=no
18085       need_lib_prefix=no
18086       ;;
18087     freebsd-*)
18088       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18089       need_version=yes
18090       ;;
18091   esac
18092   shlibpath_var=LD_LIBRARY_PATH
18093   case $host_os in
18094   freebsd2*)
18095     shlibpath_overrides_runpath=yes
18096     ;;
18097   freebsd3.[01]* | freebsdelf3.[01]*)
18098     shlibpath_overrides_runpath=yes
18099     hardcode_into_libs=yes
18100     ;;
18101   *) # from 3.2 on
18102     shlibpath_overrides_runpath=no
18103     hardcode_into_libs=yes
18104     ;;
18105   esac
18106   ;;
18107
18108 gnu*)
18109   version_type=linux
18110   need_lib_prefix=no
18111   need_version=no
18112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18113   soname_spec='${libname}${release}${shared_ext}$major'
18114   shlibpath_var=LD_LIBRARY_PATH
18115   hardcode_into_libs=yes
18116   ;;
18117
18118 hpux9* | hpux10* | hpux11*)
18119   # Give a soname corresponding to the major version so that dld.sl refuses to
18120   # link against other versions.
18121   version_type=sunos
18122   need_lib_prefix=no
18123   need_version=no
18124   case $host_cpu in
18125   ia64*)
18126     shrext_cmds='.so'
18127     hardcode_into_libs=yes
18128     dynamic_linker="$host_os dld.so"
18129     shlibpath_var=LD_LIBRARY_PATH
18130     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132     soname_spec='${libname}${release}${shared_ext}$major'
18133     if test "X$HPUX_IA64_MODE" = X32; then
18134       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18135     else
18136       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18137     fi
18138     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18139     ;;
18140    hppa*64*)
18141      shrext_cmds='.sl'
18142      hardcode_into_libs=yes
18143      dynamic_linker="$host_os dld.sl"
18144      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18145      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18146      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18147      soname_spec='${libname}${release}${shared_ext}$major'
18148      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18149      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18150      ;;
18151    *)
18152     shrext_cmds='.sl'
18153     dynamic_linker="$host_os dld.sl"
18154     shlibpath_var=SHLIB_PATH
18155     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157     soname_spec='${libname}${release}${shared_ext}$major'
18158     ;;
18159   esac
18160   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18161   postinstall_cmds='chmod 555 $lib'
18162   ;;
18163
18164 irix5* | irix6* | nonstopux*)
18165   case $host_os in
18166     nonstopux*) version_type=nonstopux ;;
18167     *)
18168         if test "$lt_cv_prog_gnu_ld" = yes; then
18169                 version_type=linux
18170         else
18171                 version_type=irix
18172         fi ;;
18173   esac
18174   need_lib_prefix=no
18175   need_version=no
18176   soname_spec='${libname}${release}${shared_ext}$major'
18177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18178   case $host_os in
18179   irix5* | nonstopux*)
18180     libsuff= shlibsuff=
18181     ;;
18182   *)
18183     case $LD in # libtool.m4 will add one of these switches to LD
18184     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18185       libsuff= shlibsuff= libmagic=32-bit;;
18186     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18187       libsuff=32 shlibsuff=N32 libmagic=N32;;
18188     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18189       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18190     *) libsuff= shlibsuff= libmagic=never-match;;
18191     esac
18192     ;;
18193   esac
18194   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18195   shlibpath_overrides_runpath=no
18196   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18197   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18198   hardcode_into_libs=yes
18199   ;;
18200
18201 # No shared lib support for Linux oldld, aout, or coff.
18202 linux*oldld* | linux*aout* | linux*coff*)
18203   dynamic_linker=no
18204   ;;
18205
18206 # This must be Linux ELF.
18207 linux*)
18208   version_type=linux
18209   need_lib_prefix=no
18210   need_version=no
18211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18212   soname_spec='${libname}${release}${shared_ext}$major'
18213   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18214   shlibpath_var=LD_LIBRARY_PATH
18215   shlibpath_overrides_runpath=no
18216   # This implies no fast_install, which is unacceptable.
18217   # Some rework will be needed to allow for fast_install
18218   # before this can be enabled.
18219   hardcode_into_libs=yes
18220
18221   # Append ld.so.conf contents to the search path
18222   if test -f /etc/ld.so.conf; then
18223     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18224     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18225   fi
18226
18227   # We used to test for /lib/ld.so.1 and disable shared libraries on
18228   # powerpc, because MkLinux only supported shared libraries with the
18229   # GNU dynamic linker.  Since this was broken with cross compilers,
18230   # most powerpc-linux boxes support dynamic linking these days and
18231   # people can always --disable-shared, the test was removed, and we
18232   # assume the GNU/Linux dynamic linker is in use.
18233   dynamic_linker='GNU/Linux ld.so'
18234   ;;
18235
18236 knetbsd*-gnu)
18237   version_type=linux
18238   need_lib_prefix=no
18239   need_version=no
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18241   soname_spec='${libname}${release}${shared_ext}$major'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   shlibpath_overrides_runpath=no
18244   hardcode_into_libs=yes
18245   dynamic_linker='GNU ld.so'
18246   ;;
18247
18248 netbsd*)
18249   version_type=sunos
18250   need_lib_prefix=no
18251   need_version=no
18252   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18255     dynamic_linker='NetBSD (a.out) ld.so'
18256   else
18257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258     soname_spec='${libname}${release}${shared_ext}$major'
18259     dynamic_linker='NetBSD ld.elf_so'
18260   fi
18261   shlibpath_var=LD_LIBRARY_PATH
18262   shlibpath_overrides_runpath=yes
18263   hardcode_into_libs=yes
18264   ;;
18265
18266 newsos6)
18267   version_type=linux
18268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269   shlibpath_var=LD_LIBRARY_PATH
18270   shlibpath_overrides_runpath=yes
18271   ;;
18272
18273 nto-qnx*)
18274   version_type=linux
18275   need_lib_prefix=no
18276   need_version=no
18277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278   soname_spec='${libname}${release}${shared_ext}$major'
18279   shlibpath_var=LD_LIBRARY_PATH
18280   shlibpath_overrides_runpath=yes
18281   ;;
18282
18283 openbsd*)
18284   version_type=sunos
18285   need_lib_prefix=no
18286   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18287   case $host_os in
18288     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18289     *)                         need_version=no  ;;
18290   esac
18291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18293   shlibpath_var=LD_LIBRARY_PATH
18294   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18295     case $host_os in
18296       openbsd2.[89] | openbsd2.[89].*)
18297         shlibpath_overrides_runpath=no
18298         ;;
18299       *)
18300         shlibpath_overrides_runpath=yes
18301         ;;
18302       esac
18303   else
18304     shlibpath_overrides_runpath=yes
18305   fi
18306   ;;
18307
18308 os2*)
18309   libname_spec='$name'
18310   shrext_cmds=".dll"
18311   need_lib_prefix=no
18312   library_names_spec='$libname${shared_ext} $libname.a'
18313   dynamic_linker='OS/2 ld.exe'
18314   shlibpath_var=LIBPATH
18315   ;;
18316
18317 osf3* | osf4* | osf5*)
18318   version_type=osf
18319   need_lib_prefix=no
18320   need_version=no
18321   soname_spec='${libname}${release}${shared_ext}$major'
18322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323   shlibpath_var=LD_LIBRARY_PATH
18324   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18325   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18326   ;;
18327
18328 sco3.2v5*)
18329   version_type=osf
18330   soname_spec='${libname}${release}${shared_ext}$major'
18331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332   shlibpath_var=LD_LIBRARY_PATH
18333   ;;
18334
18335 solaris*)
18336   version_type=linux
18337   need_lib_prefix=no
18338   need_version=no
18339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18340   soname_spec='${libname}${release}${shared_ext}$major'
18341   shlibpath_var=LD_LIBRARY_PATH
18342   shlibpath_overrides_runpath=yes
18343   hardcode_into_libs=yes
18344   # ldd complains unless libraries are executable
18345   postinstall_cmds='chmod +x $lib'
18346   ;;
18347
18348 sunos4*)
18349   version_type=sunos
18350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18351   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18352   shlibpath_var=LD_LIBRARY_PATH
18353   shlibpath_overrides_runpath=yes
18354   if test "$with_gnu_ld" = yes; then
18355     need_lib_prefix=no
18356   fi
18357   need_version=yes
18358   ;;
18359
18360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18361   version_type=linux
18362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363   soname_spec='${libname}${release}${shared_ext}$major'
18364   shlibpath_var=LD_LIBRARY_PATH
18365   case $host_vendor in
18366     sni)
18367       shlibpath_overrides_runpath=no
18368       need_lib_prefix=no
18369       export_dynamic_flag_spec='${wl}-Blargedynsym'
18370       runpath_var=LD_RUN_PATH
18371       ;;
18372     siemens)
18373       need_lib_prefix=no
18374       ;;
18375     motorola)
18376       need_lib_prefix=no
18377       need_version=no
18378       shlibpath_overrides_runpath=no
18379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18380       ;;
18381   esac
18382   ;;
18383
18384 sysv4*MP*)
18385   if test -d /usr/nec ;then
18386     version_type=linux
18387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18388     soname_spec='$libname${shared_ext}.$major'
18389     shlibpath_var=LD_LIBRARY_PATH
18390   fi
18391   ;;
18392
18393 uts4*)
18394   version_type=linux
18395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396   soname_spec='${libname}${release}${shared_ext}$major'
18397   shlibpath_var=LD_LIBRARY_PATH
18398   ;;
18399
18400 *)
18401   dynamic_linker=no
18402   ;;
18403 esac
18404 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18405 echo "${ECHO_T}$dynamic_linker" >&6; }
18406 test "$dynamic_linker" = no && can_build_shared=no
18407
18408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18410 hardcode_action_GCJ=
18411 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18412    test -n "$runpath_var_GCJ" || \
18413    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18414
18415   # We can hardcode non-existant directories.
18416   if test "$hardcode_direct_GCJ" != no &&
18417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18418      # have to relink, otherwise we might link with an installed library
18419      # when we should be linking with a yet-to-be-installed one
18420      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18421      test "$hardcode_minus_L_GCJ" != no; then
18422     # Linking always hardcodes the temporary library directory.
18423     hardcode_action_GCJ=relink
18424   else
18425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18426     hardcode_action_GCJ=immediate
18427   fi
18428 else
18429   # We cannot hardcode anything, or else we can only hardcode existing
18430   # directories.
18431   hardcode_action_GCJ=unsupported
18432 fi
18433 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18434 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18435
18436 if test "$hardcode_action_GCJ" = relink; then
18437   # Fast installation is not supported
18438   enable_fast_install=no
18439 elif test "$shlibpath_overrides_runpath" = yes ||
18440      test "$enable_shared" = no; then
18441   # Fast installation is not necessary
18442   enable_fast_install=needless
18443 fi
18444
18445 striplib=
18446 old_striplib=
18447 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18450   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18451   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18452   { echo "$as_me:$LINENO: result: yes" >&5
18453 echo "${ECHO_T}yes" >&6; }
18454 else
18455 # FIXME - insert some real tests, host_os isn't really good enough
18456   case $host_os in
18457    darwin*)
18458        if test -n "$STRIP" ; then
18459          striplib="$STRIP -x"
18460          { echo "$as_me:$LINENO: result: yes" >&5
18461 echo "${ECHO_T}yes" >&6; }
18462        else
18463   { echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6; }
18465 fi
18466        ;;
18467    *)
18468   { echo "$as_me:$LINENO: result: no" >&5
18469 echo "${ECHO_T}no" >&6; }
18470     ;;
18471   esac
18472 fi
18473
18474 if test "x$enable_dlopen" != xyes; then
18475   enable_dlopen=unknown
18476   enable_dlopen_self=unknown
18477   enable_dlopen_self_static=unknown
18478 else
18479   lt_cv_dlopen=no
18480   lt_cv_dlopen_libs=
18481
18482   case $host_os in
18483   beos*)
18484     lt_cv_dlopen="load_add_on"
18485     lt_cv_dlopen_libs=
18486     lt_cv_dlopen_self=yes
18487     ;;
18488
18489   mingw* | pw32*)
18490     lt_cv_dlopen="LoadLibrary"
18491     lt_cv_dlopen_libs=
18492    ;;
18493
18494   cygwin*)
18495     lt_cv_dlopen="dlopen"
18496     lt_cv_dlopen_libs=
18497    ;;
18498
18499   darwin*)
18500   # if libdl is installed we need to link against it
18501     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-ldl  $LIBS"
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514
18515 /* Override any GCC internal prototype to avoid an error.
18516    Use char because int might match the return type of a GCC
18517    builtin and then its argument prototype would still apply.  */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 char dlopen ();
18522 int
18523 main ()
18524 {
18525 return dlopen ();
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_link") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } && {
18544          test -z "$ac_c_werror_flag" ||
18545          test ! -s conftest.err
18546        } && test -s conftest$ac_exeext &&
18547        $as_test_x conftest$ac_exeext; then
18548   ac_cv_lib_dl_dlopen=yes
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553         ac_cv_lib_dl_dlopen=no
18554 fi
18555
18556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18557       conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18559 fi
18560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18562 if test $ac_cv_lib_dl_dlopen = yes; then
18563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18564 else
18565
18566     lt_cv_dlopen="dyld"
18567     lt_cv_dlopen_libs=
18568     lt_cv_dlopen_self=yes
18569
18570 fi
18571
18572    ;;
18573
18574   *)
18575     { echo "$as_me:$LINENO: checking for shl_load" >&5
18576 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18577 if test "${ac_cv_func_shl_load+set}" = set; then
18578   echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580   cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18588 #define shl_load innocuous_shl_load
18589
18590 /* System header to define __stub macros and hopefully few prototypes,
18591     which can conflict with char shl_load (); below.
18592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18593     <limits.h> exists even on freestanding compilers.  */
18594
18595 #ifdef __STDC__
18596 # include <limits.h>
18597 #else
18598 # include <assert.h>
18599 #endif
18600
18601 #undef shl_load
18602
18603 /* Override any GCC internal prototype to avoid an error.
18604    Use char because int might match the return type of a GCC
18605    builtin and then its argument prototype would still apply.  */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char shl_load ();
18610 /* The GNU C library defines this for functions which it implements
18611     to always fail with ENOSYS.  Some functions are actually named
18612     something starting with __ and the normal name is an alias.  */
18613 #if defined __stub_shl_load || defined __stub___shl_load
18614 choke me
18615 #endif
18616
18617 int
18618 main ()
18619 {
18620 return shl_load ();
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632   (eval "$ac_link") 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } && {
18639          test -z "$ac_c_werror_flag" ||
18640          test ! -s conftest.err
18641        } && test -s conftest$ac_exeext &&
18642        $as_test_x conftest$ac_exeext; then
18643   ac_cv_func_shl_load=yes
18644 else
18645   echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648         ac_cv_func_shl_load=no
18649 fi
18650
18651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18652       conftest$ac_exeext conftest.$ac_ext
18653 fi
18654 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18655 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18656 if test $ac_cv_func_shl_load = yes; then
18657   lt_cv_dlopen="shl_load"
18658 else
18659   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18660 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18661 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-ldld  $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673 /* Override any GCC internal prototype to avoid an error.
18674    Use char because int might match the return type of a GCC
18675    builtin and then its argument prototype would still apply.  */
18676 #ifdef __cplusplus
18677 extern "C"
18678 #endif
18679 char shl_load ();
18680 int
18681 main ()
18682 {
18683 return shl_load ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_link") 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } && {
18702          test -z "$ac_c_werror_flag" ||
18703          test ! -s conftest.err
18704        } && test -s conftest$ac_exeext &&
18705        $as_test_x conftest$ac_exeext; then
18706   ac_cv_lib_dld_shl_load=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711         ac_cv_lib_dld_shl_load=no
18712 fi
18713
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715       conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18717 fi
18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18719 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18720 if test $ac_cv_lib_dld_shl_load = yes; then
18721   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18722 else
18723   { echo "$as_me:$LINENO: checking for dlopen" >&5
18724 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18725 if test "${ac_cv_func_dlopen+set}" = set; then
18726   echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728   cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18736 #define dlopen innocuous_dlopen
18737
18738 /* System header to define __stub macros and hopefully few prototypes,
18739     which can conflict with char dlopen (); below.
18740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18741     <limits.h> exists even on freestanding compilers.  */
18742
18743 #ifdef __STDC__
18744 # include <limits.h>
18745 #else
18746 # include <assert.h>
18747 #endif
18748
18749 #undef dlopen
18750
18751 /* Override any GCC internal prototype to avoid an error.
18752    Use char because int might match the return type of a GCC
18753    builtin and then its argument prototype would still apply.  */
18754 #ifdef __cplusplus
18755 extern "C"
18756 #endif
18757 char dlopen ();
18758 /* The GNU C library defines this for functions which it implements
18759     to always fail with ENOSYS.  Some functions are actually named
18760     something starting with __ and the normal name is an alias.  */
18761 #if defined __stub_dlopen || defined __stub___dlopen
18762 choke me
18763 #endif
18764
18765 int
18766 main ()
18767 {
18768 return dlopen ();
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (ac_try="$ac_link"
18775 case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_link") 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } && {
18787          test -z "$ac_c_werror_flag" ||
18788          test ! -s conftest.err
18789        } && test -s conftest$ac_exeext &&
18790        $as_test_x conftest$ac_exeext; then
18791   ac_cv_func_dlopen=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796         ac_cv_func_dlopen=no
18797 fi
18798
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800       conftest$ac_exeext conftest.$ac_ext
18801 fi
18802 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18803 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18804 if test $ac_cv_func_dlopen = yes; then
18805   lt_cv_dlopen="dlopen"
18806 else
18807   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812   ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-ldl  $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820
18821 /* Override any GCC internal prototype to avoid an error.
18822    Use char because int might match the return type of a GCC
18823    builtin and then its argument prototype would still apply.  */
18824 #ifdef __cplusplus
18825 extern "C"
18826 #endif
18827 char dlopen ();
18828 int
18829 main ()
18830 {
18831 return dlopen ();
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_link") 2>conftest.er1
18844   ac_status=$?
18845   grep -v '^ *+' conftest.er1 >conftest.err
18846   rm -f conftest.er1
18847   cat conftest.err >&5
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); } && {
18850          test -z "$ac_c_werror_flag" ||
18851          test ! -s conftest.err
18852        } && test -s conftest$ac_exeext &&
18853        $as_test_x conftest$ac_exeext; then
18854   ac_cv_lib_dl_dlopen=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859         ac_cv_lib_dl_dlopen=no
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863       conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18867 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18868 if test $ac_cv_lib_dl_dlopen = yes; then
18869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18870 else
18871   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18872 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lsvld  $LIBS"
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884
18885 /* Override any GCC internal prototype to avoid an error.
18886    Use char because int might match the return type of a GCC
18887    builtin and then its argument prototype would still apply.  */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 char dlopen ();
18892 int
18893 main ()
18894 {
18895 return dlopen ();
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } && {
18914          test -z "$ac_c_werror_flag" ||
18915          test ! -s conftest.err
18916        } && test -s conftest$ac_exeext &&
18917        $as_test_x conftest$ac_exeext; then
18918   ac_cv_lib_svld_dlopen=yes
18919 else
18920   echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923         ac_cv_lib_svld_dlopen=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927       conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18929 fi
18930 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18932 if test $ac_cv_lib_svld_dlopen = yes; then
18933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18934 else
18935   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18938   echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940   ac_check_lib_save_LIBS=$LIBS
18941 LIBS="-ldld  $LIBS"
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948
18949 /* Override any GCC internal prototype to avoid an error.
18950    Use char because int might match the return type of a GCC
18951    builtin and then its argument prototype would still apply.  */
18952 #ifdef __cplusplus
18953 extern "C"
18954 #endif
18955 char dld_link ();
18956 int
18957 main ()
18958 {
18959 return dld_link ();
18960   ;
18961   return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968   *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971   (eval "$ac_link") 2>conftest.er1
18972   ac_status=$?
18973   grep -v '^ *+' conftest.er1 >conftest.err
18974   rm -f conftest.er1
18975   cat conftest.err >&5
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); } && {
18978          test -z "$ac_c_werror_flag" ||
18979          test ! -s conftest.err
18980        } && test -s conftest$ac_exeext &&
18981        $as_test_x conftest$ac_exeext; then
18982   ac_cv_lib_dld_dld_link=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987         ac_cv_lib_dld_dld_link=no
18988 fi
18989
18990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991       conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18993 fi
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18996 if test $ac_cv_lib_dld_dld_link = yes; then
18997   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18998 fi
18999
19000
19001 fi
19002
19003
19004 fi
19005
19006
19007 fi
19008
19009
19010 fi
19011
19012
19013 fi
19014
19015     ;;
19016   esac
19017
19018   if test "x$lt_cv_dlopen" != xno; then
19019     enable_dlopen=yes
19020   else
19021     enable_dlopen=no
19022   fi
19023
19024   case $lt_cv_dlopen in
19025   dlopen)
19026     save_CPPFLAGS="$CPPFLAGS"
19027     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19028
19029     save_LDFLAGS="$LDFLAGS"
19030     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19031
19032     save_LIBS="$LIBS"
19033     LIBS="$lt_cv_dlopen_libs $LIBS"
19034
19035     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19036 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19037 if test "${lt_cv_dlopen_self+set}" = set; then
19038   echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040           if test "$cross_compiling" = yes; then :
19041   lt_cv_dlopen_self=cross
19042 else
19043   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19044   lt_status=$lt_dlunknown
19045   cat > conftest.$ac_ext <<EOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19048
19049 #if HAVE_DLFCN_H
19050 #include <dlfcn.h>
19051 #endif
19052
19053 #include <stdio.h>
19054
19055 #ifdef RTLD_GLOBAL
19056 #  define LT_DLGLOBAL           RTLD_GLOBAL
19057 #else
19058 #  ifdef DL_GLOBAL
19059 #    define LT_DLGLOBAL         DL_GLOBAL
19060 #  else
19061 #    define LT_DLGLOBAL         0
19062 #  endif
19063 #endif
19064
19065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19066    find out it does not work in some platform. */
19067 #ifndef LT_DLLAZY_OR_NOW
19068 #  ifdef RTLD_LAZY
19069 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19070 #  else
19071 #    ifdef DL_LAZY
19072 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19073 #    else
19074 #      ifdef RTLD_NOW
19075 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19076 #      else
19077 #        ifdef DL_NOW
19078 #          define LT_DLLAZY_OR_NOW      DL_NOW
19079 #        else
19080 #          define LT_DLLAZY_OR_NOW      0
19081 #        endif
19082 #      endif
19083 #    endif
19084 #  endif
19085 #endif
19086
19087 #ifdef __cplusplus
19088 extern "C" void exit (int);
19089 #endif
19090
19091 void fnord() { int i=42;}
19092 int main ()
19093 {
19094   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19095   int status = $lt_dlunknown;
19096
19097   if (self)
19098     {
19099       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19100       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19101       /* dlclose (self); */
19102     }
19103
19104     exit (status);
19105 }
19106 EOF
19107   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108   (eval $ac_link) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19112     (./conftest; exit; ) >&5 2>/dev/null
19113     lt_status=$?
19114     case x$lt_status in
19115       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19116       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19117       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19118     esac
19119   else :
19120     # compilation failed
19121     lt_cv_dlopen_self=no
19122   fi
19123 fi
19124 rm -fr conftest*
19125
19126
19127 fi
19128 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19129 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19130
19131     if test "x$lt_cv_dlopen_self" = xyes; then
19132       LDFLAGS="$LDFLAGS $link_static_flag"
19133       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19134 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19135 if test "${lt_cv_dlopen_self_static+set}" = set; then
19136   echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138           if test "$cross_compiling" = yes; then :
19139   lt_cv_dlopen_self_static=cross
19140 else
19141   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19142   lt_status=$lt_dlunknown
19143   cat > conftest.$ac_ext <<EOF
19144 #line 19144 "configure"
19145 #include "confdefs.h"
19146
19147 #if HAVE_DLFCN_H
19148 #include <dlfcn.h>
19149 #endif
19150
19151 #include <stdio.h>
19152
19153 #ifdef RTLD_GLOBAL
19154 #  define LT_DLGLOBAL           RTLD_GLOBAL
19155 #else
19156 #  ifdef DL_GLOBAL
19157 #    define LT_DLGLOBAL         DL_GLOBAL
19158 #  else
19159 #    define LT_DLGLOBAL         0
19160 #  endif
19161 #endif
19162
19163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19164    find out it does not work in some platform. */
19165 #ifndef LT_DLLAZY_OR_NOW
19166 #  ifdef RTLD_LAZY
19167 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19168 #  else
19169 #    ifdef DL_LAZY
19170 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19171 #    else
19172 #      ifdef RTLD_NOW
19173 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19174 #      else
19175 #        ifdef DL_NOW
19176 #          define LT_DLLAZY_OR_NOW      DL_NOW
19177 #        else
19178 #          define LT_DLLAZY_OR_NOW      0
19179 #        endif
19180 #      endif
19181 #    endif
19182 #  endif
19183 #endif
19184
19185 #ifdef __cplusplus
19186 extern "C" void exit (int);
19187 #endif
19188
19189 void fnord() { int i=42;}
19190 int main ()
19191 {
19192   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19193   int status = $lt_dlunknown;
19194
19195   if (self)
19196     {
19197       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19198       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19199       /* dlclose (self); */
19200     }
19201
19202     exit (status);
19203 }
19204 EOF
19205   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206   (eval $ac_link) 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19210     (./conftest; exit; ) >&5 2>/dev/null
19211     lt_status=$?
19212     case x$lt_status in
19213       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19214       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19215       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19216     esac
19217   else :
19218     # compilation failed
19219     lt_cv_dlopen_self_static=no
19220   fi
19221 fi
19222 rm -fr conftest*
19223
19224
19225 fi
19226 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19227 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19228     fi
19229
19230     CPPFLAGS="$save_CPPFLAGS"
19231     LDFLAGS="$save_LDFLAGS"
19232     LIBS="$save_LIBS"
19233     ;;
19234   esac
19235
19236   case $lt_cv_dlopen_self in
19237   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19238   *) enable_dlopen_self=unknown ;;
19239   esac
19240
19241   case $lt_cv_dlopen_self_static in
19242   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19243   *) enable_dlopen_self_static=unknown ;;
19244   esac
19245 fi
19246
19247
19248 # The else clause should only fire when bootstrapping the
19249 # libtool distribution, otherwise you forgot to ship ltmain.sh
19250 # with your package, and you will get complaints that there are
19251 # no rules to generate ltmain.sh.
19252 if test -f "$ltmain"; then
19253   # See if we are running on zsh, and set the options which allow our commands through
19254   # without removal of \ escapes.
19255   if test -n "${ZSH_VERSION+set}" ; then
19256     setopt NO_GLOB_SUBST
19257   fi
19258   # Now quote all the things that may contain metacharacters while being
19259   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19260   # variables and quote the copies for generation of the libtool script.
19261   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19262     SED SHELL STRIP \
19263     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19264     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19265     deplibs_check_method reload_flag reload_cmds need_locks \
19266     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19267     lt_cv_sys_global_symbol_to_c_name_address \
19268     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19269     old_postinstall_cmds old_postuninstall_cmds \
19270     compiler_GCJ \
19271     CC_GCJ \
19272     LD_GCJ \
19273     lt_prog_compiler_wl_GCJ \
19274     lt_prog_compiler_pic_GCJ \
19275     lt_prog_compiler_static_GCJ \
19276     lt_prog_compiler_no_builtin_flag_GCJ \
19277     export_dynamic_flag_spec_GCJ \
19278     thread_safe_flag_spec_GCJ \
19279     whole_archive_flag_spec_GCJ \
19280     enable_shared_with_static_runtimes_GCJ \
19281     old_archive_cmds_GCJ \
19282     old_archive_from_new_cmds_GCJ \
19283     predep_objects_GCJ \
19284     postdep_objects_GCJ \
19285     predeps_GCJ \
19286     postdeps_GCJ \
19287     compiler_lib_search_path_GCJ \
19288     archive_cmds_GCJ \
19289     archive_expsym_cmds_GCJ \
19290     postinstall_cmds_GCJ \
19291     postuninstall_cmds_GCJ \
19292     old_archive_from_expsyms_cmds_GCJ \
19293     allow_undefined_flag_GCJ \
19294     no_undefined_flag_GCJ \
19295     export_symbols_cmds_GCJ \
19296     hardcode_libdir_flag_spec_GCJ \
19297     hardcode_libdir_flag_spec_ld_GCJ \
19298     hardcode_libdir_separator_GCJ \
19299     hardcode_automatic_GCJ \
19300     module_cmds_GCJ \
19301     module_expsym_cmds_GCJ \
19302     lt_cv_prog_compiler_c_o_GCJ \
19303     exclude_expsyms_GCJ \
19304     include_expsyms_GCJ; do
19305
19306     case $var in
19307     old_archive_cmds_GCJ | \
19308     old_archive_from_new_cmds_GCJ | \
19309     archive_cmds_GCJ | \
19310     archive_expsym_cmds_GCJ | \
19311     module_cmds_GCJ | \
19312     module_expsym_cmds_GCJ | \
19313     old_archive_from_expsyms_cmds_GCJ | \
19314     export_symbols_cmds_GCJ | \
19315     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19316     postinstall_cmds | postuninstall_cmds | \
19317     old_postinstall_cmds | old_postuninstall_cmds | \
19318     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19319       # Double-quote double-evaled strings.
19320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19321       ;;
19322     *)
19323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19324       ;;
19325     esac
19326   done
19327
19328   case $lt_echo in
19329   *'\$0 --fallback-echo"')
19330     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19331     ;;
19332   esac
19333
19334 cfgfile="$ofile"
19335
19336   cat <<__EOF__ >> "$cfgfile"
19337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19338
19339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19340
19341 # Shell to use when invoking shell scripts.
19342 SHELL=$lt_SHELL
19343
19344 # Whether or not to build shared libraries.
19345 build_libtool_libs=$enable_shared
19346
19347 # Whether or not to build static libraries.
19348 build_old_libs=$enable_static
19349
19350 # Whether or not to add -lc for building shared libraries.
19351 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19352
19353 # Whether or not to disallow shared libs when runtime libs are static
19354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19355
19356 # Whether or not to optimize for fast installation.
19357 fast_install=$enable_fast_install
19358
19359 # The host system.
19360 host_alias=$host_alias
19361 host=$host
19362 host_os=$host_os
19363
19364 # The build system.
19365 build_alias=$build_alias
19366 build=$build
19367 build_os=$build_os
19368
19369 # An echo program that does not interpret backslashes.
19370 echo=$lt_echo
19371
19372 # The archiver.
19373 AR=$lt_AR
19374 AR_FLAGS=$lt_AR_FLAGS
19375
19376 # A C compiler.
19377 LTCC=$lt_LTCC
19378
19379 # A language-specific compiler.
19380 CC=$lt_compiler_GCJ
19381
19382 # Is the compiler the GNU C compiler?
19383 with_gcc=$GCC_GCJ
19384
19385 # An ERE matcher.
19386 EGREP=$lt_EGREP
19387
19388 # The linker used to build libraries.
19389 LD=$lt_LD_GCJ
19390
19391 # Whether we need hard or soft links.
19392 LN_S=$lt_LN_S
19393
19394 # A BSD-compatible nm program.
19395 NM=$lt_NM
19396
19397 # A symbol stripping program
19398 STRIP=$lt_STRIP
19399
19400 # Used to examine libraries when file_magic_cmd begins "file"
19401 MAGIC_CMD=$MAGIC_CMD
19402
19403 # Used on cygwin: DLL creation program.
19404 DLLTOOL="$DLLTOOL"
19405
19406 # Used on cygwin: object dumper.
19407 OBJDUMP="$OBJDUMP"
19408
19409 # Used on cygwin: assembler.
19410 AS="$AS"
19411
19412 # The name of the directory that contains temporary libtool files.
19413 objdir=$objdir
19414
19415 # How to create reloadable object files.
19416 reload_flag=$lt_reload_flag
19417 reload_cmds=$lt_reload_cmds
19418
19419 # How to pass a linker flag through the compiler.
19420 wl=$lt_lt_prog_compiler_wl_GCJ
19421
19422 # Object file suffix (normally "o").
19423 objext="$ac_objext"
19424
19425 # Old archive suffix (normally "a").
19426 libext="$libext"
19427
19428 # Shared library suffix (normally ".so").
19429 shrext_cmds='$shrext_cmds'
19430
19431 # Executable file suffix (normally "").
19432 exeext="$exeext"
19433
19434 # Additional compiler flags for building library objects.
19435 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19436 pic_mode=$pic_mode
19437
19438 # What is the maximum length of a command?
19439 max_cmd_len=$lt_cv_sys_max_cmd_len
19440
19441 # Does compiler simultaneously support -c and -o options?
19442 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19443
19444 # Must we lock files when doing compilation?
19445 need_locks=$lt_need_locks
19446
19447 # Do we need the lib prefix for modules?
19448 need_lib_prefix=$need_lib_prefix
19449
19450 # Do we need a version for libraries?
19451 need_version=$need_version
19452
19453 # Whether dlopen is supported.
19454 dlopen_support=$enable_dlopen
19455
19456 # Whether dlopen of programs is supported.
19457 dlopen_self=$enable_dlopen_self
19458
19459 # Whether dlopen of statically linked programs is supported.
19460 dlopen_self_static=$enable_dlopen_self_static
19461
19462 # Compiler flag to prevent dynamic linking.
19463 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19464
19465 # Compiler flag to turn off builtin functions.
19466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19467
19468 # Compiler flag to allow reflexive dlopens.
19469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19470
19471 # Compiler flag to generate shared objects directly from archives.
19472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19473
19474 # Compiler flag to generate thread-safe objects.
19475 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19476
19477 # Library versioning type.
19478 version_type=$version_type
19479
19480 # Format of library name prefix.
19481 libname_spec=$lt_libname_spec
19482
19483 # List of archive names.  First name is the real one, the rest are links.
19484 # The last name is the one that the linker finds with -lNAME.
19485 library_names_spec=$lt_library_names_spec
19486
19487 # The coded name of the library, if different from the real name.
19488 soname_spec=$lt_soname_spec
19489
19490 # Commands used to build and install an old-style archive.
19491 RANLIB=$lt_RANLIB
19492 old_archive_cmds=$lt_old_archive_cmds_GCJ
19493 old_postinstall_cmds=$lt_old_postinstall_cmds
19494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19495
19496 # Create an old-style archive from a shared archive.
19497 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19498
19499 # Create a temporary old-style archive to link instead of a shared archive.
19500 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19501
19502 # Commands used to build and install a shared archive.
19503 archive_cmds=$lt_archive_cmds_GCJ
19504 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19505 postinstall_cmds=$lt_postinstall_cmds
19506 postuninstall_cmds=$lt_postuninstall_cmds
19507
19508 # Commands used to build a loadable module (assumed same as above if empty)
19509 module_cmds=$lt_module_cmds_GCJ
19510 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19511
19512 # Commands to strip libraries.
19513 old_striplib=$lt_old_striplib
19514 striplib=$lt_striplib
19515
19516 # Dependencies to place before the objects being linked to create a
19517 # shared library.
19518 predep_objects=$lt_predep_objects_GCJ
19519
19520 # Dependencies to place after the objects being linked to create a
19521 # shared library.
19522 postdep_objects=$lt_postdep_objects_GCJ
19523
19524 # Dependencies to place before the objects being linked to create a
19525 # shared library.
19526 predeps=$lt_predeps_GCJ
19527
19528 # Dependencies to place after the objects being linked to create a
19529 # shared library.
19530 postdeps=$lt_postdeps_GCJ
19531
19532 # The library search path used internally by the compiler when linking
19533 # a shared library.
19534 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19535
19536 # Method to check whether dependent libraries are shared objects.
19537 deplibs_check_method=$lt_deplibs_check_method
19538
19539 # Command to use when deplibs_check_method == file_magic.
19540 file_magic_cmd=$lt_file_magic_cmd
19541
19542 # Flag that allows shared libraries with undefined symbols to be built.
19543 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19544
19545 # Flag that forces no undefined symbols.
19546 no_undefined_flag=$lt_no_undefined_flag_GCJ
19547
19548 # Commands used to finish a libtool library installation in a directory.
19549 finish_cmds=$lt_finish_cmds
19550
19551 # Same as above, but a single script fragment to be evaled but not shown.
19552 finish_eval=$lt_finish_eval
19553
19554 # Take the output of nm and produce a listing of raw symbols and C names.
19555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19556
19557 # Transform the output of nm in a proper C declaration
19558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19559
19560 # Transform the output of nm in a C name address pair
19561 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19562
19563 # This is the shared library runtime path variable.
19564 runpath_var=$runpath_var
19565
19566 # This is the shared library path variable.
19567 shlibpath_var=$shlibpath_var
19568
19569 # Is shlibpath searched before the hard-coded library search path?
19570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19571
19572 # How to hardcode a shared library path into an executable.
19573 hardcode_action=$hardcode_action_GCJ
19574
19575 # Whether we should hardcode library paths into libraries.
19576 hardcode_into_libs=$hardcode_into_libs
19577
19578 # Flag to hardcode \$libdir into a binary during linking.
19579 # This must work even if \$libdir does not exist.
19580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19581
19582 # If ld is used when linking, flag to hardcode \$libdir into
19583 # a binary during linking. This must work even if \$libdir does
19584 # not exist.
19585 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19586
19587 # Whether we need a single -rpath flag with a separated argument.
19588 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19589
19590 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19591 # resulting binary.
19592 hardcode_direct=$hardcode_direct_GCJ
19593
19594 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19595 # resulting binary.
19596 hardcode_minus_L=$hardcode_minus_L_GCJ
19597
19598 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19599 # the resulting binary.
19600 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19601
19602 # Set to yes if building a shared library automatically hardcodes DIR into the library
19603 # and all subsequent libraries and executables linked against it.
19604 hardcode_automatic=$hardcode_automatic_GCJ
19605
19606 # Variables whose values should be saved in libtool wrapper scripts and
19607 # restored at relink time.
19608 variables_saved_for_relink="$variables_saved_for_relink"
19609
19610 # Whether libtool must link a program against all its dependency libraries.
19611 link_all_deplibs=$link_all_deplibs_GCJ
19612
19613 # Compile-time system search path for libraries
19614 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19615
19616 # Run-time system search path for libraries
19617 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19618
19619 # Fix the shell variable \$srcfile for the compiler.
19620 fix_srcfile_path="$fix_srcfile_path_GCJ"
19621
19622 # Set to yes if exported symbols are required.
19623 always_export_symbols=$always_export_symbols_GCJ
19624
19625 # The commands to list exported symbols.
19626 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19627
19628 # The commands to extract the exported symbol list from a shared archive.
19629 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19630
19631 # Symbols that should not be listed in the preloaded symbols.
19632 exclude_expsyms=$lt_exclude_expsyms_GCJ
19633
19634 # Symbols that must always be exported.
19635 include_expsyms=$lt_include_expsyms_GCJ
19636
19637 # ### END LIBTOOL TAG CONFIG: $tagname
19638
19639 __EOF__
19640
19641
19642 else
19643   # If there is no Makefile yet, we rely on a make rule to execute
19644   # `config.status --recheck' to rerun these tests and create the
19645   # libtool script then.
19646   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19647   if test -f "$ltmain_in"; then
19648     test -f Makefile && make "$ltmain"
19649   fi
19650 fi
19651
19652
19653 ac_ext=c
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19658
19659 CC="$lt_save_CC"
19660
19661         else
19662           tagname=""
19663         fi
19664         ;;
19665
19666       RC)
19667
19668
19669 # Source file extension for RC test sources.
19670 ac_ext=rc
19671
19672 # Object file extension for compiled RC test sources.
19673 objext=o
19674 objext_RC=$objext
19675
19676 # Code to be used in simple compile tests
19677 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19678
19679 # Code to be used in simple link tests
19680 lt_simple_link_test_code="$lt_simple_compile_test_code"
19681
19682 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19683
19684 # If no C compiler was specified, use CC.
19685 LTCC=${LTCC-"$CC"}
19686
19687 # Allow CC to be a program name with arguments.
19688 compiler=$CC
19689
19690
19691 # save warnings/boilerplate of simple test code
19692 ac_outfile=conftest.$ac_objext
19693 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19695 _lt_compiler_boilerplate=`cat conftest.err`
19696 $rm conftest*
19697
19698 ac_outfile=conftest.$ac_objext
19699 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19701 _lt_linker_boilerplate=`cat conftest.err`
19702 $rm conftest*
19703
19704
19705 # Allow CC to be a program name with arguments.
19706 lt_save_CC="$CC"
19707 CC=${RC-"windres"}
19708 compiler=$CC
19709 compiler_RC=$CC
19710 for cc_temp in $compiler""; do
19711   case $cc_temp in
19712     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19713     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19714     \-*) ;;
19715     *) break;;
19716   esac
19717 done
19718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19719
19720 lt_cv_prog_compiler_c_o_RC=yes
19721
19722 # The else clause should only fire when bootstrapping the
19723 # libtool distribution, otherwise you forgot to ship ltmain.sh
19724 # with your package, and you will get complaints that there are
19725 # no rules to generate ltmain.sh.
19726 if test -f "$ltmain"; then
19727   # See if we are running on zsh, and set the options which allow our commands through
19728   # without removal of \ escapes.
19729   if test -n "${ZSH_VERSION+set}" ; then
19730     setopt NO_GLOB_SUBST
19731   fi
19732   # Now quote all the things that may contain metacharacters while being
19733   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19734   # variables and quote the copies for generation of the libtool script.
19735   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19736     SED SHELL STRIP \
19737     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19738     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19739     deplibs_check_method reload_flag reload_cmds need_locks \
19740     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19741     lt_cv_sys_global_symbol_to_c_name_address \
19742     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19743     old_postinstall_cmds old_postuninstall_cmds \
19744     compiler_RC \
19745     CC_RC \
19746     LD_RC \
19747     lt_prog_compiler_wl_RC \
19748     lt_prog_compiler_pic_RC \
19749     lt_prog_compiler_static_RC \
19750     lt_prog_compiler_no_builtin_flag_RC \
19751     export_dynamic_flag_spec_RC \
19752     thread_safe_flag_spec_RC \
19753     whole_archive_flag_spec_RC \
19754     enable_shared_with_static_runtimes_RC \
19755     old_archive_cmds_RC \
19756     old_archive_from_new_cmds_RC \
19757     predep_objects_RC \
19758     postdep_objects_RC \
19759     predeps_RC \
19760     postdeps_RC \
19761     compiler_lib_search_path_RC \
19762     archive_cmds_RC \
19763     archive_expsym_cmds_RC \
19764     postinstall_cmds_RC \
19765     postuninstall_cmds_RC \
19766     old_archive_from_expsyms_cmds_RC \
19767     allow_undefined_flag_RC \
19768     no_undefined_flag_RC \
19769     export_symbols_cmds_RC \
19770     hardcode_libdir_flag_spec_RC \
19771     hardcode_libdir_flag_spec_ld_RC \
19772     hardcode_libdir_separator_RC \
19773     hardcode_automatic_RC \
19774     module_cmds_RC \
19775     module_expsym_cmds_RC \
19776     lt_cv_prog_compiler_c_o_RC \
19777     exclude_expsyms_RC \
19778     include_expsyms_RC; do
19779
19780     case $var in
19781     old_archive_cmds_RC | \
19782     old_archive_from_new_cmds_RC | \
19783     archive_cmds_RC | \
19784     archive_expsym_cmds_RC | \
19785     module_cmds_RC | \
19786     module_expsym_cmds_RC | \
19787     old_archive_from_expsyms_cmds_RC | \
19788     export_symbols_cmds_RC | \
19789     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19790     postinstall_cmds | postuninstall_cmds | \
19791     old_postinstall_cmds | old_postuninstall_cmds | \
19792     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19793       # Double-quote double-evaled strings.
19794       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19795       ;;
19796     *)
19797       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19798       ;;
19799     esac
19800   done
19801
19802   case $lt_echo in
19803   *'\$0 --fallback-echo"')
19804     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19805     ;;
19806   esac
19807
19808 cfgfile="$ofile"
19809
19810   cat <<__EOF__ >> "$cfgfile"
19811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19812
19813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19814
19815 # Shell to use when invoking shell scripts.
19816 SHELL=$lt_SHELL
19817
19818 # Whether or not to build shared libraries.
19819 build_libtool_libs=$enable_shared
19820
19821 # Whether or not to build static libraries.
19822 build_old_libs=$enable_static
19823
19824 # Whether or not to add -lc for building shared libraries.
19825 build_libtool_need_lc=$archive_cmds_need_lc_RC
19826
19827 # Whether or not to disallow shared libs when runtime libs are static
19828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19829
19830 # Whether or not to optimize for fast installation.
19831 fast_install=$enable_fast_install
19832
19833 # The host system.
19834 host_alias=$host_alias
19835 host=$host
19836 host_os=$host_os
19837
19838 # The build system.
19839 build_alias=$build_alias
19840 build=$build
19841 build_os=$build_os
19842
19843 # An echo program that does not interpret backslashes.
19844 echo=$lt_echo
19845
19846 # The archiver.
19847 AR=$lt_AR
19848 AR_FLAGS=$lt_AR_FLAGS
19849
19850 # A C compiler.
19851 LTCC=$lt_LTCC
19852
19853 # A language-specific compiler.
19854 CC=$lt_compiler_RC
19855
19856 # Is the compiler the GNU C compiler?
19857 with_gcc=$GCC_RC
19858
19859 # An ERE matcher.
19860 EGREP=$lt_EGREP
19861
19862 # The linker used to build libraries.
19863 LD=$lt_LD_RC
19864
19865 # Whether we need hard or soft links.
19866 LN_S=$lt_LN_S
19867
19868 # A BSD-compatible nm program.
19869 NM=$lt_NM
19870
19871 # A symbol stripping program
19872 STRIP=$lt_STRIP
19873
19874 # Used to examine libraries when file_magic_cmd begins "file"
19875 MAGIC_CMD=$MAGIC_CMD
19876
19877 # Used on cygwin: DLL creation program.
19878 DLLTOOL="$DLLTOOL"
19879
19880 # Used on cygwin: object dumper.
19881 OBJDUMP="$OBJDUMP"
19882
19883 # Used on cygwin: assembler.
19884 AS="$AS"
19885
19886 # The name of the directory that contains temporary libtool files.
19887 objdir=$objdir
19888
19889 # How to create reloadable object files.
19890 reload_flag=$lt_reload_flag
19891 reload_cmds=$lt_reload_cmds
19892
19893 # How to pass a linker flag through the compiler.
19894 wl=$lt_lt_prog_compiler_wl_RC
19895
19896 # Object file suffix (normally "o").
19897 objext="$ac_objext"
19898
19899 # Old archive suffix (normally "a").
19900 libext="$libext"
19901
19902 # Shared library suffix (normally ".so").
19903 shrext_cmds='$shrext_cmds'
19904
19905 # Executable file suffix (normally "").
19906 exeext="$exeext"
19907
19908 # Additional compiler flags for building library objects.
19909 pic_flag=$lt_lt_prog_compiler_pic_RC
19910 pic_mode=$pic_mode
19911
19912 # What is the maximum length of a command?
19913 max_cmd_len=$lt_cv_sys_max_cmd_len
19914
19915 # Does compiler simultaneously support -c and -o options?
19916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19917
19918 # Must we lock files when doing compilation?
19919 need_locks=$lt_need_locks
19920
19921 # Do we need the lib prefix for modules?
19922 need_lib_prefix=$need_lib_prefix
19923
19924 # Do we need a version for libraries?
19925 need_version=$need_version
19926
19927 # Whether dlopen is supported.
19928 dlopen_support=$enable_dlopen
19929
19930 # Whether dlopen of programs is supported.
19931 dlopen_self=$enable_dlopen_self
19932
19933 # Whether dlopen of statically linked programs is supported.
19934 dlopen_self_static=$enable_dlopen_self_static
19935
19936 # Compiler flag to prevent dynamic linking.
19937 link_static_flag=$lt_lt_prog_compiler_static_RC
19938
19939 # Compiler flag to turn off builtin functions.
19940 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19941
19942 # Compiler flag to allow reflexive dlopens.
19943 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19944
19945 # Compiler flag to generate shared objects directly from archives.
19946 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19947
19948 # Compiler flag to generate thread-safe objects.
19949 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19950
19951 # Library versioning type.
19952 version_type=$version_type
19953
19954 # Format of library name prefix.
19955 libname_spec=$lt_libname_spec
19956
19957 # List of archive names.  First name is the real one, the rest are links.
19958 # The last name is the one that the linker finds with -lNAME.
19959 library_names_spec=$lt_library_names_spec
19960
19961 # The coded name of the library, if different from the real name.
19962 soname_spec=$lt_soname_spec
19963
19964 # Commands used to build and install an old-style archive.
19965 RANLIB=$lt_RANLIB
19966 old_archive_cmds=$lt_old_archive_cmds_RC
19967 old_postinstall_cmds=$lt_old_postinstall_cmds
19968 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19969
19970 # Create an old-style archive from a shared archive.
19971 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19972
19973 # Create a temporary old-style archive to link instead of a shared archive.
19974 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19975
19976 # Commands used to build and install a shared archive.
19977 archive_cmds=$lt_archive_cmds_RC
19978 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19979 postinstall_cmds=$lt_postinstall_cmds
19980 postuninstall_cmds=$lt_postuninstall_cmds
19981
19982 # Commands used to build a loadable module (assumed same as above if empty)
19983 module_cmds=$lt_module_cmds_RC
19984 module_expsym_cmds=$lt_module_expsym_cmds_RC
19985
19986 # Commands to strip libraries.
19987 old_striplib=$lt_old_striplib
19988 striplib=$lt_striplib
19989
19990 # Dependencies to place before the objects being linked to create a
19991 # shared library.
19992 predep_objects=$lt_predep_objects_RC
19993
19994 # Dependencies to place after the objects being linked to create a
19995 # shared library.
19996 postdep_objects=$lt_postdep_objects_RC
19997
19998 # Dependencies to place before the objects being linked to create a
19999 # shared library.
20000 predeps=$lt_predeps_RC
20001
20002 # Dependencies to place after the objects being linked to create a
20003 # shared library.
20004 postdeps=$lt_postdeps_RC
20005
20006 # The library search path used internally by the compiler when linking
20007 # a shared library.
20008 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20009
20010 # Method to check whether dependent libraries are shared objects.
20011 deplibs_check_method=$lt_deplibs_check_method
20012
20013 # Command to use when deplibs_check_method == file_magic.
20014 file_magic_cmd=$lt_file_magic_cmd
20015
20016 # Flag that allows shared libraries with undefined symbols to be built.
20017 allow_undefined_flag=$lt_allow_undefined_flag_RC
20018
20019 # Flag that forces no undefined symbols.
20020 no_undefined_flag=$lt_no_undefined_flag_RC
20021
20022 # Commands used to finish a libtool library installation in a directory.
20023 finish_cmds=$lt_finish_cmds
20024
20025 # Same as above, but a single script fragment to be evaled but not shown.
20026 finish_eval=$lt_finish_eval
20027
20028 # Take the output of nm and produce a listing of raw symbols and C names.
20029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20030
20031 # Transform the output of nm in a proper C declaration
20032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20033
20034 # Transform the output of nm in a C name address pair
20035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20036
20037 # This is the shared library runtime path variable.
20038 runpath_var=$runpath_var
20039
20040 # This is the shared library path variable.
20041 shlibpath_var=$shlibpath_var
20042
20043 # Is shlibpath searched before the hard-coded library search path?
20044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20045
20046 # How to hardcode a shared library path into an executable.
20047 hardcode_action=$hardcode_action_RC
20048
20049 # Whether we should hardcode library paths into libraries.
20050 hardcode_into_libs=$hardcode_into_libs
20051
20052 # Flag to hardcode \$libdir into a binary during linking.
20053 # This must work even if \$libdir does not exist.
20054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20055
20056 # If ld is used when linking, flag to hardcode \$libdir into
20057 # a binary during linking. This must work even if \$libdir does
20058 # not exist.
20059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20060
20061 # Whether we need a single -rpath flag with a separated argument.
20062 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20063
20064 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20065 # resulting binary.
20066 hardcode_direct=$hardcode_direct_RC
20067
20068 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20069 # resulting binary.
20070 hardcode_minus_L=$hardcode_minus_L_RC
20071
20072 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20073 # the resulting binary.
20074 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20075
20076 # Set to yes if building a shared library automatically hardcodes DIR into the library
20077 # and all subsequent libraries and executables linked against it.
20078 hardcode_automatic=$hardcode_automatic_RC
20079
20080 # Variables whose values should be saved in libtool wrapper scripts and
20081 # restored at relink time.
20082 variables_saved_for_relink="$variables_saved_for_relink"
20083
20084 # Whether libtool must link a program against all its dependency libraries.
20085 link_all_deplibs=$link_all_deplibs_RC
20086
20087 # Compile-time system search path for libraries
20088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20089
20090 # Run-time system search path for libraries
20091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20092
20093 # Fix the shell variable \$srcfile for the compiler.
20094 fix_srcfile_path="$fix_srcfile_path_RC"
20095
20096 # Set to yes if exported symbols are required.
20097 always_export_symbols=$always_export_symbols_RC
20098
20099 # The commands to list exported symbols.
20100 export_symbols_cmds=$lt_export_symbols_cmds_RC
20101
20102 # The commands to extract the exported symbol list from a shared archive.
20103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20104
20105 # Symbols that should not be listed in the preloaded symbols.
20106 exclude_expsyms=$lt_exclude_expsyms_RC
20107
20108 # Symbols that must always be exported.
20109 include_expsyms=$lt_include_expsyms_RC
20110
20111 # ### END LIBTOOL TAG CONFIG: $tagname
20112
20113 __EOF__
20114
20115
20116 else
20117   # If there is no Makefile yet, we rely on a make rule to execute
20118   # `config.status --recheck' to rerun these tests and create the
20119   # libtool script then.
20120   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20121   if test -f "$ltmain_in"; then
20122     test -f Makefile && make "$ltmain"
20123   fi
20124 fi
20125
20126
20127 ac_ext=c
20128 ac_cpp='$CPP $CPPFLAGS'
20129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20132
20133 CC="$lt_save_CC"
20134
20135         ;;
20136
20137       *)
20138         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20139 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20140    { (exit 1); exit 1; }; }
20141         ;;
20142       esac
20143
20144       # Append the new tag name to the list of available tags.
20145       if test -n "$tagname" ; then
20146       available_tags="$available_tags $tagname"
20147     fi
20148     fi
20149   done
20150   IFS="$lt_save_ifs"
20151
20152   # Now substitute the updated list of available tags.
20153   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20154     mv "${ofile}T" "$ofile"
20155     chmod +x "$ofile"
20156   else
20157     rm -f "${ofile}T"
20158     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20159 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20160    { (exit 1); exit 1; }; }
20161   fi
20162 fi
20163
20164
20165
20166 # This can be used to rebuild libtool when needed
20167 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20168
20169 # Always use our own libtool.
20170 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20171
20172 # Prevent multiple expansion
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194 #AC_C_CONST
20195 #AC_HEADER_STDC
20196
20197 for ac_header in libintl.h
20198 do
20199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20204   echo $ECHO_N "(cached) $ECHO_C" >&6
20205 fi
20206 ac_res=`eval echo '${'$as_ac_Header'}'`
20207                { echo "$as_me:$LINENO: result: $ac_res" >&5
20208 echo "${ECHO_T}$ac_res" >&6; }
20209 else
20210   # Is the header compilable?
20211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 $ac_includes_default
20220 #include <$ac_header>
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (ac_try="$ac_compile"
20224 case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229   (eval "$ac_compile") 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } && {
20236          test -z "$ac_c_werror_flag" ||
20237          test ! -s conftest.err
20238        } && test -s conftest.$ac_objext; then
20239   ac_header_compiler=yes
20240 else
20241   echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244         ac_header_compiler=no
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250
20251 # Is the header present?
20252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <$ac_header>
20261 _ACEOF
20262 if { (ac_try="$ac_cpp conftest.$ac_ext"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } >/dev/null && {
20275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20276          test ! -s conftest.err
20277        }; then
20278   ac_header_preproc=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283   ac_header_preproc=no
20284 fi
20285
20286 rm -f conftest.err conftest.$ac_ext
20287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20288 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289
20290 # So?  What about this header?
20291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20292   yes:no: )
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20297     ac_header_preproc=yes
20298     ;;
20299   no:yes:* )
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20312
20313     ;;
20314 esac
20315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320   eval "$as_ac_Header=\$ac_header_preproc"
20321 fi
20322 ac_res=`eval echo '${'$as_ac_Header'}'`
20323                { echo "$as_me:$LINENO: result: $ac_res" >&5
20324 echo "${ECHO_T}$ac_res" >&6; }
20325
20326 fi
20327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20328   cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20330 _ACEOF
20331
20332 fi
20333
20334 done
20335
20336
20337 GETTEXT_PACKAGE=$PACKAGE_NAME
20338
20339
20340
20341 for ac_header in locale.h
20342 do
20343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 fi
20350 ac_res=`eval echo '${'$as_ac_Header'}'`
20351                { echo "$as_me:$LINENO: result: $ac_res" >&5
20352 echo "${ECHO_T}$ac_res" >&6; }
20353 else
20354   # Is the header compilable?
20355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 $ac_includes_default
20364 #include <$ac_header>
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (ac_try="$ac_compile"
20368 case "(($ac_try" in
20369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370   *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373   (eval "$ac_compile") 2>conftest.er1
20374   ac_status=$?
20375   grep -v '^ *+' conftest.er1 >conftest.err
20376   rm -f conftest.er1
20377   cat conftest.err >&5
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); } && {
20380          test -z "$ac_c_werror_flag" ||
20381          test ! -s conftest.err
20382        } && test -s conftest.$ac_objext; then
20383   ac_header_compiler=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388         ac_header_compiler=no
20389 fi
20390
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20393 echo "${ECHO_T}$ac_header_compiler" >&6; }
20394
20395 # Is the header present?
20396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 #include <$ac_header>
20405 _ACEOF
20406 if { (ac_try="$ac_cpp conftest.$ac_ext"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } >/dev/null && {
20419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20420          test ! -s conftest.err
20421        }; then
20422   ac_header_preproc=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427   ac_header_preproc=no
20428 fi
20429
20430 rm -f conftest.err conftest.$ac_ext
20431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 echo "${ECHO_T}$ac_header_preproc" >&6; }
20433
20434 # So?  What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20436   yes:no: )
20437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441     ac_header_preproc=yes
20442     ;;
20443   no:yes:* )
20444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20456
20457     ;;
20458 esac
20459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   eval "$as_ac_Header=\$ac_header_preproc"
20465 fi
20466 ac_res=`eval echo '${'$as_ac_Header'}'`
20467                { echo "$as_me:$LINENO: result: $ac_res" >&5
20468 echo "${ECHO_T}$ac_res" >&6; }
20469
20470 fi
20471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20472   cat >>confdefs.h <<_ACEOF
20473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20474 _ACEOF
20475
20476 fi
20477
20478 done
20479
20480     if test $ac_cv_header_locale_h = yes; then
20481     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
20483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 #include <locale.h>
20493 int
20494 main ()
20495 {
20496 return LC_MESSAGES
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505   *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508   (eval "$ac_link") 2>conftest.er1
20509   ac_status=$?
20510   grep -v '^ *+' conftest.er1 >conftest.err
20511   rm -f conftest.er1
20512   cat conftest.err >&5
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); } && {
20515          test -z "$ac_c_werror_flag" ||
20516          test ! -s conftest.err
20517        } && test -s conftest$ac_exeext &&
20518        $as_test_x conftest$ac_exeext; then
20519   am_cv_val_LC_MESSAGES=yes
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524         am_cv_val_LC_MESSAGES=no
20525 fi
20526
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528       conftest$ac_exeext conftest.$ac_ext
20529 fi
20530 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20531 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
20532     if test $am_cv_val_LC_MESSAGES = yes; then
20533
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_LC_MESSAGES 1
20536 _ACEOF
20537
20538     fi
20539   fi
20540      USE_NLS=yes
20541
20542
20543     gt_cv_have_gettext=no
20544
20545     CATOBJEXT=NONE
20546     XGETTEXT=:
20547     INTLLIBS=
20548
20549     if test "${ac_cv_header_libintl_h+set}" = set; then
20550   { echo "$as_me:$LINENO: checking for libintl.h" >&5
20551 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20552 if test "${ac_cv_header_libintl_h+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 fi
20555 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20556 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20557 else
20558   # Is the header compilable?
20559 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
20560 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567 $ac_includes_default
20568 #include <libintl.h>
20569 _ACEOF
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574   *) ac_try_echo=$ac_try;;
20575 esac
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577   (eval "$ac_compile") 2>conftest.er1
20578   ac_status=$?
20579   grep -v '^ *+' conftest.er1 >conftest.err
20580   rm -f conftest.er1
20581   cat conftest.err >&5
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } && {
20584          test -z "$ac_c_werror_flag" ||
20585          test ! -s conftest.err
20586        } && test -s conftest.$ac_objext; then
20587   ac_header_compiler=yes
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592         ac_header_compiler=no
20593 fi
20594
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6; }
20598
20599 # Is the header present?
20600 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
20601 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608 #include <libintl.h>
20609 _ACEOF
20610 if { (ac_try="$ac_cpp conftest.$ac_ext"
20611 case "(($ac_try" in
20612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613   *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } >/dev/null && {
20623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20624          test ! -s conftest.err
20625        }; then
20626   ac_header_preproc=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631   ac_header_preproc=no
20632 fi
20633
20634 rm -f conftest.err conftest.$ac_ext
20635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20636 echo "${ECHO_T}$ac_header_preproc" >&6; }
20637
20638 # So?  What about this header?
20639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20640   yes:no: )
20641     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20642 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20644 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20645     ac_header_preproc=yes
20646     ;;
20647   no:yes:* )
20648     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20649 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
20651 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
20652     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20653 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20654     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
20655 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20656     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20657 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20658     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20659 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20660
20661     ;;
20662 esac
20663 { echo "$as_me:$LINENO: checking for libintl.h" >&5
20664 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20665 if test "${ac_cv_header_libintl_h+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668   ac_cv_header_libintl_h=$ac_header_preproc
20669 fi
20670 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20671 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20672
20673 fi
20674 if test $ac_cv_header_libintl_h = yes; then
20675   gt_cv_func_dgettext_libintl="no"
20676       libintl_extra_libs=""
20677
20678       #
20679       # First check in libc
20680       #
20681       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20682 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
20683 if test "${gt_cv_func_ngettext_libc+set}" = set; then
20684   echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686   cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692
20693 #include <libintl.h>
20694
20695 int
20696 main ()
20697 {
20698 return !ngettext ("","", 1)
20699   ;
20700   return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (ac_try="$ac_link"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_link") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && {
20717          test -z "$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        } && test -s conftest$ac_exeext &&
20720        $as_test_x conftest$ac_exeext; then
20721   gt_cv_func_ngettext_libc=yes
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         gt_cv_func_ngettext_libc=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20730       conftest$ac_exeext conftest.$ac_ext
20731
20732 fi
20733 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20734 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
20735
20736       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20737               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20738 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
20739 if test "${gt_cv_func_dgettext_libc+set}" = set; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748
20749 #include <libintl.h>
20750
20751 int
20752 main ()
20753 {
20754 return !dgettext ("","")
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_link") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && {
20773          test -z "$ac_c_werror_flag" ||
20774          test ! -s conftest.err
20775        } && test -s conftest$ac_exeext &&
20776        $as_test_x conftest$ac_exeext; then
20777   gt_cv_func_dgettext_libc=yes
20778 else
20779   echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20781
20782         gt_cv_func_dgettext_libc=no
20783 fi
20784
20785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20786       conftest$ac_exeext conftest.$ac_ext
20787
20788 fi
20789 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20790 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
20791       fi
20792
20793       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20794
20795 for ac_func in bind_textdomain_codeset
20796 do
20797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20801   echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803   cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h.  */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h.  */
20809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20811 #define $ac_func innocuous_$ac_func
20812
20813 /* System header to define __stub macros and hopefully few prototypes,
20814     which can conflict with char $ac_func (); below.
20815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816     <limits.h> exists even on freestanding compilers.  */
20817
20818 #ifdef __STDC__
20819 # include <limits.h>
20820 #else
20821 # include <assert.h>
20822 #endif
20823
20824 #undef $ac_func
20825
20826 /* Override any GCC internal prototype to avoid an error.
20827    Use char because int might match the return type of a GCC
20828    builtin and then its argument prototype would still apply.  */
20829 #ifdef __cplusplus
20830 extern "C"
20831 #endif
20832 char $ac_func ();
20833 /* The GNU C library defines this for functions which it implements
20834     to always fail with ENOSYS.  Some functions are actually named
20835     something starting with __ and the normal name is an alias.  */
20836 #if defined __stub_$ac_func || defined __stub___$ac_func
20837 choke me
20838 #endif
20839
20840 int
20841 main ()
20842 {
20843 return $ac_func ();
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_link") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } && {
20862          test -z "$ac_c_werror_flag" ||
20863          test ! -s conftest.err
20864        } && test -s conftest$ac_exeext &&
20865        $as_test_x conftest$ac_exeext; then
20866   eval "$as_ac_var=yes"
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871         eval "$as_ac_var=no"
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875       conftest$ac_exeext conftest.$ac_ext
20876 fi
20877 ac_res=`eval echo '${'$as_ac_var'}'`
20878                { echo "$as_me:$LINENO: result: $ac_res" >&5
20879 echo "${ECHO_T}$ac_res" >&6; }
20880 if test `eval echo '${'$as_ac_var'}'` = yes; then
20881   cat >>confdefs.h <<_ACEOF
20882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20883 _ACEOF
20884
20885 fi
20886 done
20887
20888       fi
20889
20890       #
20891       # If we don't have everything we want, check in libintl
20892       #
20893       if test "$gt_cv_func_dgettext_libc" != "yes" \
20894          || test "$gt_cv_func_ngettext_libc" != "yes" \
20895          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20896
20897         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20898 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
20899 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20900   echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902   ac_check_lib_save_LIBS=$LIBS
20903 LIBS="-lintl  $LIBS"
20904 cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910
20911 /* Override any GCC internal prototype to avoid an error.
20912    Use char because int might match the return type of a GCC
20913    builtin and then its argument prototype would still apply.  */
20914 #ifdef __cplusplus
20915 extern "C"
20916 #endif
20917 char bindtextdomain ();
20918 int
20919 main ()
20920 {
20921 return bindtextdomain ();
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (ac_try="$ac_link"
20928 case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_link") 2>conftest.er1
20934   ac_status=$?
20935   grep -v '^ *+' conftest.er1 >conftest.err
20936   rm -f conftest.er1
20937   cat conftest.err >&5
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } && {
20940          test -z "$ac_c_werror_flag" ||
20941          test ! -s conftest.err
20942        } && test -s conftest$ac_exeext &&
20943        $as_test_x conftest$ac_exeext; then
20944   ac_cv_lib_intl_bindtextdomain=yes
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949         ac_cv_lib_intl_bindtextdomain=no
20950 fi
20951
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953       conftest$ac_exeext conftest.$ac_ext
20954 LIBS=$ac_check_lib_save_LIBS
20955 fi
20956 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20957 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
20958 if test $ac_cv_lib_intl_bindtextdomain = yes; then
20959   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20960 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
20961 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20962   echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20964   ac_check_lib_save_LIBS=$LIBS
20965 LIBS="-lintl  $LIBS"
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h.  */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h.  */
20972
20973 /* Override any GCC internal prototype to avoid an error.
20974    Use char because int might match the return type of a GCC
20975    builtin and then its argument prototype would still apply.  */
20976 #ifdef __cplusplus
20977 extern "C"
20978 #endif
20979 char ngettext ();
20980 int
20981 main ()
20982 {
20983 return ngettext ();
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_link") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest$ac_exeext &&
21005        $as_test_x conftest$ac_exeext; then
21006   ac_cv_lib_intl_ngettext=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_cv_lib_intl_ngettext=no
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015       conftest$ac_exeext conftest.$ac_ext
21016 LIBS=$ac_check_lib_save_LIBS
21017 fi
21018 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21019 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21020 if test $ac_cv_lib_intl_ngettext = yes; then
21021   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21022 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21023 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21024   echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026   ac_check_lib_save_LIBS=$LIBS
21027 LIBS="-lintl  $LIBS"
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034
21035 /* Override any GCC internal prototype to avoid an error.
21036    Use char because int might match the return type of a GCC
21037    builtin and then its argument prototype would still apply.  */
21038 #ifdef __cplusplus
21039 extern "C"
21040 #endif
21041 char dgettext ();
21042 int
21043 main ()
21044 {
21045 return dgettext ();
21046   ;
21047   return 0;
21048 }
21049 _ACEOF
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (ac_try="$ac_link"
21052 case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_link") 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } && {
21064          test -z "$ac_c_werror_flag" ||
21065          test ! -s conftest.err
21066        } && test -s conftest$ac_exeext &&
21067        $as_test_x conftest$ac_exeext; then
21068   ac_cv_lib_intl_dgettext=yes
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_cv_lib_intl_dgettext=no
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077       conftest$ac_exeext conftest.$ac_ext
21078 LIBS=$ac_check_lib_save_LIBS
21079 fi
21080 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21081 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21082 if test $ac_cv_lib_intl_dgettext = yes; then
21083   gt_cv_func_dgettext_libintl=yes
21084 fi
21085
21086 fi
21087
21088 fi
21089
21090
21091         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21092           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21093 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
21094           { echo "$as_me:$LINENO: result: " >&5
21095 echo "${ECHO_T}" >&6; }
21096           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21097 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21098 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21099   echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101   ac_check_lib_save_LIBS=$LIBS
21102 LIBS="-lintl -liconv $LIBS"
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109
21110 /* Override any GCC internal prototype to avoid an error.
21111    Use char because int might match the return type of a GCC
21112    builtin and then its argument prototype would still apply.  */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char ngettext ();
21117 int
21118 main ()
21119 {
21120 return ngettext ();
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_link") 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && {
21139          test -z "$ac_c_werror_flag" ||
21140          test ! -s conftest.err
21141        } && test -s conftest$ac_exeext &&
21142        $as_test_x conftest$ac_exeext; then
21143   ac_cv_lib_intl_ngettext=yes
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         ac_cv_lib_intl_ngettext=no
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21152       conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21154 fi
21155 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21156 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21157 if test $ac_cv_lib_intl_ngettext = yes; then
21158   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21159 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
21160 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   ac_check_lib_save_LIBS=$LIBS
21164 LIBS="-lintl -liconv $LIBS"
21165 cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171
21172 /* Override any GCC internal prototype to avoid an error.
21173    Use char because int might match the return type of a GCC
21174    builtin and then its argument prototype would still apply.  */
21175 #ifdef __cplusplus
21176 extern "C"
21177 #endif
21178 char dcgettext ();
21179 int
21180 main ()
21181 {
21182 return dcgettext ();
21183   ;
21184   return 0;
21185 }
21186 _ACEOF
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191   *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194   (eval "$ac_link") 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } && {
21201          test -z "$ac_c_werror_flag" ||
21202          test ! -s conftest.err
21203        } && test -s conftest$ac_exeext &&
21204        $as_test_x conftest$ac_exeext; then
21205   ac_cv_lib_intl_dcgettext=yes
21206 else
21207   echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210         ac_cv_lib_intl_dcgettext=no
21211 fi
21212
21213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21214       conftest$ac_exeext conftest.$ac_ext
21215 LIBS=$ac_check_lib_save_LIBS
21216 fi
21217 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21218 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
21219 if test $ac_cv_lib_intl_dcgettext = yes; then
21220   gt_cv_func_dgettext_libintl=yes
21221                         libintl_extra_libs=-liconv
21222 else
21223   :
21224 fi
21225
21226 else
21227   :
21228 fi
21229
21230         fi
21231
21232         #
21233         # If we found libintl, then check in it for bind_textdomain_codeset();
21234         # we'll prefer libc if neither have bind_textdomain_codeset(),
21235         # and both have dgettext and ngettext
21236         #
21237         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21238           glib_save_LIBS="$LIBS"
21239           LIBS="$LIBS -lintl $libintl_extra_libs"
21240           unset ac_cv_func_bind_textdomain_codeset
21241
21242 for ac_func in bind_textdomain_codeset
21243 do
21244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21258 #define $ac_func innocuous_$ac_func
21259
21260 /* System header to define __stub macros and hopefully few prototypes,
21261     which can conflict with char $ac_func (); below.
21262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21263     <limits.h> exists even on freestanding compilers.  */
21264
21265 #ifdef __STDC__
21266 # include <limits.h>
21267 #else
21268 # include <assert.h>
21269 #endif
21270
21271 #undef $ac_func
21272
21273 /* Override any GCC internal prototype to avoid an error.
21274    Use char because int might match the return type of a GCC
21275    builtin and then its argument prototype would still apply.  */
21276 #ifdef __cplusplus
21277 extern "C"
21278 #endif
21279 char $ac_func ();
21280 /* The GNU C library defines this for functions which it implements
21281     to always fail with ENOSYS.  Some functions are actually named
21282     something starting with __ and the normal name is an alias.  */
21283 #if defined __stub_$ac_func || defined __stub___$ac_func
21284 choke me
21285 #endif
21286
21287 int
21288 main ()
21289 {
21290 return $ac_func ();
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (ac_try="$ac_link"
21297 case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_link") 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } && {
21309          test -z "$ac_c_werror_flag" ||
21310          test ! -s conftest.err
21311        } && test -s conftest$ac_exeext &&
21312        $as_test_x conftest$ac_exeext; then
21313   eval "$as_ac_var=yes"
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318         eval "$as_ac_var=no"
21319 fi
21320
21321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21322       conftest$ac_exeext conftest.$ac_ext
21323 fi
21324 ac_res=`eval echo '${'$as_ac_var'}'`
21325                { echo "$as_me:$LINENO: result: $ac_res" >&5
21326 echo "${ECHO_T}$ac_res" >&6; }
21327 if test `eval echo '${'$as_ac_var'}'` = yes; then
21328   cat >>confdefs.h <<_ACEOF
21329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21330 _ACEOF
21331
21332 fi
21333 done
21334
21335           LIBS="$glib_save_LIBS"
21336
21337           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21338             gt_cv_func_dgettext_libc=no
21339           else
21340             if test "$gt_cv_func_dgettext_libc" = "yes" \
21341                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
21342               gt_cv_func_dgettext_libintl=no
21343             fi
21344           fi
21345         fi
21346       fi
21347
21348       if test "$gt_cv_func_dgettext_libc" = "yes" \
21349         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
21350         gt_cv_have_gettext=yes
21351       fi
21352
21353       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21354         INTLLIBS="-lintl $libintl_extra_libs"
21355       fi
21356
21357       if test "$gt_cv_have_gettext" = "yes"; then
21358
21359 cat >>confdefs.h <<\_ACEOF
21360 #define HAVE_GETTEXT 1
21361 _ACEOF
21362
21363         # Extract the first word of "msgfmt", so it can be a program name with args.
21364 set dummy msgfmt; ac_word=$2
21365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21367 if test "${ac_cv_path_MSGFMT+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   case "$MSGFMT" in
21371   /*)
21372   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21373   ;;
21374   *)
21375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21376   for ac_dir in $PATH; do
21377     test -z "$ac_dir" && ac_dir=.
21378     if test -f $ac_dir/$ac_word; then
21379       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21380         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21381         break
21382       fi
21383     fi
21384   done
21385   IFS="$ac_save_ifs"
21386   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21387   ;;
21388 esac
21389 fi
21390 MSGFMT="$ac_cv_path_MSGFMT"
21391 if test "$MSGFMT" != "no"; then
21392   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21393 echo "${ECHO_T}$MSGFMT" >&6; }
21394 else
21395   { echo "$as_me:$LINENO: result: no" >&5
21396 echo "${ECHO_T}no" >&6; }
21397 fi
21398         if test "$MSGFMT" != "no"; then
21399           glib_save_LIBS="$LIBS"
21400           LIBS="$LIBS $INTLLIBS"
21401
21402 for ac_func in dcgettext
21403 do
21404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21418 #define $ac_func innocuous_$ac_func
21419
21420 /* System header to define __stub macros and hopefully few prototypes,
21421     which can conflict with char $ac_func (); below.
21422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21423     <limits.h> exists even on freestanding compilers.  */
21424
21425 #ifdef __STDC__
21426 # include <limits.h>
21427 #else
21428 # include <assert.h>
21429 #endif
21430
21431 #undef $ac_func
21432
21433 /* Override any GCC internal prototype to avoid an error.
21434    Use char because int might match the return type of a GCC
21435    builtin and then its argument prototype would still apply.  */
21436 #ifdef __cplusplus
21437 extern "C"
21438 #endif
21439 char $ac_func ();
21440 /* The GNU C library defines this for functions which it implements
21441     to always fail with ENOSYS.  Some functions are actually named
21442     something starting with __ and the normal name is an alias.  */
21443 #if defined __stub_$ac_func || defined __stub___$ac_func
21444 choke me
21445 #endif
21446
21447 int
21448 main ()
21449 {
21450 return $ac_func ();
21451   ;
21452   return 0;
21453 }
21454 _ACEOF
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (ac_try="$ac_link"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_link") 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && {
21469          test -z "$ac_c_werror_flag" ||
21470          test ! -s conftest.err
21471        } && test -s conftest$ac_exeext &&
21472        $as_test_x conftest$ac_exeext; then
21473   eval "$as_ac_var=yes"
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         eval "$as_ac_var=no"
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482       conftest$ac_exeext conftest.$ac_ext
21483 fi
21484 ac_res=`eval echo '${'$as_ac_var'}'`
21485                { echo "$as_me:$LINENO: result: $ac_res" >&5
21486 echo "${ECHO_T}$ac_res" >&6; }
21487 if test `eval echo '${'$as_ac_var'}'` = yes; then
21488   cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21490 _ACEOF
21491
21492 fi
21493 done
21494
21495           MSGFMT_OPTS=
21496           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
21497 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
21498           cat >conftest.foo <<_ACEOF
21499
21500 msgid ""
21501 msgstr ""
21502 "Content-Type: text/plain; charset=UTF-8\n"
21503 "Project-Id-Version: test 1.0\n"
21504 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
21505 "Last-Translator: test <foo@bar.xx>\n"
21506 "Language-Team: C <LL@li.org>\n"
21507 "MIME-Version: 1.0\n"
21508 "Content-Transfer-Encoding: 8bit\n"
21509
21510 _ACEOF
21511 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
21512   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; then
21516   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
21517 echo "${ECHO_T}yes" >&6; }
21518 else { echo "$as_me:$LINENO: result: no" >&5
21519 echo "${ECHO_T}no" >&6; }
21520 echo "$as_me: failed input was:" >&5
21521 sed 's/^/| /' conftest.foo >&5
21522 fi
21523
21524           # Extract the first word of "gmsgfmt", so it can be a program name with args.
21525 set dummy gmsgfmt; ac_word=$2
21526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21528 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21529   echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531   case $GMSGFMT in
21532   [\\/]* | ?:[\\/]*)
21533   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21534   ;;
21535   *)
21536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21537 for as_dir in $PATH
21538 do
21539   IFS=$as_save_IFS
21540   test -z "$as_dir" && as_dir=.
21541   for ac_exec_ext in '' $ac_executable_extensions; do
21542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21543     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21545     break 2
21546   fi
21547 done
21548 done
21549 IFS=$as_save_IFS
21550
21551   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21552   ;;
21553 esac
21554 fi
21555 GMSGFMT=$ac_cv_path_GMSGFMT
21556 if test -n "$GMSGFMT"; then
21557   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21558 echo "${ECHO_T}$GMSGFMT" >&6; }
21559 else
21560   { echo "$as_me:$LINENO: result: no" >&5
21561 echo "${ECHO_T}no" >&6; }
21562 fi
21563
21564
21565           # Extract the first word of "xgettext", so it can be a program name with args.
21566 set dummy xgettext; ac_word=$2
21567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21569 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   case "$XGETTEXT" in
21573   /*)
21574   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21575   ;;
21576   *)
21577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21578   for ac_dir in $PATH; do
21579     test -z "$ac_dir" && ac_dir=.
21580     if test -f $ac_dir/$ac_word; then
21581       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21582         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21583         break
21584       fi
21585     fi
21586   done
21587   IFS="$ac_save_ifs"
21588   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21589   ;;
21590 esac
21591 fi
21592 XGETTEXT="$ac_cv_path_XGETTEXT"
21593 if test "$XGETTEXT" != ":"; then
21594   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21595 echo "${ECHO_T}$XGETTEXT" >&6; }
21596 else
21597   { echo "$as_me:$LINENO: result: no" >&5
21598 echo "${ECHO_T}no" >&6; }
21599 fi
21600
21601           cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607
21608 int
21609 main ()
21610 {
21611 extern int _nl_msg_cat_cntr;
21612                          return _nl_msg_cat_cntr
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_link") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest$ac_exeext &&
21634        $as_test_x conftest$ac_exeext; then
21635   CATOBJEXT=.gmo
21636              DATADIRNAME=share
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641         case $host in
21642             *-*-solaris*)
21643                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21644 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
21645 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21646   echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648   cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h.  */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h.  */
21654 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21656 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21657
21658 /* System header to define __stub macros and hopefully few prototypes,
21659     which can conflict with char bind_textdomain_codeset (); below.
21660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21661     <limits.h> exists even on freestanding compilers.  */
21662
21663 #ifdef __STDC__
21664 # include <limits.h>
21665 #else
21666 # include <assert.h>
21667 #endif
21668
21669 #undef bind_textdomain_codeset
21670
21671 /* Override any GCC internal prototype to avoid an error.
21672    Use char because int might match the return type of a GCC
21673    builtin and then its argument prototype would still apply.  */
21674 #ifdef __cplusplus
21675 extern "C"
21676 #endif
21677 char bind_textdomain_codeset ();
21678 /* The GNU C library defines this for functions which it implements
21679     to always fail with ENOSYS.  Some functions are actually named
21680     something starting with __ and the normal name is an alias.  */
21681 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
21682 choke me
21683 #endif
21684
21685 int
21686 main ()
21687 {
21688 return bind_textdomain_codeset ();
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest.$ac_objext conftest$ac_exeext
21694 if { (ac_try="$ac_link"
21695 case "(($ac_try" in
21696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697   *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700   (eval "$ac_link") 2>conftest.er1
21701   ac_status=$?
21702   grep -v '^ *+' conftest.er1 >conftest.err
21703   rm -f conftest.er1
21704   cat conftest.err >&5
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); } && {
21707          test -z "$ac_c_werror_flag" ||
21708          test ! -s conftest.err
21709        } && test -s conftest$ac_exeext &&
21710        $as_test_x conftest$ac_exeext; then
21711   ac_cv_func_bind_textdomain_codeset=yes
21712 else
21713   echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716         ac_cv_func_bind_textdomain_codeset=no
21717 fi
21718
21719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720       conftest$ac_exeext conftest.$ac_ext
21721 fi
21722 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21723 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
21724 if test $ac_cv_func_bind_textdomain_codeset = yes; then
21725   CATOBJEXT=.gmo
21726                DATADIRNAME=share
21727 else
21728   CATOBJEXT=.mo
21729                DATADIRNAME=lib
21730 fi
21731
21732             ;;
21733             *)
21734             CATOBJEXT=.mo
21735             DATADIRNAME=lib
21736             ;;
21737             esac
21738 fi
21739
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741       conftest$ac_exeext conftest.$ac_ext
21742           LIBS="$glib_save_LIBS"
21743           INSTOBJEXT=.mo
21744         else
21745           gt_cv_have_gettext=no
21746         fi
21747       fi
21748
21749 fi
21750
21751
21752
21753     if test "$gt_cv_have_gettext" = "yes" ; then
21754
21755 cat >>confdefs.h <<\_ACEOF
21756 #define ENABLE_NLS 1
21757 _ACEOF
21758
21759     fi
21760
21761         if test "$XGETTEXT" != ":"; then
21762                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21763         : ;
21764       else
21765         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21766 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
21767         XGETTEXT=":"
21768       fi
21769     fi
21770
21771     # We need to process the po/ directory.
21772     POSUB=po
21773
21774     ac_config_commands="$ac_config_commands default-1"
21775
21776
21777                 for lang in $ALL_LINGUAS; do
21778       GMOFILES="$GMOFILES $lang.gmo"
21779       POFILES="$POFILES $lang.po"
21780     done
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794    if test "$gt_cv_have_gettext" = "yes"; then
21795      if test "x$ALL_LINGUAS" = "x"; then
21796        LINGUAS=
21797      else
21798        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21799 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
21800        NEW_LINGUAS=
21801        for presentlang in $ALL_LINGUAS; do
21802          useit=no
21803          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21804            desiredlanguages="$LINGUAS"
21805          else
21806            desiredlanguages="$ALL_LINGUAS"
21807          fi
21808          for desiredlang in $desiredlanguages; do
21809            # Use the presentlang catalog if desiredlang is
21810            #   a. equal to presentlang, or
21811            #   b. a variant of presentlang (because in this case,
21812            #      presentlang can be used as a fallback for messages
21813            #      which are not translated in the desiredlang catalog).
21814            case "$desiredlang" in
21815              "$presentlang"*) useit=yes;;
21816            esac
21817          done
21818          if test $useit = yes; then
21819            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21820          fi
21821        done
21822        LINGUAS=$NEW_LINGUAS
21823        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
21824 echo "${ECHO_T}$LINGUAS" >&6; }
21825      fi
21826
21827           if test -n "$LINGUAS"; then
21828        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21829      fi
21830    fi
21831
21832             MKINSTALLDIRS=
21833    if test -n "$ac_aux_dir"; then
21834      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21835    fi
21836    if test -z "$MKINSTALLDIRS"; then
21837      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21838    fi
21839
21840
21841          test -d po || mkdir po
21842    if test "x$srcdir" != "x."; then
21843      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21844        posrcprefix="$srcdir/"
21845      else
21846        posrcprefix="../$srcdir/"
21847      fi
21848    else
21849      posrcprefix="../"
21850    fi
21851    rm -f po/POTFILES
21852    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21853         < $srcdir/po/POTFILES.in > po/POTFILES
21854
21855
21856 #FLAGS="$CXXFLAGS -Werror -Wall -Wcast-align -Wmissing-declarations"
21857
21858 # Check whether --enable-debug was given.
21859 if test "${enable_debug+set}" = set; then
21860   enableval=$enable_debug; case "${enableval}" in
21861    yes) debug=true ; CFLAGS="-ggdb -O0 $CFLAGS" ;;
21862    no)  debug=false ;;
21863    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
21864 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
21865    { (exit 1); exit 1; }; } ;;
21866    esac
21867 else
21868   debug=false
21869 fi
21870
21871
21872
21873 if test x$debug = xtrue; then
21874   DEBUG_TRUE=
21875   DEBUG_FALSE='#'
21876 else
21877   DEBUG_TRUE='#'
21878   DEBUG_FALSE=
21879 fi
21880
21881
21882
21883
21884 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21885         if test -n "$ac_tool_prefix"; then
21886   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21887 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   case $PKG_CONFIG in
21894   [\\/]* | ?:[\\/]*)
21895   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21896   ;;
21897   *)
21898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21900 do
21901   IFS=$as_save_IFS
21902   test -z "$as_dir" && as_dir=.
21903   for ac_exec_ext in '' $ac_executable_extensions; do
21904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21905     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21907     break 2
21908   fi
21909 done
21910 done
21911 IFS=$as_save_IFS
21912
21913   ;;
21914 esac
21915 fi
21916 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21917 if test -n "$PKG_CONFIG"; then
21918   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21919 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21920 else
21921   { echo "$as_me:$LINENO: result: no" >&5
21922 echo "${ECHO_T}no" >&6; }
21923 fi
21924
21925
21926 fi
21927 if test -z "$ac_cv_path_PKG_CONFIG"; then
21928   ac_pt_PKG_CONFIG=$PKG_CONFIG
21929   # Extract the first word of "pkg-config", so it can be a program name with args.
21930 set dummy pkg-config; ac_word=$2
21931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21933 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21934   echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936   case $ac_pt_PKG_CONFIG in
21937   [\\/]* | ?:[\\/]*)
21938   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21939   ;;
21940   *)
21941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21942 for as_dir in $PATH
21943 do
21944   IFS=$as_save_IFS
21945   test -z "$as_dir" && as_dir=.
21946   for ac_exec_ext in '' $ac_executable_extensions; do
21947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21948     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21950     break 2
21951   fi
21952 done
21953 done
21954 IFS=$as_save_IFS
21955
21956   ;;
21957 esac
21958 fi
21959 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21960 if test -n "$ac_pt_PKG_CONFIG"; then
21961   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21962 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21963 else
21964   { echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6; }
21966 fi
21967
21968   if test "x$ac_pt_PKG_CONFIG" = x; then
21969     PKG_CONFIG=""
21970   else
21971     case $cross_compiling:$ac_tool_warned in
21972 yes:)
21973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21974 whose name does not start with the host triplet.  If you think this
21975 configuration is useful to you, please write to autoconf@gnu.org." >&5
21976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21977 whose name does not start with the host triplet.  If you think this
21978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21979 ac_tool_warned=yes ;;
21980 esac
21981     PKG_CONFIG=$ac_pt_PKG_CONFIG
21982   fi
21983 else
21984   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21985 fi
21986
21987 fi
21988 if test -n "$PKG_CONFIG"; then
21989         _pkg_min_version=0.9.0
21990         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21991 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21992         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21993                 { echo "$as_me:$LINENO: result: yes" >&5
21994 echo "${ECHO_T}yes" >&6; }
21995         else
21996                 { echo "$as_me:$LINENO: result: no" >&5
21997 echo "${ECHO_T}no" >&6; }
21998                 PKG_CONFIG=""
21999         fi
22000
22001 fi
22002
22003 pkg_failed=no
22004 { echo "$as_me:$LINENO: checking for LIBHILDONDESKTOP" >&5
22005 echo $ECHO_N "checking for LIBHILDONDESKTOP... $ECHO_C" >&6; }
22006
22007 if test -n "$PKG_CONFIG"; then
22008     if test -n "$LIBHILDONDESKTOP_CFLAGS"; then
22009         pkg_cv_LIBHILDONDESKTOP_CFLAGS="$LIBHILDONDESKTOP_CFLAGS"
22010     else
22011         if test -n "$PKG_CONFIG" && \
22012     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhildondesktop-1\"") >&5
22013   ($PKG_CONFIG --exists --print-errors "libhildondesktop-1") 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; then
22017   pkg_cv_LIBHILDONDESKTOP_CFLAGS=`$PKG_CONFIG --cflags "libhildondesktop-1" 2>/dev/null`
22018 else
22019   pkg_failed=yes
22020 fi
22021     fi
22022 else
22023         pkg_failed=untried
22024 fi
22025 if test -n "$PKG_CONFIG"; then
22026     if test -n "$LIBHILDONDESKTOP_LIBS"; then
22027         pkg_cv_LIBHILDONDESKTOP_LIBS="$LIBHILDONDESKTOP_LIBS"
22028     else
22029         if test -n "$PKG_CONFIG" && \
22030     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhildondesktop-1\"") >&5
22031   ($PKG_CONFIG --exists --print-errors "libhildondesktop-1") 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; then
22035   pkg_cv_LIBHILDONDESKTOP_LIBS=`$PKG_CONFIG --libs "libhildondesktop-1" 2>/dev/null`
22036 else
22037   pkg_failed=yes
22038 fi
22039     fi
22040 else
22041         pkg_failed=untried
22042 fi
22043
22044
22045
22046 if test $pkg_failed = yes; then
22047
22048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22049         _pkg_short_errors_supported=yes
22050 else
22051         _pkg_short_errors_supported=no
22052 fi
22053         if test $_pkg_short_errors_supported = yes; then
22054                 LIBHILDONDESKTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libhildondesktop-1"`
22055         else
22056                 LIBHILDONDESKTOP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libhildondesktop-1"`
22057         fi
22058         # Put the nasty error message in config.log where it belongs
22059         echo "$LIBHILDONDESKTOP_PKG_ERRORS" >&5
22060
22061         { { echo "$as_me:$LINENO: error: Package requirements (libhildondesktop-1) were not met:
22062
22063 $LIBHILDONDESKTOP_PKG_ERRORS
22064
22065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22066 installed software in a non-standard prefix.
22067
22068 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22069 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22070 See the pkg-config man page for more details.
22071 " >&5
22072 echo "$as_me: error: Package requirements (libhildondesktop-1) were not met:
22073
22074 $LIBHILDONDESKTOP_PKG_ERRORS
22075
22076 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22077 installed software in a non-standard prefix.
22078
22079 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22080 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22081 See the pkg-config man page for more details.
22082 " >&2;}
22083    { (exit 1); exit 1; }; }
22084 elif test $pkg_failed = untried; then
22085         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22086 is in your PATH or set the PKG_CONFIG environment variable to the full
22087 path to pkg-config.
22088
22089 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22090 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22091 See the pkg-config man page for more details.
22092
22093 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22094 See \`config.log' for more details." >&5
22095 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22096 is in your PATH or set the PKG_CONFIG environment variable to the full
22097 path to pkg-config.
22098
22099 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22100 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22101 See the pkg-config man page for more details.
22102
22103 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22104 See \`config.log' for more details." >&2;}
22105    { (exit 1); exit 1; }; }
22106 else
22107         LIBHILDONDESKTOP_CFLAGS=$pkg_cv_LIBHILDONDESKTOP_CFLAGS
22108         LIBHILDONDESKTOP_LIBS=$pkg_cv_LIBHILDONDESKTOP_LIBS
22109         { echo "$as_me:$LINENO: result: yes" >&5
22110 echo "${ECHO_T}yes" >&6; }
22111
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_LIBHILDONDESKTOP
22114 _ACEOF
22115
22116 fi
22117
22118
22119
22120
22121 pkg_failed=no
22122 { echo "$as_me:$LINENO: checking for CONIC" >&5
22123 echo $ECHO_N "checking for CONIC... $ECHO_C" >&6; }
22124
22125 if test -n "$PKG_CONFIG"; then
22126     if test -n "$CONIC_CFLAGS"; then
22127         pkg_cv_CONIC_CFLAGS="$CONIC_CFLAGS"
22128     else
22129         if test -n "$PKG_CONFIG" && \
22130     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"conic\"") >&5
22131   ($PKG_CONFIG --exists --print-errors "conic") 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; then
22135   pkg_cv_CONIC_CFLAGS=`$PKG_CONFIG --cflags "conic" 2>/dev/null`
22136 else
22137   pkg_failed=yes
22138 fi
22139     fi
22140 else
22141         pkg_failed=untried
22142 fi
22143 if test -n "$PKG_CONFIG"; then
22144     if test -n "$CONIC_LIBS"; then
22145         pkg_cv_CONIC_LIBS="$CONIC_LIBS"
22146     else
22147         if test -n "$PKG_CONFIG" && \
22148     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"conic\"") >&5
22149   ($PKG_CONFIG --exists --print-errors "conic") 2>&5
22150   ac_status=$?
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); }; then
22153   pkg_cv_CONIC_LIBS=`$PKG_CONFIG --libs "conic" 2>/dev/null`
22154 else
22155   pkg_failed=yes
22156 fi
22157     fi
22158 else
22159         pkg_failed=untried
22160 fi
22161
22162
22163
22164 if test $pkg_failed = yes; then
22165
22166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22167         _pkg_short_errors_supported=yes
22168 else
22169         _pkg_short_errors_supported=no
22170 fi
22171         if test $_pkg_short_errors_supported = yes; then
22172                 CONIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "conic"`
22173         else
22174                 CONIC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "conic"`
22175         fi
22176         # Put the nasty error message in config.log where it belongs
22177         echo "$CONIC_PKG_ERRORS" >&5
22178
22179         { { echo "$as_me:$LINENO: error: Package requirements (conic) were not met:
22180
22181 $CONIC_PKG_ERRORS
22182
22183 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22184 installed software in a non-standard prefix.
22185
22186 Alternatively, you may set the environment variables CONIC_CFLAGS
22187 and CONIC_LIBS to avoid the need to call pkg-config.
22188 See the pkg-config man page for more details.
22189 " >&5
22190 echo "$as_me: error: Package requirements (conic) were not met:
22191
22192 $CONIC_PKG_ERRORS
22193
22194 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22195 installed software in a non-standard prefix.
22196
22197 Alternatively, you may set the environment variables CONIC_CFLAGS
22198 and CONIC_LIBS to avoid the need to call pkg-config.
22199 See the pkg-config man page for more details.
22200 " >&2;}
22201    { (exit 1); exit 1; }; }
22202 elif test $pkg_failed = untried; then
22203         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22204 is in your PATH or set the PKG_CONFIG environment variable to the full
22205 path to pkg-config.
22206
22207 Alternatively, you may set the environment variables CONIC_CFLAGS
22208 and CONIC_LIBS to avoid the need to call pkg-config.
22209 See the pkg-config man page for more details.
22210
22211 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22212 See \`config.log' for more details." >&5
22213 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22214 is in your PATH or set the PKG_CONFIG environment variable to the full
22215 path to pkg-config.
22216
22217 Alternatively, you may set the environment variables CONIC_CFLAGS
22218 and CONIC_LIBS to avoid the need to call pkg-config.
22219 See the pkg-config man page for more details.
22220
22221 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22222 See \`config.log' for more details." >&2;}
22223    { (exit 1); exit 1; }; }
22224 else
22225         CONIC_CFLAGS=$pkg_cv_CONIC_CFLAGS
22226         CONIC_LIBS=$pkg_cv_CONIC_LIBS
22227         { echo "$as_me:$LINENO: result: yes" >&5
22228 echo "${ECHO_T}yes" >&6; }
22229         :
22230 fi
22231
22232
22233
22234 #
22235 # FIXME: We only use the DBus definition header files from the libmaesync
22236 # package so we should not link with the shared object.
22237 #
22238
22239 pkg_failed=no
22240 { echo "$as_me:$LINENO: checking for STATUSBAR_SYNC" >&5
22241 echo $ECHO_N "checking for STATUSBAR_SYNC... $ECHO_C" >&6; }
22242
22243 if test -n "$PKG_CONFIG"; then
22244     if test -n "$STATUSBAR_SYNC_CFLAGS"; then
22245         pkg_cv_STATUSBAR_SYNC_CFLAGS="$STATUSBAR_SYNC_CFLAGS"
22246     else
22247         if test -n "$PKG_CONFIG" && \
22248     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22249         gtk+-2.0 >= 2.10.1
22250         hildon-1 >= 1.0.0
22251         libosso >= 2.0
22252         gconf-2.0 >= 2.16.0
22253 \"") >&5
22254   ($PKG_CONFIG --exists --print-errors "
22255         gtk+-2.0 >= 2.10.1
22256         hildon-1 >= 1.0.0
22257         libosso >= 2.0
22258         gconf-2.0 >= 2.16.0
22259 ") 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; then
22263   pkg_cv_STATUSBAR_SYNC_CFLAGS=`$PKG_CONFIG --cflags "
22264         gtk+-2.0 >= 2.10.1
22265         hildon-1 >= 1.0.0
22266         libosso >= 2.0
22267         gconf-2.0 >= 2.16.0
22268 " 2>/dev/null`
22269 else
22270   pkg_failed=yes
22271 fi
22272     fi
22273 else
22274         pkg_failed=untried
22275 fi
22276 if test -n "$PKG_CONFIG"; then
22277     if test -n "$STATUSBAR_SYNC_LIBS"; then
22278         pkg_cv_STATUSBAR_SYNC_LIBS="$STATUSBAR_SYNC_LIBS"
22279     else
22280         if test -n "$PKG_CONFIG" && \
22281     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22282         gtk+-2.0 >= 2.10.1
22283         hildon-1 >= 1.0.0
22284         libosso >= 2.0
22285         gconf-2.0 >= 2.16.0
22286 \"") >&5
22287   ($PKG_CONFIG --exists --print-errors "
22288         gtk+-2.0 >= 2.10.1
22289         hildon-1 >= 1.0.0
22290         libosso >= 2.0
22291         gconf-2.0 >= 2.16.0
22292 ") 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; then
22296   pkg_cv_STATUSBAR_SYNC_LIBS=`$PKG_CONFIG --libs "
22297         gtk+-2.0 >= 2.10.1
22298         hildon-1 >= 1.0.0
22299         libosso >= 2.0
22300         gconf-2.0 >= 2.16.0
22301 " 2>/dev/null`
22302 else
22303   pkg_failed=yes
22304 fi
22305     fi
22306 else
22307         pkg_failed=untried
22308 fi
22309
22310
22311
22312 if test $pkg_failed = yes; then
22313
22314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22315         _pkg_short_errors_supported=yes
22316 else
22317         _pkg_short_errors_supported=no
22318 fi
22319         if test $_pkg_short_errors_supported = yes; then
22320                 STATUSBAR_SYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
22321         gtk+-2.0 >= 2.10.1
22322         hildon-1 >= 1.0.0
22323         libosso >= 2.0
22324         gconf-2.0 >= 2.16.0
22325 "`
22326         else
22327                 STATUSBAR_SYNC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
22328         gtk+-2.0 >= 2.10.1
22329         hildon-1 >= 1.0.0
22330         libosso >= 2.0
22331         gconf-2.0 >= 2.16.0
22332 "`
22333         fi
22334         # Put the nasty error message in config.log where it belongs
22335         echo "$STATUSBAR_SYNC_PKG_ERRORS" >&5
22336
22337         { { echo "$as_me:$LINENO: error: Package requirements (
22338         gtk+-2.0 >= 2.10.1
22339         hildon-1 >= 1.0.0
22340         libosso >= 2.0
22341         gconf-2.0 >= 2.16.0
22342 ) were not met:
22343
22344 $STATUSBAR_SYNC_PKG_ERRORS
22345
22346 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22347 installed software in a non-standard prefix.
22348
22349 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22350 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22351 See the pkg-config man page for more details.
22352 " >&5
22353 echo "$as_me: error: Package requirements (
22354         gtk+-2.0 >= 2.10.1
22355         hildon-1 >= 1.0.0
22356         libosso >= 2.0
22357         gconf-2.0 >= 2.16.0
22358 ) were not met:
22359
22360 $STATUSBAR_SYNC_PKG_ERRORS
22361
22362 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22363 installed software in a non-standard prefix.
22364
22365 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22366 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22367 See the pkg-config man page for more details.
22368 " >&2;}
22369    { (exit 1); exit 1; }; }
22370 elif test $pkg_failed = untried; then
22371         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22372 is in your PATH or set the PKG_CONFIG environment variable to the full
22373 path to pkg-config.
22374
22375 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22376 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22377 See the pkg-config man page for more details.
22378
22379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22380 See \`config.log' for more details." >&5
22381 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22382 is in your PATH or set the PKG_CONFIG environment variable to the full
22383 path to pkg-config.
22384
22385 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22386 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22387 See the pkg-config man page for more details.
22388
22389 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22390 See \`config.log' for more details." >&2;}
22391    { (exit 1); exit 1; }; }
22392 else
22393         STATUSBAR_SYNC_CFLAGS=$pkg_cv_STATUSBAR_SYNC_CFLAGS
22394         STATUSBAR_SYNC_LIBS=$pkg_cv_STATUSBAR_SYNC_LIBS
22395         { echo "$as_me:$LINENO: result: yes" >&5
22396 echo "${ECHO_T}yes" >&6; }
22397         :
22398 fi
22399
22400
22401
22402 pixmapsdir=${datadir}/pixmaps/hiro-vpn/
22403
22404 hildonpixmapdir=`$PKG_CONFIG --variable=hildonpixmapdir hildon-base`
22405
22406
22407 hildondesktoplibdir=`pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`
22408
22409
22410 hildonstatusmenudesktopentrydir=`pkg-config libhildondesktop-1 --variable=hildonstatusmenudesktopentrydir`
22411
22412
22413 #
22414 # The localisation with the gettext package.
22415 #
22416 localedir=/usr/share/locale
22417 GETTEXT_PACKAGE="vpngui"
22418
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
22422 _ACEOF
22423
22424 ALL_LINGUAS="en_GB en_US"
22425
22426
22427
22428 for ac_header in locale.h
22429 do
22430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 fi
22437 ac_res=`eval echo '${'$as_ac_Header'}'`
22438                { echo "$as_me:$LINENO: result: $ac_res" >&5
22439 echo "${ECHO_T}$ac_res" >&6; }
22440 else
22441   # Is the header compilable?
22442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451 #include <$ac_header>
22452 _ACEOF
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457   *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460   (eval "$ac_compile") 2>conftest.er1
22461   ac_status=$?
22462   grep -v '^ *+' conftest.er1 >conftest.err
22463   rm -f conftest.er1
22464   cat conftest.err >&5
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } && {
22467          test -z "$ac_c_werror_flag" ||
22468          test ! -s conftest.err
22469        } && test -s conftest.$ac_objext; then
22470   ac_header_compiler=yes
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475         ac_header_compiler=no
22476 fi
22477
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480 echo "${ECHO_T}$ac_header_compiler" >&6; }
22481
22482 # Is the header present?
22483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include <$ac_header>
22492 _ACEOF
22493 if { (ac_try="$ac_cpp conftest.$ac_ext"
22494 case "(($ac_try" in
22495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496   *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } >/dev/null && {
22506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22507          test ! -s conftest.err
22508        }; then
22509   ac_header_preproc=yes
22510 else
22511   echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22513
22514   ac_header_preproc=no
22515 fi
22516
22517 rm -f conftest.err conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22519 echo "${ECHO_T}$ac_header_preproc" >&6; }
22520
22521 # So?  What about this header?
22522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22523   yes:no: )
22524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22528     ac_header_preproc=yes
22529     ;;
22530   no:yes:* )
22531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22543
22544     ;;
22545 esac
22546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551   eval "$as_ac_Header=\$ac_header_preproc"
22552 fi
22553 ac_res=`eval echo '${'$as_ac_Header'}'`
22554                { echo "$as_me:$LINENO: result: $ac_res" >&5
22555 echo "${ECHO_T}$ac_res" >&6; }
22556
22557 fi
22558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22559   cat >>confdefs.h <<_ACEOF
22560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22561 _ACEOF
22562
22563 fi
22564
22565 done
22566
22567     if test $ac_cv_header_locale_h = yes; then
22568     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22569 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22570 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22571   echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573   cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h.  */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h.  */
22579 #include <locale.h>
22580 int
22581 main ()
22582 {
22583 return LC_MESSAGES
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_link") 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } && {
22602          test -z "$ac_c_werror_flag" ||
22603          test ! -s conftest.err
22604        } && test -s conftest$ac_exeext &&
22605        $as_test_x conftest$ac_exeext; then
22606   am_cv_val_LC_MESSAGES=yes
22607 else
22608   echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22610
22611         am_cv_val_LC_MESSAGES=no
22612 fi
22613
22614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22615       conftest$ac_exeext conftest.$ac_ext
22616 fi
22617 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22618 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22619     if test $am_cv_val_LC_MESSAGES = yes; then
22620
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_LC_MESSAGES 1
22623 _ACEOF
22624
22625     fi
22626   fi
22627      USE_NLS=yes
22628
22629
22630     gt_cv_have_gettext=no
22631
22632     CATOBJEXT=NONE
22633     XGETTEXT=:
22634     INTLLIBS=
22635
22636     if test "${ac_cv_header_libintl_h+set}" = set; then
22637   { echo "$as_me:$LINENO: checking for libintl.h" >&5
22638 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22639 if test "${ac_cv_header_libintl_h+set}" = set; then
22640   echo $ECHO_N "(cached) $ECHO_C" >&6
22641 fi
22642 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22644 else
22645   # Is the header compilable?
22646 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
22647 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 $ac_includes_default
22655 #include <libintl.h>
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661   *) ac_try_echo=$ac_try;;
22662 esac
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664   (eval "$ac_compile") 2>conftest.er1
22665   ac_status=$?
22666   grep -v '^ *+' conftest.er1 >conftest.err
22667   rm -f conftest.er1
22668   cat conftest.err >&5
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } && {
22671          test -z "$ac_c_werror_flag" ||
22672          test ! -s conftest.err
22673        } && test -s conftest.$ac_objext; then
22674   ac_header_compiler=yes
22675 else
22676   echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679         ac_header_compiler=no
22680 fi
22681
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22684 echo "${ECHO_T}$ac_header_compiler" >&6; }
22685
22686 # Is the header present?
22687 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
22688 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 #include <libintl.h>
22696 _ACEOF
22697 if { (ac_try="$ac_cpp conftest.$ac_ext"
22698 case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22704   ac_status=$?
22705   grep -v '^ *+' conftest.er1 >conftest.err
22706   rm -f conftest.er1
22707   cat conftest.err >&5
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } >/dev/null && {
22710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22711          test ! -s conftest.err
22712        }; then
22713   ac_header_preproc=yes
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718   ac_header_preproc=no
22719 fi
22720
22721 rm -f conftest.err conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22723 echo "${ECHO_T}$ac_header_preproc" >&6; }
22724
22725 # So?  What about this header?
22726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22727   yes:no: )
22728     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22729 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22730     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22731 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22732     ac_header_preproc=yes
22733     ;;
22734   no:yes:* )
22735     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22736 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22737     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
22738 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
22739     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22740 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22741     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
22742 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22743     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22744 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22745     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22746 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22747
22748     ;;
22749 esac
22750 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22751 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22752 if test "${ac_cv_header_libintl_h+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   ac_cv_header_libintl_h=$ac_header_preproc
22756 fi
22757 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22758 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22759
22760 fi
22761 if test $ac_cv_header_libintl_h = yes; then
22762   gt_cv_func_dgettext_libintl="no"
22763       libintl_extra_libs=""
22764
22765       #
22766       # First check in libc
22767       #
22768       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22769 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
22770 if test "${gt_cv_func_ngettext_libc+set}" = set; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779
22780 #include <libintl.h>
22781
22782 int
22783 main ()
22784 {
22785 return !ngettext ("","", 1)
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_link") 2>conftest.er1
22798   ac_status=$?
22799   grep -v '^ *+' conftest.er1 >conftest.err
22800   rm -f conftest.er1
22801   cat conftest.err >&5
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); } && {
22804          test -z "$ac_c_werror_flag" ||
22805          test ! -s conftest.err
22806        } && test -s conftest$ac_exeext &&
22807        $as_test_x conftest$ac_exeext; then
22808   gt_cv_func_ngettext_libc=yes
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813         gt_cv_func_ngettext_libc=no
22814 fi
22815
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817       conftest$ac_exeext conftest.$ac_ext
22818
22819 fi
22820 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22821 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
22822
22823       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22824               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22825 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
22826 if test "${gt_cv_func_dgettext_libc+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829   cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 #include <libintl.h>
22837
22838 int
22839 main ()
22840 {
22841 return !dgettext ("","")
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_link") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } && {
22860          test -z "$ac_c_werror_flag" ||
22861          test ! -s conftest.err
22862        } && test -s conftest$ac_exeext &&
22863        $as_test_x conftest$ac_exeext; then
22864   gt_cv_func_dgettext_libc=yes
22865 else
22866   echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869         gt_cv_func_dgettext_libc=no
22870 fi
22871
22872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22873       conftest$ac_exeext conftest.$ac_ext
22874
22875 fi
22876 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
22877 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
22878       fi
22879
22880       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22881
22882 for ac_func in bind_textdomain_codeset
22883 do
22884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22888   echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890   cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22898 #define $ac_func innocuous_$ac_func
22899
22900 /* System header to define __stub macros and hopefully few prototypes,
22901     which can conflict with char $ac_func (); below.
22902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903     <limits.h> exists even on freestanding compilers.  */
22904
22905 #ifdef __STDC__
22906 # include <limits.h>
22907 #else
22908 # include <assert.h>
22909 #endif
22910
22911 #undef $ac_func
22912
22913 /* Override any GCC internal prototype to avoid an error.
22914    Use char because int might match the return type of a GCC
22915    builtin and then its argument prototype would still apply.  */
22916 #ifdef __cplusplus
22917 extern "C"
22918 #endif
22919 char $ac_func ();
22920 /* The GNU C library defines this for functions which it implements
22921     to always fail with ENOSYS.  Some functions are actually named
22922     something starting with __ and the normal name is an alias.  */
22923 #if defined __stub_$ac_func || defined __stub___$ac_func
22924 choke me
22925 #endif
22926
22927 int
22928 main ()
22929 {
22930 return $ac_func ();
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939   *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942   (eval "$ac_link") 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } && {
22949          test -z "$ac_c_werror_flag" ||
22950          test ! -s conftest.err
22951        } && test -s conftest$ac_exeext &&
22952        $as_test_x conftest$ac_exeext; then
22953   eval "$as_ac_var=yes"
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958         eval "$as_ac_var=no"
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962       conftest$ac_exeext conftest.$ac_ext
22963 fi
22964 ac_res=`eval echo '${'$as_ac_var'}'`
22965                { echo "$as_me:$LINENO: result: $ac_res" >&5
22966 echo "${ECHO_T}$ac_res" >&6; }
22967 if test `eval echo '${'$as_ac_var'}'` = yes; then
22968   cat >>confdefs.h <<_ACEOF
22969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22970 _ACEOF
22971
22972 fi
22973 done
22974
22975       fi
22976
22977       #
22978       # If we don't have everything we want, check in libintl
22979       #
22980       if test "$gt_cv_func_dgettext_libc" != "yes" \
22981          || test "$gt_cv_func_ngettext_libc" != "yes" \
22982          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
22983
22984         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
22985 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
22986 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
22987   echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989   ac_check_lib_save_LIBS=$LIBS
22990 LIBS="-lintl  $LIBS"
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997
22998 /* Override any GCC internal prototype to avoid an error.
22999    Use char because int might match the return type of a GCC
23000    builtin and then its argument prototype would still apply.  */
23001 #ifdef __cplusplus
23002 extern "C"
23003 #endif
23004 char bindtextdomain ();
23005 int
23006 main ()
23007 {
23008 return bindtextdomain ();
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_link") 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } && {
23027          test -z "$ac_c_werror_flag" ||
23028          test ! -s conftest.err
23029        } && test -s conftest$ac_exeext &&
23030        $as_test_x conftest$ac_exeext; then
23031   ac_cv_lib_intl_bindtextdomain=yes
23032 else
23033   echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036         ac_cv_lib_intl_bindtextdomain=no
23037 fi
23038
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040       conftest$ac_exeext conftest.$ac_ext
23041 LIBS=$ac_check_lib_save_LIBS
23042 fi
23043 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23044 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23045 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23046   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23047 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23048 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23049   echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051   ac_check_lib_save_LIBS=$LIBS
23052 LIBS="-lintl  $LIBS"
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059
23060 /* Override any GCC internal prototype to avoid an error.
23061    Use char because int might match the return type of a GCC
23062    builtin and then its argument prototype would still apply.  */
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 char ngettext ();
23067 int
23068 main ()
23069 {
23070 return ngettext ();
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082   (eval "$ac_link") 2>conftest.er1
23083   ac_status=$?
23084   grep -v '^ *+' conftest.er1 >conftest.err
23085   rm -f conftest.er1
23086   cat conftest.err >&5
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); } && {
23089          test -z "$ac_c_werror_flag" ||
23090          test ! -s conftest.err
23091        } && test -s conftest$ac_exeext &&
23092        $as_test_x conftest$ac_exeext; then
23093   ac_cv_lib_intl_ngettext=yes
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098         ac_cv_lib_intl_ngettext=no
23099 fi
23100
23101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23102       conftest$ac_exeext conftest.$ac_ext
23103 LIBS=$ac_check_lib_save_LIBS
23104 fi
23105 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23106 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23107 if test $ac_cv_lib_intl_ngettext = yes; then
23108   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23109 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23110 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lintl  $LIBS"
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121
23122 /* Override any GCC internal prototype to avoid an error.
23123    Use char because int might match the return type of a GCC
23124    builtin and then its argument prototype would still apply.  */
23125 #ifdef __cplusplus
23126 extern "C"
23127 #endif
23128 char dgettext ();
23129 int
23130 main ()
23131 {
23132 return dgettext ();
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144   (eval "$ac_link") 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } && {
23151          test -z "$ac_c_werror_flag" ||
23152          test ! -s conftest.err
23153        } && test -s conftest$ac_exeext &&
23154        $as_test_x conftest$ac_exeext; then
23155   ac_cv_lib_intl_dgettext=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160         ac_cv_lib_intl_dgettext=no
23161 fi
23162
23163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23164       conftest$ac_exeext conftest.$ac_ext
23165 LIBS=$ac_check_lib_save_LIBS
23166 fi
23167 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23168 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23169 if test $ac_cv_lib_intl_dgettext = yes; then
23170   gt_cv_func_dgettext_libintl=yes
23171 fi
23172
23173 fi
23174
23175 fi
23176
23177
23178         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23179           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23180 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
23181           { echo "$as_me:$LINENO: result: " >&5
23182 echo "${ECHO_T}" >&6; }
23183           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23184 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23185 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-lintl -liconv $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196
23197 /* Override any GCC internal prototype to avoid an error.
23198    Use char because int might match the return type of a GCC
23199    builtin and then its argument prototype would still apply.  */
23200 #ifdef __cplusplus
23201 extern "C"
23202 #endif
23203 char ngettext ();
23204 int
23205 main ()
23206 {
23207 return ngettext ();
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_link") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } && {
23226          test -z "$ac_c_werror_flag" ||
23227          test ! -s conftest.err
23228        } && test -s conftest$ac_exeext &&
23229        $as_test_x conftest$ac_exeext; then
23230   ac_cv_lib_intl_ngettext=yes
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235         ac_cv_lib_intl_ngettext=no
23236 fi
23237
23238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23239       conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_lib_save_LIBS
23241 fi
23242 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23243 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23244 if test $ac_cv_lib_intl_ngettext = yes; then
23245   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23246 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
23247 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-lintl -liconv $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258
23259 /* Override any GCC internal prototype to avoid an error.
23260    Use char because int might match the return type of a GCC
23261    builtin and then its argument prototype would still apply.  */
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 char dcgettext ();
23266 int
23267 main ()
23268 {
23269 return dcgettext ();
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (ac_try="$ac_link"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_link") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } && {
23288          test -z "$ac_c_werror_flag" ||
23289          test ! -s conftest.err
23290        } && test -s conftest$ac_exeext &&
23291        $as_test_x conftest$ac_exeext; then
23292   ac_cv_lib_intl_dcgettext=yes
23293 else
23294   echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297         ac_cv_lib_intl_dcgettext=no
23298 fi
23299
23300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23301       conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23303 fi
23304 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23305 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
23306 if test $ac_cv_lib_intl_dcgettext = yes; then
23307   gt_cv_func_dgettext_libintl=yes
23308                         libintl_extra_libs=-liconv
23309 else
23310   :
23311 fi
23312
23313 else
23314   :
23315 fi
23316
23317         fi
23318
23319         #
23320         # If we found libintl, then check in it for bind_textdomain_codeset();
23321         # we'll prefer libc if neither have bind_textdomain_codeset(),
23322         # and both have dgettext and ngettext
23323         #
23324         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23325           glib_save_LIBS="$LIBS"
23326           LIBS="$LIBS -lintl $libintl_extra_libs"
23327           unset ac_cv_func_bind_textdomain_codeset
23328
23329 for ac_func in bind_textdomain_codeset
23330 do
23331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23335   echo $ECHO_N "(cached) $ECHO_C" >&6
23336 else
23337   cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23345 #define $ac_func innocuous_$ac_func
23346
23347 /* System header to define __stub macros and hopefully few prototypes,
23348     which can conflict with char $ac_func (); below.
23349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23350     <limits.h> exists even on freestanding compilers.  */
23351
23352 #ifdef __STDC__
23353 # include <limits.h>
23354 #else
23355 # include <assert.h>
23356 #endif
23357
23358 #undef $ac_func
23359
23360 /* Override any GCC internal prototype to avoid an error.
23361    Use char because int might match the return type of a GCC
23362    builtin and then its argument prototype would still apply.  */
23363 #ifdef __cplusplus
23364 extern "C"
23365 #endif
23366 char $ac_func ();
23367 /* The GNU C library defines this for functions which it implements
23368     to always fail with ENOSYS.  Some functions are actually named
23369     something starting with __ and the normal name is an alias.  */
23370 #if defined __stub_$ac_func || defined __stub___$ac_func
23371 choke me
23372 #endif
23373
23374 int
23375 main ()
23376 {
23377 return $ac_func ();
23378   ;
23379   return 0;
23380 }
23381 _ACEOF
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386   *) ac_try_echo=$ac_try;;
23387 esac
23388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389   (eval "$ac_link") 2>conftest.er1
23390   ac_status=$?
23391   grep -v '^ *+' conftest.er1 >conftest.err
23392   rm -f conftest.er1
23393   cat conftest.err >&5
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); } && {
23396          test -z "$ac_c_werror_flag" ||
23397          test ! -s conftest.err
23398        } && test -s conftest$ac_exeext &&
23399        $as_test_x conftest$ac_exeext; then
23400   eval "$as_ac_var=yes"
23401 else
23402   echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23404
23405         eval "$as_ac_var=no"
23406 fi
23407
23408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409       conftest$ac_exeext conftest.$ac_ext
23410 fi
23411 ac_res=`eval echo '${'$as_ac_var'}'`
23412                { echo "$as_me:$LINENO: result: $ac_res" >&5
23413 echo "${ECHO_T}$ac_res" >&6; }
23414 if test `eval echo '${'$as_ac_var'}'` = yes; then
23415   cat >>confdefs.h <<_ACEOF
23416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23417 _ACEOF
23418
23419 fi
23420 done
23421
23422           LIBS="$glib_save_LIBS"
23423
23424           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23425             gt_cv_func_dgettext_libc=no
23426           else
23427             if test "$gt_cv_func_dgettext_libc" = "yes" \
23428                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
23429               gt_cv_func_dgettext_libintl=no
23430             fi
23431           fi
23432         fi
23433       fi
23434
23435       if test "$gt_cv_func_dgettext_libc" = "yes" \
23436         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
23437         gt_cv_have_gettext=yes
23438       fi
23439
23440       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23441         INTLLIBS="-lintl $libintl_extra_libs"
23442       fi
23443
23444       if test "$gt_cv_have_gettext" = "yes"; then
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_GETTEXT 1
23448 _ACEOF
23449
23450         # Extract the first word of "msgfmt", so it can be a program name with args.
23451 set dummy msgfmt; ac_word=$2
23452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23454 if test "${ac_cv_path_MSGFMT+set}" = set; then
23455   echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457   case "$MSGFMT" in
23458   /*)
23459   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23460   ;;
23461   *)
23462   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23463   for ac_dir in $PATH; do
23464     test -z "$ac_dir" && ac_dir=.
23465     if test -f $ac_dir/$ac_word; then
23466       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23467         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23468         break
23469       fi
23470     fi
23471   done
23472   IFS="$ac_save_ifs"
23473   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23474   ;;
23475 esac
23476 fi
23477 MSGFMT="$ac_cv_path_MSGFMT"
23478 if test "$MSGFMT" != "no"; then
23479   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23480 echo "${ECHO_T}$MSGFMT" >&6; }
23481 else
23482   { echo "$as_me:$LINENO: result: no" >&5
23483 echo "${ECHO_T}no" >&6; }
23484 fi
23485         if test "$MSGFMT" != "no"; then
23486           glib_save_LIBS="$LIBS"
23487           LIBS="$LIBS $INTLLIBS"
23488
23489 for ac_func in dcgettext
23490 do
23491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23495   echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23497   cat >conftest.$ac_ext <<_ACEOF
23498 /* confdefs.h.  */
23499 _ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h.  */
23503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23505 #define $ac_func innocuous_$ac_func
23506
23507 /* System header to define __stub macros and hopefully few prototypes,
23508     which can conflict with char $ac_func (); below.
23509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23510     <limits.h> exists even on freestanding compilers.  */
23511
23512 #ifdef __STDC__
23513 # include <limits.h>
23514 #else
23515 # include <assert.h>
23516 #endif
23517
23518 #undef $ac_func
23519
23520 /* Override any GCC internal prototype to avoid an error.
23521    Use char because int might match the return type of a GCC
23522    builtin and then its argument prototype would still apply.  */
23523 #ifdef __cplusplus
23524 extern "C"
23525 #endif
23526 char $ac_func ();
23527 /* The GNU C library defines this for functions which it implements
23528     to always fail with ENOSYS.  Some functions are actually named
23529     something starting with __ and the normal name is an alias.  */
23530 #if defined __stub_$ac_func || defined __stub___$ac_func
23531 choke me
23532 #endif
23533
23534 int
23535 main ()
23536 {
23537 return $ac_func ();
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546   *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549   (eval "$ac_link") 2>conftest.er1
23550   ac_status=$?
23551   grep -v '^ *+' conftest.er1 >conftest.err
23552   rm -f conftest.er1
23553   cat conftest.err >&5
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } && {
23556          test -z "$ac_c_werror_flag" ||
23557          test ! -s conftest.err
23558        } && test -s conftest$ac_exeext &&
23559        $as_test_x conftest$ac_exeext; then
23560   eval "$as_ac_var=yes"
23561 else
23562   echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23564
23565         eval "$as_ac_var=no"
23566 fi
23567
23568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23569       conftest$ac_exeext conftest.$ac_ext
23570 fi
23571 ac_res=`eval echo '${'$as_ac_var'}'`
23572                { echo "$as_me:$LINENO: result: $ac_res" >&5
23573 echo "${ECHO_T}$ac_res" >&6; }
23574 if test `eval echo '${'$as_ac_var'}'` = yes; then
23575   cat >>confdefs.h <<_ACEOF
23576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23577 _ACEOF
23578
23579 fi
23580 done
23581
23582           MSGFMT_OPTS=
23583           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23584 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
23585           cat >conftest.foo <<_ACEOF
23586
23587 msgid ""
23588 msgstr ""
23589 "Content-Type: text/plain; charset=UTF-8\n"
23590 "Project-Id-Version: test 1.0\n"
23591 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
23592 "Last-Translator: test <foo@bar.xx>\n"
23593 "Language-Team: C <LL@li.org>\n"
23594 "MIME-Version: 1.0\n"
23595 "Content-Transfer-Encoding: 8bit\n"
23596
23597 _ACEOF
23598 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
23599   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
23600   ac_status=$?
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); }; then
23603   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
23604 echo "${ECHO_T}yes" >&6; }
23605 else { echo "$as_me:$LINENO: result: no" >&5
23606 echo "${ECHO_T}no" >&6; }
23607 echo "$as_me: failed input was:" >&5
23608 sed 's/^/| /' conftest.foo >&5
23609 fi
23610
23611           # Extract the first word of "gmsgfmt", so it can be a program name with args.
23612 set dummy gmsgfmt; ac_word=$2
23613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23615 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23616   echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618   case $GMSGFMT in
23619   [\\/]* | ?:[\\/]*)
23620   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23621   ;;
23622   *)
23623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23624 for as_dir in $PATH
23625 do
23626   IFS=$as_save_IFS
23627   test -z "$as_dir" && as_dir=.
23628   for ac_exec_ext in '' $ac_executable_extensions; do
23629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23630     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23632     break 2
23633   fi
23634 done
23635 done
23636 IFS=$as_save_IFS
23637
23638   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23639   ;;
23640 esac
23641 fi
23642 GMSGFMT=$ac_cv_path_GMSGFMT
23643 if test -n "$GMSGFMT"; then
23644   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23645 echo "${ECHO_T}$GMSGFMT" >&6; }
23646 else
23647   { echo "$as_me:$LINENO: result: no" >&5
23648 echo "${ECHO_T}no" >&6; }
23649 fi
23650
23651
23652           # Extract the first word of "xgettext", so it can be a program name with args.
23653 set dummy xgettext; ac_word=$2
23654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23656 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23657   echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659   case "$XGETTEXT" in
23660   /*)
23661   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23662   ;;
23663   *)
23664   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23665   for ac_dir in $PATH; do
23666     test -z "$ac_dir" && ac_dir=.
23667     if test -f $ac_dir/$ac_word; then
23668       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23669         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23670         break
23671       fi
23672     fi
23673   done
23674   IFS="$ac_save_ifs"
23675   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23676   ;;
23677 esac
23678 fi
23679 XGETTEXT="$ac_cv_path_XGETTEXT"
23680 if test "$XGETTEXT" != ":"; then
23681   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23682 echo "${ECHO_T}$XGETTEXT" >&6; }
23683 else
23684   { echo "$as_me:$LINENO: result: no" >&5
23685 echo "${ECHO_T}no" >&6; }
23686 fi
23687
23688           cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h.  */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h.  */
23694
23695 int
23696 main ()
23697 {
23698 extern int _nl_msg_cat_cntr;
23699                          return _nl_msg_cat_cntr
23700   ;
23701   return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708   *) ac_try_echo=$ac_try;;
23709 esac
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711   (eval "$ac_link") 2>conftest.er1
23712   ac_status=$?
23713   grep -v '^ *+' conftest.er1 >conftest.err
23714   rm -f conftest.er1
23715   cat conftest.err >&5
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } && {
23718          test -z "$ac_c_werror_flag" ||
23719          test ! -s conftest.err
23720        } && test -s conftest$ac_exeext &&
23721        $as_test_x conftest$ac_exeext; then
23722   CATOBJEXT=.gmo
23723              DATADIRNAME=share
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728         case $host in
23729             *-*-solaris*)
23730                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
23731 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
23732 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
23733   echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23735   cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
23742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23743 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
23744
23745 /* System header to define __stub macros and hopefully few prototypes,
23746     which can conflict with char bind_textdomain_codeset (); below.
23747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23748     <limits.h> exists even on freestanding compilers.  */
23749
23750 #ifdef __STDC__
23751 # include <limits.h>
23752 #else
23753 # include <assert.h>
23754 #endif
23755
23756 #undef bind_textdomain_codeset
23757
23758 /* Override any GCC internal prototype to avoid an error.
23759    Use char because int might match the return type of a GCC
23760    builtin and then its argument prototype would still apply.  */
23761 #ifdef __cplusplus
23762 extern "C"
23763 #endif
23764 char bind_textdomain_codeset ();
23765 /* The GNU C library defines this for functions which it implements
23766     to always fail with ENOSYS.  Some functions are actually named
23767     something starting with __ and the normal name is an alias.  */
23768 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
23769 choke me
23770 #endif
23771
23772 int
23773 main ()
23774 {
23775 return bind_textdomain_codeset ();
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784   *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787   (eval "$ac_link") 2>conftest.er1
23788   ac_status=$?
23789   grep -v '^ *+' conftest.er1 >conftest.err
23790   rm -f conftest.er1
23791   cat conftest.err >&5
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } && {
23794          test -z "$ac_c_werror_flag" ||
23795          test ! -s conftest.err
23796        } && test -s conftest$ac_exeext &&
23797        $as_test_x conftest$ac_exeext; then
23798   ac_cv_func_bind_textdomain_codeset=yes
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803         ac_cv_func_bind_textdomain_codeset=no
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807       conftest$ac_exeext conftest.$ac_ext
23808 fi
23809 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
23810 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
23811 if test $ac_cv_func_bind_textdomain_codeset = yes; then
23812   CATOBJEXT=.gmo
23813                DATADIRNAME=share
23814 else
23815   CATOBJEXT=.mo
23816                DATADIRNAME=lib
23817 fi
23818
23819             ;;
23820             *)
23821             CATOBJEXT=.mo
23822             DATADIRNAME=lib
23823             ;;
23824             esac
23825 fi
23826
23827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23828       conftest$ac_exeext conftest.$ac_ext
23829           LIBS="$glib_save_LIBS"
23830           INSTOBJEXT=.mo
23831         else
23832           gt_cv_have_gettext=no
23833         fi
23834       fi
23835
23836 fi
23837
23838
23839
23840     if test "$gt_cv_have_gettext" = "yes" ; then
23841
23842 cat >>confdefs.h <<\_ACEOF
23843 #define ENABLE_NLS 1
23844 _ACEOF
23845
23846     fi
23847
23848         if test "$XGETTEXT" != ":"; then
23849                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23850         : ;
23851       else
23852         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23853 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
23854         XGETTEXT=":"
23855       fi
23856     fi
23857
23858     # We need to process the po/ directory.
23859     POSUB=po
23860
23861     ac_config_commands="$ac_config_commands default-2"
23862
23863
23864                 for lang in $ALL_LINGUAS; do
23865       GMOFILES="$GMOFILES $lang.gmo"
23866       POFILES="$POFILES $lang.po"
23867     done
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881    if test "$gt_cv_have_gettext" = "yes"; then
23882      if test "x$ALL_LINGUAS" = "x"; then
23883        LINGUAS=
23884      else
23885        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
23886 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
23887        NEW_LINGUAS=
23888        for presentlang in $ALL_LINGUAS; do
23889          useit=no
23890          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
23891            desiredlanguages="$LINGUAS"
23892          else
23893            desiredlanguages="$ALL_LINGUAS"
23894          fi
23895          for desiredlang in $desiredlanguages; do
23896            # Use the presentlang catalog if desiredlang is
23897            #   a. equal to presentlang, or
23898            #   b. a variant of presentlang (because in this case,
23899            #      presentlang can be used as a fallback for messages
23900            #      which are not translated in the desiredlang catalog).
23901            case "$desiredlang" in
23902              "$presentlang"*) useit=yes;;
23903            esac
23904          done
23905          if test $useit = yes; then
23906            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
23907          fi
23908        done
23909        LINGUAS=$NEW_LINGUAS
23910        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
23911 echo "${ECHO_T}$LINGUAS" >&6; }
23912      fi
23913
23914           if test -n "$LINGUAS"; then
23915        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
23916      fi
23917    fi
23918
23919             MKINSTALLDIRS=
23920    if test -n "$ac_aux_dir"; then
23921      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
23922    fi
23923    if test -z "$MKINSTALLDIRS"; then
23924      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23925    fi
23926
23927
23928          test -d po || mkdir po
23929    if test "x$srcdir" != "x."; then
23930      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
23931        posrcprefix="$srcdir/"
23932      else
23933        posrcprefix="../$srcdir/"
23934      fi
23935    else
23936      posrcprefix="../"
23937    fi
23938    rm -f po/POTFILES
23939    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
23940         < $srcdir/po/POTFILES.in > po/POTFILES
23941
23942
23943 ac_config_files="$ac_config_files Makefile src/Makefile"
23944
23945
23946 cat >confcache <<\_ACEOF
23947 # This file is a shell script that caches the results of configure
23948 # tests run on this system so they can be shared between configure
23949 # scripts and configure runs, see configure's option --config-cache.
23950 # It is not useful on other systems.  If it contains results you don't
23951 # want to keep, you may remove or edit it.
23952 #
23953 # config.status only pays attention to the cache file if you give it
23954 # the --recheck option to rerun configure.
23955 #
23956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23958 # following values.
23959
23960 _ACEOF
23961
23962 # The following way of writing the cache mishandles newlines in values,
23963 # but we know of no workaround that is simple, portable, and efficient.
23964 # So, we kill variables containing newlines.
23965 # Ultrix sh set writes to stderr and can't be redirected directly,
23966 # and sets the high bit in the cache file unless we assign to the vars.
23967 (
23968   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23969     eval ac_val=\$$ac_var
23970     case $ac_val in #(
23971     *${as_nl}*)
23972       case $ac_var in #(
23973       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23975       esac
23976       case $ac_var in #(
23977       _ | IFS | as_nl) ;; #(
23978       *) $as_unset $ac_var ;;
23979       esac ;;
23980     esac
23981   done
23982
23983   (set) 2>&1 |
23984     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23985     *${as_nl}ac_space=\ *)
23986       # `set' does not quote correctly, so add quotes (double-quote
23987       # substitution turns \\\\ into \\, and sed turns \\ into \).
23988       sed -n \
23989         "s/'/'\\\\''/g;
23990           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23991       ;; #(
23992     *)
23993       # `set' quotes correctly as required by POSIX, so do not add quotes.
23994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23995       ;;
23996     esac |
23997     sort
23998 ) |
23999   sed '
24000      /^ac_cv_env_/b end
24001      t clear
24002      :clear
24003      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24004      t end
24005      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24006      :end' >>confcache
24007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24008   if test -w "$cache_file"; then
24009     test "x$cache_file" != "x/dev/null" &&
24010       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24011 echo "$as_me: updating cache $cache_file" >&6;}
24012     cat confcache >$cache_file
24013   else
24014     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24015 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24016   fi
24017 fi
24018 rm -f confcache
24019
24020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24021 # Let make expand exec_prefix.
24022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24023
24024 DEFS=-DHAVE_CONFIG_H
24025
24026 ac_libobjs=
24027 ac_ltlibobjs=
24028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24029   # 1. Remove the extension, and $U if already installed.
24030   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24031   ac_i=`echo "$ac_i" | sed "$ac_script"`
24032   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24033   #    will be set to the directory where LIBOBJS objects are built.
24034   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24035   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24036 done
24037 LIBOBJS=$ac_libobjs
24038
24039 LTLIBOBJS=$ac_ltlibobjs
24040
24041
24042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24043   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24044 Usually this means the macro was only invoked conditionally." >&5
24045 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24046 Usually this means the macro was only invoked conditionally." >&2;}
24047    { (exit 1); exit 1; }; }
24048 fi
24049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24050   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24051 Usually this means the macro was only invoked conditionally." >&5
24052 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24053 Usually this means the macro was only invoked conditionally." >&2;}
24054    { (exit 1); exit 1; }; }
24055 fi
24056 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24057   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24058 Usually this means the macro was only invoked conditionally." >&5
24059 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24060 Usually this means the macro was only invoked conditionally." >&2;}
24061    { (exit 1); exit 1; }; }
24062 fi
24063 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
24064   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
24065 Usually this means the macro was only invoked conditionally." >&5
24066 echo "$as_me: error: conditional \"DEBUG\" was never defined.
24067 Usually this means the macro was only invoked conditionally." >&2;}
24068    { (exit 1); exit 1; }; }
24069 fi
24070
24071 : ${CONFIG_STATUS=./config.status}
24072 ac_clean_files_save=$ac_clean_files
24073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24076 cat >$CONFIG_STATUS <<_ACEOF
24077 #! $SHELL
24078 # Generated by $as_me.
24079 # Run this file to recreate the current configuration.
24080 # Compiler output produced by configure, useful for debugging
24081 # configure, is in config.log if it exists.
24082
24083 debug=false
24084 ac_cs_recheck=false
24085 ac_cs_silent=false
24086 SHELL=\${CONFIG_SHELL-$SHELL}
24087 _ACEOF
24088
24089 cat >>$CONFIG_STATUS <<\_ACEOF
24090 ## --------------------- ##
24091 ## M4sh Initialization.  ##
24092 ## --------------------- ##
24093
24094 # Be more Bourne compatible
24095 DUALCASE=1; export DUALCASE # for MKS sh
24096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24097   emulate sh
24098   NULLCMD=:
24099   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24100   # is contrary to our usage.  Disable this feature.
24101   alias -g '${1+"$@"}'='"$@"'
24102   setopt NO_GLOB_SUBST
24103 else
24104   case `(set -o) 2>/dev/null` in
24105   *posix*) set -o posix ;;
24106 esac
24107
24108 fi
24109
24110
24111
24112
24113 # PATH needs CR
24114 # Avoid depending upon Character Ranges.
24115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24118 as_cr_digits='0123456789'
24119 as_cr_alnum=$as_cr_Letters$as_cr_digits
24120
24121 # The user is always right.
24122 if test "${PATH_SEPARATOR+set}" != set; then
24123   echo "#! /bin/sh" >conf$$.sh
24124   echo  "exit 0"   >>conf$$.sh
24125   chmod +x conf$$.sh
24126   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24127     PATH_SEPARATOR=';'
24128   else
24129     PATH_SEPARATOR=:
24130   fi
24131   rm -f conf$$.sh
24132 fi
24133
24134 # Support unset when possible.
24135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24136   as_unset=unset
24137 else
24138   as_unset=false
24139 fi
24140
24141
24142 # IFS
24143 # We need space, tab and new line, in precisely that order.  Quoting is
24144 # there to prevent editors from complaining about space-tab.
24145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24146 # splitting by setting IFS to empty value.)
24147 as_nl='
24148 '
24149 IFS=" ""        $as_nl"
24150
24151 # Find who we are.  Look in the path if we contain no directory separator.
24152 case $0 in
24153   *[\\/]* ) as_myself=$0 ;;
24154   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24155 for as_dir in $PATH
24156 do
24157   IFS=$as_save_IFS
24158   test -z "$as_dir" && as_dir=.
24159   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24160 done
24161 IFS=$as_save_IFS
24162
24163      ;;
24164 esac
24165 # We did not find ourselves, most probably we were run as `sh COMMAND'
24166 # in which case we are not to be found in the path.
24167 if test "x$as_myself" = x; then
24168   as_myself=$0
24169 fi
24170 if test ! -f "$as_myself"; then
24171   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24172   { (exit 1); exit 1; }
24173 fi
24174
24175 # Work around bugs in pre-3.0 UWIN ksh.
24176 for as_var in ENV MAIL MAILPATH
24177 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24178 done
24179 PS1='$ '
24180 PS2='> '
24181 PS4='+ '
24182
24183 # NLS nuisances.
24184 for as_var in \
24185   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24186   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24187   LC_TELEPHONE LC_TIME
24188 do
24189   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24190     eval $as_var=C; export $as_var
24191   else
24192     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24193   fi
24194 done
24195
24196 # Required to use basename.
24197 if expr a : '\(a\)' >/dev/null 2>&1 &&
24198    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24199   as_expr=expr
24200 else
24201   as_expr=false
24202 fi
24203
24204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24205   as_basename=basename
24206 else
24207   as_basename=false
24208 fi
24209
24210
24211 # Name of the executable.
24212 as_me=`$as_basename -- "$0" ||
24213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24214          X"$0" : 'X\(//\)$' \| \
24215          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24216 echo X/"$0" |
24217     sed '/^.*\/\([^/][^/]*\)\/*$/{
24218             s//\1/
24219             q
24220           }
24221           /^X\/\(\/\/\)$/{
24222             s//\1/
24223             q
24224           }
24225           /^X\/\(\/\).*/{
24226             s//\1/
24227             q
24228           }
24229           s/.*/./; q'`
24230
24231 # CDPATH.
24232 $as_unset CDPATH
24233
24234
24235
24236   as_lineno_1=$LINENO
24237   as_lineno_2=$LINENO
24238   test "x$as_lineno_1" != "x$as_lineno_2" &&
24239   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24240
24241   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24242   # uniformly replaced by the line number.  The first 'sed' inserts a
24243   # line-number line after each line using $LINENO; the second 'sed'
24244   # does the real work.  The second script uses 'N' to pair each
24245   # line-number line with the line containing $LINENO, and appends
24246   # trailing '-' during substitution so that $LINENO is not a special
24247   # case at line end.
24248   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24249   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24250   # E. McMahon (1931-1989) for sed's syntax.  :-)
24251   sed -n '
24252     p
24253     /[$]LINENO/=
24254   ' <$as_myself |
24255     sed '
24256       s/[$]LINENO.*/&-/
24257       t lineno
24258       b
24259       :lineno
24260       N
24261       :loop
24262       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24263       t loop
24264       s/-\n.*//
24265     ' >$as_me.lineno &&
24266   chmod +x "$as_me.lineno" ||
24267     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24268    { (exit 1); exit 1; }; }
24269
24270   # Don't try to exec as it changes $[0], causing all sort of problems
24271   # (the dirname of $[0] is not the place where we might find the
24272   # original and so on.  Autoconf is especially sensitive to this).
24273   . "./$as_me.lineno"
24274   # Exit status is that of the last command.
24275   exit
24276 }
24277
24278
24279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24280   as_dirname=dirname
24281 else
24282   as_dirname=false
24283 fi
24284
24285 ECHO_C= ECHO_N= ECHO_T=
24286 case `echo -n x` in
24287 -n*)
24288   case `echo 'x\c'` in
24289   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24290   *)   ECHO_C='\c';;
24291   esac;;
24292 *)
24293   ECHO_N='-n';;
24294 esac
24295
24296 if expr a : '\(a\)' >/dev/null 2>&1 &&
24297    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24298   as_expr=expr
24299 else
24300   as_expr=false
24301 fi
24302
24303 rm -f conf$$ conf$$.exe conf$$.file
24304 if test -d conf$$.dir; then
24305   rm -f conf$$.dir/conf$$.file
24306 else
24307   rm -f conf$$.dir
24308   mkdir conf$$.dir
24309 fi
24310 echo >conf$$.file
24311 if ln -s conf$$.file conf$$ 2>/dev/null; then
24312   as_ln_s='ln -s'
24313   # ... but there are two gotchas:
24314   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24315   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24316   # In both cases, we have to default to `cp -p'.
24317   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24318     as_ln_s='cp -p'
24319 elif ln conf$$.file conf$$ 2>/dev/null; then
24320   as_ln_s=ln
24321 else
24322   as_ln_s='cp -p'
24323 fi
24324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24325 rmdir conf$$.dir 2>/dev/null
24326
24327 if mkdir -p . 2>/dev/null; then
24328   as_mkdir_p=:
24329 else
24330   test -d ./-p && rmdir ./-p
24331   as_mkdir_p=false
24332 fi
24333
24334 if test -x / >/dev/null 2>&1; then
24335   as_test_x='test -x'
24336 else
24337   if ls -dL / >/dev/null 2>&1; then
24338     as_ls_L_option=L
24339   else
24340     as_ls_L_option=
24341   fi
24342   as_test_x='
24343     eval sh -c '\''
24344       if test -d "$1"; then
24345         test -d "$1/.";
24346       else
24347         case $1 in
24348         -*)set "./$1";;
24349         esac;
24350         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24351         ???[sx]*):;;*)false;;esac;fi
24352     '\'' sh
24353   '
24354 fi
24355 as_executable_p=$as_test_x
24356
24357 # Sed expression to map a string onto a valid CPP name.
24358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24359
24360 # Sed expression to map a string onto a valid variable name.
24361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24362
24363
24364 exec 6>&1
24365
24366 # Save the log message, to keep $[0] and so on meaningful, and to
24367 # report actual input values of CONFIG_FILES etc. instead of their
24368 # values after options handling.
24369 ac_log="
24370 This file was extended by osso-statusbar-sync $as_me 0.1, which was
24371 generated by GNU Autoconf 2.61.  Invocation command line was
24372
24373   CONFIG_FILES    = $CONFIG_FILES
24374   CONFIG_HEADERS  = $CONFIG_HEADERS
24375   CONFIG_LINKS    = $CONFIG_LINKS
24376   CONFIG_COMMANDS = $CONFIG_COMMANDS
24377   $ $0 $@
24378
24379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24380 "
24381
24382 _ACEOF
24383
24384 cat >>$CONFIG_STATUS <<_ACEOF
24385 # Files that config.status was made for.
24386 config_files="$ac_config_files"
24387 config_headers="$ac_config_headers"
24388 config_commands="$ac_config_commands"
24389
24390 _ACEOF
24391
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24393 ac_cs_usage="\
24394 \`$as_me' instantiates files from templates according to the
24395 current configuration.
24396
24397 Usage: $0 [OPTIONS] [FILE]...
24398
24399   -h, --help       print this help, then exit
24400   -V, --version    print version number and configuration settings, then exit
24401   -q, --quiet      do not print progress messages
24402   -d, --debug      don't remove temporary files
24403       --recheck    update $as_me by reconfiguring in the same conditions
24404   --file=FILE[:TEMPLATE]
24405                    instantiate the configuration file FILE
24406   --header=FILE[:TEMPLATE]
24407                    instantiate the configuration header FILE
24408
24409 Configuration files:
24410 $config_files
24411
24412 Configuration headers:
24413 $config_headers
24414
24415 Configuration commands:
24416 $config_commands
24417
24418 Report bugs to <bug-autoconf@gnu.org>."
24419
24420 _ACEOF
24421 cat >>$CONFIG_STATUS <<_ACEOF
24422 ac_cs_version="\\
24423 osso-statusbar-sync config.status 0.1
24424 configured by $0, generated by GNU Autoconf 2.61,
24425   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24426
24427 Copyright (C) 2006 Free Software Foundation, Inc.
24428 This config.status script is free software; the Free Software Foundation
24429 gives unlimited permission to copy, distribute and modify it."
24430
24431 ac_pwd='$ac_pwd'
24432 srcdir='$srcdir'
24433 INSTALL='$INSTALL'
24434 _ACEOF
24435
24436 cat >>$CONFIG_STATUS <<\_ACEOF
24437 # If no file are specified by the user, then we need to provide default
24438 # value.  By we need to know if files were specified by the user.
24439 ac_need_defaults=:
24440 while test $# != 0
24441 do
24442   case $1 in
24443   --*=*)
24444     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24445     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24446     ac_shift=:
24447     ;;
24448   *)
24449     ac_option=$1
24450     ac_optarg=$2
24451     ac_shift=shift
24452     ;;
24453   esac
24454
24455   case $ac_option in
24456   # Handling of the options.
24457   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24458     ac_cs_recheck=: ;;
24459   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24460     echo "$ac_cs_version"; exit ;;
24461   --debug | --debu | --deb | --de | --d | -d )
24462     debug=: ;;
24463   --file | --fil | --fi | --f )
24464     $ac_shift
24465     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24466     ac_need_defaults=false;;
24467   --header | --heade | --head | --hea )
24468     $ac_shift
24469     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24470     ac_need_defaults=false;;
24471   --he | --h)
24472     # Conflict between --help and --header
24473     { echo "$as_me: error: ambiguous option: $1
24474 Try \`$0 --help' for more information." >&2
24475    { (exit 1); exit 1; }; };;
24476   --help | --hel | -h )
24477     echo "$ac_cs_usage"; exit ;;
24478   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24479   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24480     ac_cs_silent=: ;;
24481
24482   # This is an error.
24483   -*) { echo "$as_me: error: unrecognized option: $1
24484 Try \`$0 --help' for more information." >&2
24485    { (exit 1); exit 1; }; } ;;
24486
24487   *) ac_config_targets="$ac_config_targets $1"
24488      ac_need_defaults=false ;;
24489
24490   esac
24491   shift
24492 done
24493
24494 ac_configure_extra_args=
24495
24496 if $ac_cs_silent; then
24497   exec 6>/dev/null
24498   ac_configure_extra_args="$ac_configure_extra_args --silent"
24499 fi
24500
24501 _ACEOF
24502 cat >>$CONFIG_STATUS <<_ACEOF
24503 if \$ac_cs_recheck; then
24504   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24505   CONFIG_SHELL=$SHELL
24506   export CONFIG_SHELL
24507   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24508 fi
24509
24510 _ACEOF
24511 cat >>$CONFIG_STATUS <<\_ACEOF
24512 exec 5>>config.log
24513 {
24514   echo
24515   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24516 ## Running $as_me. ##
24517 _ASBOX
24518   echo "$ac_log"
24519 } >&5
24520
24521 _ACEOF
24522 cat >>$CONFIG_STATUS <<_ACEOF
24523 #
24524 # INIT-COMMANDS
24525 #
24526 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24527
24528
24529
24530 _ACEOF
24531
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533
24534 # Handling of arguments.
24535 for ac_config_target in $ac_config_targets
24536 do
24537   case $ac_config_target in
24538     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24539     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24540     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24541     "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
24542     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24543     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24544
24545   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24546 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24547    { (exit 1); exit 1; }; };;
24548   esac
24549 done
24550
24551
24552 # If the user did not use the arguments to specify the items to instantiate,
24553 # then the envvar interface is used.  Set only those that are not.
24554 # We use the long form for the default assignment because of an extremely
24555 # bizarre bug on SunOS 4.1.3.
24556 if $ac_need_defaults; then
24557   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24558   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24559   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24560 fi
24561
24562 # Have a temporary directory for convenience.  Make it in the build tree
24563 # simply because there is no reason against having it here, and in addition,
24564 # creating and moving files from /tmp can sometimes cause problems.
24565 # Hook for its removal unless debugging.
24566 # Note that there is a small window in which the directory will not be cleaned:
24567 # after its creation but before its name has been assigned to `$tmp'.
24568 $debug ||
24569 {
24570   tmp=
24571   trap 'exit_status=$?
24572   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24573 ' 0
24574   trap '{ (exit 1); exit 1; }' 1 2 13 15
24575 }
24576 # Create a (secure) tmp directory for tmp files.
24577
24578 {
24579   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24580   test -n "$tmp" && test -d "$tmp"
24581 }  ||
24582 {
24583   tmp=./conf$$-$RANDOM
24584   (umask 077 && mkdir "$tmp")
24585 } ||
24586 {
24587    echo "$me: cannot create a temporary directory in ." >&2
24588    { (exit 1); exit 1; }
24589 }
24590
24591 #
24592 # Set up the sed scripts for CONFIG_FILES section.
24593 #
24594
24595 # No need to generate the scripts if there are no CONFIG_FILES.
24596 # This happens for instance when ./config.status config.h
24597 if test -n "$CONFIG_FILES"; then
24598
24599 _ACEOF
24600
24601
24602
24603 ac_delim='%!_!# '
24604 for ac_last_try in false false false false false :; do
24605   cat >conf$$subs.sed <<_ACEOF
24606 SHELL!$SHELL$ac_delim
24607 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24608 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24609 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24610 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24611 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24612 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24613 exec_prefix!$exec_prefix$ac_delim
24614 prefix!$prefix$ac_delim
24615 program_transform_name!$program_transform_name$ac_delim
24616 bindir!$bindir$ac_delim
24617 sbindir!$sbindir$ac_delim
24618 libexecdir!$libexecdir$ac_delim
24619 datarootdir!$datarootdir$ac_delim
24620 datadir!$datadir$ac_delim
24621 sysconfdir!$sysconfdir$ac_delim
24622 sharedstatedir!$sharedstatedir$ac_delim
24623 localstatedir!$localstatedir$ac_delim
24624 includedir!$includedir$ac_delim
24625 oldincludedir!$oldincludedir$ac_delim
24626 docdir!$docdir$ac_delim
24627 infodir!$infodir$ac_delim
24628 htmldir!$htmldir$ac_delim
24629 dvidir!$dvidir$ac_delim
24630 pdfdir!$pdfdir$ac_delim
24631 psdir!$psdir$ac_delim
24632 libdir!$libdir$ac_delim
24633 localedir!$localedir$ac_delim
24634 mandir!$mandir$ac_delim
24635 DEFS!$DEFS$ac_delim
24636 ECHO_C!$ECHO_C$ac_delim
24637 ECHO_N!$ECHO_N$ac_delim
24638 ECHO_T!$ECHO_T$ac_delim
24639 LIBS!$LIBS$ac_delim
24640 build_alias!$build_alias$ac_delim
24641 host_alias!$host_alias$ac_delim
24642 target_alias!$target_alias$ac_delim
24643 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24644 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24645 INSTALL_DATA!$INSTALL_DATA$ac_delim
24646 CYGPATH_W!$CYGPATH_W$ac_delim
24647 PACKAGE!$PACKAGE$ac_delim
24648 VERSION!$VERSION$ac_delim
24649 ACLOCAL!$ACLOCAL$ac_delim
24650 AUTOCONF!$AUTOCONF$ac_delim
24651 AUTOMAKE!$AUTOMAKE$ac_delim
24652 AUTOHEADER!$AUTOHEADER$ac_delim
24653 MAKEINFO!$MAKEINFO$ac_delim
24654 AMTAR!$AMTAR$ac_delim
24655 install_sh!$install_sh$ac_delim
24656 STRIP!$STRIP$ac_delim
24657 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24658 mkdir_p!$mkdir_p$ac_delim
24659 AWK!$AWK$ac_delim
24660 SET_MAKE!$SET_MAKE$ac_delim
24661 am__leading_dot!$am__leading_dot$ac_delim
24662 CC!$CC$ac_delim
24663 CFLAGS!$CFLAGS$ac_delim
24664 LDFLAGS!$LDFLAGS$ac_delim
24665 CPPFLAGS!$CPPFLAGS$ac_delim
24666 ac_ct_CC!$ac_ct_CC$ac_delim
24667 EXEEXT!$EXEEXT$ac_delim
24668 OBJEXT!$OBJEXT$ac_delim
24669 DEPDIR!$DEPDIR$ac_delim
24670 am__include!$am__include$ac_delim
24671 am__quote!$am__quote$ac_delim
24672 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24673 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24674 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24675 CCDEPMODE!$CCDEPMODE$ac_delim
24676 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24677 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24678 CPP!$CPP$ac_delim
24679 CXX!$CXX$ac_delim
24680 CXXFLAGS!$CXXFLAGS$ac_delim
24681 ac_ct_CXX!$ac_ct_CXX$ac_delim
24682 CXXDEPMODE!$CXXDEPMODE$ac_delim
24683 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24684 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24685 build!$build$ac_delim
24686 build_cpu!$build_cpu$ac_delim
24687 build_vendor!$build_vendor$ac_delim
24688 build_os!$build_os$ac_delim
24689 host!$host$ac_delim
24690 host_cpu!$host_cpu$ac_delim
24691 host_vendor!$host_vendor$ac_delim
24692 host_os!$host_os$ac_delim
24693 GREP!$GREP$ac_delim
24694 EGREP!$EGREP$ac_delim
24695 LN_S!$LN_S$ac_delim
24696 ECHO!$ECHO$ac_delim
24697 AR!$AR$ac_delim
24698 RANLIB!$RANLIB$ac_delim
24699 CXXCPP!$CXXCPP$ac_delim
24700 F77!$F77$ac_delim
24701 FFLAGS!$FFLAGS$ac_delim
24702 ac_ct_F77!$ac_ct_F77$ac_delim
24703 _ACEOF
24704
24705   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24706     break
24707   elif $ac_last_try; then
24708     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24710    { (exit 1); exit 1; }; }
24711   else
24712     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24713   fi
24714 done
24715
24716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24717 if test -n "$ac_eof"; then
24718   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24719   ac_eof=`expr $ac_eof + 1`
24720 fi
24721
24722 cat >>$CONFIG_STATUS <<_ACEOF
24723 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24725 _ACEOF
24726 sed '
24727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24728 s/^/s,@/; s/!/@,|#_!!_#|/
24729 :n
24730 t n
24731 s/'"$ac_delim"'$/,g/; t
24732 s/$/\\/; p
24733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24734 ' >>$CONFIG_STATUS <conf$$subs.sed
24735 rm -f conf$$subs.sed
24736 cat >>$CONFIG_STATUS <<_ACEOF
24737 CEOF$ac_eof
24738 _ACEOF
24739
24740
24741 ac_delim='%!_!# '
24742 for ac_last_try in false false false false false :; do
24743   cat >conf$$subs.sed <<_ACEOF
24744 LIBTOOL!$LIBTOOL$ac_delim
24745 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24746 USE_NLS!$USE_NLS$ac_delim
24747 MSGFMT!$MSGFMT$ac_delim
24748 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
24749 GMSGFMT!$GMSGFMT$ac_delim
24750 XGETTEXT!$XGETTEXT$ac_delim
24751 CATALOGS!$CATALOGS$ac_delim
24752 CATOBJEXT!$CATOBJEXT$ac_delim
24753 DATADIRNAME!$DATADIRNAME$ac_delim
24754 GMOFILES!$GMOFILES$ac_delim
24755 INSTOBJEXT!$INSTOBJEXT$ac_delim
24756 INTLLIBS!$INTLLIBS$ac_delim
24757 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
24758 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
24759 POFILES!$POFILES$ac_delim
24760 POSUB!$POSUB$ac_delim
24761 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24762 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
24763 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
24764 PKG_CONFIG!$PKG_CONFIG$ac_delim
24765 LIBHILDONDESKTOP_CFLAGS!$LIBHILDONDESKTOP_CFLAGS$ac_delim
24766 LIBHILDONDESKTOP_LIBS!$LIBHILDONDESKTOP_LIBS$ac_delim
24767 CONIC_CFLAGS!$CONIC_CFLAGS$ac_delim
24768 CONIC_LIBS!$CONIC_LIBS$ac_delim
24769 STATUSBAR_SYNC_CFLAGS!$STATUSBAR_SYNC_CFLAGS$ac_delim
24770 STATUSBAR_SYNC_LIBS!$STATUSBAR_SYNC_LIBS$ac_delim
24771 pixmapsdir!$pixmapsdir$ac_delim
24772 hildonpixmapdir!$hildonpixmapdir$ac_delim
24773 hildondesktoplibdir!$hildondesktoplibdir$ac_delim
24774 hildonstatusmenudesktopentrydir!$hildonstatusmenudesktopentrydir$ac_delim
24775 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
24776 LIBOBJS!$LIBOBJS$ac_delim
24777 LTLIBOBJS!$LTLIBOBJS$ac_delim
24778 _ACEOF
24779
24780   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24781     break
24782   elif $ac_last_try; then
24783     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24784 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24785    { (exit 1); exit 1; }; }
24786   else
24787     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24788   fi
24789 done
24790
24791 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24792 if test -n "$ac_eof"; then
24793   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24794   ac_eof=`expr $ac_eof + 1`
24795 fi
24796
24797 cat >>$CONFIG_STATUS <<_ACEOF
24798 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24800 _ACEOF
24801 sed '
24802 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24803 s/^/s,@/; s/!/@,|#_!!_#|/
24804 :n
24805 t n
24806 s/'"$ac_delim"'$/,g/; t
24807 s/$/\\/; p
24808 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24809 ' >>$CONFIG_STATUS <conf$$subs.sed
24810 rm -f conf$$subs.sed
24811 cat >>$CONFIG_STATUS <<_ACEOF
24812 :end
24813 s/|#_!!_#|//g
24814 CEOF$ac_eof
24815 _ACEOF
24816
24817
24818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24820 # trailing colons and then remove the whole line if VPATH becomes empty
24821 # (actually we leave an empty line to preserve line numbers).
24822 if test "x$srcdir" = x.; then
24823   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24824 s/:*\$(srcdir):*/:/
24825 s/:*\${srcdir}:*/:/
24826 s/:*@srcdir@:*/:/
24827 s/^\([^=]*=[     ]*\):*/\1/
24828 s/:*$//
24829 s/^[^=]*=[       ]*$//
24830 }'
24831 fi
24832
24833 cat >>$CONFIG_STATUS <<\_ACEOF
24834 fi # test -n "$CONFIG_FILES"
24835
24836
24837 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24838 do
24839   case $ac_tag in
24840   :[FHLC]) ac_mode=$ac_tag; continue;;
24841   esac
24842   case $ac_mode$ac_tag in
24843   :[FHL]*:*);;
24844   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24845 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24846    { (exit 1); exit 1; }; };;
24847   :[FH]-) ac_tag=-:-;;
24848   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24849   esac
24850   ac_save_IFS=$IFS
24851   IFS=:
24852   set x $ac_tag
24853   IFS=$ac_save_IFS
24854   shift
24855   ac_file=$1
24856   shift
24857
24858   case $ac_mode in
24859   :L) ac_source=$1;;
24860   :[FH])
24861     ac_file_inputs=
24862     for ac_f
24863     do
24864       case $ac_f in
24865       -) ac_f="$tmp/stdin";;
24866       *) # Look for the file first in the build tree, then in the source tree
24867          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24868          # because $ac_f cannot contain `:'.
24869          test -f "$ac_f" ||
24870            case $ac_f in
24871            [\\/$]*) false;;
24872            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24873            esac ||
24874            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24875 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24876    { (exit 1); exit 1; }; };;
24877       esac
24878       ac_file_inputs="$ac_file_inputs $ac_f"
24879     done
24880
24881     # Let's still pretend it is `configure' which instantiates (i.e., don't
24882     # use $as_me), people would be surprised to read:
24883     #    /* config.h.  Generated by config.status.  */
24884     configure_input="Generated from "`IFS=:
24885           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24886     if test x"$ac_file" != x-; then
24887       configure_input="$ac_file.  $configure_input"
24888       { echo "$as_me:$LINENO: creating $ac_file" >&5
24889 echo "$as_me: creating $ac_file" >&6;}
24890     fi
24891
24892     case $ac_tag in
24893     *:-:* | *:-) cat >"$tmp/stdin";;
24894     esac
24895     ;;
24896   esac
24897
24898   ac_dir=`$as_dirname -- "$ac_file" ||
24899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24900          X"$ac_file" : 'X\(//\)[^/]' \| \
24901          X"$ac_file" : 'X\(//\)$' \| \
24902          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24903 echo X"$ac_file" |
24904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24905             s//\1/
24906             q
24907           }
24908           /^X\(\/\/\)[^/].*/{
24909             s//\1/
24910             q
24911           }
24912           /^X\(\/\/\)$/{
24913             s//\1/
24914             q
24915           }
24916           /^X\(\/\).*/{
24917             s//\1/
24918             q
24919           }
24920           s/.*/./; q'`
24921   { as_dir="$ac_dir"
24922   case $as_dir in #(
24923   -*) as_dir=./$as_dir;;
24924   esac
24925   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24926     as_dirs=
24927     while :; do
24928       case $as_dir in #(
24929       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24930       *) as_qdir=$as_dir;;
24931       esac
24932       as_dirs="'$as_qdir' $as_dirs"
24933       as_dir=`$as_dirname -- "$as_dir" ||
24934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24935          X"$as_dir" : 'X\(//\)[^/]' \| \
24936          X"$as_dir" : 'X\(//\)$' \| \
24937          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24938 echo X"$as_dir" |
24939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24940             s//\1/
24941             q
24942           }
24943           /^X\(\/\/\)[^/].*/{
24944             s//\1/
24945             q
24946           }
24947           /^X\(\/\/\)$/{
24948             s//\1/
24949             q
24950           }
24951           /^X\(\/\).*/{
24952             s//\1/
24953             q
24954           }
24955           s/.*/./; q'`
24956       test -d "$as_dir" && break
24957     done
24958     test -z "$as_dirs" || eval "mkdir $as_dirs"
24959   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24960 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24961    { (exit 1); exit 1; }; }; }
24962   ac_builddir=.
24963
24964 case "$ac_dir" in
24965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24966 *)
24967   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24968   # A ".." for each directory in $ac_dir_suffix.
24969   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24970   case $ac_top_builddir_sub in
24971   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24972   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24973   esac ;;
24974 esac
24975 ac_abs_top_builddir=$ac_pwd
24976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24977 # for backward compatibility:
24978 ac_top_builddir=$ac_top_build_prefix
24979
24980 case $srcdir in
24981   .)  # We are building in place.
24982     ac_srcdir=.
24983     ac_top_srcdir=$ac_top_builddir_sub
24984     ac_abs_top_srcdir=$ac_pwd ;;
24985   [\\/]* | ?:[\\/]* )  # Absolute name.
24986     ac_srcdir=$srcdir$ac_dir_suffix;
24987     ac_top_srcdir=$srcdir
24988     ac_abs_top_srcdir=$srcdir ;;
24989   *) # Relative name.
24990     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24991     ac_top_srcdir=$ac_top_build_prefix$srcdir
24992     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24993 esac
24994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24995
24996
24997   case $ac_mode in
24998   :F)
24999   #
25000   # CONFIG_FILE
25001   #
25002
25003   case $INSTALL in
25004   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25005   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25006   esac
25007 _ACEOF
25008
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25010 # If the template does not know about datarootdir, expand it.
25011 # FIXME: This hack should be removed a few years after 2.60.
25012 ac_datarootdir_hack=; ac_datarootdir_seen=
25013
25014 case `sed -n '/datarootdir/ {
25015   p
25016   q
25017 }
25018 /@datadir@/p
25019 /@docdir@/p
25020 /@infodir@/p
25021 /@localedir@/p
25022 /@mandir@/p
25023 ' $ac_file_inputs` in
25024 *datarootdir*) ac_datarootdir_seen=yes;;
25025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25026   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25027 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25028 _ACEOF
25029 cat >>$CONFIG_STATUS <<_ACEOF
25030   ac_datarootdir_hack='
25031   s&@datadir@&$datadir&g
25032   s&@docdir@&$docdir&g
25033   s&@infodir@&$infodir&g
25034   s&@localedir@&$localedir&g
25035   s&@mandir@&$mandir&g
25036     s&\\\${datarootdir}&$datarootdir&g' ;;
25037 esac
25038 _ACEOF
25039
25040 # Neutralize VPATH when `$srcdir' = `.'.
25041 # Shell code in configure.ac might set extrasub.
25042 # FIXME: do we really want to maintain this feature?
25043 cat >>$CONFIG_STATUS <<_ACEOF
25044   sed "$ac_vpsub
25045 $extrasub
25046 _ACEOF
25047 cat >>$CONFIG_STATUS <<\_ACEOF
25048 :t
25049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25050 s&@configure_input@&$configure_input&;t t
25051 s&@top_builddir@&$ac_top_builddir_sub&;t t
25052 s&@srcdir@&$ac_srcdir&;t t
25053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25054 s&@top_srcdir@&$ac_top_srcdir&;t t
25055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25056 s&@builddir@&$ac_builddir&;t t
25057 s&@abs_builddir@&$ac_abs_builddir&;t t
25058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25059 s&@INSTALL@&$ac_INSTALL&;t t
25060 $ac_datarootdir_hack
25061 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25062
25063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25064   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25065   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25066   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25067 which seems to be undefined.  Please make sure it is defined." >&5
25068 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25069 which seems to be undefined.  Please make sure it is defined." >&2;}
25070
25071   rm -f "$tmp/stdin"
25072   case $ac_file in
25073   -) cat "$tmp/out"; rm -f "$tmp/out";;
25074   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25075   esac
25076  ;;
25077   :H)
25078   #
25079   # CONFIG_HEADER
25080   #
25081 _ACEOF
25082
25083 # Transform confdefs.h into a sed script `conftest.defines', that
25084 # substitutes the proper values into config.h.in to produce config.h.
25085 rm -f conftest.defines conftest.tail
25086 # First, append a space to every undef/define line, to ease matching.
25087 echo 's/$/ /' >conftest.defines
25088 # Then, protect against being on the right side of a sed subst, or in
25089 # an unquoted here document, in config.status.  If some macros were
25090 # called several times there might be several #defines for the same
25091 # symbol, which is useless.  But do not sort them, since the last
25092 # AC_DEFINE must be honored.
25093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25094 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25095 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25096 # PARAMS is the parameter list in the macro definition--in most cases, it's
25097 # just an empty string.
25098 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25099 ac_dB='\\)[      (].*,\\1define\\2'
25100 ac_dC=' '
25101 ac_dD=' ,'
25102
25103 uniq confdefs.h |
25104   sed -n '
25105         t rset
25106         :rset
25107         s/^[     ]*#[    ]*define[       ][      ]*//
25108         t ok
25109         d
25110         :ok
25111         s/[\\&,]/\\&/g
25112         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25113         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25114   ' >>conftest.defines
25115
25116 # Remove the space that was appended to ease matching.
25117 # Then replace #undef with comments.  This is necessary, for
25118 # example, in the case of _POSIX_SOURCE, which is predefined and required
25119 # on some systems where configure will not decide to define it.
25120 # (The regexp can be short, since the line contains either #define or #undef.)
25121 echo 's/ $//
25122 s,^[     #]*u.*,/* & */,' >>conftest.defines
25123
25124 # Break up conftest.defines:
25125 ac_max_sed_lines=50
25126
25127 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25128 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25129 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25130 # et cetera.
25131 ac_in='$ac_file_inputs'
25132 ac_out='"$tmp/out1"'
25133 ac_nxt='"$tmp/out2"'
25134
25135 while :
25136 do
25137   # Write a here document:
25138     cat >>$CONFIG_STATUS <<_ACEOF
25139     # First, check the format of the line:
25140     cat >"\$tmp/defines.sed" <<\\CEOF
25141 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25142 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25143 b
25144 :def
25145 _ACEOF
25146   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25147   echo 'CEOF
25148     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25149   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25150   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25151   grep . conftest.tail >/dev/null || break
25152   rm -f conftest.defines
25153   mv conftest.tail conftest.defines
25154 done
25155 rm -f conftest.defines conftest.tail
25156
25157 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25158 cat >>$CONFIG_STATUS <<\_ACEOF
25159   if test x"$ac_file" != x-; then
25160     echo "/* $configure_input  */" >"$tmp/config.h"
25161     cat "$ac_result" >>"$tmp/config.h"
25162     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25163       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25164 echo "$as_me: $ac_file is unchanged" >&6;}
25165     else
25166       rm -f $ac_file
25167       mv "$tmp/config.h" $ac_file
25168     fi
25169   else
25170     echo "/* $configure_input  */"
25171     cat "$ac_result"
25172   fi
25173   rm -f "$tmp/out12"
25174 # Compute $ac_file's index in $config_headers.
25175 _am_stamp_count=1
25176 for _am_header in $config_headers :; do
25177   case $_am_header in
25178     $ac_file | $ac_file:* )
25179       break ;;
25180     * )
25181       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25182   esac
25183 done
25184 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25185 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25186          X$ac_file : 'X\(//\)[^/]' \| \
25187          X$ac_file : 'X\(//\)$' \| \
25188          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25189 echo X$ac_file |
25190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25191             s//\1/
25192             q
25193           }
25194           /^X\(\/\/\)[^/].*/{
25195             s//\1/
25196             q
25197           }
25198           /^X\(\/\/\)$/{
25199             s//\1/
25200             q
25201           }
25202           /^X\(\/\).*/{
25203             s//\1/
25204             q
25205           }
25206           s/.*/./; q'`/stamp-h$_am_stamp_count
25207  ;;
25208
25209   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25210 echo "$as_me: executing $ac_file commands" >&6;}
25211  ;;
25212   esac
25213
25214
25215   case $ac_file$ac_mode in
25216     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25217   # Strip MF so we end up with the name of the file.
25218   mf=`echo "$mf" | sed -e 's/:.*$//'`
25219   # Check whether this is an Automake generated Makefile or not.
25220   # We used to match only the files named `Makefile.in', but
25221   # some people rename them; so instead we look at the file content.
25222   # Grep'ing the first line is not enough: some people post-process
25223   # each Makefile.in and add a new line on top of each file to say so.
25224   # So let's grep whole file.
25225   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25226     dirpart=`$as_dirname -- "$mf" ||
25227 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25228          X"$mf" : 'X\(//\)[^/]' \| \
25229          X"$mf" : 'X\(//\)$' \| \
25230          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25231 echo X"$mf" |
25232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25233             s//\1/
25234             q
25235           }
25236           /^X\(\/\/\)[^/].*/{
25237             s//\1/
25238             q
25239           }
25240           /^X\(\/\/\)$/{
25241             s//\1/
25242             q
25243           }
25244           /^X\(\/\).*/{
25245             s//\1/
25246             q
25247           }
25248           s/.*/./; q'`
25249   else
25250     continue
25251   fi
25252   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25253   # Extract the definition of DEP_FILES from the Makefile without
25254   # running `make'.
25255   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25256   test -z "$DEPDIR" && continue
25257   # When using ansi2knr, U may be empty or an underscore; expand it
25258   U=`sed -n 's/^U = //p' < "$mf"`
25259   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25260   # We invoke sed twice because it is the simplest approach to
25261   # changing $(DEPDIR) to its actual value in the expansion.
25262   for file in `sed -n '
25263     /^DEP_FILES = .*\\\\$/ {
25264       s/^DEP_FILES = //
25265       :loop
25266         s/\\\\$//
25267         p
25268         n
25269         /\\\\$/ b loop
25270       p
25271     }
25272     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25273        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25274     # Make sure the directory exists.
25275     test -f "$dirpart/$file" && continue
25276     fdir=`$as_dirname -- "$file" ||
25277 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25278          X"$file" : 'X\(//\)[^/]' \| \
25279          X"$file" : 'X\(//\)$' \| \
25280          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25281 echo X"$file" |
25282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25283             s//\1/
25284             q
25285           }
25286           /^X\(\/\/\)[^/].*/{
25287             s//\1/
25288             q
25289           }
25290           /^X\(\/\/\)$/{
25291             s//\1/
25292             q
25293           }
25294           /^X\(\/\).*/{
25295             s//\1/
25296             q
25297           }
25298           s/.*/./; q'`
25299     { as_dir=$dirpart/$fdir
25300   case $as_dir in #(
25301   -*) as_dir=./$as_dir;;
25302   esac
25303   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25304     as_dirs=
25305     while :; do
25306       case $as_dir in #(
25307       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25308       *) as_qdir=$as_dir;;
25309       esac
25310       as_dirs="'$as_qdir' $as_dirs"
25311       as_dir=`$as_dirname -- "$as_dir" ||
25312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25313          X"$as_dir" : 'X\(//\)[^/]' \| \
25314          X"$as_dir" : 'X\(//\)$' \| \
25315          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25316 echo X"$as_dir" |
25317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25318             s//\1/
25319             q
25320           }
25321           /^X\(\/\/\)[^/].*/{
25322             s//\1/
25323             q
25324           }
25325           /^X\(\/\/\)$/{
25326             s//\1/
25327             q
25328           }
25329           /^X\(\/\).*/{
25330             s//\1/
25331             q
25332           }
25333           s/.*/./; q'`
25334       test -d "$as_dir" && break
25335     done
25336     test -z "$as_dirs" || eval "mkdir $as_dirs"
25337   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25338 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25339    { (exit 1); exit 1; }; }; }
25340     # echo "creating $dirpart/$file"
25341     echo '# dummy' > "$dirpart/$file"
25342   done
25343 done
25344  ;;
25345     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
25346         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
25347       esac ;;
25348     "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
25349         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
25350       esac ;;
25351
25352   esac
25353 done # for ac_tag
25354
25355
25356 { (exit 0); exit 0; }
25357 _ACEOF
25358 chmod +x $CONFIG_STATUS
25359 ac_clean_files=$ac_clean_files_save
25360
25361
25362 # configure is writing to config.log, and then calls config.status.
25363 # config.status does its own redirection, appending to config.log.
25364 # Unfortunately, on DOS this fails, as config.log is still kept open
25365 # by configure, so config.status won't be able to write to it; its
25366 # output is simply discarded.  So we exec the FD to /dev/null,
25367 # effectively closing config.log, so it can be properly (re)opened and
25368 # appended to by config.status.  When coming back to configure, we
25369 # need to make the FD available again.
25370 if test "$no_create" != yes; then
25371   ac_cs_success=:
25372   ac_config_status_args=
25373   test "$silent" = yes &&
25374     ac_config_status_args="$ac_config_status_args --quiet"
25375   exec 5>/dev/null
25376   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25377   exec 5>>config.log
25378   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25379   # would make configure fail if this is the last instruction.
25380   $ac_cs_success || { (exit 1); exit 1; }
25381 fi
25382