Imported Upstream version 1.0beta3
[platform/upstream/syncevolution.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for syncevolution 1.0beta3.
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='syncevolution'
728 PACKAGE_TARNAME='syncevolution'
729 PACKAGE_VERSION='1.0beta3'
730 PACKAGE_STRING='syncevolution 1.0beta3'
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 STABLE_VERSION
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 MODIFY_SYNCCOMPARE
830 CC
831 CFLAGS
832 LDFLAGS
833 CPPFLAGS
834 ac_ct_CC
835 EXEEXT
836 OBJEXT
837 DEPDIR
838 am__include
839 am__quote
840 AMDEP_TRUE
841 AMDEP_FALSE
842 AMDEPBACKSLASH
843 CCDEPMODE
844 am__fastdepCC_TRUE
845 am__fastdepCC_FALSE
846 CPP
847 GREP
848 EGREP
849 CPPUNIT_CXXFLAGS
850 CPPUNIT_LDFLAGS
851 ENABLE_UNIT_TESTS_TRUE
852 ENABLE_UNIT_TESTS_FALSE
853 ENABLE_TESTING_TRUE
854 ENABLE_TESTING_FALSE
855 CORE_LDADD_DEP
856 PKG_CONFIG
857 LIBSOUP_CFLAGS
858 LIBSOUP_LIBS
859 LIBOPENOBEX_CFLAGS
860 LIBOPENOBEX_LIBS
861 BLUEZ_CFLAGS
862 BLUEZ_LIBS
863 ENABLE_OBEX_TRUE
864 ENABLE_OBEX_FALSE
865 ENABLE_BLUETOOTH_TRUE
866 ENABLE_BLUETOOTH_FALSE
867 TRANSPORT_LIBS
868 TRANSPORT_CFLAGS
869 XSLT
870 COND_GUI_TRUE
871 COND_GUI_FALSE
872 COND_CORE_TRUE
873 COND_CORE_FALSE
874 COND_DBUS_TRUE
875 COND_DBUS_FALSE
876 KEYRING_CFLAGS
877 KEYRING_LIBS
878 KEYRING_2_20_CFLAGS
879 KEYRING_2_20_LIBS
880 DBUS_CFLAGS
881 DBUS_LIBS
882 LIBNOTIFY_CFLAGS
883 LIBNOTIFY_LIBS
884 DBUS_GLIB_CFLAGS
885 DBUS_GLIB_LIBS
886 LIBEXECDIR
887 DBUS_SERVICES_DIR
888 USE_NLS
889 INTLTOOL_UPDATE
890 INTLTOOL_MERGE
891 INTLTOOL_EXTRACT
892 INTLTOOL_DESKTOP_RULE
893 INTLTOOL_DIRECTORY_RULE
894 INTLTOOL_KEYS_RULE
895 INTLTOOL_PROP_RULE
896 INTLTOOL_OAF_RULE
897 INTLTOOL_PONG_RULE
898 INTLTOOL_SERVER_RULE
899 INTLTOOL_SHEET_RULE
900 INTLTOOL_SOUNDLIST_RULE
901 INTLTOOL_UI_RULE
902 INTLTOOL_XAM_RULE
903 INTLTOOL_KBD_RULE
904 INTLTOOL_XML_RULE
905 INTLTOOL_XML_NOMERGE_RULE
906 INTLTOOL_CAVES_RULE
907 INTLTOOL_SCHEMAS_RULE
908 INTLTOOL_THEME_RULE
909 INTLTOOL_SERVICE_RULE
910 INTLTOOL_POLICY_RULE
911 XGETTEXT
912 MSGMERGE
913 MSGFMT
914 GMSGFMT
915 INTLTOOL_PERL
916 ALL_LINGUAS
917 DATADIRNAME
918 MSGFMT_OPTS
919 CATALOGS
920 CATOBJEXT
921 GMOFILES
922 INSTOBJEXT
923 INTLLIBS
924 PO_IN_DATADIR_TRUE
925 PO_IN_DATADIR_FALSE
926 POFILES
927 POSUB
928 MKINSTALLDIRS
929 DBUS_BINDING_TOOL
930 GLIB_GENMARSHAL
931 MX_GTK_0_99_1_CFLAGS
932 MX_GTK_0_99_1_LIBS
933 UNIQUE_CFLAGS
934 UNIQUE_LIBS
935 GTK_2_18_CFLAGS
936 GTK_2_18_LIBS
937 GUI_CFLAGS
938 GUI_LIBS
939 GTK_BUILDER_CONV
940 SYNCEVOLUTION_LOCALEDIR
941 GETTEXT_PACKAGE
942 GUI_PROGRAMS
943 GUI_DESKTOP_FILES
944 CXX
945 CXXFLAGS
946 ac_ct_CXX
947 CXXDEPMODE
948 am__fastdepCXX_TRUE
949 am__fastdepCXX_FALSE
950 BOOST_CPPFLAGS
951 BOOST_LDFLAGS
952 SYNTHESIS_SRC
953 SYNTHESIS_CFLAGS
954 SYNTHESIS_LIBS
955 SYNTHESIS
956 SYNTHESIS_SUBDIR
957 SYNTHESIS_SUBDIR_INCLUDES
958 SYNTHESIS_DEP
959 SYNTHESIS_ENGINE
960 SYNTHESIS_LIB
961 SYNTHESISSRC
962 SYNCSOURCES
963 BACKEND_DEFINES
964 BACKEND_CPPFLAGS
965 GNOMEBLUETOOTH_CFLAGS
966 GNOMEBLUETOOTH_LIBS
967 GNOMEBLUETOOTH_DIR
968 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
969 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
970 ADDRESSBOOK_CFLAGS
971 ADDRESSBOOK_LIBS
972 EPACKAGE_CFLAGS
973 EPACKAGE_LIBS
974 ECAL_CFLAGS
975 ECAL_LIBS
976 EBOOK_CFLAGS
977 EBOOK_LIBS
978 ENABLE_ECAL_TRUE
979 ENABLE_ECAL_FALSE
980 LIBICAL_AVAILABLE_CFLAGS
981 LIBICAL_AVAILABLE_LIBS
982 FILE_CFLAGS
983 FILE_LIBS
984 MCALB_CFLAGS
985 MCALB_LIBS
986 SQLITE_CFLAGS
987 SQLITE_LIBS
988 XMLRPC_CFLAGS
989 XMLRPC_LIBS
990 build
991 build_cpu
992 build_vendor
993 build_os
994 host
995 host_cpu
996 host_vendor
997 host_os
998 SED
999 LN_S
1000 ECHO
1001 AR
1002 RANLIB
1003 DSYMUTIL
1004 NMEDIT
1005 CXXCPP
1006 F77
1007 FFLAGS
1008 ac_ct_F77
1009 LIBTOOL
1010 GLIB_CFLAGS
1011 GLIB_LIBS
1012 GTHREAD_CFLAGS
1013 GTHREAD_LIBS
1014 GOBJECT_CFLAGS
1015 GOBJECT_LIBS
1016 GLIB216_CFLAGS
1017 GLIB216_LIBS
1018 NSS_CFLAGS
1019 NSS_LIBS
1020 ENABLE_MODULES_TRUE
1021 ENABLE_MODULES_FALSE
1022 SYNCEVOLUTION_LDADD
1023 SYNCEVOLUTION_CXXFLAGS
1024 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
1025 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
1026 backenddir
1027 backendsearchdir
1028 LIBOBJS
1029 LTLIBOBJS'
1030 ac_subst_files=''
1031       ac_precious_vars='build_alias
1032 host_alias
1033 target_alias
1034 CC
1035 CFLAGS
1036 LDFLAGS
1037 LIBS
1038 CPPFLAGS
1039 CPP
1040 PKG_CONFIG
1041 LIBSOUP_CFLAGS
1042 LIBSOUP_LIBS
1043 LIBOPENOBEX_CFLAGS
1044 LIBOPENOBEX_LIBS
1045 BLUEZ_CFLAGS
1046 BLUEZ_LIBS
1047 KEYRING_CFLAGS
1048 KEYRING_LIBS
1049 KEYRING_2_20_CFLAGS
1050 KEYRING_2_20_LIBS
1051 DBUS_CFLAGS
1052 DBUS_LIBS
1053 LIBNOTIFY_CFLAGS
1054 LIBNOTIFY_LIBS
1055 DBUS_GLIB_CFLAGS
1056 DBUS_GLIB_LIBS
1057 MX_GTK_0_99_1_CFLAGS
1058 MX_GTK_0_99_1_LIBS
1059 UNIQUE_CFLAGS
1060 UNIQUE_LIBS
1061 GTK_2_18_CFLAGS
1062 GTK_2_18_LIBS
1063 GUI_CFLAGS
1064 GUI_LIBS
1065 CXX
1066 CXXFLAGS
1067 CCC
1068 SYNTHESIS_CFLAGS
1069 SYNTHESIS_LIBS
1070 GNOMEBLUETOOTH_CFLAGS
1071 GNOMEBLUETOOTH_LIBS
1072 EPACKAGE_CFLAGS
1073 EPACKAGE_LIBS
1074 ECAL_CFLAGS
1075 ECAL_LIBS
1076 EBOOK_CFLAGS
1077 EBOOK_LIBS
1078 LIBICAL_AVAILABLE_CFLAGS
1079 LIBICAL_AVAILABLE_LIBS
1080 MCALB_CFLAGS
1081 MCALB_LIBS
1082 SQLITE_CFLAGS
1083 SQLITE_LIBS
1084 CXXCPP
1085 F77
1086 FFLAGS
1087 GLIB_CFLAGS
1088 GLIB_LIBS
1089 GTHREAD_CFLAGS
1090 GTHREAD_LIBS
1091 GOBJECT_CFLAGS
1092 GOBJECT_LIBS
1093 GLIB216_CFLAGS
1094 GLIB216_LIBS
1095 NSS_CFLAGS
1096 NSS_LIBS'
1097
1098
1099 # Initialize some variables set by options.
1100 ac_init_help=
1101 ac_init_version=false
1102 # The variables have the same names as the options, with
1103 # dashes changed to underlines.
1104 cache_file=/dev/null
1105 exec_prefix=NONE
1106 no_create=
1107 no_recursion=
1108 prefix=NONE
1109 program_prefix=NONE
1110 program_suffix=NONE
1111 program_transform_name=s,x,x,
1112 silent=
1113 site=
1114 srcdir=
1115 verbose=
1116 x_includes=NONE
1117 x_libraries=NONE
1118
1119 # Installation directory options.
1120 # These are left unexpanded so users can "make install exec_prefix=/foo"
1121 # and all the variables that are supposed to be based on exec_prefix
1122 # by default will actually change.
1123 # Use braces instead of parens because sh, perl, etc. also accept them.
1124 # (The list follows the same order as the GNU Coding Standards.)
1125 bindir='${exec_prefix}/bin'
1126 sbindir='${exec_prefix}/sbin'
1127 libexecdir='${exec_prefix}/libexec'
1128 datarootdir='${prefix}/share'
1129 datadir='${datarootdir}'
1130 sysconfdir='${prefix}/etc'
1131 sharedstatedir='${prefix}/com'
1132 localstatedir='${prefix}/var'
1133 includedir='${prefix}/include'
1134 oldincludedir='/usr/include'
1135 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1136 infodir='${datarootdir}/info'
1137 htmldir='${docdir}'
1138 dvidir='${docdir}'
1139 pdfdir='${docdir}'
1140 psdir='${docdir}'
1141 libdir='${exec_prefix}/lib'
1142 localedir='${datarootdir}/locale'
1143 mandir='${datarootdir}/man'
1144
1145 ac_prev=
1146 ac_dashdash=
1147 for ac_option
1148 do
1149   # If the previous option needs an argument, assign it.
1150   if test -n "$ac_prev"; then
1151     eval $ac_prev=\$ac_option
1152     ac_prev=
1153     continue
1154   fi
1155
1156   case $ac_option in
1157   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1158   *)    ac_optarg=yes ;;
1159   esac
1160
1161   # Accept the important Cygnus configure options, so we can diagnose typos.
1162
1163   case $ac_dashdash$ac_option in
1164   --)
1165     ac_dashdash=yes ;;
1166
1167   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1168     ac_prev=bindir ;;
1169   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1170     bindir=$ac_optarg ;;
1171
1172   -build | --build | --buil | --bui | --bu)
1173     ac_prev=build_alias ;;
1174   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1175     build_alias=$ac_optarg ;;
1176
1177   -cache-file | --cache-file | --cache-fil | --cache-fi \
1178   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1179     ac_prev=cache_file ;;
1180   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1181   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1182     cache_file=$ac_optarg ;;
1183
1184   --config-cache | -C)
1185     cache_file=config.cache ;;
1186
1187   -datadir | --datadir | --datadi | --datad)
1188     ac_prev=datadir ;;
1189   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1190     datadir=$ac_optarg ;;
1191
1192   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1193   | --dataroo | --dataro | --datar)
1194     ac_prev=datarootdir ;;
1195   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1196   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1197     datarootdir=$ac_optarg ;;
1198
1199   -disable-* | --disable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=no ;;
1207
1208   -docdir | --docdir | --docdi | --doc | --do)
1209     ac_prev=docdir ;;
1210   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211     docdir=$ac_optarg ;;
1212
1213   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1214     ac_prev=dvidir ;;
1215   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216     dvidir=$ac_optarg ;;
1217
1218   -enable-* | --enable-*)
1219     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1225     eval enable_$ac_feature=\$ac_optarg ;;
1226
1227   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229   | --exec | --exe | --ex)
1230     ac_prev=exec_prefix ;;
1231   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233   | --exec=* | --exe=* | --ex=*)
1234     exec_prefix=$ac_optarg ;;
1235
1236   -gas | --gas | --ga | --g)
1237     # Obsolete; use --with-gas.
1238     with_gas=yes ;;
1239
1240   -help | --help | --hel | --he | -h)
1241     ac_init_help=long ;;
1242   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243     ac_init_help=recursive ;;
1244   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245     ac_init_help=short ;;
1246
1247   -host | --host | --hos | --ho)
1248     ac_prev=host_alias ;;
1249   -host=* | --host=* | --hos=* | --ho=*)
1250     host_alias=$ac_optarg ;;
1251
1252   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253     ac_prev=htmldir ;;
1254   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255   | --ht=*)
1256     htmldir=$ac_optarg ;;
1257
1258   -includedir | --includedir | --includedi | --included | --include \
1259   | --includ | --inclu | --incl | --inc)
1260     ac_prev=includedir ;;
1261   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262   | --includ=* | --inclu=* | --incl=* | --inc=*)
1263     includedir=$ac_optarg ;;
1264
1265   -infodir | --infodir | --infodi | --infod | --info | --inf)
1266     ac_prev=infodir ;;
1267   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268     infodir=$ac_optarg ;;
1269
1270   -libdir | --libdir | --libdi | --libd)
1271     ac_prev=libdir ;;
1272   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273     libdir=$ac_optarg ;;
1274
1275   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276   | --libexe | --libex | --libe)
1277     ac_prev=libexecdir ;;
1278   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279   | --libexe=* | --libex=* | --libe=*)
1280     libexecdir=$ac_optarg ;;
1281
1282   -localedir | --localedir | --localedi | --localed | --locale)
1283     ac_prev=localedir ;;
1284   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285     localedir=$ac_optarg ;;
1286
1287   -localstatedir | --localstatedir | --localstatedi | --localstated \
1288   | --localstate | --localstat | --localsta | --localst | --locals)
1289     ac_prev=localstatedir ;;
1290   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292     localstatedir=$ac_optarg ;;
1293
1294   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295     ac_prev=mandir ;;
1296   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297     mandir=$ac_optarg ;;
1298
1299   -nfp | --nfp | --nf)
1300     # Obsolete; use --without-fp.
1301     with_fp=no ;;
1302
1303   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304   | --no-cr | --no-c | -n)
1305     no_create=yes ;;
1306
1307   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309     no_recursion=yes ;;
1310
1311   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313   | --oldin | --oldi | --old | --ol | --o)
1314     ac_prev=oldincludedir ;;
1315   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318     oldincludedir=$ac_optarg ;;
1319
1320   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321     ac_prev=prefix ;;
1322   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323     prefix=$ac_optarg ;;
1324
1325   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326   | --program-pre | --program-pr | --program-p)
1327     ac_prev=program_prefix ;;
1328   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330     program_prefix=$ac_optarg ;;
1331
1332   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333   | --program-suf | --program-su | --program-s)
1334     ac_prev=program_suffix ;;
1335   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337     program_suffix=$ac_optarg ;;
1338
1339   -program-transform-name | --program-transform-name \
1340   | --program-transform-nam | --program-transform-na \
1341   | --program-transform-n | --program-transform- \
1342   | --program-transform | --program-transfor \
1343   | --program-transfo | --program-transf \
1344   | --program-trans | --program-tran \
1345   | --progr-tra | --program-tr | --program-t)
1346     ac_prev=program_transform_name ;;
1347   -program-transform-name=* | --program-transform-name=* \
1348   | --program-transform-nam=* | --program-transform-na=* \
1349   | --program-transform-n=* | --program-transform-=* \
1350   | --program-transform=* | --program-transfor=* \
1351   | --program-transfo=* | --program-transf=* \
1352   | --program-trans=* | --program-tran=* \
1353   | --progr-tra=* | --program-tr=* | --program-t=*)
1354     program_transform_name=$ac_optarg ;;
1355
1356   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357     ac_prev=pdfdir ;;
1358   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359     pdfdir=$ac_optarg ;;
1360
1361   -psdir | --psdir | --psdi | --psd | --ps)
1362     ac_prev=psdir ;;
1363   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364     psdir=$ac_optarg ;;
1365
1366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367   | -silent | --silent | --silen | --sile | --sil)
1368     silent=yes ;;
1369
1370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371     ac_prev=sbindir ;;
1372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373   | --sbi=* | --sb=*)
1374     sbindir=$ac_optarg ;;
1375
1376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378   | --sharedst | --shareds | --shared | --share | --shar \
1379   | --sha | --sh)
1380     ac_prev=sharedstatedir ;;
1381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384   | --sha=* | --sh=*)
1385     sharedstatedir=$ac_optarg ;;
1386
1387   -site | --site | --sit)
1388     ac_prev=site ;;
1389   -site=* | --site=* | --sit=*)
1390     site=$ac_optarg ;;
1391
1392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393     ac_prev=srcdir ;;
1394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395     srcdir=$ac_optarg ;;
1396
1397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398   | --syscon | --sysco | --sysc | --sys | --sy)
1399     ac_prev=sysconfdir ;;
1400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402     sysconfdir=$ac_optarg ;;
1403
1404   -target | --target | --targe | --targ | --tar | --ta | --t)
1405     ac_prev=target_alias ;;
1406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407     target_alias=$ac_optarg ;;
1408
1409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410     verbose=yes ;;
1411
1412   -version | --version | --versio | --versi | --vers | -V)
1413     ac_init_version=: ;;
1414
1415   -with-* | --with-*)
1416     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       { echo "$as_me: error: invalid package name: $ac_package" >&2
1420    { (exit 1); exit 1; }; }
1421     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1422     eval with_$ac_package=\$ac_optarg ;;
1423
1424   -without-* | --without-*)
1425     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid package name: $ac_package" >&2
1429    { (exit 1); exit 1; }; }
1430     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1431     eval with_$ac_package=no ;;
1432
1433   --x)
1434     # Obsolete; use --with-x.
1435     with_x=yes ;;
1436
1437   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438   | --x-incl | --x-inc | --x-in | --x-i)
1439     ac_prev=x_includes ;;
1440   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442     x_includes=$ac_optarg ;;
1443
1444   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446     ac_prev=x_libraries ;;
1447   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449     x_libraries=$ac_optarg ;;
1450
1451   -*) { echo "$as_me: error: unrecognized option: $ac_option
1452 Try \`$0 --help' for more information." >&2
1453    { (exit 1); exit 1; }; }
1454     ;;
1455
1456   *=*)
1457     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1460       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1461    { (exit 1); exit 1; }; }
1462     eval $ac_envvar=\$ac_optarg
1463     export $ac_envvar ;;
1464
1465   *)
1466     # FIXME: should be removed in autoconf 3.0.
1467     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471     ;;
1472
1473   esac
1474 done
1475
1476 if test -n "$ac_prev"; then
1477   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478   { echo "$as_me: error: missing argument to $ac_option" >&2
1479    { (exit 1); exit 1; }; }
1480 fi
1481
1482 # Be sure to have absolute directory names.
1483 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484                 datadir sysconfdir sharedstatedir localstatedir includedir \
1485                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486                 libdir localedir mandir
1487 do
1488   eval ac_val=\$$ac_var
1489   case $ac_val in
1490     [\\/$]* | ?:[\\/]* )  continue;;
1491     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1492   esac
1493   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1494    { (exit 1); exit 1; }; }
1495 done
1496
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1503
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506   if test "x$build_alias" = x; then
1507     cross_compiling=maybe
1508     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1509     If a cross compiler is detected then cross compile mode will be used." >&2
1510   elif test "x$build_alias" != "x$host_alias"; then
1511     cross_compiling=yes
1512   fi
1513 fi
1514
1515 ac_tool_prefix=
1516 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1517
1518 test "$silent" = yes && exec 6>/dev/null
1519
1520
1521 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di=`ls -di .` &&
1523 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1524   { echo "$as_me: error: Working directory cannot be determined" >&2
1525    { (exit 1); exit 1; }; }
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527   { echo "$as_me: error: pwd does not report name of working directory" >&2
1528    { (exit 1); exit 1; }; }
1529
1530
1531 # Find the source files, if location was not specified.
1532 if test -z "$srcdir"; then
1533   ac_srcdir_defaulted=yes
1534   # Try the directory containing this script, then the parent directory.
1535   ac_confdir=`$as_dirname -- "$0" ||
1536 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537          X"$0" : 'X\(//\)[^/]' \| \
1538          X"$0" : 'X\(//\)$' \| \
1539          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1540 echo X"$0" |
1541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542             s//\1/
1543             q
1544           }
1545           /^X\(\/\/\)[^/].*/{
1546             s//\1/
1547             q
1548           }
1549           /^X\(\/\/\)$/{
1550             s//\1/
1551             q
1552           }
1553           /^X\(\/\).*/{
1554             s//\1/
1555             q
1556           }
1557           s/.*/./; q'`
1558   srcdir=$ac_confdir
1559   if test ! -r "$srcdir/$ac_unique_file"; then
1560     srcdir=..
1561   fi
1562 else
1563   ac_srcdir_defaulted=no
1564 fi
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1568    { (exit 1); exit 1; }; }
1569 fi
1570 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1571 ac_abs_confdir=`(
1572         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1573    { (exit 1); exit 1; }; }
1574         pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577   srcdir=.
1578 fi
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587   eval ac_env_${ac_var}_value=\$${ac_var}
1588   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1591
1592 #
1593 # Report the --help message.
1594 #
1595 if test "$ac_init_help" = "long"; then
1596   # Omit some internal or obsolete options to make the list less imposing.
1597   # This message is too long to be a string in the A/UX 3.1 sh.
1598   cat <<_ACEOF
1599 \`configure' configures syncevolution 1.0beta3 to adapt to many kinds of systems.
1600
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1602
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE.  See below for descriptions of some of the useful variables.
1605
1606 Defaults for the options are specified in brackets.
1607
1608 Configuration:
1609   -h, --help              display this help and exit
1610       --help=short        display options specific to this package
1611       --help=recursive    display the short help of all the included packages
1612   -V, --version           display version information and exit
1613   -q, --quiet, --silent   do not print \`checking...' messages
1614       --cache-file=FILE   cache test results in FILE [disabled]
1615   -C, --config-cache      alias for \`--cache-file=config.cache'
1616   -n, --no-create         do not create output files
1617       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1618
1619 Installation directories:
1620   --prefix=PREFIX         install architecture-independent files in PREFIX
1621                           [$ac_default_prefix]
1622   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1623                           [PREFIX]
1624
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1629
1630 For better control, use the options below.
1631
1632 Fine tuning of the installation directories:
1633   --bindir=DIR           user executables [EPREFIX/bin]
1634   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1635   --libexecdir=DIR       program executables [EPREFIX/libexec]
1636   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1637   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1638   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1639   --libdir=DIR           object code libraries [EPREFIX/lib]
1640   --includedir=DIR       C header files [PREFIX/include]
1641   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1642   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1643   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1644   --infodir=DIR          info documentation [DATAROOTDIR/info]
1645   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1646   --mandir=DIR           man documentation [DATAROOTDIR/man]
1647   --docdir=DIR           documentation root [DATAROOTDIR/doc/syncevolution]
1648   --htmldir=DIR          html documentation [DOCDIR]
1649   --dvidir=DIR           dvi documentation [DOCDIR]
1650   --pdfdir=DIR           pdf documentation [DOCDIR]
1651   --psdir=DIR            ps documentation [DOCDIR]
1652 _ACEOF
1653
1654   cat <<\_ACEOF
1655
1656 Program names:
1657   --program-prefix=PREFIX            prepend PREFIX to installed program names
1658   --program-suffix=SUFFIX            append SUFFIX to installed program names
1659   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1660
1661 System types:
1662   --build=BUILD     configure for building on BUILD [guessed]
1663   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1664 _ACEOF
1665 fi
1666
1667 if test -n "$ac_init_help"; then
1668   case $ac_init_help in
1669      short | recursive ) echo "Configuration of syncevolution 1.0beta3:";;
1670    esac
1671   cat <<\_ACEOF
1672
1673 Optional Features:
1674   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1675   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1676   --enable-shared         build backends as dynamically loadable modules
1677   --enable-static         build backends also as static libraries
1678   --enable-unit-tests     enables tests embedded in the source code of the
1679                           library (changes content of executable)
1680   --enable-integration-tests
1681                           enables tests outside of the library (can be used
1682                           together with normal builds of the library)
1683   --enable-static-cxx     build executables which contain libstdc++ instead of
1684                           requiring suitable libstdc++.so to run
1685   --enable-evolution-compatibility
1686                           build executables which only call Evolution via
1687                           dlopen/dlsym: this avoids all hard dependencies on
1688                           EDS shared objects, but might lead to crashes when
1689                           their ABI changes
1690   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1691                           current build directory instead of the standard
1692                           library path
1693   --enable-maemo          enables some hacks which work around problems with
1694                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1695   --disable-dependency-tracking  speeds up one-time build
1696   --enable-dependency-tracking   do not reject slow dependency extractors
1697   --enable-libcurl        enable libcurl as transport layer
1698   --enable-libsoup        enable libsoup as transport layer
1699   --enable-bluetooth      enable bluetooth transport support
1700   --disable-ssl-certificate-check
1701                           Disable SSL certificate checking in all server
1702                           *templates*. Users can still choose to enable or
1703                           disable it in their configuration. This is necessary
1704                           on platforms where the transport library has
1705                           problems verifying the server's certificate (libsoup
1706                           + Google,
1707                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1708   --enable-gui=gui type   enables building the GTK+ UI that uses the
1709                           SyncEvolution DBus API. Options: gtk, moblin, all
1710                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1711                           default for --enable-gui without type. No GUI is
1712                           built when --enable-gui is not used.
1713   --enable-core           enables building the core SyncEvolution (library,
1714                           backends)
1715   --enable-dbus-service   enables building the dbus service executable and all
1716                           related features (the DBus wrapper library, command
1717                           line usage of server, etc).
1718   --enable-notify         send notifications for automatic sync events
1719   --disable-nls           do not use Native Language Support
1720   --enable-gnome-bluetooth-panel-plugin
1721                           GNOME Bluetooth panel plugin adding a "sync" button
1722                           for paired devices (off by default)
1723 --enable-addressbook    enable access to Mac OS X address book (default off)
1724 --disable-ebook         disable access to Evolution addressbooks (must be
1725                           used to compile without it)
1726 --disable-ecal          disable access to Evolution calendars and tasks
1727                           (must be used to compile without it)
1728 --disable-file          disable file-based backend which stores items in
1729                           separate files in a fixed directory (default on)
1730 --enable-maemo-calendar enable access to PIM data stored in Maemo 5 calendar
1731                           application (default off)
1732 --enable-sqlite         enable access to PIM data stored in SQLite files
1733                           (experimental, default off)
1734 --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1735                           central web service (default off)
1736   --enable-shared[=PKGS]  build shared libraries [default=yes]
1737   --enable-static[=PKGS]  build static libraries [default=yes]
1738   --enable-fast-install[=PKGS]
1739                           optimize for fast installation [default=yes]
1740   --disable-libtool-lock  avoid locking (might break parallel builds)
1741
1742 Optional Packages:
1743   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1744   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1745   --with-synthesis-src=<base directory|svn URL|git URL>
1746                           Specifies location of the Synthesis root directory.
1747                           Use this when the Synthesis library is to be
1748                           compiled as part of the SyncEvolution compilation.
1749                           In release versions of SyncEvolution, a copy of the
1750                           Synthesis code is bundled under 'src/synthesis' and
1751                           compiled unless something else is specified.
1752                           --with-synthesis-src can be given a path to sources
1753                           checked out already, a Subversion repository URL or
1754                           a git repository URL. When given a repository URL,
1755                           then the configure script will checkout the sources
1756                           into 'src/synthesis-workdir' or update that working
1757                           copy if the directory already exists. Default:
1758                           bundled source in src/synthesis (in released
1759                           SyncEvolution sources),  otherwise.
1760   --with-syncml-engines=client|server|both
1761                           Determines which kind of support for SyncML is
1762                           compiled and linked into SyncEvolution. Default is
1763                           both. Currently has no effect.
1764   --with-synthesis-username=<svn username>
1765                           username to use when checking out
1766                           --with-synthesis-src sources from Subversion,
1767                           default 'guest'
1768   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1769                           Identifies which source revision to use from
1770                           --with-synthesis-src repository, empty string stands
1771                           for latest. Default for default --synthesis-src:
1772                           syncevolution-0.9
1773   --with-ca-certificates=<colon separated list of files>
1774                           Specifies location of one or more CA certificate
1775                           files. This sets the default value for the
1776                           SSLServerCertificates option. Default: empty when
1777                           using libcurl (because it has its own default), a
1778                           list of paths known to work for Debian and Red Hat
1779                           otherwise.
1780   --with-boost[=DIR]      use boost (default is yes) - it is possible to
1781                           specify the root directory for boost (optional)
1782   --with-boost-libdir=LIB_DIR
1783                           Force given directory for boost libraries. Note that
1784                           this will overwrite library path detection, so use
1785                           this parameter only if default library detection
1786                           fails and you know exactly where your boost
1787                           libraries are located.
1788   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1789   --with-pic              try to use only PIC/non-PIC objects [default=use
1790                           both]
1791   --with-tags[=TAGS]      include additional configurations [automatic]
1792
1793 Some influential environment variables:
1794   CC          C compiler command
1795   CFLAGS      C compiler flags
1796   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1797               nonstandard directory <lib dir>
1798   LIBS        libraries to pass to the linker, e.g. -l<library>
1799   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1800               you have headers in a nonstandard directory <include dir>
1801   CPP         C preprocessor
1802   PKG_CONFIG  path to pkg-config utility
1803   LIBSOUP_CFLAGS
1804               C compiler flags for LIBSOUP, overriding pkg-config
1805   LIBSOUP_LIBS
1806               linker flags for LIBSOUP, overriding pkg-config
1807   LIBOPENOBEX_CFLAGS
1808               C compiler flags for LIBOPENOBEX, overriding pkg-config
1809   LIBOPENOBEX_LIBS
1810               linker flags for LIBOPENOBEX, overriding pkg-config
1811   BLUEZ_CFLAGS
1812               C compiler flags for BLUEZ, overriding pkg-config
1813   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1814   KEYRING_CFLAGS
1815               C compiler flags for KEYRING, overriding pkg-config
1816   KEYRING_LIBS
1817               linker flags for KEYRING, overriding pkg-config
1818   KEYRING_2_20_CFLAGS
1819               C compiler flags for KEYRING_2_20, overriding pkg-config
1820   KEYRING_2_20_LIBS
1821               linker flags for KEYRING_2_20, overriding pkg-config
1822   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1823   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1824   LIBNOTIFY_CFLAGS
1825               C compiler flags for LIBNOTIFY, overriding pkg-config
1826   LIBNOTIFY_LIBS
1827               linker flags for LIBNOTIFY, overriding pkg-config
1828   DBUS_GLIB_CFLAGS
1829               C compiler flags for DBUS_GLIB, overriding pkg-config
1830   DBUS_GLIB_LIBS
1831               linker flags for DBUS_GLIB, overriding pkg-config
1832   MX_GTK_0_99_1_CFLAGS
1833               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
1834   MX_GTK_0_99_1_LIBS
1835               linker flags for MX_GTK_0_99_1, overriding pkg-config
1836   UNIQUE_CFLAGS
1837               C compiler flags for UNIQUE, overriding pkg-config
1838   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
1839   GTK_2_18_CFLAGS
1840               C compiler flags for GTK_2_18, overriding pkg-config
1841   GTK_2_18_LIBS
1842               linker flags for GTK_2_18, overriding pkg-config
1843   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
1844   GUI_LIBS    linker flags for GUI, overriding pkg-config
1845   CXX         C++ compiler command
1846   CXXFLAGS    C++ compiler flags
1847   SYNTHESIS_CFLAGS
1848               C compiler flags for SYNTHESIS, overriding pkg-config
1849   SYNTHESIS_LIBS
1850               linker flags for SYNTHESIS, overriding pkg-config
1851   GNOMEBLUETOOTH_CFLAGS
1852               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
1853   GNOMEBLUETOOTH_LIBS
1854               linker flags for GNOMEBLUETOOTH, overriding pkg-config
1855   EPACKAGE_CFLAGS
1856               C compiler flags for EPACKAGE, overriding pkg-config
1857   EPACKAGE_LIBS
1858               linker flags for EPACKAGE, overriding pkg-config
1859   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1860   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
1861   EBOOK_CFLAGS
1862               C compiler flags for EBOOK, overriding pkg-config
1863   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
1864   LIBICAL_AVAILABLE_CFLAGS
1865               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
1866   LIBICAL_AVAILABLE_LIBS
1867               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
1868   MCALB_CFLAGS
1869               C compiler flags for MCALB, overriding pkg-config
1870   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
1871   SQLITE_CFLAGS
1872               C compiler flags for SQLITE, overriding pkg-config
1873   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1874   CXXCPP      C++ preprocessor
1875   F77         Fortran 77 compiler command
1876   FFLAGS      Fortran 77 compiler flags
1877   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1878   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1879   GTHREAD_CFLAGS
1880               C compiler flags for GTHREAD, overriding pkg-config
1881   GTHREAD_LIBS
1882               linker flags for GTHREAD, overriding pkg-config
1883   GOBJECT_CFLAGS
1884               C compiler flags for GOBJECT, overriding pkg-config
1885   GOBJECT_LIBS
1886               linker flags for GOBJECT, overriding pkg-config
1887   GLIB216_CFLAGS
1888               C compiler flags for GLIB216, overriding pkg-config
1889   GLIB216_LIBS
1890               linker flags for GLIB216, overriding pkg-config
1891   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1892   NSS_LIBS    linker flags for NSS, overriding pkg-config
1893
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1896
1897 _ACEOF
1898 ac_status=$?
1899 fi
1900
1901 if test "$ac_init_help" = "recursive"; then
1902   # If there are subdirs, report their specific --help.
1903   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1904     test -d "$ac_dir" || continue
1905     ac_builddir=.
1906
1907 case "$ac_dir" in
1908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909 *)
1910   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1911   # A ".." for each directory in $ac_dir_suffix.
1912   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1913   case $ac_top_builddir_sub in
1914   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1915   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1916   esac ;;
1917 esac
1918 ac_abs_top_builddir=$ac_pwd
1919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1920 # for backward compatibility:
1921 ac_top_builddir=$ac_top_build_prefix
1922
1923 case $srcdir in
1924   .)  # We are building in place.
1925     ac_srcdir=.
1926     ac_top_srcdir=$ac_top_builddir_sub
1927     ac_abs_top_srcdir=$ac_pwd ;;
1928   [\\/]* | ?:[\\/]* )  # Absolute name.
1929     ac_srcdir=$srcdir$ac_dir_suffix;
1930     ac_top_srcdir=$srcdir
1931     ac_abs_top_srcdir=$srcdir ;;
1932   *) # Relative name.
1933     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1934     ac_top_srcdir=$ac_top_build_prefix$srcdir
1935     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1936 esac
1937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1938
1939     cd "$ac_dir" || { ac_status=$?; continue; }
1940     # Check for guested configure.
1941     if test -f "$ac_srcdir/configure.gnu"; then
1942       echo &&
1943       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1944     elif test -f "$ac_srcdir/configure"; then
1945       echo &&
1946       $SHELL "$ac_srcdir/configure" --help=recursive
1947     else
1948       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1949     fi || ac_status=$?
1950     cd "$ac_pwd" || { ac_status=$?; break; }
1951   done
1952 fi
1953
1954 test -n "$ac_init_help" && exit $ac_status
1955 if $ac_init_version; then
1956   cat <<\_ACEOF
1957 syncevolution configure 1.0beta3
1958 generated by GNU Autoconf 2.61
1959
1960 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1961 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1962 This configure script is free software; the Free Software Foundation
1963 gives unlimited permission to copy, distribute and modify it.
1964 _ACEOF
1965   exit
1966 fi
1967 cat >config.log <<_ACEOF
1968 This file contains any messages produced by compilers while
1969 running configure, to aid debugging if configure makes a mistake.
1970
1971 It was created by syncevolution $as_me 1.0beta3, which was
1972 generated by GNU Autoconf 2.61.  Invocation command line was
1973
1974   $ $0 $@
1975
1976 _ACEOF
1977 exec 5>>config.log
1978 {
1979 cat <<_ASUNAME
1980 ## --------- ##
1981 ## Platform. ##
1982 ## --------- ##
1983
1984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1992
1993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2000
2001 _ASUNAME
2002
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   echo "PATH: $as_dir"
2009 done
2010 IFS=$as_save_IFS
2011
2012 } >&5
2013
2014 cat >&5 <<_ACEOF
2015
2016
2017 ## ----------- ##
2018 ## Core tests. ##
2019 ## ----------- ##
2020
2021 _ACEOF
2022
2023
2024 # Keep a trace of the command line.
2025 # Strip out --no-create and --no-recursion so they do not pile up.
2026 # Strip out --silent because we don't want to record it for future runs.
2027 # Also quote any args containing shell meta-characters.
2028 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_configure_args=
2030 ac_configure_args0=
2031 ac_configure_args1=
2032 ac_must_keep_next=false
2033 for ac_pass in 1 2
2034 do
2035   for ac_arg
2036   do
2037     case $ac_arg in
2038     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040     | -silent | --silent | --silen | --sile | --sil)
2041       continue ;;
2042     *\'*)
2043       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044     esac
2045     case $ac_pass in
2046     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2047     2)
2048       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2049       if test $ac_must_keep_next = true; then
2050         ac_must_keep_next=false # Got value, back to normal.
2051       else
2052         case $ac_arg in
2053           *=* | --config-cache | -C | -disable-* | --disable-* \
2054           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056           | -with-* | --with-* | -without-* | --without-* | --x)
2057             case "$ac_configure_args0 " in
2058               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059             esac
2060             ;;
2061           -* ) ac_must_keep_next=true ;;
2062         esac
2063       fi
2064       ac_configure_args="$ac_configure_args '$ac_arg'"
2065       ;;
2066     esac
2067   done
2068 done
2069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2071
2072 # When interrupted or exit'd, cleanup temporary files, and complete
2073 # config.log.  We remove comments because anyway the quotes in there
2074 # would cause problems or look ugly.
2075 # WARNING: Use '\'' to represent an apostrophe within the trap.
2076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077 trap 'exit_status=$?
2078   # Save into config.log some information that might help in debugging.
2079   {
2080     echo
2081
2082     cat <<\_ASBOX
2083 ## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##
2086 _ASBOX
2087     echo
2088     # The following way of writing the cache mishandles newlines in values,
2089 (
2090   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091     eval ac_val=\$$ac_var
2092     case $ac_val in #(
2093     *${as_nl}*)
2094       case $ac_var in #(
2095       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2096 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2097       esac
2098       case $ac_var in #(
2099       _ | IFS | as_nl) ;; #(
2100       *) $as_unset $ac_var ;;
2101       esac ;;
2102     esac
2103   done
2104   (set) 2>&1 |
2105     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106     *${as_nl}ac_space=\ *)
2107       sed -n \
2108         "s/'\''/'\''\\\\'\'''\''/g;
2109           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110       ;; #(
2111     *)
2112       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113       ;;
2114     esac |
2115     sort
2116 )
2117     echo
2118
2119     cat <<\_ASBOX
2120 ## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##
2123 _ASBOX
2124     echo
2125     for ac_var in $ac_subst_vars
2126     do
2127       eval ac_val=\$$ac_var
2128       case $ac_val in
2129       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130       esac
2131       echo "$ac_var='\''$ac_val'\''"
2132     done | sort
2133     echo
2134
2135     if test -n "$ac_subst_files"; then
2136       cat <<\_ASBOX
2137 ## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##
2140 _ASBOX
2141       echo
2142       for ac_var in $ac_subst_files
2143       do
2144         eval ac_val=\$$ac_var
2145         case $ac_val in
2146         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147         esac
2148         echo "$ac_var='\''$ac_val'\''"
2149       done | sort
2150       echo
2151     fi
2152
2153     if test -s confdefs.h; then
2154       cat <<\_ASBOX
2155 ## ----------- ##
2156 ## confdefs.h. ##
2157 ## ----------- ##
2158 _ASBOX
2159       echo
2160       cat confdefs.h
2161       echo
2162     fi
2163     test "$ac_signal" != 0 &&
2164       echo "$as_me: caught signal $ac_signal"
2165     echo "$as_me: exit $exit_status"
2166   } >&5
2167   rm -f core *.core core.conftest.* &&
2168     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169     exit $exit_status
2170 ' 0
2171 for ac_signal in 1 2 13 15; do
2172   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2173 done
2174 ac_signal=0
2175
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 _ACEOF
2189
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2194
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2199
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer explicitly selected file to automatically selected ones.
2208 if test -n "$CONFIG_SITE"; then
2209   set x "$CONFIG_SITE"
2210 elif test "x$prefix" != xNONE; then
2211   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2212 else
2213   set x "$ac_default_prefix/share/config.site" \
2214         "$ac_default_prefix/etc/config.site"
2215 fi
2216 shift
2217 for ac_site_file
2218 do
2219   if test -r "$ac_site_file"; then
2220     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2221 echo "$as_me: loading site script $ac_site_file" >&6;}
2222     sed 's/^/| /' "$ac_site_file" >&5
2223     . "$ac_site_file"
2224   fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228   # Some versions of bash will fail to source /dev/null (special
2229   # files actually), so we avoid doing that.
2230   if test -f "$cache_file"; then
2231     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2232 echo "$as_me: loading cache $cache_file" >&6;}
2233     case $cache_file in
2234       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235       *)                      . "./$cache_file";;
2236     esac
2237   fi
2238 else
2239   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2240 echo "$as_me: creating cache $cache_file" >&6;}
2241   >$cache_file
2242 fi
2243
2244 # Check that the precious variables saved in the cache have kept the same
2245 # value.
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249   eval ac_new_set=\$ac_env_${ac_var}_set
2250   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251   eval ac_new_val=\$ac_env_${ac_var}_value
2252   case $ac_old_set,$ac_new_set in
2253     set,)
2254       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256       ac_cache_corrupted=: ;;
2257     ,set)
2258       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260       ac_cache_corrupted=: ;;
2261     ,);;
2262     *)
2263       if test "x$ac_old_val" != "x$ac_new_val"; then
2264         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2267 echo "$as_me:   former value:  $ac_old_val" >&2;}
2268         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2269 echo "$as_me:   current value: $ac_new_val" >&2;}
2270         ac_cache_corrupted=:
2271       fi;;
2272   esac
2273   # Pass precious variables to config.status.
2274   if test "$ac_new_set" = set; then
2275     case $ac_new_val in
2276     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277     *) ac_arg=$ac_var=$ac_new_val ;;
2278     esac
2279     case " $ac_configure_args " in
2280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2281       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2282     esac
2283   fi
2284 done
2285 if $ac_cache_corrupted; then
2286   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324 STABLE_VERSION=0.9.2+
2325
2326
2327 am__api_version='1.10'
2328
2329 ac_aux_dir=
2330 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2331   if test -f "$ac_dir/install-sh"; then
2332     ac_aux_dir=$ac_dir
2333     ac_install_sh="$ac_aux_dir/install-sh -c"
2334     break
2335   elif test -f "$ac_dir/install.sh"; then
2336     ac_aux_dir=$ac_dir
2337     ac_install_sh="$ac_aux_dir/install.sh -c"
2338     break
2339   elif test -f "$ac_dir/shtool"; then
2340     ac_aux_dir=$ac_dir
2341     ac_install_sh="$ac_aux_dir/shtool install -c"
2342     break
2343   fi
2344 done
2345 if test -z "$ac_aux_dir"; then
2346   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2347 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2348    { (exit 1); exit 1; }; }
2349 fi
2350
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2358
2359
2360 # Find a good install program.  We prefer a C program (faster),
2361 # so one script is as good as another.  But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2366 # AIX /bin/install
2367 # AmigaOS /C/install, which installs bootblocks on floppy discs
2368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371 # OS/2's system install, which has a completely different semantic
2372 # ./install, which can be erroneously created by make from ./install.sh.
2373 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2374 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2375 if test -z "$INSTALL"; then
2376 if test "${ac_cv_path_install+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384   # Account for people who put trailing slashes in PATH elements.
2385 case $as_dir/ in
2386   ./ | .// | /cC/* | \
2387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2388   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2389   /usr/ucb/* ) ;;
2390   *)
2391     # OSF1 and SCO ODT 3.0 have their own names for install.
2392     # Don't use installbsd from OSF since it installs stuff as root
2393     # by default.
2394     for ac_prog in ginstall scoinst install; do
2395       for ac_exec_ext in '' $ac_executable_extensions; do
2396         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2397           if test $ac_prog = install &&
2398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399             # AIX install.  It has an incompatible calling convention.
2400             :
2401           elif test $ac_prog = install &&
2402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403             # program-specific install script used by HP pwplus--don't use.
2404             :
2405           else
2406             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2407             break 3
2408           fi
2409         fi
2410       done
2411     done
2412     ;;
2413 esac
2414 done
2415 IFS=$as_save_IFS
2416
2417
2418 fi
2419   if test "${ac_cv_path_install+set}" = set; then
2420     INSTALL=$ac_cv_path_install
2421   else
2422     # As a last resort, use the slow shell script.  Don't cache a
2423     # value for INSTALL within a source directory, because that will
2424     # break other packages using the cache if that directory is
2425     # removed, or if the value is a relative name.
2426     INSTALL=$ac_install_sh
2427   fi
2428 fi
2429 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2430 echo "${ECHO_T}$INSTALL" >&6; }
2431
2432 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2433 # It thinks the first close brace ends the variable substitution.
2434 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435
2436 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437
2438 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439
2440 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2441 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2442 # Just in case
2443 sleep 1
2444 echo timestamp > conftest.file
2445 # Do `set' in a subshell so we don't clobber the current shell's
2446 # arguments.  Must try -L first in case configure is actually a
2447 # symlink; some systems play weird games with the mod time of symlinks
2448 # (eg FreeBSD returns the mod time of the symlink's containing
2449 # directory).
2450 if (
2451    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2452    if test "$*" = "X"; then
2453       # -L didn't work.
2454       set X `ls -t $srcdir/configure conftest.file`
2455    fi
2456    rm -f conftest.file
2457    if test "$*" != "X $srcdir/configure conftest.file" \
2458       && test "$*" != "X conftest.file $srcdir/configure"; then
2459
2460       # If neither matched, then we have a broken ls.  This can happen
2461       # if, for instance, CONFIG_SHELL is bash and it inherits a
2462       # broken ls alias from the environment.  This has actually
2463       # happened.  Such a system could not be considered "sane".
2464       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2465 alias in your environment" >&5
2466 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2467 alias in your environment" >&2;}
2468    { (exit 1); exit 1; }; }
2469    fi
2470
2471    test "$2" = conftest.file
2472    )
2473 then
2474    # Ok.
2475    :
2476 else
2477    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2478 Check your system clock" >&5
2479 echo "$as_me: error: newly created file is older than distributed files!
2480 Check your system clock" >&2;}
2481    { (exit 1); exit 1; }; }
2482 fi
2483 { echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6; }
2485 test "$program_prefix" != NONE &&
2486   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.  echo might interpret backslashes.
2491 # By default was `s,x,x', remove it if useless.
2492 cat <<\_ACEOF >conftest.sed
2493 s/[\\$]/&&/g;s/;s,x,x,$//
2494 _ACEOF
2495 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2496 rm -f conftest.sed
2497
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2500
2501 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2502 # Use eval to expand $SHELL
2503 if eval "$MISSING --run true"; then
2504   am_missing_run="$MISSING --run "
2505 else
2506   am_missing_run=
2507   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2508 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2509 fi
2510
2511 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2512 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2513 if test -z "$MKDIR_P"; then
2514   if test "${ac_cv_path_mkdir+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522   for ac_prog in mkdir gmkdir; do
2523          for ac_exec_ext in '' $ac_executable_extensions; do
2524            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2525            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2526              'mkdir (GNU coreutils) '* | \
2527              'mkdir (coreutils) '* | \
2528              'mkdir (fileutils) '4.1*)
2529                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2530                break 3;;
2531            esac
2532          done
2533        done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538
2539   if test "${ac_cv_path_mkdir+set}" = set; then
2540     MKDIR_P="$ac_cv_path_mkdir -p"
2541   else
2542     # As a last resort, use the slow shell script.  Don't cache a
2543     # value for MKDIR_P within a source directory, because that will
2544     # break other packages using the cache if that directory is
2545     # removed, or if the value is a relative name.
2546     test -d ./--version && rmdir ./--version
2547     MKDIR_P="$ac_install_sh -d"
2548   fi
2549 fi
2550 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2551 echo "${ECHO_T}$MKDIR_P" >&6; }
2552
2553 mkdir_p="$MKDIR_P"
2554 case $mkdir_p in
2555   [\\/$]* | ?:[\\/]*) ;;
2556   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2557 esac
2558
2559 for ac_prog in gawk mawk nawk awk
2560 do
2561   # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_AWK+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test -n "$AWK"; then
2569   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_AWK="$ac_prog"
2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 AWK=$ac_cv_prog_AWK
2589 if test -n "$AWK"; then
2590   { echo "$as_me:$LINENO: result: $AWK" >&5
2591 echo "${ECHO_T}$AWK" >&6; }
2592 else
2593   { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2595 fi
2596
2597
2598   test -n "$AWK" && break
2599 done
2600
2601 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2602 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2603 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2604 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   cat >conftest.make <<\_ACEOF
2608 SHELL = /bin/sh
2609 all:
2610         @echo '@@@%%%=$(MAKE)=@@@%%%'
2611 _ACEOF
2612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2614   *@@@%%%=?*=@@@%%%*)
2615     eval ac_cv_prog_make_${ac_make}_set=yes;;
2616   *)
2617     eval ac_cv_prog_make_${ac_make}_set=no;;
2618 esac
2619 rm -f conftest.make
2620 fi
2621 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2622   { echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6; }
2624   SET_MAKE=
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628   SET_MAKE="MAKE=${MAKE-make}"
2629 fi
2630
2631 rm -rf .tst 2>/dev/null
2632 mkdir .tst 2>/dev/null
2633 if test -d .tst; then
2634   am__leading_dot=.
2635 else
2636   am__leading_dot=_
2637 fi
2638 rmdir .tst 2>/dev/null
2639
2640 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2641   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2642   # is not polluted with repeated "-I."
2643   am__isrc=' -I$(srcdir)'
2644   # test to see if srcdir already configured
2645   if test -f $srcdir/config.status; then
2646     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2647 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2648    { (exit 1); exit 1; }; }
2649   fi
2650 fi
2651
2652 # test whether we have cygpath
2653 if test -z "$CYGPATH_W"; then
2654   if (cygpath --version) >/dev/null 2>/dev/null; then
2655     CYGPATH_W='cygpath -w'
2656   else
2657     CYGPATH_W=echo
2658   fi
2659 fi
2660
2661
2662 # Define the identity of the package.
2663  PACKAGE='syncevolution'
2664  VERSION='1.0beta3'
2665
2666
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE "$PACKAGE"
2669 _ACEOF
2670
2671
2672 cat >>confdefs.h <<_ACEOF
2673 #define VERSION "$VERSION"
2674 _ACEOF
2675
2676 # Some tools Automake needs.
2677
2678 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2679
2680
2681 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2682
2683
2684 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2685
2686
2687 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2688
2689
2690 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2691
2692 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2693
2694 # Installed binaries are usually stripped using `strip' when the user
2695 # run `make install-strip'.  However `strip' might not be the right
2696 # tool to use in cross-compilation environments, therefore Automake
2697 # will honor the `STRIP' environment variable to overrule this program.
2698 if test "$cross_compiling" != no; then
2699   if test -n "$ac_tool_prefix"; then
2700   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}strip; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_STRIP+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   if test -n "$STRIP"; then
2708   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 STRIP=$ac_cv_prog_STRIP
2728 if test -n "$STRIP"; then
2729   { echo "$as_me:$LINENO: result: $STRIP" >&5
2730 echo "${ECHO_T}$STRIP" >&6; }
2731 else
2732   { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2734 fi
2735
2736
2737 fi
2738 if test -z "$ac_cv_prog_STRIP"; then
2739   ac_ct_STRIP=$STRIP
2740   # Extract the first word of "strip", so it can be a program name with args.
2741 set dummy strip; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$ac_ct_STRIP"; then
2748   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     ac_cv_prog_ac_ct_STRIP="strip"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2768 if test -n "$ac_ct_STRIP"; then
2769   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2770 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2771 else
2772   { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2774 fi
2775
2776   if test "x$ac_ct_STRIP" = x; then
2777     STRIP=":"
2778   else
2779     case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2782 whose name does not start with the host triplet.  If you think this
2783 configuration is useful to you, please write to autoconf@gnu.org." >&5
2784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet.  If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2787 ac_tool_warned=yes ;;
2788 esac
2789     STRIP=$ac_ct_STRIP
2790   fi
2791 else
2792   STRIP="$ac_cv_prog_STRIP"
2793 fi
2794
2795 fi
2796 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2797
2798 # We need awk for the "check" target.  The system "awk" is bad on
2799 # some platforms.
2800 # Always define AMTAR for backward compatibility.
2801
2802 AMTAR=${AMTAR-"${am_missing_run}tar"}
2803
2804
2805 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2806 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2807 # Loop over all known methods to create a tar archive until one works.
2808 _am_tools='gnutar plaintar pax cpio none'
2809 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2810 # Do not fold the above two line into one, because Tru64 sh and
2811 # Solaris sh will not grok spaces in the rhs of `-'.
2812 for _am_tool in $_am_tools
2813 do
2814   case $_am_tool in
2815   gnutar)
2816     for _am_tar in tar gnutar gtar;
2817     do
2818       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2819    ($_am_tar --version) >&5 2>&5
2820    ac_status=$?
2821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822    (exit $ac_status); } && break
2823     done
2824     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2825     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2826     am__untar="$_am_tar -xf -"
2827     ;;
2828   plaintar)
2829     # Must skip GNU tar: if it does not support --format= it doesn't create
2830     # ustar tarball either.
2831     (tar --version) >/dev/null 2>&1 && continue
2832     am__tar='tar chf - "$$tardir"'
2833     am__tar_='tar chf - "$tardir"'
2834     am__untar='tar xf -'
2835     ;;
2836   pax)
2837     am__tar='pax -L -x ustar -w "$$tardir"'
2838     am__tar_='pax -L -x ustar -w "$tardir"'
2839     am__untar='pax -r'
2840     ;;
2841   cpio)
2842     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2843     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2844     am__untar='cpio -i -H ustar -d'
2845     ;;
2846   none)
2847     am__tar=false
2848     am__tar_=false
2849     am__untar=false
2850     ;;
2851   esac
2852
2853   # If the value was cached, stop now.  We just wanted to have am__tar
2854   # and am__untar set.
2855   test -n "${am_cv_prog_tar_ustar}" && break
2856
2857   # tar/untar a dummy directory, and stop if the command works
2858   rm -rf conftest.dir
2859   mkdir conftest.dir
2860   echo GrepMe > conftest.dir/file
2861   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2862    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2863    ac_status=$?
2864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865    (exit $ac_status); }
2866   rm -rf conftest.dir
2867   if test -s conftest.tar; then
2868     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2869    ($am__untar <conftest.tar) >&5 2>&5
2870    ac_status=$?
2871    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872    (exit $ac_status); }
2873     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2874   fi
2875 done
2876 rm -rf conftest.dir
2877
2878 if test "${am_cv_prog_tar_ustar+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   am_cv_prog_tar_ustar=$_am_tool
2882 fi
2883
2884 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2885 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2886
2887
2888
2889
2890
2891
2892
2893
2894 ac_config_headers="$ac_config_headers config.h"
2895
2896
2897
2898
2899 DEVICE_TYPE=workstation
2900
2901
2902 # Check whether --with-synthesis-src was given.
2903 if test "${with_synthesis_src+set}" = set; then
2904   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
2905              test "$SYNTHESISSRC" != "yes" || { { echo "$as_me:$LINENO: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&5
2906 echo "$as_me: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&2;}
2907    { (exit 1); exit 1; }; }
2908 else
2909   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
2910 fi
2911
2912
2913
2914 # Check whether --with-syncml-engines was given.
2915 if test "${with_syncml_engines+set}" = set; then
2916   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
2917 else
2918   SYNCML_ENGINES=both
2919 fi
2920
2921
2922 case $SYNCML_ENGINES in both|client)
2923 cat >>confdefs.h <<\_ACEOF
2924 #define ENABLE_SYNCML_CLIENT 1
2925 _ACEOF
2926 ;; esac
2927 case $SYNCML_ENGINES in both|server)
2928 cat >>confdefs.h <<\_ACEOF
2929 #define ENABLE_SYNCML_SERVER 1
2930 _ACEOF
2931 ;; esac
2932 case $SYNCML_ENGINES in both|server|client) true;; *) { { echo "$as_me:$LINENO: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&5
2933 echo "$as_me: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&2;}
2934    { (exit 1); exit 1; }; };; esac
2935
2936
2937 # Check whether --with-synthesis-username was given.
2938 if test "${with_synthesis_username+set}" = set; then
2939   withval=$with_synthesis_username; USERNAME="$withval"
2940 else
2941   USERNAME="guest"
2942 fi
2943
2944
2945
2946 # Check whether --with-synthesis-revision was given.
2947 if test "${with_synthesis_revision+set}" = set; then
2948   withval=$with_synthesis_revision; REVISION="$withval"
2949 fi
2950
2951
2952 # Check whether --enable-shared was given.
2953 if test "${enable_shared+set}" = set; then
2954   enableval=$enable_shared; enable_shared="$enableval"
2955 else
2956   enable_shared="no"
2957 fi
2958
2959
2960 # Check whether --enable-static was given.
2961 if test "${enable_static+set}" = set; then
2962   enableval=$enable_static; enable_static="$enableval"
2963 else
2964   enable_static="no"
2965 fi
2966
2967
2968 # Check whether --enable-unit-tests was given.
2969 if test "${enable_unit_tests+set}" = set; then
2970   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
2971 else
2972   enable_unit_tests="no"
2973 fi
2974
2975 # Check whether --enable-integration-tests was given.
2976 if test "${enable_integration_tests+set}" = set; then
2977   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
2978 else
2979   enable_integration_tests="no"
2980 fi
2981
2982
2983 # Check whether --enable-static-cxx was given.
2984 if test "${enable_static_cxx+set}" = set; then
2985   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
2986 else
2987   enable_static_cxx="no"
2988 fi
2989
2990
2991 # Check whether --enable-evolution-compatibility was given.
2992 if test "${enable_evolution_compatibility+set}" = set; then
2993   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
2994 else
2995   enable_evolution_compatibility="no"
2996 fi
2997
2998
2999 # Check whether --enable-developer-mode was given.
3000 if test "${enable_developer_mode+set}" = set; then
3001   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
3002 else
3003   enable_developer_mode="no"
3004 fi
3005
3006
3007 # Maemo hacks:
3008 # - set the (non-standard!) DBUS_DEFAULT_TIMEOUT
3009 # - wrap e_book_from_string() to fix invalid parameter
3010 # - don't use UTF-8 encoding in Perl script
3011 # Check whether --enable-maemo was given.
3012 if test "${enable_maemo+set}" = set; then
3013   enableval=$enable_maemo;
3014 cat >>confdefs.h <<\_ACEOF
3015 #define ENABLE_MAEMO 1
3016 _ACEOF
3017
3018                DEVICE_TYPE=Maemo
3019                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
3020 fi
3021
3022
3023
3024 DEPDIR="${am__leading_dot}deps"
3025
3026 ac_config_commands="$ac_config_commands depfiles"
3027
3028
3029 am_make=${MAKE-make}
3030 cat > confinc << 'END'
3031 am__doit:
3032         @echo done
3033 .PHONY: am__doit
3034 END
3035 # If we don't find an include directive, just comment out the code.
3036 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3037 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3038 am__include="#"
3039 am__quote=
3040 _am_result=none
3041 # First try GNU make style include.
3042 echo "include confinc" > confmf
3043 # We grep out `Entering directory' and `Leaving directory'
3044 # messages which can occur if `w' ends up in MAKEFLAGS.
3045 # In particular we don't look at `^make:' because GNU make might
3046 # be invoked under some other name (usually "gmake"), in which
3047 # case it prints its new name instead of `make'.
3048 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3049    am__include=include
3050    am__quote=
3051    _am_result=GNU
3052 fi
3053 # Now try BSD make style include.
3054 if test "$am__include" = "#"; then
3055    echo '.include "confinc"' > confmf
3056    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3057       am__include=.include
3058       am__quote="\""
3059       _am_result=BSD
3060    fi
3061 fi
3062
3063
3064 { echo "$as_me:$LINENO: result: $_am_result" >&5
3065 echo "${ECHO_T}$_am_result" >&6; }
3066 rm -f confinc confmf
3067
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then
3070   enableval=$enable_dependency_tracking;
3071 fi
3072
3073 if test "x$enable_dependency_tracking" != xno; then
3074   am_depcomp="$ac_aux_dir/depcomp"
3075   AMDEPBACKSLASH='\'
3076 fi
3077  if test "x$enable_dependency_tracking" != xno; then
3078   AMDEP_TRUE=
3079   AMDEP_FALSE='#'
3080 else
3081   AMDEP_TRUE='#'
3082   AMDEP_FALSE=
3083 fi
3084
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091 if test -n "$ac_tool_prefix"; then
3092   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096 if test "${ac_cv_prog_CC+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   if test -n "$CC"; then
3100   ac_cv_prog_CC="$CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107   for ac_exec_ext in '' $ac_executable_extensions; do
3108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 CC=$ac_cv_prog_CC
3120 if test -n "$CC"; then
3121   { echo "$as_me:$LINENO: result: $CC" >&5
3122 echo "${ECHO_T}$CC" >&6; }
3123 else
3124   { echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6; }
3126 fi
3127
3128
3129 fi
3130 if test -z "$ac_cv_prog_CC"; then
3131   ac_ct_CC=$CC
3132   # Extract the first word of "gcc", so it can be a program name with args.
3133 set dummy gcc; ac_word=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   if test -n "$ac_ct_CC"; then
3140   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_ac_ct_CC="gcc"
3150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 echo "${ECHO_T}$ac_ct_CC" >&6; }
3163 else
3164   { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3166 fi
3167
3168   if test "x$ac_ct_CC" = x; then
3169     CC=""
3170   else
3171     case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3174 whose name does not start with the host triplet.  If you think this
3175 configuration is useful to you, please write to autoconf@gnu.org." >&5
3176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3177 whose name does not start with the host triplet.  If you think this
3178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3179 ac_tool_warned=yes ;;
3180 esac
3181     CC=$ac_ct_CC
3182   fi
3183 else
3184   CC="$ac_cv_prog_CC"
3185 fi
3186
3187 if test -z "$CC"; then
3188           if test -n "$ac_tool_prefix"; then
3189     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}cc; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$CC"; then
3197   ac_cv_prog_CC="$CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_CC="${ac_tool_prefix}cc"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218   { echo "$as_me:$LINENO: result: $CC" >&5
3219 echo "${ECHO_T}$CC" >&6; }
3220 else
3221   { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3223 fi
3224
3225
3226   fi
3227 fi
3228 if test -z "$CC"; then
3229   # Extract the first word of "cc", so it can be a program name with args.
3230 set dummy cc; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_CC+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   if test -n "$CC"; then
3237   ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239   ac_prog_rejected=no
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245   for ac_exec_ext in '' $ac_executable_extensions; do
3246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3248        ac_prog_rejected=yes
3249        continue
3250      fi
3251     ac_cv_prog_CC="cc"
3252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 if test $ac_prog_rejected = yes; then
3260   # We found a bogon in the path, so make sure we never use it.
3261   set dummy $ac_cv_prog_CC
3262   shift
3263   if test $# != 0; then
3264     # We chose a different compiler from the bogus one.
3265     # However, it has the same basename, so the bogon will be chosen
3266     # first if we set CC to just the basename; use the full file name.
3267     shift
3268     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3269   fi
3270 fi
3271 fi
3272 fi
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275   { echo "$as_me:$LINENO: result: $CC" >&5
3276 echo "${ECHO_T}$CC" >&6; }
3277 else
3278   { echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6; }
3280 fi
3281
3282
3283 fi
3284 if test -z "$CC"; then
3285   if test -n "$ac_tool_prefix"; then
3286   for ac_prog in cl.exe
3287   do
3288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3292 if test "${ac_cv_prog_CC+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$CC"; then
3296   ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317   { echo "$as_me:$LINENO: result: $CC" >&5
3318 echo "${ECHO_T}$CC" >&6; }
3319 else
3320   { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3322 fi
3323
3324
3325     test -n "$CC" && break
3326   done
3327 fi
3328 if test -z "$CC"; then
3329   ac_ct_CC=$CC
3330   for ac_prog in cl.exe
3331 do
3332   # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   if test -n "$ac_ct_CC"; then
3340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349     ac_cv_prog_ac_ct_CC="$ac_prog"
3350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3362 echo "${ECHO_T}$ac_ct_CC" >&6; }
3363 else
3364   { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3366 fi
3367
3368
3369   test -n "$ac_ct_CC" && break
3370 done
3371
3372   if test "x$ac_ct_CC" = x; then
3373     CC=""
3374   else
3375     case $cross_compiling:$ac_tool_warned in
3376 yes:)
3377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet.  If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&5
3380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3381 whose name does not start with the host triplet.  If you think this
3382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385     CC=$ac_ct_CC
3386   fi
3387 fi
3388
3389 fi
3390
3391
3392 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3393 See \`config.log' for more details." >&5
3394 echo "$as_me: error: no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details." >&2;}
3396    { (exit 1); exit 1; }; }
3397
3398 # Provide some information about the compiler.
3399 echo "$as_me:$LINENO: checking for C compiler version" >&5
3400 ac_compiler=`set X $ac_compile; echo $2`
3401 { (ac_try="$ac_compiler --version >&5"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compiler --version >&5") 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }
3411 { (ac_try="$ac_compiler -v >&5"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_compiler -v >&5") 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }
3421 { (ac_try="$ac_compiler -V >&5"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_compiler -V >&5") 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }
3431
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3451 # of exeext.
3452 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3453 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3454 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3455 #
3456 # List of possible output files, starting from the most likely.
3457 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3458 # only as a last resort.  b.out is created by i960 compilers.
3459 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3460 #
3461 # The IRIX 6 linker writes into existing files which may not be
3462 # executable, retaining their permissions.  Remove them first so a
3463 # subsequent execution test works.
3464 ac_rmfiles=
3465 for ac_file in $ac_files
3466 do
3467   case $ac_file in
3468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3469     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3470   esac
3471 done
3472 rm -f $ac_rmfiles
3473
3474 if { (ac_try="$ac_link_default"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_link_default") 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }; then
3484   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3485 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3486 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3487 # so that the user can short-circuit this test for compilers unknown to
3488 # Autoconf.
3489 for ac_file in $ac_files ''
3490 do
3491   test -f "$ac_file" || continue
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3494         ;;
3495     [ab].out )
3496         # We found the default executable, but exeext='' is most
3497         # certainly right.
3498         break;;
3499     *.* )
3500         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3501         then :; else
3502            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503         fi
3504         # We set ac_cv_exeext here because the later test for it is not
3505         # safe: cross compilers may not add the suffix if given an `-o'
3506         # argument, so we may need to know it at that point already.
3507         # Even if this section looks crufty: it has the advantage of
3508         # actually working.
3509         break;;
3510     * )
3511         break;;
3512   esac
3513 done
3514 test "$ac_cv_exeext" = no && ac_cv_exeext=
3515
3516 else
3517   ac_file=''
3518 fi
3519
3520 { echo "$as_me:$LINENO: result: $ac_file" >&5
3521 echo "${ECHO_T}$ac_file" >&6; }
3522 if test -z "$ac_file"; then
3523   echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3527 See \`config.log' for more details." >&5
3528 echo "$as_me: error: C compiler cannot create executables
3529 See \`config.log' for more details." >&2;}
3530    { (exit 77); exit 77; }; }
3531 fi
3532
3533 ac_exeext=$ac_cv_exeext
3534
3535 # Check that the compiler produces executables we can run.  If not, either
3536 # the compiler is broken, or we cross compile.
3537 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3540 # If not cross compiling, check that we can run a simple program.
3541 if test "$cross_compiling" != yes; then
3542   if { ac_try='./$ac_file'
3543   { (case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_try") 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552     cross_compiling=no
3553   else
3554     if test "$cross_compiling" = maybe; then
3555         cross_compiling=yes
3556     else
3557         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3558 If you meant to cross compile, use \`--host'.
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: cannot run C compiled programs.
3561 If you meant to cross compile, use \`--host'.
3562 See \`config.log' for more details." >&2;}
3563    { (exit 1); exit 1; }; }
3564     fi
3565   fi
3566 fi
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3569
3570 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 # Check that the compiler produces executables we can run.  If not, either
3573 # the compiler is broken, or we cross compile.
3574 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3575 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3576 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3577 echo "${ECHO_T}$cross_compiling" >&6; }
3578
3579 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3580 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3581 if { (ac_try="$ac_link"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_link") 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; then
3591   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3592 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3593 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 # `rm'.
3595 for ac_file in conftest.exe conftest conftest.*; do
3596   test -f "$ac_file" || continue
3597   case $ac_file in
3598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3599     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600           break;;
3601     * ) break;;
3602   esac
3603 done
3604 else
3605   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details." >&5
3607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details." >&2;}
3609    { (exit 1); exit 1; }; }
3610 fi
3611
3612 rm -f conftest$ac_cv_exeext
3613 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3614 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3615
3616 rm -f conftest.$ac_ext
3617 EXEEXT=$ac_cv_exeext
3618 ac_exeext=$EXEEXT
3619 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3621 if test "${ac_cv_objext+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.o conftest.obj
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_compile") 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; then
3650   for ac_file in conftest.o conftest.obj conftest.*; do
3651   test -f "$ac_file" || continue;
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3654     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655        break;;
3656   esac
3657 done
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details." >&2;}
3666    { (exit 1); exit 1; }; }
3667 fi
3668
3669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3670 fi
3671 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3672 echo "${ECHO_T}$ac_cv_objext" >&6; }
3673 OBJEXT=$ac_cv_objext
3674 ac_objext=$OBJEXT
3675 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3676 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3677 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686
3687 int
3688 main ()
3689 {
3690 #ifndef __GNUC__
3691        choke me
3692 #endif
3693
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3700 case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705   (eval "$ac_compile") 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } && {
3712          test -z "$ac_c_werror_flag" ||
3713          test ! -s conftest.err
3714        } && test -s conftest.$ac_objext; then
3715   ac_compiler_gnu=yes
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720         ac_compiler_gnu=no
3721 fi
3722
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3729 GCC=`test $ac_compiler_gnu = yes && echo yes`
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_cc_g+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   ac_save_c_werror_flag=$ac_c_werror_flag
3738    ac_c_werror_flag=yes
3739    ac_cv_prog_cc_g=no
3740    CFLAGS="-g"
3741    cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 int
3749 main ()
3750 {
3751
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760   *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763   (eval "$ac_compile") 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } && {
3770          test -z "$ac_c_werror_flag" ||
3771          test ! -s conftest.err
3772        } && test -s conftest.$ac_objext; then
3773   ac_cv_prog_cc_g=yes
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778         CFLAGS=""
3779       cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801   (eval "$ac_compile") 2>conftest.er1
3802   ac_status=$?
3803   grep -v '^ *+' conftest.er1 >conftest.err
3804   rm -f conftest.er1
3805   cat conftest.err >&5
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); } && {
3808          test -z "$ac_c_werror_flag" ||
3809          test ! -s conftest.err
3810        } && test -s conftest.$ac_objext; then
3811   :
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816         ac_c_werror_flag=$ac_save_c_werror_flag
3817          CFLAGS="-g"
3818          cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_compile") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } && {
3847          test -z "$ac_c_werror_flag" ||
3848          test ! -s conftest.err
3849        } && test -s conftest.$ac_objext; then
3850   ac_cv_prog_cc_g=yes
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855
3856 fi
3857
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 fi
3860
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865    ac_c_werror_flag=$ac_save_c_werror_flag
3866 fi
3867 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3868 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3869 if test "$ac_test_CFLAGS" = set; then
3870   CFLAGS=$ac_save_CFLAGS
3871 elif test $ac_cv_prog_cc_g = yes; then
3872   if test "$GCC" = yes; then
3873     CFLAGS="-g -O2"
3874   else
3875     CFLAGS="-g"
3876   fi
3877 else
3878   if test "$GCC" = yes; then
3879     CFLAGS="-O2"
3880   else
3881     CFLAGS=
3882   fi
3883 fi
3884 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3885 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_c89+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_cv_prog_cc_c89=no
3890 ac_save_CC=$CC
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #include <stdarg.h>
3898 #include <stdio.h>
3899 #include <sys/types.h>
3900 #include <sys/stat.h>
3901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3902 struct buf { int x; };
3903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904 static char *e (p, i)
3905      char **p;
3906      int i;
3907 {
3908   return p[i];
3909 }
3910 static char *f (char * (*g) (char **, int), char **p, ...)
3911 {
3912   char *s;
3913   va_list v;
3914   va_start (v,p);
3915   s = g (p, va_arg (v,int));
3916   va_end (v);
3917   return s;
3918 }
3919
3920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3921    function prototypes and stuff, but not '\xHH' hex character constants.
3922    These don't provoke an error unfortunately, instead are silently treated
3923    as 'x'.  The following induces an error, until -std is added to get
3924    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3925    array size at least.  It's necessary to write '\x00'==0 to get something
3926    that's true only with -std.  */
3927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3928
3929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930    inside strings and character constants.  */
3931 #define FOO(x) 'x'
3932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3933
3934 int test (int i, double x);
3935 struct s1 {int (*f) (int a);};
3936 struct s2 {int (*f) (double a);};
3937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938 int argc;
3939 char **argv;
3940 int
3941 main ()
3942 {
3943 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3950 do
3951   CC="$ac_save_CC $ac_arg"
3952   rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959   (eval "$ac_compile") 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && {
3966          test -z "$ac_c_werror_flag" ||
3967          test ! -s conftest.err
3968        } && test -s conftest.$ac_objext; then
3969   ac_cv_prog_cc_c89=$ac_arg
3970 else
3971   echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974
3975 fi
3976
3977 rm -f core conftest.err conftest.$ac_objext
3978   test "x$ac_cv_prog_cc_c89" != "xno" && break
3979 done
3980 rm -f conftest.$ac_ext
3981 CC=$ac_save_CC
3982
3983 fi
3984 # AC_CACHE_VAL
3985 case "x$ac_cv_prog_cc_c89" in
3986   x)
3987     { echo "$as_me:$LINENO: result: none needed" >&5
3988 echo "${ECHO_T}none needed" >&6; } ;;
3989   xno)
3990     { echo "$as_me:$LINENO: result: unsupported" >&5
3991 echo "${ECHO_T}unsupported" >&6; } ;;
3992   *)
3993     CC="$CC $ac_cv_prog_cc_c89"
3994     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3995 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3996 esac
3997
3998
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005 depcc="$CC"   am_compiler_list=
4006
4007 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4009 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013   # We make a subdir and do the tests there.  Otherwise we can end up
4014   # making bogus files that we don't know about and never remove.  For
4015   # instance it was reported that on HP-UX the gcc test will end up
4016   # making a dummy file named `D' -- because `-MD' means `put the output
4017   # in D'.
4018   mkdir conftest.dir
4019   # Copy depcomp to subdir because otherwise we won't find it if we're
4020   # using a relative directory.
4021   cp "$am_depcomp" conftest.dir
4022   cd conftest.dir
4023   # We will build objects and dependencies in a subdirectory because
4024   # it helps to detect inapplicable dependency modes.  For instance
4025   # both Tru64's cc and ICC support -MD to output dependencies as a
4026   # side effect of compilation, but ICC will put the dependencies in
4027   # the current directory while Tru64 will put them in the object
4028   # directory.
4029   mkdir sub
4030
4031   am_cv_CC_dependencies_compiler_type=none
4032   if test "$am_compiler_list" = ""; then
4033      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4034   fi
4035   for depmode in $am_compiler_list; do
4036     # Setup a source with many dependencies, because some compilers
4037     # like to wrap large dependency lists on column 80 (with \), and
4038     # we should not choose a depcomp mode which is confused by this.
4039     #
4040     # We need to recreate these files for each test, as the compiler may
4041     # overwrite some of them when testing with obscure command lines.
4042     # This happens at least with the AIX C compiler.
4043     : > sub/conftest.c
4044     for i in 1 2 3 4 5 6; do
4045       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047       # Solaris 8's {/usr,}/bin/sh.
4048       touch sub/conftst$i.h
4049     done
4050     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052     case $depmode in
4053     nosideeffect)
4054       # after this tag, mechanisms are not by side-effect, so they'll
4055       # only be used when explicitly requested
4056       if test "x$enable_dependency_tracking" = xyes; then
4057         continue
4058       else
4059         break
4060       fi
4061       ;;
4062     none) break ;;
4063     esac
4064     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065     # mode.  It turns out that the SunPro C++ compiler does not properly
4066     # handle `-M -o', and we need to detect this.
4067     if depmode=$depmode \
4068        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4069        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4070        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4071          >/dev/null 2>conftest.err &&
4072        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4073        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4074        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4075        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4076       # icc doesn't choke on unknown options, it will just issue warnings
4077       # or remarks (even with -Werror).  So we grep stderr for any message
4078       # that says an option was ignored or not supported.
4079       # When given -MP, icc 7.0 and 7.1 complain thusly:
4080       #   icc: Command line warning: ignoring option '-M'; no argument required
4081       # The diagnosis changed in icc 8.0:
4082       #   icc: Command line remark: option '-MP' not supported
4083       if (grep 'ignoring option' conftest.err ||
4084           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4085         am_cv_CC_dependencies_compiler_type=$depmode
4086         break
4087       fi
4088     fi
4089   done
4090
4091   cd ..
4092   rm -rf conftest.dir
4093 else
4094   am_cv_CC_dependencies_compiler_type=none
4095 fi
4096
4097 fi
4098 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4101
4102  if
4103   test "x$enable_dependency_tracking" != xno \
4104   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4105   am__fastdepCC_TRUE=
4106   am__fastdepCC_FALSE='#'
4107 else
4108   am__fastdepCC_TRUE='#'
4109   am__fastdepCC_FALSE=
4110 fi
4111
4112
4113
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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4123   CPP=
4124 fi
4125 if test -z "$CPP"; then
4126   if test "${ac_cv_prog_CPP+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129       # Double quotes because CPP needs to be expanded
4130     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4131     do
4132       ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4134 do
4135   # Use a header file that comes with gcc, so configuring glibc
4136   # with a fresh cross-compiler works.
4137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138   # <limits.h> exists even on freestanding compilers.
4139   # On the NeXT, cc -E runs the code through the compiler's parser,
4140   # not just through cpp. "Syntax error" is here to catch this case.
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152                      Syntax error
4153 _ACEOF
4154 if { (ac_try="$ac_cpp conftest.$ac_ext"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } >/dev/null && {
4167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4168          test ! -s conftest.err
4169        }; then
4170   :
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175   # Broken: fails on valid input.
4176 continue
4177 fi
4178
4179 rm -f conftest.err conftest.$ac_ext
4180
4181   # OK, works on sane cases.  Now check whether nonexistent headers
4182   # can be detected and how.
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <ac_nonexistent.h>
4190 _ACEOF
4191 if { (ac_try="$ac_cpp conftest.$ac_ext"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } >/dev/null && {
4204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4205          test ! -s conftest.err
4206        }; then
4207   # Broken: success on invalid input.
4208 continue
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213   # Passes both tests.
4214 ac_preproc_ok=:
4215 break
4216 fi
4217
4218 rm -f conftest.err conftest.$ac_ext
4219
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then
4224   break
4225 fi
4226
4227     done
4228     ac_cv_prog_CPP=$CPP
4229
4230 fi
4231   CPP=$ac_cv_prog_CPP
4232 else
4233   ac_cv_prog_CPP=$CPP
4234 fi
4235 { echo "$as_me:$LINENO: result: $CPP" >&5
4236 echo "${ECHO_T}$CPP" >&6; }
4237 ac_preproc_ok=false
4238 for ac_c_preproc_warn_flag in '' yes
4239 do
4240   # Use a header file that comes with gcc, so configuring glibc
4241   # with a fresh cross-compiler works.
4242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243   # <limits.h> exists even on freestanding compilers.
4244   # On the NeXT, cc -E runs the code through the compiler's parser,
4245   # not just through cpp. "Syntax error" is here to catch this case.
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 #ifdef __STDC__
4253 # include <limits.h>
4254 #else
4255 # include <assert.h>
4256 #endif
4257                      Syntax error
4258 _ACEOF
4259 if { (ac_try="$ac_cpp conftest.$ac_ext"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } >/dev/null && {
4272          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4273          test ! -s conftest.err
4274        }; then
4275   :
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280   # Broken: fails on valid input.
4281 continue
4282 fi
4283
4284 rm -f conftest.err conftest.$ac_ext
4285
4286   # OK, works on sane cases.  Now check whether nonexistent headers
4287   # can be detected and how.
4288   cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 #include <ac_nonexistent.h>
4295 _ACEOF
4296 if { (ac_try="$ac_cpp conftest.$ac_ext"
4297 case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } >/dev/null && {
4309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310          test ! -s conftest.err
4311        }; then
4312   # Broken: success on invalid input.
4313 continue
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318   # Passes both tests.
4319 ac_preproc_ok=:
4320 break
4321 fi
4322
4323 rm -f conftest.err conftest.$ac_ext
4324
4325 done
4326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327 rm -f conftest.err conftest.$ac_ext
4328 if $ac_preproc_ok; then
4329   :
4330 else
4331   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4332 See \`config.log' for more details." >&5
4333 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4334 See \`config.log' for more details." >&2;}
4335    { (exit 1); exit 1; }; }
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4346 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4347 if test "${ac_cv_path_GREP+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   # Extract the first word of "grep ggrep" to use in msg output
4351 if test -z "$GREP"; then
4352 set dummy grep ggrep; ac_prog_name=$2
4353 if test "${ac_cv_path_GREP+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   ac_path_GREP_found=false
4357 # Loop through the user's path and test for each of PROGNAME-LIST
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_prog in grep ggrep; do
4364   for ac_exec_ext in '' $ac_executable_extensions; do
4365     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4366     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4367     # Check for GNU ac_path_GREP and select it if it is found.
4368   # Check for GNU $ac_path_GREP
4369 case `"$ac_path_GREP" --version 2>&1` in
4370 *GNU*)
4371   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4372 *)
4373   ac_count=0
4374   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4375   while :
4376   do
4377     cat "conftest.in" "conftest.in" >"conftest.tmp"
4378     mv "conftest.tmp" "conftest.in"
4379     cp "conftest.in" "conftest.nl"
4380     echo 'GREP' >> "conftest.nl"
4381     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383     ac_count=`expr $ac_count + 1`
4384     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4385       # Best one so far, save it but keep looking for a better one
4386       ac_cv_path_GREP="$ac_path_GREP"
4387       ac_path_GREP_max=$ac_count
4388     fi
4389     # 10*(2^10) chars as input seems more than enough
4390     test $ac_count -gt 10 && break
4391   done
4392   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393 esac
4394
4395
4396     $ac_path_GREP_found && break 3
4397   done
4398 done
4399
4400 done
4401 IFS=$as_save_IFS
4402
4403
4404 fi
4405
4406 GREP="$ac_cv_path_GREP"
4407 if test -z "$GREP"; then
4408   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4409 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4410    { (exit 1); exit 1; }; }
4411 fi
4412
4413 else
4414   ac_cv_path_GREP=$GREP
4415 fi
4416
4417
4418 fi
4419 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4420 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4421  GREP="$ac_cv_path_GREP"
4422
4423
4424 { echo "$as_me:$LINENO: checking for egrep" >&5
4425 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4426 if test "${ac_cv_path_EGREP+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4430    then ac_cv_path_EGREP="$GREP -E"
4431    else
4432      # Extract the first word of "egrep" to use in msg output
4433 if test -z "$EGREP"; then
4434 set dummy egrep; ac_prog_name=$2
4435 if test "${ac_cv_path_EGREP+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   ac_path_EGREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_prog in egrep; do
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4448     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4449     # Check for GNU ac_path_EGREP and select it if it is found.
4450   # Check for GNU $ac_path_EGREP
4451 case `"$ac_path_EGREP" --version 2>&1` in
4452 *GNU*)
4453   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4454 *)
4455   ac_count=0
4456   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4457   while :
4458   do
4459     cat "conftest.in" "conftest.in" >"conftest.tmp"
4460     mv "conftest.tmp" "conftest.in"
4461     cp "conftest.in" "conftest.nl"
4462     echo 'EGREP' >> "conftest.nl"
4463     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465     ac_count=`expr $ac_count + 1`
4466     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4467       # Best one so far, save it but keep looking for a better one
4468       ac_cv_path_EGREP="$ac_path_EGREP"
4469       ac_path_EGREP_max=$ac_count
4470     fi
4471     # 10*(2^10) chars as input seems more than enough
4472     test $ac_count -gt 10 && break
4473   done
4474   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 esac
4476
4477
4478     $ac_path_EGREP_found && break 3
4479   done
4480 done
4481
4482 done
4483 IFS=$as_save_IFS
4484
4485
4486 fi
4487
4488 EGREP="$ac_cv_path_EGREP"
4489 if test -z "$EGREP"; then
4490   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4491 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4492    { (exit 1); exit 1; }; }
4493 fi
4494
4495 else
4496   ac_cv_path_EGREP=$EGREP
4497 fi
4498
4499
4500    fi
4501 fi
4502 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4503 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4504  EGREP="$ac_cv_path_EGREP"
4505
4506
4507 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4508 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4509 if test "${ac_cv_header_stdc+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 #include <stdlib.h>
4519 #include <stdarg.h>
4520 #include <string.h>
4521 #include <float.h>
4522
4523 int
4524 main ()
4525 {
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_compile") 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } && {
4545          test -z "$ac_c_werror_flag" ||
4546          test ! -s conftest.err
4547        } && test -s conftest.$ac_objext; then
4548   ac_cv_header_stdc=yes
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553         ac_cv_header_stdc=no
4554 fi
4555
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <string.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570   $EGREP "memchr" >/dev/null 2>&1; then
4571   :
4572 else
4573   ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #include <stdlib.h>
4588
4589 _ACEOF
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591   $EGREP "free" >/dev/null 2>&1; then
4592   :
4593 else
4594   ac_cv_header_stdc=no
4595 fi
4596 rm -f conftest*
4597
4598 fi
4599
4600 if test $ac_cv_header_stdc = yes; then
4601   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4602   if test "$cross_compiling" = yes; then
4603   :
4604 else
4605   cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h.  */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h.  */
4611 #include <ctype.h>
4612 #include <stdlib.h>
4613 #if ((' ' & 0x0FF) == 0x020)
4614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4616 #else
4617 # define ISLOWER(c) \
4618                    (('a' <= (c) && (c) <= 'i') \
4619                      || ('j' <= (c) && (c) <= 'r') \
4620                      || ('s' <= (c) && (c) <= 'z'))
4621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4622 #endif
4623
4624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4625 int
4626 main ()
4627 {
4628   int i;
4629   for (i = 0; i < 256; i++)
4630     if (XOR (islower (i), ISLOWER (i))
4631         || toupper (i) != TOUPPER (i))
4632       return 2;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest$ac_exeext
4637 if { (ac_try="$ac_link"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_link") 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647   { (case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_try") 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   :
4657 else
4658   echo "$as_me: program exited with status $ac_status" >&5
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ( exit $ac_status )
4663 ac_cv_header_stdc=no
4664 fi
4665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 fi
4667
4668
4669 fi
4670 fi
4671 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4672 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4673 if test $ac_cv_header_stdc = yes; then
4674
4675 cat >>confdefs.h <<\_ACEOF
4676 #define STDC_HEADERS 1
4677 _ACEOF
4678
4679 fi
4680
4681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4692                   inttypes.h stdint.h unistd.h
4693 do
4694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 $ac_includes_default
4707
4708 #include <$ac_header>
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (ac_try="$ac_compile"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_compile") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && {
4724          test -z "$ac_c_werror_flag" ||
4725          test ! -s conftest.err
4726        } && test -s conftest.$ac_objext; then
4727   eval "$as_ac_Header=yes"
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732         eval "$as_ac_Header=no"
4733 fi
4734
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 ac_res=`eval echo '${'$as_ac_Header'}'`
4738                { echo "$as_me:$LINENO: result: $ac_res" >&5
4739 echo "${ECHO_T}$ac_res" >&6; }
4740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741   cat >>confdefs.h <<_ACEOF
4742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 _ACEOF
4744
4745 fi
4746
4747 done
4748
4749
4750
4751
4752 for ac_header in signal.h dlfcn.h
4753 do
4754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 fi
4761 ac_res=`eval echo '${'$as_ac_Header'}'`
4762                { echo "$as_me:$LINENO: result: $ac_res" >&5
4763 echo "${ECHO_T}$ac_res" >&6; }
4764 else
4765   # Is the header compilable?
4766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774 $ac_includes_default
4775 #include <$ac_header>
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (ac_try="$ac_compile"
4779 case "(($ac_try" in
4780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781   *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784   (eval "$ac_compile") 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } && {
4791          test -z "$ac_c_werror_flag" ||
4792          test ! -s conftest.err
4793        } && test -s conftest.$ac_objext; then
4794   ac_header_compiler=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799         ac_header_compiler=no
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804 echo "${ECHO_T}$ac_header_compiler" >&6; }
4805
4806 # Is the header present?
4807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <$ac_header>
4816 _ACEOF
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } >/dev/null && {
4830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831          test ! -s conftest.err
4832        }; then
4833   ac_header_preproc=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838   ac_header_preproc=no
4839 fi
4840
4841 rm -f conftest.err conftest.$ac_ext
4842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 echo "${ECHO_T}$ac_header_preproc" >&6; }
4844
4845 # So?  What about this header?
4846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4847   yes:no: )
4848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4852     ac_header_preproc=yes
4853     ;;
4854   no:yes:* )
4855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4867
4868     ;;
4869 esac
4870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   eval "$as_ac_Header=\$ac_header_preproc"
4876 fi
4877 ac_res=`eval echo '${'$as_ac_Header'}'`
4878                { echo "$as_me:$LINENO: result: $ac_res" >&5
4879 echo "${ECHO_T}$ac_res" >&6; }
4880
4881 fi
4882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4883   cat >>confdefs.h <<_ACEOF
4884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885 _ACEOF
4886
4887 fi
4888
4889 done
4890
4891
4892 # cppunit needed?
4893 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
4894         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
4895 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
4896    { (exit 1); exit 1; }; }
4897         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
4898 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
4899    { (exit 1); exit 1; }; }
4900 fi
4901
4902
4903
4904 if test "$enable_unit_tests" = "yes"; then
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define ENABLE_UNIT_TESTS 1
4908 _ACEOF
4909
4910 fi
4911 if test "$enable_integration_tests" = "yes"; then
4912
4913 cat >>confdefs.h <<\_ACEOF
4914 #define ENABLE_INTEGRATION_TESTS 1
4915 _ACEOF
4916
4917 fi
4918  if test "$enable_unit_tests" = "yes"; then
4919   ENABLE_UNIT_TESTS_TRUE=
4920   ENABLE_UNIT_TESTS_FALSE='#'
4921 else
4922   ENABLE_UNIT_TESTS_TRUE='#'
4923   ENABLE_UNIT_TESTS_FALSE=
4924 fi
4925
4926  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
4927   ENABLE_TESTING_TRUE=
4928   ENABLE_TESTING_FALSE='#'
4929 else
4930   ENABLE_TESTING_TRUE='#'
4931   ENABLE_TESTING_FALSE=
4932 fi
4933
4934
4935 if test $enable_static_cxx == "yes"; then
4936         LIBS="$LIBS -L."
4937         CORE_LDADD_DEP=libstdc++.a
4938 fi
4939
4940
4941 # Check for transport layer.
4942 # Both curl and libsoup can be enabled and disabled explicitly.
4943 # The default is to use libsoup if available, otherwise curl.
4944
4945 { echo "$as_me:$LINENO: checking for libcurl" >&5
4946 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
4947 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
4948     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
4949     { echo "$as_me:$LINENO: result: yes" >&5
4950 echo "${ECHO_T}yes" >&6; }
4951     have_libcurl="yes"
4952 else
4953     { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955     have_libcurl="no"
4956 fi
4957
4958
4959
4960 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4961         if test -n "$ac_tool_prefix"; then
4962   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969   case $PKG_CONFIG in
4970   [\\/]* | ?:[\\/]*)
4971   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4972   ;;
4973   *)
4974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979   for ac_exec_ext in '' $ac_executable_extensions; do
4980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989   ;;
4990 esac
4991 fi
4992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4993 if test -n "$PKG_CONFIG"; then
4994   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4995 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 fi
5003 if test -z "$ac_cv_path_PKG_CONFIG"; then
5004   ac_pt_PKG_CONFIG=$PKG_CONFIG
5005   # Extract the first word of "pkg-config", so it can be a program name with args.
5006 set dummy pkg-config; ac_word=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   case $ac_pt_PKG_CONFIG in
5013   [\\/]* | ?:[\\/]*)
5014   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5015   ;;
5016   *)
5017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022   for ac_exec_ext in '' $ac_executable_extensions; do
5023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032   ;;
5033 esac
5034 fi
5035 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5036 if test -n "$ac_pt_PKG_CONFIG"; then
5037   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5038 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5039 else
5040   { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044   if test "x$ac_pt_PKG_CONFIG" = x; then
5045     PKG_CONFIG=""
5046   else
5047     case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet.  If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet.  If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057     PKG_CONFIG=$ac_pt_PKG_CONFIG
5058   fi
5059 else
5060   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5061 fi
5062
5063 fi
5064 if test -n "$PKG_CONFIG"; then
5065         _pkg_min_version=0.9.0
5066         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5067 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5068         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5069                 { echo "$as_me:$LINENO: result: yes" >&5
5070 echo "${ECHO_T}yes" >&6; }
5071         else
5072                 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5074                 PKG_CONFIG=""
5075         fi
5076
5077 fi
5078
5079 pkg_failed=no
5080 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5081 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5082
5083 if test -n "$PKG_CONFIG"; then
5084     if test -n "$LIBSOUP_CFLAGS"; then
5085         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5086     else
5087         if test -n "$PKG_CONFIG" && \
5088     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
5089   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; then
5093   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
5094 else
5095   pkg_failed=yes
5096 fi
5097     fi
5098 else
5099         pkg_failed=untried
5100 fi
5101 if test -n "$PKG_CONFIG"; then
5102     if test -n "$LIBSOUP_LIBS"; then
5103         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5104     else
5105         if test -n "$PKG_CONFIG" && \
5106     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
5107   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; then
5111   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
5112 else
5113   pkg_failed=yes
5114 fi
5115     fi
5116 else
5117         pkg_failed=untried
5118 fi
5119
5120
5121
5122 if test $pkg_failed = yes; then
5123
5124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5125         _pkg_short_errors_supported=yes
5126 else
5127         _pkg_short_errors_supported=no
5128 fi
5129         if test $_pkg_short_errors_supported = yes; then
5130                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5131         else
5132                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5133         fi
5134         # Put the nasty error message in config.log where it belongs
5135         echo "$LIBSOUP_PKG_ERRORS" >&5
5136
5137         { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5139
5140 pkg_failed=no
5141 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5142 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5143
5144 if test -n "$PKG_CONFIG"; then
5145     if test -n "$LIBSOUP_CFLAGS"; then
5146         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5147     else
5148         if test -n "$PKG_CONFIG" && \
5149     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5150   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; then
5154   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5155 else
5156   pkg_failed=yes
5157 fi
5158     fi
5159 else
5160         pkg_failed=untried
5161 fi
5162 if test -n "$PKG_CONFIG"; then
5163     if test -n "$LIBSOUP_LIBS"; then
5164         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5165     else
5166         if test -n "$PKG_CONFIG" && \
5167     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5168   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; then
5172   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5173 else
5174   pkg_failed=yes
5175 fi
5176     fi
5177 else
5178         pkg_failed=untried
5179 fi
5180
5181
5182
5183 if test $pkg_failed = yes; then
5184
5185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5186         _pkg_short_errors_supported=yes
5187 else
5188         _pkg_short_errors_supported=no
5189 fi
5190         if test $_pkg_short_errors_supported = yes; then
5191                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5192         else
5193                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5194         fi
5195         # Put the nasty error message in config.log where it belongs
5196         echo "$LIBSOUP_PKG_ERRORS" >&5
5197
5198         { echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6; }
5200                 have_libsoup="no"
5201 elif test $pkg_failed = untried; then
5202         have_libsoup="no"
5203 else
5204         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5205         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5206         { echo "$as_me:$LINENO: result: yes" >&5
5207 echo "${ECHO_T}yes" >&6; }
5208         have_libsoup="yes"
5209 fi
5210 elif test $pkg_failed = untried; then
5211
5212 pkg_failed=no
5213 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5214 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5215
5216 if test -n "$PKG_CONFIG"; then
5217     if test -n "$LIBSOUP_CFLAGS"; then
5218         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5219     else
5220         if test -n "$PKG_CONFIG" && \
5221     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5222   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; then
5226   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5227 else
5228   pkg_failed=yes
5229 fi
5230     fi
5231 else
5232         pkg_failed=untried
5233 fi
5234 if test -n "$PKG_CONFIG"; then
5235     if test -n "$LIBSOUP_LIBS"; then
5236         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5237     else
5238         if test -n "$PKG_CONFIG" && \
5239     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5240   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; then
5244   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5245 else
5246   pkg_failed=yes
5247 fi
5248     fi
5249 else
5250         pkg_failed=untried
5251 fi
5252
5253
5254
5255 if test $pkg_failed = yes; then
5256
5257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5258         _pkg_short_errors_supported=yes
5259 else
5260         _pkg_short_errors_supported=no
5261 fi
5262         if test $_pkg_short_errors_supported = yes; then
5263                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5264         else
5265                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5266         fi
5267         # Put the nasty error message in config.log where it belongs
5268         echo "$LIBSOUP_PKG_ERRORS" >&5
5269
5270         { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272                 have_libsoup="no"
5273 elif test $pkg_failed = untried; then
5274         have_libsoup="no"
5275 else
5276         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5277         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5278         { echo "$as_me:$LINENO: result: yes" >&5
5279 echo "${ECHO_T}yes" >&6; }
5280         have_libsoup="yes"
5281 fi
5282 else
5283         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5284         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5285         { echo "$as_me:$LINENO: result: yes" >&5
5286 echo "${ECHO_T}yes" >&6; }
5287         have_libsoup="yes"
5288
5289 cat >>confdefs.h <<\_ACEOF
5290 #define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1
5291 _ACEOF
5292
5293 fi
5294
5295
5296 pkg_failed=no
5297 { echo "$as_me:$LINENO: checking for LIBOPENOBEX" >&5
5298 echo $ECHO_N "checking for LIBOPENOBEX... $ECHO_C" >&6; }
5299
5300 if test -n "$PKG_CONFIG"; then
5301     if test -n "$LIBOPENOBEX_CFLAGS"; then
5302         pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
5303     else
5304         if test -n "$PKG_CONFIG" && \
5305     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5306   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; then
5310   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
5311 else
5312   pkg_failed=yes
5313 fi
5314     fi
5315 else
5316         pkg_failed=untried
5317 fi
5318 if test -n "$PKG_CONFIG"; then
5319     if test -n "$LIBOPENOBEX_LIBS"; then
5320         pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
5321     else
5322         if test -n "$PKG_CONFIG" && \
5323     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5324   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; then
5328   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
5329 else
5330   pkg_failed=yes
5331 fi
5332     fi
5333 else
5334         pkg_failed=untried
5335 fi
5336
5337
5338
5339 if test $pkg_failed = yes; then
5340
5341 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5342         _pkg_short_errors_supported=yes
5343 else
5344         _pkg_short_errors_supported=no
5345 fi
5346         if test $_pkg_short_errors_supported = yes; then
5347                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
5348         else
5349                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
5350         fi
5351         # Put the nasty error message in config.log where it belongs
5352         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
5353
5354         { echo "$as_me:$LINENO: result: no" >&5
5355 echo "${ECHO_T}no" >&6; }
5356                 have_obex="no"
5357 elif test $pkg_failed = untried; then
5358         have_obex="no"
5359 else
5360         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
5361         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
5362         { echo "$as_me:$LINENO: result: yes" >&5
5363 echo "${ECHO_T}yes" >&6; }
5364         have_obex="yes"
5365 fi
5366 have_bluetooth="no"
5367 if test $have_obex = "yes"; then
5368
5369 pkg_failed=no
5370 { echo "$as_me:$LINENO: checking for BLUEZ" >&5
5371 echo $ECHO_N "checking for BLUEZ... $ECHO_C" >&6; }
5372
5373 if test -n "$PKG_CONFIG"; then
5374     if test -n "$BLUEZ_CFLAGS"; then
5375         pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
5376     else
5377         if test -n "$PKG_CONFIG" && \
5378     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5379   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }; then
5383   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
5384 else
5385   pkg_failed=yes
5386 fi
5387     fi
5388 else
5389         pkg_failed=untried
5390 fi
5391 if test -n "$PKG_CONFIG"; then
5392     if test -n "$BLUEZ_LIBS"; then
5393         pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
5394     else
5395         if test -n "$PKG_CONFIG" && \
5396     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5397   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; then
5401   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
5402 else
5403   pkg_failed=yes
5404 fi
5405     fi
5406 else
5407         pkg_failed=untried
5408 fi
5409
5410
5411
5412 if test $pkg_failed = yes; then
5413
5414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5415         _pkg_short_errors_supported=yes
5416 else
5417         _pkg_short_errors_supported=no
5418 fi
5419         if test $_pkg_short_errors_supported = yes; then
5420                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
5421         else
5422                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
5423         fi
5424         # Put the nasty error message in config.log where it belongs
5425         echo "$BLUEZ_PKG_ERRORS" >&5
5426
5427         { echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6; }
5429                 have_bluez="no"
5430 elif test $pkg_failed = untried; then
5431         have_bluez="no"
5432 else
5433         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
5434         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
5435         { echo "$as_me:$LINENO: result: yes" >&5
5436 echo "${ECHO_T}yes" >&6; }
5437         have_bluez="yes"
5438 fi
5439     if test $have_bluez = "yes"; then
5440         have_bluetooth="yes"
5441     fi
5442 fi
5443
5444
5445
5446
5447
5448 TRANSPORT=
5449 TRANSPORT_LIBS=
5450 TRANSPORT_CFLAGS=
5451
5452
5453 # Check whether --with-ca-certificates was given.
5454 if test "${with_ca_certificates+set}" = set; then
5455   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
5456 fi
5457
5458
5459
5460 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
5461 if test "$have_libsoup" = "yes"; then
5462    default_http_transport="libsoup"
5463 elif test "$have_libcurl" = "yes"; then
5464    default_http_transport="libcurl"
5465 fi
5466
5467 # Check whether --enable-libcurl was given.
5468 if test "${enable_libcurl+set}" = set; then
5469   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
5470                    test "$have_libcurl" = "yes" || { { echo "$as_me:$LINENO: error: libcurl not found" >&5
5471 echo "$as_me: error: libcurl not found" >&2;}
5472    { (exit 1); exit 1; }; }
5473                    TRANSPORT="$TRANSPORT libcurl"
5474                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5475                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define ENABLE_LIBCURL 1
5479 _ACEOF
5480
5481                 else
5482                    libcurl_disabled="yes"
5483                 fi
5484 else
5485    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
5486                    TRANSPORT="$TRANSPORT libcurl"
5487                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5488                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5489
5490 cat >>confdefs.h <<\_ACEOF
5491 #define ENABLE_LIBCURL 1
5492 _ACEOF
5493
5494                 fi
5495 fi
5496
5497
5498 # Check whether --enable-libsoup was given.
5499 if test "${enable_libsoup+set}" = set; then
5500   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
5501                    test "$have_libsoup" = "yes" || { { echo "$as_me:$LINENO: error: libsoup not found" >&5
5502 echo "$as_me: error: libsoup not found" >&2;}
5503    { (exit 1); exit 1; }; }
5504                    TRANSPORT="$TRANSPORT libsoup"
5505                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5506                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5507
5508 cat >>confdefs.h <<\_ACEOF
5509 #define ENABLE_LIBSOUP 1
5510 _ACEOF
5511
5512                 else
5513                    libsoup_disabled="yes"
5514                 fi
5515 else
5516    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
5517                    TRANSPORT="$TRANSPORT libsoup"
5518                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5519                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5520
5521 cat >>confdefs.h <<\_ACEOF
5522 #define ENABLE_LIBSOUP 1
5523 _ACEOF
5524
5525                 fi
5526 fi
5527
5528
5529 bluetooth_disabled=no
5530 # Check whether --enable-bluetooth was given.
5531 if test "${enable_bluetooth+set}" = set; then
5532   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
5533                 if test "$enableval" = "no"; then
5534                     bluetooth_disabled=yes
5535                 fi
5536
5537 else
5538    enable_bluetooth="$have_bluetooth"
5539 fi
5540
5541
5542 if test "$enable_bluetooth" = "yes"; then
5543    # currently we need Bluetooth and OBEX support
5544    test "$have_bluetooth" = "yes" || { { echo "$as_me:$LINENO: error: openobex or bluez not found" >&5
5545 echo "$as_me: error: openobex or bluez not found" >&2;}
5546    { (exit 1); exit 1; }; }
5547
5548    ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553
5554    CFLAGS_old="$CFLAGS"
5555    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
5556    # test in this order:
5557    # - recent libbluetooth (no _safe variant, base function has bufsize)
5558    # - intermediate with _safe
5559    # - else assume old-style (no bufsize, no _safe)
5560    #
5561    # The source code checks the signature both by via pointer assignment and calling
5562    # it (better safe than sorry). One these should fail if the signature is not right.
5563    cat >conftest.$ac_ext <<_ACEOF
5564 #include <bluetooth/sdp.h>
5565                       #include <bluetooth/sdp_lib.h>
5566                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5567                            sdp_extract_pdu;
5568                       void foo(void) {
5569                           uint8_t *pdata = NULL;
5570                           int scanned;
5571                           sdp_extract_pdu(pdata, 100, &scanned);
5572                       }
5573
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (ac_try="$ac_compile"
5577 case "(($ac_try" in
5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579   *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582   (eval "$ac_compile") 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } && {
5589          test -z "$ac_c_werror_flag" ||
5590          test ! -s conftest.err
5591        } && test -s conftest.$ac_objext; then
5592
5593 cat >>confdefs.h <<\_ACEOF
5594 #define HAVE_BLUEZ_BUFSIZE 1
5595 _ACEOF
5596
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601         cat >conftest.$ac_ext <<_ACEOF
5602 #include <bluetooth/sdp.h>
5603                                         #include <bluetooth/sdp_lib.h>
5604                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5605                                                sdp_extract_pdu_safe;
5606                                         void foo(void) {
5607                                             uint8_t *pdata = NULL;
5608                                             int scanned;
5609                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
5610                                         }
5611
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617   *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620   (eval "$ac_compile") 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } && {
5627          test -z "$ac_c_werror_flag" ||
5628          test ! -s conftest.err
5629        } && test -s conftest.$ac_objext; then
5630
5631 cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_BLUEZ_SAFE 1
5633 _ACEOF
5634
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646    CFLAGS="$CFLAGS_old"
5647
5648    if test "$have_obex" = "yes"; then
5649
5650 cat >>confdefs.h <<\_ACEOF
5651 #define ENABLE_OBEX 1
5652 _ACEOF
5653
5654    fi
5655    if test "$have_bluez" = "yes"; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define ENABLE_BLUETOOTH 1
5659 _ACEOF
5660
5661    fi
5662 fi
5663  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
5664   ENABLE_OBEX_TRUE=
5665   ENABLE_OBEX_FALSE='#'
5666 else
5667   ENABLE_OBEX_TRUE='#'
5668   ENABLE_OBEX_FALSE=
5669 fi
5670
5671  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
5672   ENABLE_BLUETOOTH_TRUE=
5673   ENABLE_BLUETOOTH_FALSE='#'
5674 else
5675   ENABLE_BLUETOOTH_TRUE='#'
5676   ENABLE_BLUETOOTH_FALSE=
5677 fi
5678
5679
5680 if test ! "$TRANSPORT" &&
5681    test "$libsoup_disabled" != "yes" &&
5682    test "$libcurl_disabled" != "yes" &&
5683    test "$bluetooth_disabled" != "yes" &&
5684    test "$have_bluetooth" != "yes" ; then
5685    { { echo "$as_me:$LINENO: error: no transport library found, configure with --disable-libcurl --disable-libsoup --disable-bluetooth to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&5
5686 echo "$as_me: error: no transport library found, configure with --disable-libcurl --disable-libsoup --disable-bluetooth to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&2;}
5687    { (exit 1); exit 1; }; }
5688 fi
5689
5690 # for libsoup we must specify the SSL certificate file outself
5691 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
5692    # Debian and Red Hat paths
5693    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
5694 fi
5695
5696 cat >>confdefs.h <<_ACEOF
5697 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
5698 _ACEOF
5699
5700
5701
5702
5703
5704 # Check whether --enable-ssl-certificate-check was given.
5705 if test "${enable_ssl_certificate_check+set}" = set; then
5706   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
5707 else
5708   enable_ssl_certificate_check="yes"
5709 fi
5710
5711 if test "$enable_ssl_certificate_check" = "yes"; then
5712
5713 cat >>confdefs.h <<\_ACEOF
5714 #define ENABLE_SSL_CERTIFICATE_CHECK 1
5715 _ACEOF
5716
5717 fi
5718
5719 # for dbus interface file mangling
5720 # Extract the first word of "xsltproc", so it can be a program name with args.
5721 set dummy xsltproc; ac_word=$2
5722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5724 if test "${ac_cv_path_XSLT+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   case $XSLT in
5728   [\\/]* | ?:[\\/]*)
5729   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
5730   ;;
5731   *)
5732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737   for ac_exec_ext in '' $ac_executable_extensions; do
5738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
5740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744 done
5745 IFS=$as_save_IFS
5746
5747   ;;
5748 esac
5749 fi
5750 XSLT=$ac_cv_path_XSLT
5751 if test -n "$XSLT"; then
5752   { echo "$as_me:$LINENO: result: $XSLT" >&5
5753 echo "${ECHO_T}$XSLT" >&6; }
5754 else
5755   { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5757 fi
5758
5759
5760
5761 # Check whether --enable-gui was given.
5762 if test "${enable_gui+set}" = set; then
5763   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
5764                     enable_gui=gtk
5765                 elif test "$enableval" = "yes" ; then
5766                     enable_gui=gtk
5767                 elif test "$enableval" = "moblin" ; then
5768                     enable_gui=moblin
5769                 elif test "$enableval" = "no" ; then
5770                     enable_gui=no
5771                 elif test "$enableval" = "all" ; then
5772                     enable_gui=all
5773                 else
5774                     { { echo "$as_me:$LINENO: error: Unknown gui type: '$enableval'" >&5
5775 echo "$as_me: error: Unknown gui type: '$enableval'" >&2;}
5776    { (exit 1); exit 1; }; }
5777                 fi
5778
5779 else
5780    enable_gui=no
5781 fi
5782
5783
5784  if test "$enable_gui" != "no"; then
5785   COND_GUI_TRUE=
5786   COND_GUI_FALSE='#'
5787 else
5788   COND_GUI_TRUE='#'
5789   COND_GUI_FALSE=
5790 fi
5791
5792
5793 # Check whether --enable-core was given.
5794 if test "${enable_core+set}" = set; then
5795   enableval=$enable_core; enable_core="$enableval"
5796 else
5797   enable_core="yes"
5798 fi
5799
5800  if test "$enable_core" = "yes"; then
5801   COND_CORE_TRUE=
5802   COND_CORE_FALSE='#'
5803 else
5804   COND_CORE_TRUE='#'
5805   COND_CORE_FALSE=
5806 fi
5807
5808
5809 # Check whether --enable-dbus-service was given.
5810 if test "${enable_dbus_service+set}" = set; then
5811   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
5812 else
5813   if test $enable_gui == "no"; then
5814                   enable_dbus_service="no"
5815                else
5816                   enable_dbus_service="yes"
5817                fi
5818 fi
5819
5820  if test "$enable_dbus_service" = "yes"; then
5821   COND_DBUS_TRUE=
5822   COND_DBUS_FALSE='#'
5823 else
5824   COND_DBUS_TRUE='#'
5825   COND_DBUS_FALSE=
5826 fi
5827
5828
5829
5830 pkg_failed=no
5831 { echo "$as_me:$LINENO: checking for KEYRING" >&5
5832 echo $ECHO_N "checking for KEYRING... $ECHO_C" >&6; }
5833
5834 if test -n "$PKG_CONFIG"; then
5835     if test -n "$KEYRING_CFLAGS"; then
5836         pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
5837     else
5838         if test -n "$PKG_CONFIG" && \
5839     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5840   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; then
5844   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
5845 else
5846   pkg_failed=yes
5847 fi
5848     fi
5849 else
5850         pkg_failed=untried
5851 fi
5852 if test -n "$PKG_CONFIG"; then
5853     if test -n "$KEYRING_LIBS"; then
5854         pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
5855     else
5856         if test -n "$PKG_CONFIG" && \
5857     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5858   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; then
5862   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
5863 else
5864   pkg_failed=yes
5865 fi
5866     fi
5867 else
5868         pkg_failed=untried
5869 fi
5870
5871
5872
5873 if test $pkg_failed = yes; then
5874
5875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5876         _pkg_short_errors_supported=yes
5877 else
5878         _pkg_short_errors_supported=no
5879 fi
5880         if test $_pkg_short_errors_supported = yes; then
5881                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
5882         else
5883                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
5884         fi
5885         # Put the nasty error message in config.log where it belongs
5886         echo "$KEYRING_PKG_ERRORS" >&5
5887
5888         { echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6; }
5890                 HAVE_KEYRING=no
5891 elif test $pkg_failed = untried; then
5892         HAVE_KEYRING=no
5893 else
5894         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
5895         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
5896         { echo "$as_me:$LINENO: result: yes" >&5
5897 echo "${ECHO_T}yes" >&6; }
5898         HAVE_KEYRING=yes
5899 fi
5900 if test $HAVE_KEYRING == "yes"; then
5901
5902 cat >>confdefs.h <<\_ACEOF
5903 #define USE_GNOME_KEYRING 1
5904 _ACEOF
5905
5906
5907 pkg_failed=no
5908 { echo "$as_me:$LINENO: checking for KEYRING_2_20" >&5
5909 echo $ECHO_N "checking for KEYRING_2_20... $ECHO_C" >&6; }
5910
5911 if test -n "$PKG_CONFIG"; then
5912     if test -n "$KEYRING_2_20_CFLAGS"; then
5913         pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
5914     else
5915         if test -n "$PKG_CONFIG" && \
5916     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5917   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; then
5921   pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5922 else
5923   pkg_failed=yes
5924 fi
5925     fi
5926 else
5927         pkg_failed=untried
5928 fi
5929 if test -n "$PKG_CONFIG"; then
5930     if test -n "$KEYRING_2_20_LIBS"; then
5931         pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
5932     else
5933         if test -n "$PKG_CONFIG" && \
5934     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5935   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; then
5939   pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5940 else
5941   pkg_failed=yes
5942 fi
5943     fi
5944 else
5945         pkg_failed=untried
5946 fi
5947
5948
5949
5950 if test $pkg_failed = yes; then
5951
5952 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5953         _pkg_short_errors_supported=yes
5954 else
5955         _pkg_short_errors_supported=no
5956 fi
5957         if test $_pkg_short_errors_supported = yes; then
5958                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5959         else
5960                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5961         fi
5962         # Put the nasty error message in config.log where it belongs
5963         echo "$KEYRING_2_20_PKG_ERRORS" >&5
5964
5965         { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967                 KEYRING220=no
5968 elif test $pkg_failed = untried; then
5969         KEYRING220=no
5970 else
5971         KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
5972         KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
5973         { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5975         KEYRING220=yes
5976 fi
5977     if test $KEYRING220 == "yes"; then
5978
5979 cat >>confdefs.h <<\_ACEOF
5980 #define GNOME_KEYRING_220 1
5981 _ACEOF
5982
5983     fi
5984 fi
5985
5986 if test $enable_dbus_service == "yes"; then
5987     if test -z "$XSLT"; then
5988        { { echo "$as_me:$LINENO: error: xsltproc not found, is required for D-Bus service" >&5
5989 echo "$as_me: error: xsltproc not found, is required for D-Bus service" >&2;}
5990    { (exit 1); exit 1; }; }
5991     fi
5992
5993 pkg_failed=no
5994 { echo "$as_me:$LINENO: checking for DBUS" >&5
5995 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
5996
5997 if test -n "$PKG_CONFIG"; then
5998     if test -n "$DBUS_CFLAGS"; then
5999         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
6000     else
6001         if test -n "$PKG_CONFIG" && \
6002     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6003   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; then
6007   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
6008 else
6009   pkg_failed=yes
6010 fi
6011     fi
6012 else
6013         pkg_failed=untried
6014 fi
6015 if test -n "$PKG_CONFIG"; then
6016     if test -n "$DBUS_LIBS"; then
6017         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
6018     else
6019         if test -n "$PKG_CONFIG" && \
6020     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6021   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; then
6025   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
6026 else
6027   pkg_failed=yes
6028 fi
6029     fi
6030 else
6031         pkg_failed=untried
6032 fi
6033
6034
6035
6036 if test $pkg_failed = yes; then
6037
6038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6039         _pkg_short_errors_supported=yes
6040 else
6041         _pkg_short_errors_supported=no
6042 fi
6043         if test $_pkg_short_errors_supported = yes; then
6044                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
6045         else
6046                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
6047         fi
6048         # Put the nasty error message in config.log where it belongs
6049         echo "$DBUS_PKG_ERRORS" >&5
6050
6051         { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6053                 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6054 echo "$as_me: error: libdbus-1 is required" >&2;}
6055    { (exit 1); exit 1; }; }
6056 elif test $pkg_failed = untried; then
6057         { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6058 echo "$as_me: error: libdbus-1 is required" >&2;}
6059    { (exit 1); exit 1; }; }
6060 else
6061         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
6062         DBUS_LIBS=$pkg_cv_DBUS_LIBS
6063         { echo "$as_me:$LINENO: result: yes" >&5
6064 echo "${ECHO_T}yes" >&6; }
6065         dummy=yes
6066 fi
6067     { echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
6068 echo $ECHO_N "checking for dbus_watch_get_unix_fd in -ldbus-1... $ECHO_C" >&6; }
6069 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   ac_check_lib_save_LIBS=$LIBS
6073 LIBS="-ldbus-1  $LIBS"
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h.  */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h.  */
6080
6081 /* Override any GCC internal prototype to avoid an error.
6082    Use char because int might match the return type of a GCC
6083    builtin and then its argument prototype would still apply.  */
6084 #ifdef __cplusplus
6085 extern "C"
6086 #endif
6087 char dbus_watch_get_unix_fd ();
6088 int
6089 main ()
6090 {
6091 return dbus_watch_get_unix_fd ();
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext conftest$ac_exeext
6097 if { (ac_try="$ac_link"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_link") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } && {
6110          test -z "$ac_c_werror_flag" ||
6111          test ! -s conftest.err
6112        } && test -s conftest$ac_exeext &&
6113        $as_test_x conftest$ac_exeext; then
6114   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119         ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6123       conftest$ac_exeext conftest.$ac_ext
6124 LIBS=$ac_check_lib_save_LIBS
6125 fi
6126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
6127 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
6128 if test $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd = yes; then
6129   dummy=yes
6130 else
6131
6132 cat >>confdefs.h <<\_ACEOF
6133 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
6134 _ACEOF
6135
6136 fi
6137
6138     need_glib=yes
6139
6140 pkg_failed=no
6141 { echo "$as_me:$LINENO: checking for LIBNOTIFY" >&5
6142 echo $ECHO_N "checking for LIBNOTIFY... $ECHO_C" >&6; }
6143
6144 if test -n "$PKG_CONFIG"; then
6145     if test -n "$LIBNOTIFY_CFLAGS"; then
6146         pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
6147     else
6148         if test -n "$PKG_CONFIG" && \
6149     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify\"") >&5
6150   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; then
6154   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
6155 else
6156   pkg_failed=yes
6157 fi
6158     fi
6159 else
6160         pkg_failed=untried
6161 fi
6162 if test -n "$PKG_CONFIG"; then
6163     if test -n "$LIBNOTIFY_LIBS"; then
6164         pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
6165     else
6166         if test -n "$PKG_CONFIG" && \
6167     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify\"") >&5
6168   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; then
6172   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
6173 else
6174   pkg_failed=yes
6175 fi
6176     fi
6177 else
6178         pkg_failed=untried
6179 fi
6180
6181
6182
6183 if test $pkg_failed = yes; then
6184
6185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6186         _pkg_short_errors_supported=yes
6187 else
6188         _pkg_short_errors_supported=no
6189 fi
6190         if test $_pkg_short_errors_supported = yes; then
6191                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify"`
6192         else
6193                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify"`
6194         fi
6195         # Put the nasty error message in config.log where it belongs
6196         echo "$LIBNOTIFY_PKG_ERRORS" >&5
6197
6198         { echo "$as_me:$LINENO: result: no" >&5
6199 echo "${ECHO_T}no" >&6; }
6200                 HAVE_LIBNOTIFY=no
6201 elif test $pkg_failed = untried; then
6202         HAVE_LIBNOTIFY=no
6203 else
6204         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
6205         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
6206         { echo "$as_me:$LINENO: result: yes" >&5
6207 echo "${ECHO_T}yes" >&6; }
6208         HAVE_LIBNOTIFY=yes
6209 fi
6210     # Check whether --enable-notify was given.
6211 if test "${enable_notify+set}" = set; then
6212   enableval=$enable_notify;  test "$enableval" = "no" || test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found" >&5
6213 echo "$as_me: error: required libnotify package not found" >&2;}
6214    { (exit 1); exit 1; }; }
6215 else
6216    test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found, use --disable-notify to compile without notifications" >&5
6217 echo "$as_me: error: required libnotify package not found, use --disable-notify to compile without notifications" >&2;}
6218    { (exit 1); exit 1; }; }
6219 fi
6220
6221     if test $HAVE_LIBNOTIFY == "yes"; then
6222
6223 cat >>confdefs.h <<\_ACEOF
6224 #define HAS_NOTIFY 1
6225 _ACEOF
6226
6227     fi
6228
6229 cat >>confdefs.h <<\_ACEOF
6230 #define DBUS_SERVICE 1
6231 _ACEOF
6232
6233 fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
6245
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
6249 _ACEOF
6250
6251
6252 if test $enable_gui != "no" || test $enable_dbus_service == "yes"; then
6253
6254   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6255 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6256     # Check whether --enable-nls was given.
6257 if test "${enable_nls+set}" = set; then
6258   enableval=$enable_nls; USE_NLS=$enableval
6259 else
6260   USE_NLS=yes
6261 fi
6262
6263   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6264 echo "${ECHO_T}$USE_NLS" >&6; }
6265
6266
6267
6268
6269 case "$am__api_version" in
6270     1.01234)
6271         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
6272 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
6273    { (exit 1); exit 1; }; }
6274     ;;
6275     *)
6276     ;;
6277 esac
6278
6279 if test -n "0.37.1"; then
6280     { echo "$as_me:$LINENO: checking for intltool >= 0.37.1" >&5
6281 echo $ECHO_N "checking for intltool >= 0.37.1... $ECHO_C" >&6; }
6282
6283     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6284     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6285     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6286
6287     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6288 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
6289     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6290         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&5
6291 echo "$as_me: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&2;}
6292    { (exit 1); exit 1; }; }
6293 fi
6294
6295 # Extract the first word of "intltool-update", so it can be a program name with args.
6296 set dummy intltool-update; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $INTLTOOL_UPDATE in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322   ;;
6323 esac
6324 fi
6325 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6326 if test -n "$INTLTOOL_UPDATE"; then
6327   { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
6328 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
6329 else
6330   { echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6; }
6332 fi
6333
6334
6335 # Extract the first word of "intltool-merge", so it can be a program name with args.
6336 set dummy intltool-merge; ac_word=$2
6337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6339 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   case $INTLTOOL_MERGE in
6343   [\\/]* | ?:[\\/]*)
6344   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6345   ;;
6346   *)
6347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352   for ac_exec_ext in '' $ac_executable_extensions; do
6353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362   ;;
6363 esac
6364 fi
6365 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6366 if test -n "$INTLTOOL_MERGE"; then
6367   { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
6368 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
6369 else
6370   { echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6; }
6372 fi
6373
6374
6375 # Extract the first word of "intltool-extract", so it can be a program name with args.
6376 set dummy intltool-extract; ac_word=$2
6377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6379 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   case $INTLTOOL_EXTRACT in
6383   [\\/]* | ?:[\\/]*)
6384   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6385   ;;
6386   *)
6387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392   for ac_exec_ext in '' $ac_executable_extensions; do
6393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402   ;;
6403 esac
6404 fi
6405 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6406 if test -n "$INTLTOOL_EXTRACT"; then
6407   { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
6408 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
6409 else
6410   { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6412 fi
6413
6414
6415 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6416     { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
6417 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
6418    { (exit 1); exit 1; }; }
6419 fi
6420
6421   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6422 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6423      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6424      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6425       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6426      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6427    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6428     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6429 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6430        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6431       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6432       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6433       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6434       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6435     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6436   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6437     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6438     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6439    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 # Check the gettext tools to make sure they are GNU
6538 # Extract the first word of "xgettext", so it can be a program name with args.
6539 set dummy xgettext; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $XGETTEXT in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   ;;
6566 esac
6567 fi
6568 XGETTEXT=$ac_cv_path_XGETTEXT
6569 if test -n "$XGETTEXT"; then
6570   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6571 echo "${ECHO_T}$XGETTEXT" >&6; }
6572 else
6573   { echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6; }
6575 fi
6576
6577
6578 # Extract the first word of "msgmerge", so it can be a program name with args.
6579 set dummy msgmerge; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $MSGMERGE in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   ;;
6606 esac
6607 fi
6608 MSGMERGE=$ac_cv_path_MSGMERGE
6609 if test -n "$MSGMERGE"; then
6610   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6611 echo "${ECHO_T}$MSGMERGE" >&6; }
6612 else
6613   { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6615 fi
6616
6617
6618 # Extract the first word of "msgfmt", so it can be a program name with args.
6619 set dummy msgfmt; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_MSGFMT+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   case $MSGFMT in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6628   ;;
6629   *)
6630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645   ;;
6646 esac
6647 fi
6648 MSGFMT=$ac_cv_path_MSGFMT
6649 if test -n "$MSGFMT"; then
6650   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6651 echo "${ECHO_T}$MSGFMT" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6659 set dummy gmsgfmt; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   case $GMSGFMT in
6666   [\\/]* | ?:[\\/]*)
6667   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6668   ;;
6669   *)
6670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6686   ;;
6687 esac
6688 fi
6689 GMSGFMT=$ac_cv_path_GMSGFMT
6690 if test -n "$GMSGFMT"; then
6691   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6692 echo "${ECHO_T}$GMSGFMT" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6700     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6701 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6702    { (exit 1); exit 1; }; }
6703 fi
6704 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6705 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6706 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6707 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6708     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6709 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6710    { (exit 1); exit 1; }; }
6711 fi
6712
6713 # Extract the first word of "perl", so it can be a program name with args.
6714 set dummy perl; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   case $INTLTOOL_PERL in
6721   [\\/]* | ?:[\\/]*)
6722   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6723   ;;
6724   *)
6725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740   ;;
6741 esac
6742 fi
6743 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6744 if test -n "$INTLTOOL_PERL"; then
6745   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6746 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752
6753 if test -z "$INTLTOOL_PERL"; then
6754    { { echo "$as_me:$LINENO: error: perl not found" >&5
6755 echo "$as_me: error: perl not found" >&2;}
6756    { (exit 1); exit 1; }; }
6757 fi
6758 { echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
6759 echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
6760 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6761 if test $? -ne 0; then
6762    { { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
6763 echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
6764    { (exit 1); exit 1; }; }
6765 else
6766    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6767    { echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
6768 echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
6769 fi
6770 if test "x" != "xno-xml"; then
6771    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
6772 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
6773    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6774        { echo "$as_me:$LINENO: result: ok" >&5
6775 echo "${ECHO_T}ok" >&6; }
6776    else
6777        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6778 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6779    { (exit 1); exit 1; }; }
6780    fi
6781 fi
6782
6783 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6784
6785
6786 # Set DATADIRNAME correctly if it is not set yet
6787 # (copied from glib-gettext.m4)
6788 if test -z "$DATADIRNAME"; then
6789   cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795
6796 int
6797 main ()
6798 {
6799 extern int _nl_msg_cat_cntr;
6800                        return _nl_msg_cat_cntr
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812   (eval "$ac_link") 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } && {
6819          test -z "$ac_c_werror_flag" ||
6820          test ! -s conftest.err
6821        } && test -s conftest$ac_exeext &&
6822        $as_test_x conftest$ac_exeext; then
6823   DATADIRNAME=share
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828         case $host in
6829     *-*-solaris*)
6830                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6831 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6832 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6843 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6844
6845 /* System header to define __stub macros and hopefully few prototypes,
6846     which can conflict with char bind_textdomain_codeset (); below.
6847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848     <limits.h> exists even on freestanding compilers.  */
6849
6850 #ifdef __STDC__
6851 # include <limits.h>
6852 #else
6853 # include <assert.h>
6854 #endif
6855
6856 #undef bind_textdomain_codeset
6857
6858 /* Override any GCC internal prototype to avoid an error.
6859    Use char because int might match the return type of a GCC
6860    builtin and then its argument prototype would still apply.  */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 char bind_textdomain_codeset ();
6865 /* The GNU C library defines this for functions which it implements
6866     to always fail with ENOSYS.  Some functions are actually named
6867     something starting with __ and the normal name is an alias.  */
6868 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6869 choke me
6870 #endif
6871
6872 int
6873 main ()
6874 {
6875 return bind_textdomain_codeset ();
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext conftest$ac_exeext
6881 if { (ac_try="$ac_link"
6882 case "(($ac_try" in
6883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884   *) ac_try_echo=$ac_try;;
6885 esac
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887   (eval "$ac_link") 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } && {
6894          test -z "$ac_c_werror_flag" ||
6895          test ! -s conftest.err
6896        } && test -s conftest$ac_exeext &&
6897        $as_test_x conftest$ac_exeext; then
6898   ac_cv_func_bind_textdomain_codeset=yes
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903         ac_cv_func_bind_textdomain_codeset=no
6904 fi
6905
6906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6907       conftest$ac_exeext conftest.$ac_ext
6908 fi
6909 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6910 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
6911 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6912   DATADIRNAME=share
6913 else
6914   DATADIRNAME=lib
6915 fi
6916
6917     ;;
6918     *)
6919     DATADIRNAME=lib
6920     ;;
6921     esac
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925       conftest$ac_exeext conftest.$ac_ext
6926 fi
6927
6928
6929
6930
6931
6932     GETTEXT_PACKAGE=syncevolution
6933
6934 cat >>confdefs.h <<_ACEOF
6935 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6936 _ACEOF
6937
6938
6939
6940 for ac_header in locale.h
6941 do
6942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6944   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 fi
6949 ac_res=`eval echo '${'$as_ac_Header'}'`
6950                { echo "$as_me:$LINENO: result: $ac_res" >&5
6951 echo "${ECHO_T}$ac_res" >&6; }
6952 else
6953   # Is the header compilable?
6954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h.  */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h.  */
6962 $ac_includes_default
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (ac_try="$ac_compile"
6967 case "(($ac_try" in
6968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969   *) ac_try_echo=$ac_try;;
6970 esac
6971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6972   (eval "$ac_compile") 2>conftest.er1
6973   ac_status=$?
6974   grep -v '^ *+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } && {
6979          test -z "$ac_c_werror_flag" ||
6980          test ! -s conftest.err
6981        } && test -s conftest.$ac_objext; then
6982   ac_header_compiler=yes
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987         ac_header_compiler=no
6988 fi
6989
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6992 echo "${ECHO_T}$ac_header_compiler" >&6; }
6993
6994 # Is the header present?
6995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <$ac_header>
7004 _ACEOF
7005 if { (ac_try="$ac_cpp conftest.$ac_ext"
7006 case "(($ac_try" in
7007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008   *) ac_try_echo=$ac_try;;
7009 esac
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7012   ac_status=$?
7013   grep -v '^ *+' conftest.er1 >conftest.err
7014   rm -f conftest.er1
7015   cat conftest.err >&5
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } >/dev/null && {
7018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7019          test ! -s conftest.err
7020        }; then
7021   ac_header_preproc=yes
7022 else
7023   echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026   ac_header_preproc=no
7027 fi
7028
7029 rm -f conftest.err conftest.$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7031 echo "${ECHO_T}$ac_header_preproc" >&6; }
7032
7033 # So?  What about this header?
7034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7035   yes:no: )
7036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7040     ac_header_preproc=yes
7041     ;;
7042   no:yes:* )
7043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7055
7056     ;;
7057 esac
7058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   eval "$as_ac_Header=\$ac_header_preproc"
7064 fi
7065 ac_res=`eval echo '${'$as_ac_Header'}'`
7066                { echo "$as_me:$LINENO: result: $ac_res" >&5
7067 echo "${ECHO_T}$ac_res" >&6; }
7068
7069 fi
7070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7071   cat >>confdefs.h <<_ACEOF
7072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073 _ACEOF
7074
7075 fi
7076
7077 done
7078
7079     if test $ac_cv_header_locale_h = yes; then
7080     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7081 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7082 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <locale.h>
7092 int
7093 main ()
7094 {
7095 return LC_MESSAGES
7096   ;
7097   return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (ac_try="$ac_link"
7102 case "(($ac_try" in
7103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104   *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107   (eval "$ac_link") 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } && {
7114          test -z "$ac_c_werror_flag" ||
7115          test ! -s conftest.err
7116        } && test -s conftest$ac_exeext &&
7117        $as_test_x conftest$ac_exeext; then
7118   am_cv_val_LC_MESSAGES=yes
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123         am_cv_val_LC_MESSAGES=no
7124 fi
7125
7126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7127       conftest$ac_exeext conftest.$ac_ext
7128 fi
7129 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7130 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7131     if test $am_cv_val_LC_MESSAGES = yes; then
7132
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_LC_MESSAGES 1
7135 _ACEOF
7136
7137     fi
7138   fi
7139      USE_NLS=yes
7140
7141
7142     gt_cv_have_gettext=no
7143
7144     CATOBJEXT=NONE
7145     XGETTEXT=:
7146     INTLLIBS=
7147
7148     if test "${ac_cv_header_libintl_h+set}" = set; then
7149   { echo "$as_me:$LINENO: checking for libintl.h" >&5
7150 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_libintl_h+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 fi
7154 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7155 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7156 else
7157   # Is the header compilable?
7158 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
7159 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
7160 cat >conftest.$ac_ext <<_ACEOF
7161 /* confdefs.h.  */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h.  */
7166 $ac_includes_default
7167 #include <libintl.h>
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_compile") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } && {
7183          test -z "$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        } && test -s conftest.$ac_objext; then
7186   ac_header_compiler=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191         ac_header_compiler=no
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7196 echo "${ECHO_T}$ac_header_compiler" >&6; }
7197
7198 # Is the header present?
7199 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
7200 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207 #include <libintl.h>
7208 _ACEOF
7209 if { (ac_try="$ac_cpp conftest.$ac_ext"
7210 case "(($ac_try" in
7211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212   *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } >/dev/null && {
7222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7223          test ! -s conftest.err
7224        }; then
7225   ac_header_preproc=yes
7226 else
7227   echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230   ac_header_preproc=no
7231 fi
7232
7233 rm -f conftest.err conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7235 echo "${ECHO_T}$ac_header_preproc" >&6; }
7236
7237 # So?  What about this header?
7238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7239   yes:no: )
7240     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7241 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7242     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7243 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7244     ac_header_preproc=yes
7245     ;;
7246   no:yes:* )
7247     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7248 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7249     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7250 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7251     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7252 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7253     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7254 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7255     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7256 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7257     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7258 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7259
7260     ;;
7261 esac
7262 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7263 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7264 if test "${ac_cv_header_libintl_h+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   ac_cv_header_libintl_h=$ac_header_preproc
7268 fi
7269 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7270 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7271
7272 fi
7273 if test $ac_cv_header_libintl_h = yes; then
7274   gt_cv_func_dgettext_libintl="no"
7275       libintl_extra_libs=""
7276
7277       #
7278       # First check in libc
7279       #
7280       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
7281 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
7282 if test "${gt_cv_func_ngettext_libc+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291
7292 #include <libintl.h>
7293
7294 int
7295 main ()
7296 {
7297 return !ngettext ("","", 1)
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (ac_try="$ac_link"
7304 case "(($ac_try" in
7305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306   *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309   (eval "$ac_link") 2>conftest.er1
7310   ac_status=$?
7311   grep -v '^ *+' conftest.er1 >conftest.err
7312   rm -f conftest.er1
7313   cat conftest.err >&5
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } && {
7316          test -z "$ac_c_werror_flag" ||
7317          test ! -s conftest.err
7318        } && test -s conftest$ac_exeext &&
7319        $as_test_x conftest$ac_exeext; then
7320   gt_cv_func_ngettext_libc=yes
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325         gt_cv_func_ngettext_libc=no
7326 fi
7327
7328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329       conftest$ac_exeext conftest.$ac_ext
7330
7331 fi
7332 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
7333 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
7334
7335       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7336               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7337 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
7338 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347
7348 #include <libintl.h>
7349
7350 int
7351 main ()
7352 {
7353 return !dgettext ("","")
7354   ;
7355   return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext conftest$ac_exeext
7359 if { (ac_try="$ac_link"
7360 case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_link") 2>conftest.er1
7366   ac_status=$?
7367   grep -v '^ *+' conftest.er1 >conftest.err
7368   rm -f conftest.er1
7369   cat conftest.err >&5
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } && {
7372          test -z "$ac_c_werror_flag" ||
7373          test ! -s conftest.err
7374        } && test -s conftest$ac_exeext &&
7375        $as_test_x conftest$ac_exeext; then
7376   gt_cv_func_dgettext_libc=yes
7377 else
7378   echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381         gt_cv_func_dgettext_libc=no
7382 fi
7383
7384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7385       conftest$ac_exeext conftest.$ac_ext
7386
7387 fi
7388 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7389 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
7390       fi
7391
7392       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7393
7394 for ac_func in bind_textdomain_codeset
7395 do
7396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h.  */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h.  */
7408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7410 #define $ac_func innocuous_$ac_func
7411
7412 /* System header to define __stub macros and hopefully few prototypes,
7413     which can conflict with char $ac_func (); below.
7414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7415     <limits.h> exists even on freestanding compilers.  */
7416
7417 #ifdef __STDC__
7418 # include <limits.h>
7419 #else
7420 # include <assert.h>
7421 #endif
7422
7423 #undef $ac_func
7424
7425 /* Override any GCC internal prototype to avoid an error.
7426    Use char because int might match the return type of a GCC
7427    builtin and then its argument prototype would still apply.  */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 char $ac_func ();
7432 /* The GNU C library defines this for functions which it implements
7433     to always fail with ENOSYS.  Some functions are actually named
7434     something starting with __ and the normal name is an alias.  */
7435 #if defined __stub_$ac_func || defined __stub___$ac_func
7436 choke me
7437 #endif
7438
7439 int
7440 main ()
7441 {
7442 return $ac_func ();
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (ac_try="$ac_link"
7449 case "(($ac_try" in
7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451   *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454   (eval "$ac_link") 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } && {
7461          test -z "$ac_c_werror_flag" ||
7462          test ! -s conftest.err
7463        } && test -s conftest$ac_exeext &&
7464        $as_test_x conftest$ac_exeext; then
7465   eval "$as_ac_var=yes"
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470         eval "$as_ac_var=no"
7471 fi
7472
7473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7474       conftest$ac_exeext conftest.$ac_ext
7475 fi
7476 ac_res=`eval echo '${'$as_ac_var'}'`
7477                { echo "$as_me:$LINENO: result: $ac_res" >&5
7478 echo "${ECHO_T}$ac_res" >&6; }
7479 if test `eval echo '${'$as_ac_var'}'` = yes; then
7480   cat >>confdefs.h <<_ACEOF
7481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7482 _ACEOF
7483
7484 fi
7485 done
7486
7487       fi
7488
7489       #
7490       # If we don't have everything we want, check in libintl
7491       #
7492       if test "$gt_cv_func_dgettext_libc" != "yes" \
7493          || test "$gt_cv_func_ngettext_libc" != "yes" \
7494          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7495
7496         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7497 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
7498 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   ac_check_lib_save_LIBS=$LIBS
7502 LIBS="-lintl  $LIBS"
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h.  */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h.  */
7509
7510 /* Override any GCC internal prototype to avoid an error.
7511    Use char because int might match the return type of a GCC
7512    builtin and then its argument prototype would still apply.  */
7513 #ifdef __cplusplus
7514 extern "C"
7515 #endif
7516 char bindtextdomain ();
7517 int
7518 main ()
7519 {
7520 return bindtextdomain ();
7521   ;
7522   return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (ac_try="$ac_link"
7527 case "(($ac_try" in
7528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529   *) ac_try_echo=$ac_try;;
7530 esac
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532   (eval "$ac_link") 2>conftest.er1
7533   ac_status=$?
7534   grep -v '^ *+' conftest.er1 >conftest.err
7535   rm -f conftest.er1
7536   cat conftest.err >&5
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } && {
7539          test -z "$ac_c_werror_flag" ||
7540          test ! -s conftest.err
7541        } && test -s conftest$ac_exeext &&
7542        $as_test_x conftest$ac_exeext; then
7543   ac_cv_lib_intl_bindtextdomain=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548         ac_cv_lib_intl_bindtextdomain=no
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7552       conftest$ac_exeext conftest.$ac_ext
7553 LIBS=$ac_check_lib_save_LIBS
7554 fi
7555 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7556 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7557 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7558   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7559 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7560 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   ac_check_lib_save_LIBS=$LIBS
7564 LIBS="-lintl  $LIBS"
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any GCC internal prototype to avoid an error.
7573    Use char because int might match the return type of a GCC
7574    builtin and then its argument prototype would still apply.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 #endif
7578 char ngettext ();
7579 int
7580 main ()
7581 {
7582 return ngettext ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591   *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594   (eval "$ac_link") 2>conftest.er1
7595   ac_status=$?
7596   grep -v '^ *+' conftest.er1 >conftest.err
7597   rm -f conftest.er1
7598   cat conftest.err >&5
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); } && {
7601          test -z "$ac_c_werror_flag" ||
7602          test ! -s conftest.err
7603        } && test -s conftest$ac_exeext &&
7604        $as_test_x conftest$ac_exeext; then
7605   ac_cv_lib_intl_ngettext=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610         ac_cv_lib_intl_ngettext=no
7611 fi
7612
7613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7614       conftest$ac_exeext conftest.$ac_ext
7615 LIBS=$ac_check_lib_save_LIBS
7616 fi
7617 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7618 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7619 if test $ac_cv_lib_intl_ngettext = yes; then
7620   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7621 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7622 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lintl  $LIBS"
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h.  */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h.  */
7633
7634 /* Override any GCC internal prototype to avoid an error.
7635    Use char because int might match the return type of a GCC
7636    builtin and then its argument prototype would still apply.  */
7637 #ifdef __cplusplus
7638 extern "C"
7639 #endif
7640 char dgettext ();
7641 int
7642 main ()
7643 {
7644 return dgettext ();
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653   *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656   (eval "$ac_link") 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } && {
7663          test -z "$ac_c_werror_flag" ||
7664          test ! -s conftest.err
7665        } && test -s conftest$ac_exeext &&
7666        $as_test_x conftest$ac_exeext; then
7667   ac_cv_lib_intl_dgettext=yes
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672         ac_cv_lib_intl_dgettext=no
7673 fi
7674
7675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7676       conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7678 fi
7679 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7680 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7681 if test $ac_cv_lib_intl_dgettext = yes; then
7682   gt_cv_func_dgettext_libintl=yes
7683 fi
7684
7685 fi
7686
7687 fi
7688
7689
7690         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7691           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7692 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7693           { echo "$as_me:$LINENO: result: " >&5
7694 echo "${ECHO_T}" >&6; }
7695           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7696 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7697 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   ac_check_lib_save_LIBS=$LIBS
7701 LIBS="-lintl -liconv $LIBS"
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708
7709 /* Override any GCC internal prototype to avoid an error.
7710    Use char because int might match the return type of a GCC
7711    builtin and then its argument prototype would still apply.  */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char ngettext ();
7716 int
7717 main ()
7718 {
7719 return ngettext ();
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7726 case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731   (eval "$ac_link") 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } && {
7738          test -z "$ac_c_werror_flag" ||
7739          test ! -s conftest.err
7740        } && test -s conftest$ac_exeext &&
7741        $as_test_x conftest$ac_exeext; then
7742   ac_cv_lib_intl_ngettext=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         ac_cv_lib_intl_ngettext=no
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7751       conftest$ac_exeext conftest.$ac_ext
7752 LIBS=$ac_check_lib_save_LIBS
7753 fi
7754 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7755 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7756 if test $ac_cv_lib_intl_ngettext = yes; then
7757   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7758 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7759 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   ac_check_lib_save_LIBS=$LIBS
7763 LIBS="-lintl -liconv $LIBS"
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h.  */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h.  */
7770
7771 /* Override any GCC internal prototype to avoid an error.
7772    Use char because int might match the return type of a GCC
7773    builtin and then its argument prototype would still apply.  */
7774 #ifdef __cplusplus
7775 extern "C"
7776 #endif
7777 char dcgettext ();
7778 int
7779 main ()
7780 {
7781 return dcgettext ();
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 rm -f conftest.$ac_objext conftest$ac_exeext
7787 if { (ac_try="$ac_link"
7788 case "(($ac_try" in
7789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790   *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793   (eval "$ac_link") 2>conftest.er1
7794   ac_status=$?
7795   grep -v '^ *+' conftest.er1 >conftest.err
7796   rm -f conftest.er1
7797   cat conftest.err >&5
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); } && {
7800          test -z "$ac_c_werror_flag" ||
7801          test ! -s conftest.err
7802        } && test -s conftest$ac_exeext &&
7803        $as_test_x conftest$ac_exeext; then
7804   ac_cv_lib_intl_dcgettext=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809         ac_cv_lib_intl_dcgettext=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7813       conftest$ac_exeext conftest.$ac_ext
7814 LIBS=$ac_check_lib_save_LIBS
7815 fi
7816 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7817 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7818 if test $ac_cv_lib_intl_dcgettext = yes; then
7819   gt_cv_func_dgettext_libintl=yes
7820                         libintl_extra_libs=-liconv
7821 else
7822   :
7823 fi
7824
7825 else
7826   :
7827 fi
7828
7829         fi
7830
7831         #
7832         # If we found libintl, then check in it for bind_textdomain_codeset();
7833         # we'll prefer libc if neither have bind_textdomain_codeset(),
7834         # and both have dgettext and ngettext
7835         #
7836         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7837           glib_save_LIBS="$LIBS"
7838           LIBS="$LIBS -lintl $libintl_extra_libs"
7839           unset ac_cv_func_bind_textdomain_codeset
7840
7841 for ac_func in bind_textdomain_codeset
7842 do
7843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849   cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h.  */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h.  */
7855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7857 #define $ac_func innocuous_$ac_func
7858
7859 /* System header to define __stub macros and hopefully few prototypes,
7860     which can conflict with char $ac_func (); below.
7861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7862     <limits.h> exists even on freestanding compilers.  */
7863
7864 #ifdef __STDC__
7865 # include <limits.h>
7866 #else
7867 # include <assert.h>
7868 #endif
7869
7870 #undef $ac_func
7871
7872 /* Override any GCC internal prototype to avoid an error.
7873    Use char because int might match the return type of a GCC
7874    builtin and then its argument prototype would still apply.  */
7875 #ifdef __cplusplus
7876 extern "C"
7877 #endif
7878 char $ac_func ();
7879 /* The GNU C library defines this for functions which it implements
7880     to always fail with ENOSYS.  Some functions are actually named
7881     something starting with __ and the normal name is an alias.  */
7882 #if defined __stub_$ac_func || defined __stub___$ac_func
7883 choke me
7884 #endif
7885
7886 int
7887 main ()
7888 {
7889 return $ac_func ();
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7896 case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_link") 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } && {
7908          test -z "$ac_c_werror_flag" ||
7909          test ! -s conftest.err
7910        } && test -s conftest$ac_exeext &&
7911        $as_test_x conftest$ac_exeext; then
7912   eval "$as_ac_var=yes"
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917         eval "$as_ac_var=no"
7918 fi
7919
7920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7921       conftest$ac_exeext conftest.$ac_ext
7922 fi
7923 ac_res=`eval echo '${'$as_ac_var'}'`
7924                { echo "$as_me:$LINENO: result: $ac_res" >&5
7925 echo "${ECHO_T}$ac_res" >&6; }
7926 if test `eval echo '${'$as_ac_var'}'` = yes; then
7927   cat >>confdefs.h <<_ACEOF
7928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7929 _ACEOF
7930
7931 fi
7932 done
7933
7934           LIBS="$glib_save_LIBS"
7935
7936           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7937             gt_cv_func_dgettext_libc=no
7938           else
7939             if test "$gt_cv_func_dgettext_libc" = "yes" \
7940                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7941               gt_cv_func_dgettext_libintl=no
7942             fi
7943           fi
7944         fi
7945       fi
7946
7947       if test "$gt_cv_func_dgettext_libc" = "yes" \
7948         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7949         gt_cv_have_gettext=yes
7950       fi
7951
7952       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7953         INTLLIBS="-lintl $libintl_extra_libs"
7954       fi
7955
7956       if test "$gt_cv_have_gettext" = "yes"; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_GETTEXT 1
7960 _ACEOF
7961
7962         # Extract the first word of "msgfmt", so it can be a program name with args.
7963 set dummy msgfmt; ac_word=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_MSGFMT+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969   case "$MSGFMT" in
7970   /*)
7971   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7972   ;;
7973   *)
7974   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7975   for ac_dir in $PATH; do
7976     test -z "$ac_dir" && ac_dir=.
7977     if test -f $ac_dir/$ac_word; then
7978       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7979         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7980         break
7981       fi
7982     fi
7983   done
7984   IFS="$ac_save_ifs"
7985   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7986   ;;
7987 esac
7988 fi
7989 MSGFMT="$ac_cv_path_MSGFMT"
7990 if test "$MSGFMT" != "no"; then
7991   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7992 echo "${ECHO_T}$MSGFMT" >&6; }
7993 else
7994   { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7996 fi
7997         if test "$MSGFMT" != "no"; then
7998           glib_save_LIBS="$LIBS"
7999           LIBS="$LIBS $INTLLIBS"
8000
8001 for ac_func in dcgettext
8002 do
8003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8017 #define $ac_func innocuous_$ac_func
8018
8019 /* System header to define __stub macros and hopefully few prototypes,
8020     which can conflict with char $ac_func (); below.
8021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8022     <limits.h> exists even on freestanding compilers.  */
8023
8024 #ifdef __STDC__
8025 # include <limits.h>
8026 #else
8027 # include <assert.h>
8028 #endif
8029
8030 #undef $ac_func
8031
8032 /* Override any GCC internal prototype to avoid an error.
8033    Use char because int might match the return type of a GCC
8034    builtin and then its argument prototype would still apply.  */
8035 #ifdef __cplusplus
8036 extern "C"
8037 #endif
8038 char $ac_func ();
8039 /* The GNU C library defines this for functions which it implements
8040     to always fail with ENOSYS.  Some functions are actually named
8041     something starting with __ and the normal name is an alias.  */
8042 #if defined __stub_$ac_func || defined __stub___$ac_func
8043 choke me
8044 #endif
8045
8046 int
8047 main ()
8048 {
8049 return $ac_func ();
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext conftest$ac_exeext
8055 if { (ac_try="$ac_link"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_link") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest$ac_exeext &&
8071        $as_test_x conftest$ac_exeext; then
8072   eval "$as_ac_var=yes"
8073 else
8074   echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077         eval "$as_ac_var=no"
8078 fi
8079
8080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8081       conftest$ac_exeext conftest.$ac_ext
8082 fi
8083 ac_res=`eval echo '${'$as_ac_var'}'`
8084                { echo "$as_me:$LINENO: result: $ac_res" >&5
8085 echo "${ECHO_T}$ac_res" >&6; }
8086 if test `eval echo '${'$as_ac_var'}'` = yes; then
8087   cat >>confdefs.h <<_ACEOF
8088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8089 _ACEOF
8090
8091 fi
8092 done
8093
8094           MSGFMT_OPTS=
8095           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
8096 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
8097           cat >conftest.foo <<_ACEOF
8098
8099 msgid ""
8100 msgstr ""
8101 "Content-Type: text/plain; charset=UTF-8\n"
8102 "Project-Id-Version: test 1.0\n"
8103 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8104 "Last-Translator: test <foo@bar.xx>\n"
8105 "Language-Team: C <LL@li.org>\n"
8106 "MIME-Version: 1.0\n"
8107 "Content-Transfer-Encoding: 8bit\n"
8108
8109 _ACEOF
8110 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
8111   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; then
8115   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
8116 echo "${ECHO_T}yes" >&6; }
8117 else { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8119 echo "$as_me: failed input was:" >&5
8120 sed 's/^/| /' conftest.foo >&5
8121 fi
8122
8123           # Extract the first word of "gmsgfmt", so it can be a program name with args.
8124 set dummy gmsgfmt; ac_word=$2
8125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8127 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   case $GMSGFMT in
8131   [\\/]* | ?:[\\/]*)
8132   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8133   ;;
8134   *)
8135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140   for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8151   ;;
8152 esac
8153 fi
8154 GMSGFMT=$ac_cv_path_GMSGFMT
8155 if test -n "$GMSGFMT"; then
8156   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8157 echo "${ECHO_T}$GMSGFMT" >&6; }
8158 else
8159   { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8161 fi
8162
8163
8164           # Extract the first word of "xgettext", so it can be a program name with args.
8165 set dummy xgettext; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   case "$XGETTEXT" in
8172   /*)
8173   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8174   ;;
8175   *)
8176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8177   for ac_dir in $PATH; do
8178     test -z "$ac_dir" && ac_dir=.
8179     if test -f $ac_dir/$ac_word; then
8180       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8181         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8182         break
8183       fi
8184     fi
8185   done
8186   IFS="$ac_save_ifs"
8187   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8188   ;;
8189 esac
8190 fi
8191 XGETTEXT="$ac_cv_path_XGETTEXT"
8192 if test "$XGETTEXT" != ":"; then
8193   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8194 echo "${ECHO_T}$XGETTEXT" >&6; }
8195 else
8196   { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8198 fi
8199
8200           cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8206
8207 int
8208 main ()
8209 {
8210 extern int _nl_msg_cat_cntr;
8211                          return _nl_msg_cat_cntr
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8218 case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_link") 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } && {
8230          test -z "$ac_c_werror_flag" ||
8231          test ! -s conftest.err
8232        } && test -s conftest$ac_exeext &&
8233        $as_test_x conftest$ac_exeext; then
8234   CATOBJEXT=.gmo
8235              DATADIRNAME=share
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240         case $host in
8241             *-*-solaris*)
8242                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8243 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8244 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8255 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8256
8257 /* System header to define __stub macros and hopefully few prototypes,
8258     which can conflict with char bind_textdomain_codeset (); below.
8259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260     <limits.h> exists even on freestanding compilers.  */
8261
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8267
8268 #undef bind_textdomain_codeset
8269
8270 /* Override any GCC internal prototype to avoid an error.
8271    Use char because int might match the return type of a GCC
8272    builtin and then its argument prototype would still apply.  */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char bind_textdomain_codeset ();
8277 /* The GNU C library defines this for functions which it implements
8278     to always fail with ENOSYS.  Some functions are actually named
8279     something starting with __ and the normal name is an alias.  */
8280 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8281 choke me
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287 return bind_textdomain_codeset ();
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_link") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && {
8306          test -z "$ac_c_werror_flag" ||
8307          test ! -s conftest.err
8308        } && test -s conftest$ac_exeext &&
8309        $as_test_x conftest$ac_exeext; then
8310   ac_cv_func_bind_textdomain_codeset=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315         ac_cv_func_bind_textdomain_codeset=no
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8319       conftest$ac_exeext conftest.$ac_ext
8320 fi
8321 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8322 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8323 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8324   CATOBJEXT=.gmo
8325                DATADIRNAME=share
8326 else
8327   CATOBJEXT=.mo
8328                DATADIRNAME=lib
8329 fi
8330
8331             ;;
8332             *)
8333             CATOBJEXT=.mo
8334             DATADIRNAME=lib
8335             ;;
8336             esac
8337 fi
8338
8339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340       conftest$ac_exeext conftest.$ac_ext
8341           LIBS="$glib_save_LIBS"
8342           INSTOBJEXT=.mo
8343         else
8344           gt_cv_have_gettext=no
8345         fi
8346       fi
8347
8348 fi
8349
8350
8351
8352     if test "$gt_cv_have_gettext" = "yes" ; then
8353
8354 cat >>confdefs.h <<\_ACEOF
8355 #define ENABLE_NLS 1
8356 _ACEOF
8357
8358     fi
8359
8360         if test "$XGETTEXT" != ":"; then
8361                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8362         : ;
8363       else
8364         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8365 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8366         XGETTEXT=":"
8367       fi
8368     fi
8369
8370     # We need to process the po/ directory.
8371     POSUB=po
8372
8373     ac_config_commands="$ac_config_commands default-1"
8374
8375
8376                 for lang in $ALL_LINGUAS; do
8377       GMOFILES="$GMOFILES $lang.gmo"
8378       POFILES="$POFILES $lang.po"
8379     done
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393    if test "$gt_cv_have_gettext" = "yes"; then
8394      if test "x$ALL_LINGUAS" = "x"; then
8395        LINGUAS=
8396      else
8397        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8398 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8399        NEW_LINGUAS=
8400        for presentlang in $ALL_LINGUAS; do
8401          useit=no
8402          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8403            desiredlanguages="$LINGUAS"
8404          else
8405            desiredlanguages="$ALL_LINGUAS"
8406          fi
8407          for desiredlang in $desiredlanguages; do
8408            # Use the presentlang catalog if desiredlang is
8409            #   a. equal to presentlang, or
8410            #   b. a variant of presentlang (because in this case,
8411            #      presentlang can be used as a fallback for messages
8412            #      which are not translated in the desiredlang catalog).
8413            case "$desiredlang" in
8414              "$presentlang"*) useit=yes;;
8415            esac
8416          done
8417          if test $useit = yes; then
8418            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8419          fi
8420        done
8421        LINGUAS=$NEW_LINGUAS
8422        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8423 echo "${ECHO_T}$LINGUAS" >&6; }
8424      fi
8425
8426           if test -n "$LINGUAS"; then
8427        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8428      fi
8429    fi
8430
8431             MKINSTALLDIRS=
8432    if test -n "$ac_aux_dir"; then
8433      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8434    fi
8435    if test -z "$MKINSTALLDIRS"; then
8436      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8437    fi
8438
8439
8440          test -d po || mkdir po
8441    if test "x$srcdir" != "x."; then
8442      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8443        posrcprefix="$srcdir/"
8444      else
8445        posrcprefix="../$srcdir/"
8446      fi
8447    else
8448      posrcprefix="../"
8449    fi
8450    rm -f po/POTFILES
8451    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8452         < $srcdir/po/POTFILES.in > po/POTFILES
8453
8454     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
8455 fi
8456
8457 # decide which sync-ui(s) we are building:
8458 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
8459 case $enable_gui in
8460      all) GUI_PROGRAMS='sync-ui-gtk${EXEEXT} sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="sync-gtk.desktop sync-moblin.desktop";;
8461      gtk|moblin) GUI_PROGRAMS='sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="sync.desktop";;
8462      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
8463      *) { { echo "$as_me:$LINENO: error: Unknown enable_gui type: '$enable_gui'" >&5
8464 echo "$as_me: error: Unknown enable_gui type: '$enable_gui'" >&2;}
8465    { (exit 1); exit 1; }; }
8466 esac
8467
8468 if test $enable_gui != "no"; then
8469
8470 pkg_failed=no
8471 { echo "$as_me:$LINENO: checking for DBUS_GLIB" >&5
8472 echo $ECHO_N "checking for DBUS_GLIB... $ECHO_C" >&6; }
8473
8474 if test -n "$PKG_CONFIG"; then
8475     if test -n "$DBUS_GLIB_CFLAGS"; then
8476         pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
8477     else
8478         if test -n "$PKG_CONFIG" && \
8479     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8480   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; then
8484   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
8485 else
8486   pkg_failed=yes
8487 fi
8488     fi
8489 else
8490         pkg_failed=untried
8491 fi
8492 if test -n "$PKG_CONFIG"; then
8493     if test -n "$DBUS_GLIB_LIBS"; then
8494         pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
8495     else
8496         if test -n "$PKG_CONFIG" && \
8497     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8498   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; then
8502   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
8503 else
8504   pkg_failed=yes
8505 fi
8506     fi
8507 else
8508         pkg_failed=untried
8509 fi
8510
8511
8512
8513 if test $pkg_failed = yes; then
8514
8515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8516         _pkg_short_errors_supported=yes
8517 else
8518         _pkg_short_errors_supported=no
8519 fi
8520         if test $_pkg_short_errors_supported = yes; then
8521                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8522         else
8523                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8524         fi
8525         # Put the nasty error message in config.log where it belongs
8526         echo "$DBUS_GLIB_PKG_ERRORS" >&5
8527
8528         { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8529
8530 $DBUS_GLIB_PKG_ERRORS
8531
8532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8533 installed software in a non-standard prefix.
8534
8535 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8536 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8537 See the pkg-config man page for more details.
8538 " >&5
8539 echo "$as_me: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8540
8541 $DBUS_GLIB_PKG_ERRORS
8542
8543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8544 installed software in a non-standard prefix.
8545
8546 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8547 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8548 See the pkg-config man page for more details.
8549 " >&2;}
8550    { (exit 1); exit 1; }; }
8551 elif test $pkg_failed = untried; then
8552         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
8553 is in your PATH or set the PKG_CONFIG environment variable to the full
8554 path to pkg-config.
8555
8556 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8557 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8558 See the pkg-config man page for more details.
8559
8560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8561 See \`config.log' for more details." >&5
8562 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
8563 is in your PATH or set the PKG_CONFIG environment variable to the full
8564 path to pkg-config.
8565
8566 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8567 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8568 See the pkg-config man page for more details.
8569
8570 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8571 See \`config.log' for more details." >&2;}
8572    { (exit 1); exit 1; }; }
8573 else
8574         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
8575         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
8576         { echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6; }
8578         :
8579 fi
8580     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
8581 set dummy dbus-binding-tool; ac_word=$2
8582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8584 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   case $DBUS_BINDING_TOOL in
8588   [\\/]* | ?:[\\/]*)
8589   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
8590   ;;
8591   *)
8592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597   for ac_exec_ext in '' $ac_executable_extensions; do
8598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
8600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607   ;;
8608 esac
8609 fi
8610 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
8611 if test -n "$DBUS_BINDING_TOOL"; then
8612   { echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
8613 echo "${ECHO_T}$DBUS_BINDING_TOOL" >&6; }
8614 else
8615   { echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6; }
8617 fi
8618
8619
8620     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
8621 set dummy glib-genmarshal; ac_word=$2
8622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8624 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   case $GLIB_GENMARSHAL in
8628   [\\/]* | ?:[\\/]*)
8629   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
8630   ;;
8631   *)
8632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8634 do
8635   IFS=$as_save_IFS
8636   test -z "$as_dir" && as_dir=.
8637   for ac_exec_ext in '' $ac_executable_extensions; do
8638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
8640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641     break 2
8642   fi
8643 done
8644 done
8645 IFS=$as_save_IFS
8646
8647   ;;
8648 esac
8649 fi
8650 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
8651 if test -n "$GLIB_GENMARSHAL"; then
8652   { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
8653 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
8654 else
8655   { echo "$as_me:$LINENO: result: no" >&5
8656 echo "${ECHO_T}no" >&6; }
8657 fi
8658
8659
8660
8661     gui_modules="glib-2.0 dbus-glib-1 >= 0.60 gtk+-2.0 libglade-2.0 gio-2.0"
8662     if test $enable_gui == "moblin"; then
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define USE_MOBLIN_UX 1
8666 _ACEOF
8667
8668     fi
8669     if test $enable_gui == "moblin" -o $enable_gui == "all"; then
8670         gui_modules="$guimodules mx-gtk-1.0"
8671
8672
8673 pkg_failed=no
8674 { echo "$as_me:$LINENO: checking for MX_GTK_0_99_1" >&5
8675 echo $ECHO_N "checking for MX_GTK_0_99_1... $ECHO_C" >&6; }
8676
8677 if test -n "$PKG_CONFIG"; then
8678     if test -n "$MX_GTK_0_99_1_CFLAGS"; then
8679         pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
8680     else
8681         if test -n "$PKG_CONFIG" && \
8682     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8683   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; then
8687   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8688 else
8689   pkg_failed=yes
8690 fi
8691     fi
8692 else
8693         pkg_failed=untried
8694 fi
8695 if test -n "$PKG_CONFIG"; then
8696     if test -n "$MX_GTK_0_99_1_LIBS"; then
8697         pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
8698     else
8699         if test -n "$PKG_CONFIG" && \
8700     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8701   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; then
8705   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8706 else
8707   pkg_failed=yes
8708 fi
8709     fi
8710 else
8711         pkg_failed=untried
8712 fi
8713
8714
8715
8716 if test $pkg_failed = yes; then
8717
8718 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8719         _pkg_short_errors_supported=yes
8720 else
8721         _pkg_short_errors_supported=no
8722 fi
8723         if test $_pkg_short_errors_supported = yes; then
8724                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8725         else
8726                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8727         fi
8728         # Put the nasty error message in config.log where it belongs
8729         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
8730
8731         { echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6; }
8733                 have_mx_gtk_0_99_1="no"
8734 elif test $pkg_failed = untried; then
8735         have_mx_gtk_0_99_1="no"
8736 else
8737         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
8738         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
8739         { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8741         have_mx_gtk_0_99_1="yes"
8742 fi
8743         if test $have_mx_gtk_0_99_1 == "yes"; then
8744
8745 cat >>confdefs.h <<\_ACEOF
8746 #define MX_GTK_0_99_1 1
8747 _ACEOF
8748
8749         fi
8750     fi
8751
8752
8753 pkg_failed=no
8754 { echo "$as_me:$LINENO: checking for UNIQUE" >&5
8755 echo $ECHO_N "checking for UNIQUE... $ECHO_C" >&6; }
8756
8757 if test -n "$PKG_CONFIG"; then
8758     if test -n "$UNIQUE_CFLAGS"; then
8759         pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
8760     else
8761         if test -n "$PKG_CONFIG" && \
8762     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8763   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; then
8767   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
8768 else
8769   pkg_failed=yes
8770 fi
8771     fi
8772 else
8773         pkg_failed=untried
8774 fi
8775 if test -n "$PKG_CONFIG"; then
8776     if test -n "$UNIQUE_LIBS"; then
8777         pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
8778     else
8779         if test -n "$PKG_CONFIG" && \
8780     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8781   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; then
8785   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
8786 else
8787   pkg_failed=yes
8788 fi
8789     fi
8790 else
8791         pkg_failed=untried
8792 fi
8793
8794
8795
8796 if test $pkg_failed = yes; then
8797
8798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8799         _pkg_short_errors_supported=yes
8800 else
8801         _pkg_short_errors_supported=no
8802 fi
8803         if test $_pkg_short_errors_supported = yes; then
8804                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
8805         else
8806                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
8807         fi
8808         # Put the nasty error message in config.log where it belongs
8809         echo "$UNIQUE_PKG_ERRORS" >&5
8810
8811         { echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6; }
8813                 have_unique="no"
8814 elif test $pkg_failed = untried; then
8815         have_unique="no"
8816 else
8817         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
8818         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
8819         { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8821         have_unique="yes"
8822 fi
8823     if test $have_unique == "yes"; then
8824         gui_modules="$gui_modules unique-1.0"
8825
8826 cat >>confdefs.h <<\_ACEOF
8827 #define ENABLE_UNIQUE 1
8828 _ACEOF
8829
8830     fi
8831
8832
8833 pkg_failed=no
8834 { echo "$as_me:$LINENO: checking for GTK_2_18" >&5
8835 echo $ECHO_N "checking for GTK_2_18... $ECHO_C" >&6; }
8836
8837 if test -n "$PKG_CONFIG"; then
8838     if test -n "$GTK_2_18_CFLAGS"; then
8839         pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
8840     else
8841         if test -n "$PKG_CONFIG" && \
8842     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8843   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; then
8847   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
8848 else
8849   pkg_failed=yes
8850 fi
8851     fi
8852 else
8853         pkg_failed=untried
8854 fi
8855 if test -n "$PKG_CONFIG"; then
8856     if test -n "$GTK_2_18_LIBS"; then
8857         pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
8858     else
8859         if test -n "$PKG_CONFIG" && \
8860     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8861   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; then
8865   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
8866 else
8867   pkg_failed=yes
8868 fi
8869     fi
8870 else
8871         pkg_failed=untried
8872 fi
8873
8874
8875
8876 if test $pkg_failed = yes; then
8877
8878 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8879         _pkg_short_errors_supported=yes
8880 else
8881         _pkg_short_errors_supported=no
8882 fi
8883         if test $_pkg_short_errors_supported = yes; then
8884                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8885         else
8886                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8887         fi
8888         # Put the nasty error message in config.log where it belongs
8889         echo "$GTK_2_18_PKG_ERRORS" >&5
8890
8891         { echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6; }
8893                 have_gtk_2_18="no"
8894 elif test $pkg_failed = untried; then
8895         have_gtk_2_18="no"
8896 else
8897         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
8898         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
8899         { echo "$as_me:$LINENO: result: yes" >&5
8900 echo "${ECHO_T}yes" >&6; }
8901         have_gtk_2_18="yes"
8902 fi
8903     if test $have_gtk_2_18 == "yes"; then
8904
8905 cat >>confdefs.h <<\_ACEOF
8906 #define GTK_2_18 1
8907 _ACEOF
8908
8909     fi
8910
8911
8912 pkg_failed=no
8913 { echo "$as_me:$LINENO: checking for GUI" >&5
8914 echo $ECHO_N "checking for GUI... $ECHO_C" >&6; }
8915
8916 if test -n "$PKG_CONFIG"; then
8917     if test -n "$GUI_CFLAGS"; then
8918         pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
8919     else
8920         if test -n "$PKG_CONFIG" && \
8921     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
8922   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; then
8926   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
8927 else
8928   pkg_failed=yes
8929 fi
8930     fi
8931 else
8932         pkg_failed=untried
8933 fi
8934 if test -n "$PKG_CONFIG"; then
8935     if test -n "$GUI_LIBS"; then
8936         pkg_cv_GUI_LIBS="$GUI_LIBS"
8937     else
8938         if test -n "$PKG_CONFIG" && \
8939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
8940   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; then
8944   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
8945 else
8946   pkg_failed=yes
8947 fi
8948     fi
8949 else
8950         pkg_failed=untried
8951 fi
8952
8953
8954
8955 if test $pkg_failed = yes; then
8956
8957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8958         _pkg_short_errors_supported=yes
8959 else
8960         _pkg_short_errors_supported=no
8961 fi
8962         if test $_pkg_short_errors_supported = yes; then
8963                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
8964         else
8965                 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
8966         fi
8967         # Put the nasty error message in config.log where it belongs
8968         echo "$GUI_PKG_ERRORS" >&5
8969
8970         { { echo "$as_me:$LINENO: error: Package requirements ($gui_modules) were not met:
8971
8972 $GUI_PKG_ERRORS
8973
8974 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8975 installed software in a non-standard prefix.
8976
8977 Alternatively, you may set the environment variables GUI_CFLAGS
8978 and GUI_LIBS to avoid the need to call pkg-config.
8979 See the pkg-config man page for more details.
8980 " >&5
8981 echo "$as_me: error: Package requirements ($gui_modules) were not met:
8982
8983 $GUI_PKG_ERRORS
8984
8985 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8986 installed software in a non-standard prefix.
8987
8988 Alternatively, you may set the environment variables GUI_CFLAGS
8989 and GUI_LIBS to avoid the need to call pkg-config.
8990 See the pkg-config man page for more details.
8991 " >&2;}
8992    { (exit 1); exit 1; }; }
8993 elif test $pkg_failed = untried; then
8994         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
8995 is in your PATH or set the PKG_CONFIG environment variable to the full
8996 path to pkg-config.
8997
8998 Alternatively, you may set the environment variables GUI_CFLAGS
8999 and GUI_LIBS to avoid the need to call pkg-config.
9000 See the pkg-config man page for more details.
9001
9002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9003 See \`config.log' for more details." >&5
9004 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
9005 is in your PATH or set the PKG_CONFIG environment variable to the full
9006 path to pkg-config.
9007
9008 Alternatively, you may set the environment variables GUI_CFLAGS
9009 and GUI_LIBS to avoid the need to call pkg-config.
9010 See the pkg-config man page for more details.
9011
9012 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9013 See \`config.log' for more details." >&2;}
9014    { (exit 1); exit 1; }; }
9015 else
9016         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
9017         GUI_LIBS=$pkg_cv_GUI_LIBS
9018         { echo "$as_me:$LINENO: result: yes" >&5
9019 echo "${ECHO_T}yes" >&6; }
9020         :
9021 fi
9022
9023     # Extract the first word of "gtk-builder-convert", so it can be a program name with args.
9024 set dummy gtk-builder-convert; ac_word=$2
9025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9027 if test "${ac_cv_path_GTK_BUILDER_CONV+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   case $GTK_BUILDER_CONV in
9031   [\\/]* | ?:[\\/]*)
9032   ac_cv_path_GTK_BUILDER_CONV="$GTK_BUILDER_CONV" # Let the user override the test with a path.
9033   ;;
9034   *)
9035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038   IFS=$as_save_IFS
9039   test -z "$as_dir" && as_dir=.
9040   for ac_exec_ext in '' $ac_executable_extensions; do
9041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042     ac_cv_path_GTK_BUILDER_CONV="$as_dir/$ac_word$ac_exec_ext"
9043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9044     break 2
9045   fi
9046 done
9047 done
9048 IFS=$as_save_IFS
9049
9050   ;;
9051 esac
9052 fi
9053 GTK_BUILDER_CONV=$ac_cv_path_GTK_BUILDER_CONV
9054 if test -n "$GTK_BUILDER_CONV"; then
9055   { echo "$as_me:$LINENO: result: $GTK_BUILDER_CONV" >&5
9056 echo "${ECHO_T}$GTK_BUILDER_CONV" >&6; }
9057 else
9058   { echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6; }
9060 fi
9061
9062
9063 elif test "$enable_dbus_service" = "yes"; then
9064     # syncevo-dbus-server needs localization
9065     :
9066 else
9067     INTLTOOL_UPDATE="true"
9068     USE_NLS="no"
9069 fi
9070
9071
9072
9073
9074
9075
9076
9077
9078 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
9079 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
9080 # as Debian Etch backport.
9081 ac_ext=cpp
9082 ac_cpp='$CXXCPP $CPPFLAGS'
9083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9086 if test -z "$CXX"; then
9087   if test -n "$CCC"; then
9088     CXX=$CCC
9089   else
9090     if test -n "$ac_tool_prefix"; then
9091   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9092   do
9093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9097 if test "${ac_cv_prog_CXX+set}" = set; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100   if test -n "$CXX"; then
9101   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9102 else
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 for as_dir in $PATH
9105 do
9106   IFS=$as_save_IFS
9107   test -z "$as_dir" && as_dir=.
9108   for ac_exec_ext in '' $ac_executable_extensions; do
9109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112     break 2
9113   fi
9114 done
9115 done
9116 IFS=$as_save_IFS
9117
9118 fi
9119 fi
9120 CXX=$ac_cv_prog_CXX
9121 if test -n "$CXX"; then
9122   { echo "$as_me:$LINENO: result: $CXX" >&5
9123 echo "${ECHO_T}$CXX" >&6; }
9124 else
9125   { echo "$as_me:$LINENO: result: no" >&5
9126 echo "${ECHO_T}no" >&6; }
9127 fi
9128
9129
9130     test -n "$CXX" && break
9131   done
9132 fi
9133 if test -z "$CXX"; then
9134   ac_ct_CXX=$CXX
9135   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9136 do
9137   # Extract the first word of "$ac_prog", so it can be a program name with args.
9138 set dummy $ac_prog; ac_word=$2
9139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   if test -n "$ac_ct_CXX"; then
9145   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9146 else
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150   IFS=$as_save_IFS
9151   test -z "$as_dir" && as_dir=.
9152   for ac_exec_ext in '' $ac_executable_extensions; do
9153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154     ac_cv_prog_ac_ct_CXX="$ac_prog"
9155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9156     break 2
9157   fi
9158 done
9159 done
9160 IFS=$as_save_IFS
9161
9162 fi
9163 fi
9164 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9165 if test -n "$ac_ct_CXX"; then
9166   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9167 echo "${ECHO_T}$ac_ct_CXX" >&6; }
9168 else
9169   { echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6; }
9171 fi
9172
9173
9174   test -n "$ac_ct_CXX" && break
9175 done
9176
9177   if test "x$ac_ct_CXX" = x; then
9178     CXX="g++"
9179   else
9180     case $cross_compiling:$ac_tool_warned in
9181 yes:)
9182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9183 whose name does not start with the host triplet.  If you think this
9184 configuration is useful to you, please write to autoconf@gnu.org." >&5
9185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9186 whose name does not start with the host triplet.  If you think this
9187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9188 ac_tool_warned=yes ;;
9189 esac
9190     CXX=$ac_ct_CXX
9191   fi
9192 fi
9193
9194   fi
9195 fi
9196 # Provide some information about the compiler.
9197 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9198 ac_compiler=`set X $ac_compile; echo $2`
9199 { (ac_try="$ac_compiler --version >&5"
9200 case "(($ac_try" in
9201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202   *) ac_try_echo=$ac_try;;
9203 esac
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205   (eval "$ac_compiler --version >&5") 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }
9209 { (ac_try="$ac_compiler -v >&5"
9210 case "(($ac_try" in
9211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212   *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215   (eval "$ac_compiler -v >&5") 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); }
9219 { (ac_try="$ac_compiler -V >&5"
9220 case "(($ac_try" in
9221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222   *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225   (eval "$ac_compiler -V >&5") 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }
9229
9230 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9231 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
9232 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241
9242 int
9243 main ()
9244 {
9245 #ifndef __GNUC__
9246        choke me
9247 #endif
9248
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9255 case "(($ac_try" in
9256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257   *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260   (eval "$ac_compile") 2>conftest.er1
9261   ac_status=$?
9262   grep -v '^ *+' conftest.er1 >conftest.err
9263   rm -f conftest.er1
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } && {
9267          test -z "$ac_cxx_werror_flag" ||
9268          test ! -s conftest.err
9269        } && test -s conftest.$ac_objext; then
9270   ac_compiler_gnu=yes
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275         ac_compiler_gnu=no
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9280
9281 fi
9282 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9283 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
9284 GXX=`test $ac_compiler_gnu = yes && echo yes`
9285 ac_test_CXXFLAGS=${CXXFLAGS+set}
9286 ac_save_CXXFLAGS=$CXXFLAGS
9287 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9288 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
9289 if test "${ac_cv_prog_cxx_g+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9293    ac_cxx_werror_flag=yes
9294    ac_cv_prog_cxx_g=no
9295    CXXFLAGS="-g"
9296    cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 int
9304 main ()
9305 {
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_compile") 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } && {
9325          test -z "$ac_cxx_werror_flag" ||
9326          test ! -s conftest.err
9327        } && test -s conftest.$ac_objext; then
9328   ac_cv_prog_cxx_g=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333         CXXFLAGS=""
9334       cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h.  */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h.  */
9340
9341 int
9342 main ()
9343 {
9344
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353   *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356   (eval "$ac_compile") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_cxx_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest.$ac_objext; then
9366   :
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9372          CXXFLAGS="-g"
9373          cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h.  */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h.  */
9379
9380 int
9381 main ()
9382 {
9383
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext
9389 if { (ac_try="$ac_compile"
9390 case "(($ac_try" in
9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392   *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395   (eval "$ac_compile") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } && {
9402          test -z "$ac_cxx_werror_flag" ||
9403          test ! -s conftest.err
9404        } && test -s conftest.$ac_objext; then
9405   ac_cv_prog_cxx_g=yes
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410
9411 fi
9412
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 fi
9415
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9421 fi
9422 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9423 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
9424 if test "$ac_test_CXXFLAGS" = set; then
9425   CXXFLAGS=$ac_save_CXXFLAGS
9426 elif test $ac_cv_prog_cxx_g = yes; then
9427   if test "$GXX" = yes; then
9428     CXXFLAGS="-g -O2"
9429   else
9430     CXXFLAGS="-g"
9431   fi
9432 else
9433   if test "$GXX" = yes; then
9434     CXXFLAGS="-O2"
9435   else
9436     CXXFLAGS=
9437   fi
9438 fi
9439 ac_ext=cpp
9440 ac_cpp='$CXXCPP $CPPFLAGS'
9441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9444
9445 depcc="$CXX"  am_compiler_list=
9446
9447 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
9449 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9453   # We make a subdir and do the tests there.  Otherwise we can end up
9454   # making bogus files that we don't know about and never remove.  For
9455   # instance it was reported that on HP-UX the gcc test will end up
9456   # making a dummy file named `D' -- because `-MD' means `put the output
9457   # in D'.
9458   mkdir conftest.dir
9459   # Copy depcomp to subdir because otherwise we won't find it if we're
9460   # using a relative directory.
9461   cp "$am_depcomp" conftest.dir
9462   cd conftest.dir
9463   # We will build objects and dependencies in a subdirectory because
9464   # it helps to detect inapplicable dependency modes.  For instance
9465   # both Tru64's cc and ICC support -MD to output dependencies as a
9466   # side effect of compilation, but ICC will put the dependencies in
9467   # the current directory while Tru64 will put them in the object
9468   # directory.
9469   mkdir sub
9470
9471   am_cv_CXX_dependencies_compiler_type=none
9472   if test "$am_compiler_list" = ""; then
9473      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9474   fi
9475   for depmode in $am_compiler_list; do
9476     # Setup a source with many dependencies, because some compilers
9477     # like to wrap large dependency lists on column 80 (with \), and
9478     # we should not choose a depcomp mode which is confused by this.
9479     #
9480     # We need to recreate these files for each test, as the compiler may
9481     # overwrite some of them when testing with obscure command lines.
9482     # This happens at least with the AIX C compiler.
9483     : > sub/conftest.c
9484     for i in 1 2 3 4 5 6; do
9485       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9486       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9487       # Solaris 8's {/usr,}/bin/sh.
9488       touch sub/conftst$i.h
9489     done
9490     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9491
9492     case $depmode in
9493     nosideeffect)
9494       # after this tag, mechanisms are not by side-effect, so they'll
9495       # only be used when explicitly requested
9496       if test "x$enable_dependency_tracking" = xyes; then
9497         continue
9498       else
9499         break
9500       fi
9501       ;;
9502     none) break ;;
9503     esac
9504     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9505     # mode.  It turns out that the SunPro C++ compiler does not properly
9506     # handle `-M -o', and we need to detect this.
9507     if depmode=$depmode \
9508        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9509        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9510        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9511          >/dev/null 2>conftest.err &&
9512        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9513        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9514        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9515        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9516       # icc doesn't choke on unknown options, it will just issue warnings
9517       # or remarks (even with -Werror).  So we grep stderr for any message
9518       # that says an option was ignored or not supported.
9519       # When given -MP, icc 7.0 and 7.1 complain thusly:
9520       #   icc: Command line warning: ignoring option '-M'; no argument required
9521       # The diagnosis changed in icc 8.0:
9522       #   icc: Command line remark: option '-MP' not supported
9523       if (grep 'ignoring option' conftest.err ||
9524           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9525         am_cv_CXX_dependencies_compiler_type=$depmode
9526         break
9527       fi
9528     fi
9529   done
9530
9531   cd ..
9532   rm -rf conftest.dir
9533 else
9534   am_cv_CXX_dependencies_compiler_type=none
9535 fi
9536
9537 fi
9538 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9539 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9540 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9541
9542  if
9543   test "x$enable_dependency_tracking" != xno \
9544   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9545   am__fastdepCXX_TRUE=
9546   am__fastdepCXX_FALSE='#'
9547 else
9548   am__fastdepCXX_TRUE='#'
9549   am__fastdepCXX_FALSE=
9550 fi
9551
9552
9553
9554
9555
9556 # Check whether --with-boost was given.
9557 if test "${with_boost+set}" = set; then
9558   withval=$with_boost;
9559     if test "$withval" = "no"; then
9560                 want_boost="no"
9561     elif test "$withval" = "yes"; then
9562         want_boost="yes"
9563         ac_boost_path=""
9564     else
9565             want_boost="yes"
9566         ac_boost_path="$withval"
9567         fi
9568
9569 else
9570   want_boost="yes"
9571 fi
9572
9573
9574
9575
9576 # Check whether --with-boost-libdir was given.
9577 if test "${with_boost_libdir+set}" = set; then
9578   withval=$with_boost_libdir;
9579         if test -d $withval
9580         then
9581                 ac_boost_lib_path="$withval"
9582         else
9583                 { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
9584 echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
9585    { (exit 1); exit 1; }; }
9586         fi
9587
9588 else
9589   ac_boost_lib_path=""
9590
9591 fi
9592
9593
9594 if test "x$want_boost" = "xyes"; then
9595         boost_lib_version_req=1.34
9596         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
9597         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
9598         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
9599         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9600         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
9601                 boost_lib_version_req_sub_minor="0"
9602         fi
9603         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
9604         { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
9605 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
9606         succeeded=no
9607
9608                                 if test "$ac_boost_path" != ""; then
9609                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
9610                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
9611         else
9612                 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
9613                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
9614                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
9615                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
9616                                 break;
9617                         fi
9618                 done
9619         fi
9620
9621             if test "$ac_boost_lib_path" != ""; then
9622        BOOST_LDFLAGS="-L$ac_boost_lib_path"
9623     fi
9624
9625         CPPFLAGS_SAVED="$CPPFLAGS"
9626         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9627         export CPPFLAGS
9628
9629         LDFLAGS_SAVED="$LDFLAGS"
9630         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9631         export LDFLAGS
9632
9633         ac_ext=cpp
9634 ac_cpp='$CXXCPP $CPPFLAGS'
9635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9638
9639         cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645
9646         #include <boost/version.hpp>
9647
9648 int
9649 main ()
9650 {
9651
9652         #if BOOST_VERSION >= $WANT_BOOST_VERSION
9653         // Everything is okay
9654         #else
9655         #  error Boost version is too old
9656         #endif
9657
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext
9663 if { (ac_try="$ac_compile"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_compile") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } && {
9676          test -z "$ac_cxx_werror_flag" ||
9677          test ! -s conftest.err
9678        } && test -s conftest.$ac_objext; then
9679
9680         { echo "$as_me:$LINENO: result: yes" >&5
9681 echo "${ECHO_T}yes" >&6; }
9682         succeeded=yes
9683         found_system=yes
9684
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689
9690
9691 fi
9692
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694         ac_ext=c
9695 ac_cpp='$CPP $CPPFLAGS'
9696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9699
9700
9701
9702
9703                         if test "x$succeeded" != "xyes"; then
9704                 _version=0
9705                 if test "$ac_boost_path" != ""; then
9706                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9707                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9708                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9709                                         V_CHECK=`expr $_version_tmp \> $_version`
9710                                         if test "$V_CHECK" = "1" ; then
9711                                                 _version=$_version_tmp
9712                                         fi
9713                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9714                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
9715                                 done
9716                         fi
9717                 else
9718                         for ac_boost_path in /usr /usr/local /opt /opt/local ; do
9719                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9720                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9721                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9722                                                 V_CHECK=`expr $_version_tmp \> $_version`
9723                                                 if test "$V_CHECK" = "1" ; then
9724                                                         _version=$_version_tmp
9725                                                         best_path=$ac_boost_path
9726                                                 fi
9727                                         done
9728                                 fi
9729                         done
9730
9731                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9732                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
9733             if test "$ac_boost_lib_path" = ""
9734             then
9735                BOOST_LDFLAGS="-L$best_path/lib"
9736             fi
9737
9738                         if test "x$BOOST_ROOT" != "x"; then
9739                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
9740                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
9741                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
9742                                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
9743                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
9744                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
9745                                                 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
9746 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
9747                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
9748                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
9749                                         fi
9750                                 fi
9751                         fi
9752                 fi
9753
9754                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9755                 export CPPFLAGS
9756                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9757                 export LDFLAGS
9758
9759                 ac_ext=cpp
9760 ac_cpp='$CXXCPP $CPPFLAGS'
9761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9764
9765                 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772                 #include <boost/version.hpp>
9773
9774 int
9775 main ()
9776 {
9777
9778                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9779                 // Everything is okay
9780                 #else
9781                 #  error Boost version is too old
9782                 #endif
9783
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext
9789 if { (ac_try="$ac_compile"
9790 case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_compile") 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } && {
9802          test -z "$ac_cxx_werror_flag" ||
9803          test ! -s conftest.err
9804        } && test -s conftest.$ac_objext; then
9805
9806                 { echo "$as_me:$LINENO: result: yes" >&5
9807 echo "${ECHO_T}yes" >&6; }
9808                 succeeded=yes
9809                 found_system=yes
9810
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815
9816
9817 fi
9818
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820                 ac_ext=c
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
9826         fi
9827
9828         if test "$succeeded" != "yes" ; then
9829                 if test "$_version" = "0" ; then
9830                         { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
9831 echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
9832    { (exit 1); exit 1; }; }
9833                 else
9834                         { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
9835 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
9836                 fi
9837         else
9838
9839
9840
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_BOOST
9843 _ACEOF
9844
9845         fi
9846
9847         CPPFLAGS="$CPPFLAGS_SAVED"
9848         LDFLAGS="$LDFLAGS_SAVED"
9849 fi
9850
9851
9852
9853 # absolute patch to source of Synthesis client library
9854 SYNTHESIS_SRC=no-synthesis-source
9855
9856 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
9857     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
9858     CLEAN_CLIENT_SRC=synthesis-workdir
9859     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
9860
9861     { echo "$as_me:$LINENO: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
9862 echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
9863     case "$SYNTHESISSRC" in
9864         *.git) protocol=git;;
9865         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
9866         *) protocol="file";;
9867     esac
9868
9869     mkdir -p src
9870     case $protocol in
9871         file)
9872             # use existing copy of the sources
9873             CLEAN_CLIENT_SRC=
9874             case "$SYNTHESISSRC" in
9875                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
9876                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
9877             esac
9878             ;;
9879         *svn*|*http*)
9880             SYNTHESISSRCREV="$SYNTHESISSRC"
9881             if test "$REVISION"; then
9882                 revarg="-r $REVISION "
9883                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
9884                     :
9885                 else
9886                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
9887                 fi
9888             fi
9889             if test -d $SYNTHESIS_SRC ; then
9890                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9891 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9892    { (exit 1); exit 1; }; }
9893             else
9894                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9895 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9896    { (exit 1); exit 1; }; }
9897             fi
9898             ;;
9899         *)
9900             if test -d $SYNTHESIS_SRC ; then
9901                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9902 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9903    { (exit 1); exit 1; }; }
9904             else
9905                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: cloning $SYNTHESISSRC failed" >&5
9906 echo "$as_me: error: cloning $SYNTHESISSRC failed" >&2;}
9907    { (exit 1); exit 1; }; }
9908             fi
9909             if test "$REVISION"; then
9910                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
9911                 ( set -x; cd $SYNTHESIS_SRC &&
9912                   (git checkout "$REVISION" ||
9913                    git checkout "tags/$REVISION" ||
9914                    git checkout "origin/$REVISION") ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9915 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9916    { (exit 1); exit 1; }; }
9917             fi
9918             ;;
9919     esac
9920 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
9921     # use existing copy of the sources; beware of
9922     # out-of-tree compilation
9923     case $srcdir in
9924          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
9925          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
9926     esac
9927 elif test "$enable_shared" = "no"; then
9928     # link against engine
9929
9930 pkg_failed=no
9931 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
9932 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
9933
9934 if test -n "$PKG_CONFIG"; then
9935     if test -n "$SYNTHESIS_CFLAGS"; then
9936         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
9937     else
9938         if test -n "$PKG_CONFIG" && \
9939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9940   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; then
9944   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
9945 else
9946   pkg_failed=yes
9947 fi
9948     fi
9949 else
9950         pkg_failed=untried
9951 fi
9952 if test -n "$PKG_CONFIG"; then
9953     if test -n "$SYNTHESIS_LIBS"; then
9954         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
9955     else
9956         if test -n "$PKG_CONFIG" && \
9957     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9958   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; then
9962   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
9963 else
9964   pkg_failed=yes
9965 fi
9966     fi
9967 else
9968         pkg_failed=untried
9969 fi
9970
9971
9972
9973 if test $pkg_failed = yes; then
9974
9975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9976         _pkg_short_errors_supported=yes
9977 else
9978         _pkg_short_errors_supported=no
9979 fi
9980         if test $_pkg_short_errors_supported = yes; then
9981                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
9982         else
9983                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
9984         fi
9985         # Put the nasty error message in config.log where it belongs
9986         echo "$SYNTHESIS_PKG_ERRORS" >&5
9987
9988         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
9989
9990 $SYNTHESIS_PKG_ERRORS
9991
9992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9993 installed software in a non-standard prefix.
9994
9995 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9996 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9997 See the pkg-config man page for more details.
9998 " >&5
9999 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10000
10001 $SYNTHESIS_PKG_ERRORS
10002
10003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10004 installed software in a non-standard prefix.
10005
10006 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10007 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10008 See the pkg-config man page for more details.
10009 " >&2;}
10010    { (exit 1); exit 1; }; }
10011 elif test $pkg_failed = untried; then
10012         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10013 is in your PATH or set the PKG_CONFIG environment variable to the full
10014 path to pkg-config.
10015
10016 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10017 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10018 See the pkg-config man page for more details.
10019
10020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10021 See \`config.log' for more details." >&5
10022 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
10023 is in your PATH or set the PKG_CONFIG environment variable to the full
10024 path to pkg-config.
10025
10026 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10027 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10028 See the pkg-config man page for more details.
10029
10030 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10031 See \`config.log' for more details." >&2;}
10032    { (exit 1); exit 1; }; }
10033 else
10034         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10035         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10036         { echo "$as_me:$LINENO: result: yes" >&5
10037 echo "${ECHO_T}yes" >&6; }
10038         :
10039 fi
10040     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
10041 else
10042     # link against SDK alone, except in client-test
10043     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
10044     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
10045
10046     # can't use the SDK alone because of sysync::SySyncDebugPuts()
10047
10048 pkg_failed=no
10049 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
10050 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
10051
10052 if test -n "$PKG_CONFIG"; then
10053     if test -n "$SYNTHESIS_CFLAGS"; then
10054         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
10055     else
10056         if test -n "$PKG_CONFIG" && \
10057     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10058   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; then
10062   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
10063 else
10064   pkg_failed=yes
10065 fi
10066     fi
10067 else
10068         pkg_failed=untried
10069 fi
10070 if test -n "$PKG_CONFIG"; then
10071     if test -n "$SYNTHESIS_LIBS"; then
10072         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
10073     else
10074         if test -n "$PKG_CONFIG" && \
10075     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10076   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; then
10080   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
10081 else
10082   pkg_failed=yes
10083 fi
10084     fi
10085 else
10086         pkg_failed=untried
10087 fi
10088
10089
10090
10091 if test $pkg_failed = yes; then
10092
10093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10094         _pkg_short_errors_supported=yes
10095 else
10096         _pkg_short_errors_supported=no
10097 fi
10098         if test $_pkg_short_errors_supported = yes; then
10099                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
10100         else
10101                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
10102         fi
10103         # Put the nasty error message in config.log where it belongs
10104         echo "$SYNTHESIS_PKG_ERRORS" >&5
10105
10106         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
10107
10108 $SYNTHESIS_PKG_ERRORS
10109
10110 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10111 installed software in a non-standard prefix.
10112
10113 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10114 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10115 See the pkg-config man page for more details.
10116 " >&5
10117 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10118
10119 $SYNTHESIS_PKG_ERRORS
10120
10121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10122 installed software in a non-standard prefix.
10123
10124 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10125 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10126 See the pkg-config man page for more details.
10127 " >&2;}
10128    { (exit 1); exit 1; }; }
10129 elif test $pkg_failed = untried; then
10130         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10131 is in your PATH or set the PKG_CONFIG environment variable to the full
10132 path to pkg-config.
10133
10134 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10135 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10136 See the pkg-config man page for more details.
10137
10138 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10139 See \`config.log' for more details." >&5
10140 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
10141 is in your PATH or set the PKG_CONFIG environment variable to the full
10142 path to pkg-config.
10143
10144 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10145 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10146 See the pkg-config man page for more details.
10147
10148 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10149 See \`config.log' for more details." >&2;}
10150    { (exit 1); exit 1; }; }
10151 else
10152         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10153         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10154         { echo "$as_me:$LINENO: result: yes" >&5
10155 echo "${ECHO_T}yes" >&6; }
10156         :
10157 fi
10158     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
10159 fi
10160
10161 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
10162     ( cd $SYNTHESIS_SRC && ( test -f configure || sh autogen.sh ) ) || { { echo "$as_me:$LINENO: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&5
10163 echo "$as_me: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&2;}
10164    { (exit 1); exit 1; }; }
10165
10166     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
10167     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
10168
10169     # use local copy of the sources, with dependencies
10170     # to trigger building the synthesis library
10171     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
10172     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
10173     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
10174
10175     if test "$enable_core" = "no" && test "$enable_gui" != "no"; then
10176        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
10177        SYNTHESIS_SUBDIR_INCLUDES=synthesis-includes
10178     fi
10179
10180     if test "$enable_shared" = "no"; then
10181         # link against the engines that were enabled
10182         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define ENABLE_SYNCML_LINKED 1
10186 _ACEOF
10187
10188     else
10189         # It would be nice if we could avoid linking against libsynthesis.la here.
10190         # This doesn't work at the moment because sysync::SySyncDebugPuts()
10191         # is called directly by the libsynthesissdk instead of going through
10192         # the normal C function pointer lookup.
10193         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
10194     fi
10195     SYNTHESIS_DEP=$SYNTHESIS_LIBS
10196
10197     # for linking client-test
10198     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
10199
10200     { echo "$as_me:$LINENO: configuring the Synthesis library " >&5
10201 echo "$as_me: configuring the Synthesis library " >&6;}
10202     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
10203         { { echo "$as_me:$LINENO: error: configuring Synthesis library failed " >&5
10204 echo "$as_me: error: configuring Synthesis library failed " >&2;}
10205    { (exit 1); exit 1; }; }
10206     fi
10207 fi
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219 BACKENDS=""
10220
10221 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
10222 #                       [ACTION-IF-NOT-GIVEN])
10223 #
10224 # Same as AC_ARG_ENABLE(), but also tells configure that the
10225 # backend exists.
10226 #
10227 # BACKEND = name of modules built in that dir as .la files without the
10228 #           obligatory sync prefix, e.g. "ebook"
10229 # DIR = name of the directory inside src/backends, e.g., "evolution"
10230
10231
10232
10233
10234 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
10235
10236
10237 # GNOME Bluetooth Panel plugin
10238
10239 pkg_failed=no
10240 { echo "$as_me:$LINENO: checking for GNOMEBLUETOOTH" >&5
10241 echo $ECHO_N "checking for GNOMEBLUETOOTH... $ECHO_C" >&6; }
10242
10243 if test -n "$PKG_CONFIG"; then
10244     if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
10245         pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
10246     else
10247         if test -n "$PKG_CONFIG" && \
10248     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10249   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; then
10253   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10254 else
10255   pkg_failed=yes
10256 fi
10257     fi
10258 else
10259         pkg_failed=untried
10260 fi
10261 if test -n "$PKG_CONFIG"; then
10262     if test -n "$GNOMEBLUETOOTH_LIBS"; then
10263         pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
10264     else
10265         if test -n "$PKG_CONFIG" && \
10266     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10267   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; then
10271   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10272 else
10273   pkg_failed=yes
10274 fi
10275     fi
10276 else
10277         pkg_failed=untried
10278 fi
10279
10280
10281
10282 if test $pkg_failed = yes; then
10283
10284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10285         _pkg_short_errors_supported=yes
10286 else
10287         _pkg_short_errors_supported=no
10288 fi
10289         if test $_pkg_short_errors_supported = yes; then
10290                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10291         else
10292                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10293         fi
10294         # Put the nasty error message in config.log where it belongs
10295         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
10296
10297         { echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6; }
10299                 have_gbt="no"
10300 elif test $pkg_failed = untried; then
10301         have_gbt="no"
10302 else
10303         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
10304         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
10305         { echo "$as_me:$LINENO: result: yes" >&5
10306 echo "${ECHO_T}yes" >&6; }
10307         have_gbt="yes"
10308                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
10309 fi
10310
10311
10312
10313 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
10314 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then
10315   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
10316 else
10317   enable_gnome_bluetooth_panel="no"
10318
10319 fi
10320
10321 if test "$enable_gnome_bluetooth_panel" = "yes"; then
10322    test "$have_gbt" = "yes" || { { echo "$as_me:$LINENO: error: --enable-gnome-bluetooth-panel requires
10323            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&5
10324 echo "$as_me: error: --enable-gnome-bluetooth-panel requires
10325            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&2;}
10326    { (exit 1); exit 1; }; }
10327 fi
10328 ac_config_files="$ac_config_files src/gnome-bluetooth/Makefile"
10329
10330  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
10331   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
10332   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
10333 else
10334   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
10335   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
10336 fi
10337
10338
10339
10340 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
10341
10342 ADDRESSBOOK_CFLAGS=
10343
10344 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
10345
10346
10347 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
10348
10349
10350         # Check whether --enable-addressbook was given.
10351 if test "${enable_addressbook+set}" = set; then
10352   enableval=$enable_addressbook; enable_addressbook="$enableval"
10353 else
10354   enable_addressbook="no"
10355 fi
10356
10357         BACKENDS="$BACKENDS addressbook"
10358         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
10359         for source in addressbook; do
10360             SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
10361         done
10362
10363
10364 if test "$enable_addressbook" = "yes"; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define ENABLE_ADDRESSBOOK 1
10368 _ACEOF
10369
10370         DEVICE_TYPE=MacOS_X
10371         enable_any="yes"
10372 else
10373         ADDRESSBOOK_LIBS=
10374 fi
10375
10376 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
10377
10378 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
10379
10380 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
10381
10382 pkg_emodules_10="libedataserver-1.0"
10383 pkg_emodules_11="libedataserver-1.1"
10384 pkg_emodules_12="libedataserver-1.2"
10385 pkg_ebook_10="libebook-1.0"
10386 pkg_ebook_11="libebook-1.1"
10387 pkg_ebook_12="libebook-1.2"
10388 pkg_ecal_10="libecal-1.0"
10389 pkg_ecal_11="libecal-1.1"
10390 pkg_ecal_12="libecal-1.2"
10391
10392 anymissing="
10393 Please install the development packages of Evolution and/or
10394 set the PKG_CONFIG_PATH variable so that it points towards
10395 the .pc files of libedataserver, libecal and libebook (the
10396 latter two are optional).
10397
10398 You can check that these packages are available by running
10399 pkg-config --list-all."
10400
10401 evomissing="No compatible evolution-data-server was found.
10402 $anymissing"
10403
10404
10405 pkg_failed=no
10406 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10407 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10408
10409 if test -n "$PKG_CONFIG"; then
10410     if test -n "$EPACKAGE_CFLAGS"; then
10411         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10412     else
10413         if test -n "$PKG_CONFIG" && \
10414     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10415   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; then
10419   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
10420 else
10421   pkg_failed=yes
10422 fi
10423     fi
10424 else
10425         pkg_failed=untried
10426 fi
10427 if test -n "$PKG_CONFIG"; then
10428     if test -n "$EPACKAGE_LIBS"; then
10429         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10430     else
10431         if test -n "$PKG_CONFIG" && \
10432     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10433   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; then
10437   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
10438 else
10439   pkg_failed=yes
10440 fi
10441     fi
10442 else
10443         pkg_failed=untried
10444 fi
10445
10446
10447
10448 if test $pkg_failed = yes; then
10449
10450 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10451         _pkg_short_errors_supported=yes
10452 else
10453         _pkg_short_errors_supported=no
10454 fi
10455         if test $_pkg_short_errors_supported = yes; then
10456                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
10457         else
10458                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
10459         fi
10460         # Put the nasty error message in config.log where it belongs
10461         echo "$EPACKAGE_PKG_ERRORS" >&5
10462
10463         { echo "$as_me:$LINENO: result: no" >&5
10464 echo "${ECHO_T}no" >&6; }
10465                 EDSFOUND=no
10466 elif test $pkg_failed = untried; then
10467         EDSFOUND=no
10468 else
10469         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10470         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10471         { echo "$as_me:$LINENO: result: yes" >&5
10472 echo "${ECHO_T}yes" >&6; }
10473         EDSFOUND=yes
10474 fi
10475 if test "x${EDSFOUND}" = "xno"; then
10476
10477 pkg_failed=no
10478 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10479 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10480
10481 if test -n "$PKG_CONFIG"; then
10482     if test -n "$EPACKAGE_CFLAGS"; then
10483         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10484     else
10485         if test -n "$PKG_CONFIG" && \
10486     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10487   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; then
10491   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
10492 else
10493   pkg_failed=yes
10494 fi
10495     fi
10496 else
10497         pkg_failed=untried
10498 fi
10499 if test -n "$PKG_CONFIG"; then
10500     if test -n "$EPACKAGE_LIBS"; then
10501         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10502     else
10503         if test -n "$PKG_CONFIG" && \
10504     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10505   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; then
10509   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
10510 else
10511   pkg_failed=yes
10512 fi
10513     fi
10514 else
10515         pkg_failed=untried
10516 fi
10517
10518
10519
10520 if test $pkg_failed = yes; then
10521
10522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10523         _pkg_short_errors_supported=yes
10524 else
10525         _pkg_short_errors_supported=no
10526 fi
10527         if test $_pkg_short_errors_supported = yes; then
10528                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
10529         else
10530                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
10531         fi
10532         # Put the nasty error message in config.log where it belongs
10533         echo "$EPACKAGE_PKG_ERRORS" >&5
10534
10535         { echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6; }
10537                 EDSFOUND=no
10538 elif test $pkg_failed = untried; then
10539         EDSFOUND=no
10540 else
10541         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10542         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10543         { echo "$as_me:$LINENO: result: yes" >&5
10544 echo "${ECHO_T}yes" >&6; }
10545         EDSFOUND=yes
10546 fi
10547       if test "x${EDSFOUND}" = "xno"; then
10548
10549 pkg_failed=no
10550 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10551 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10552
10553 if test -n "$PKG_CONFIG"; then
10554     if test -n "$EPACKAGE_CFLAGS"; then
10555         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10556     else
10557         if test -n "$PKG_CONFIG" && \
10558     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10559   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; then
10563   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
10564 else
10565   pkg_failed=yes
10566 fi
10567     fi
10568 else
10569         pkg_failed=untried
10570 fi
10571 if test -n "$PKG_CONFIG"; then
10572     if test -n "$EPACKAGE_LIBS"; then
10573         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10574     else
10575         if test -n "$PKG_CONFIG" && \
10576     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10577   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; then
10581   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
10582 else
10583   pkg_failed=yes
10584 fi
10585     fi
10586 else
10587         pkg_failed=untried
10588 fi
10589
10590
10591
10592 if test $pkg_failed = yes; then
10593
10594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10595         _pkg_short_errors_supported=yes
10596 else
10597         _pkg_short_errors_supported=no
10598 fi
10599         if test $_pkg_short_errors_supported = yes; then
10600                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
10601         else
10602                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
10603         fi
10604         # Put the nasty error message in config.log where it belongs
10605         echo "$EPACKAGE_PKG_ERRORS" >&5
10606
10607         { echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6; }
10609                 EDSFOUND=no
10610 elif test $pkg_failed = untried; then
10611         EDSFOUND=no
10612 else
10613         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10614         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10615         { echo "$as_me:$LINENO: result: yes" >&5
10616 echo "${ECHO_T}yes" >&6; }
10617         EDSFOUND=yes
10618 fi
10619       fi
10620 fi
10621
10622
10623 pkg_failed=no
10624 { echo "$as_me:$LINENO: checking for ECAL" >&5
10625 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10626
10627 if test -n "$PKG_CONFIG"; then
10628     if test -n "$ECAL_CFLAGS"; then
10629         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10630     else
10631         if test -n "$PKG_CONFIG" && \
10632     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10633   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; then
10637   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
10638 else
10639   pkg_failed=yes
10640 fi
10641     fi
10642 else
10643         pkg_failed=untried
10644 fi
10645 if test -n "$PKG_CONFIG"; then
10646     if test -n "$ECAL_LIBS"; then
10647         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10648     else
10649         if test -n "$PKG_CONFIG" && \
10650     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10651   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; then
10655   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
10656 else
10657   pkg_failed=yes
10658 fi
10659     fi
10660 else
10661         pkg_failed=untried
10662 fi
10663
10664
10665
10666 if test $pkg_failed = yes; then
10667
10668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10669         _pkg_short_errors_supported=yes
10670 else
10671         _pkg_short_errors_supported=no
10672 fi
10673         if test $_pkg_short_errors_supported = yes; then
10674                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
10675         else
10676                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
10677         fi
10678         # Put the nasty error message in config.log where it belongs
10679         echo "$ECAL_PKG_ERRORS" >&5
10680
10681         { echo "$as_me:$LINENO: result: no" >&5
10682 echo "${ECHO_T}no" >&6; }
10683                 ECALFOUND=no
10684 elif test $pkg_failed = untried; then
10685         ECALFOUND=no
10686 else
10687         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10688         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10689         { echo "$as_me:$LINENO: result: yes" >&5
10690 echo "${ECHO_T}yes" >&6; }
10691         ECALFOUND=yes
10692 fi
10693 if test "x${ECALFOUND}" = "xno"; then
10694
10695 pkg_failed=no
10696 { echo "$as_me:$LINENO: checking for ECAL" >&5
10697 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10698
10699 if test -n "$PKG_CONFIG"; then
10700     if test -n "$ECAL_CFLAGS"; then
10701         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10702     else
10703         if test -n "$PKG_CONFIG" && \
10704     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10705   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; then
10709   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
10710 else
10711   pkg_failed=yes
10712 fi
10713     fi
10714 else
10715         pkg_failed=untried
10716 fi
10717 if test -n "$PKG_CONFIG"; then
10718     if test -n "$ECAL_LIBS"; then
10719         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10720     else
10721         if test -n "$PKG_CONFIG" && \
10722     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10723   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; then
10727   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
10728 else
10729   pkg_failed=yes
10730 fi
10731     fi
10732 else
10733         pkg_failed=untried
10734 fi
10735
10736
10737
10738 if test $pkg_failed = yes; then
10739
10740 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10741         _pkg_short_errors_supported=yes
10742 else
10743         _pkg_short_errors_supported=no
10744 fi
10745         if test $_pkg_short_errors_supported = yes; then
10746                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
10747         else
10748                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
10749         fi
10750         # Put the nasty error message in config.log where it belongs
10751         echo "$ECAL_PKG_ERRORS" >&5
10752
10753         { echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6; }
10755                 ECALFOUND=no
10756 elif test $pkg_failed = untried; then
10757         ECALFOUND=no
10758 else
10759         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10760         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10761         { echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6; }
10763         ECALFOUND=yes
10764 fi
10765         if test "x${ECALFOUND}" = "xno"; then
10766
10767 pkg_failed=no
10768 { echo "$as_me:$LINENO: checking for ECAL" >&5
10769 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10770
10771 if test -n "$PKG_CONFIG"; then
10772     if test -n "$ECAL_CFLAGS"; then
10773         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10774     else
10775         if test -n "$PKG_CONFIG" && \
10776     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10777   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; then
10781   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
10782 else
10783   pkg_failed=yes
10784 fi
10785     fi
10786 else
10787         pkg_failed=untried
10788 fi
10789 if test -n "$PKG_CONFIG"; then
10790     if test -n "$ECAL_LIBS"; then
10791         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10792     else
10793         if test -n "$PKG_CONFIG" && \
10794     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10795   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; then
10799   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
10800 else
10801   pkg_failed=yes
10802 fi
10803     fi
10804 else
10805         pkg_failed=untried
10806 fi
10807
10808
10809
10810 if test $pkg_failed = yes; then
10811
10812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10813         _pkg_short_errors_supported=yes
10814 else
10815         _pkg_short_errors_supported=no
10816 fi
10817         if test $_pkg_short_errors_supported = yes; then
10818                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
10819         else
10820                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
10821         fi
10822         # Put the nasty error message in config.log where it belongs
10823         echo "$ECAL_PKG_ERRORS" >&5
10824
10825         { echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6; }
10827                 ECALFOUND=no
10828 elif test $pkg_failed = untried; then
10829         ECALFOUND=no
10830 else
10831         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10832         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10833         { echo "$as_me:$LINENO: result: yes" >&5
10834 echo "${ECHO_T}yes" >&6; }
10835         ECALFOUND=yes
10836 fi
10837         fi
10838 fi
10839
10840
10841 pkg_failed=no
10842 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10843 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10844
10845 if test -n "$PKG_CONFIG"; then
10846     if test -n "$EBOOK_CFLAGS"; then
10847         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10848     else
10849         if test -n "$PKG_CONFIG" && \
10850     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10851   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); }; then
10855   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
10856 else
10857   pkg_failed=yes
10858 fi
10859     fi
10860 else
10861         pkg_failed=untried
10862 fi
10863 if test -n "$PKG_CONFIG"; then
10864     if test -n "$EBOOK_LIBS"; then
10865         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10866     else
10867         if test -n "$PKG_CONFIG" && \
10868     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10869   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; then
10873   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
10874 else
10875   pkg_failed=yes
10876 fi
10877     fi
10878 else
10879         pkg_failed=untried
10880 fi
10881
10882
10883
10884 if test $pkg_failed = yes; then
10885
10886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10887         _pkg_short_errors_supported=yes
10888 else
10889         _pkg_short_errors_supported=no
10890 fi
10891         if test $_pkg_short_errors_supported = yes; then
10892                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
10893         else
10894                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
10895         fi
10896         # Put the nasty error message in config.log where it belongs
10897         echo "$EBOOK_PKG_ERRORS" >&5
10898
10899         { echo "$as_me:$LINENO: result: no" >&5
10900 echo "${ECHO_T}no" >&6; }
10901                 EBOOKFOUND=no
10902 elif test $pkg_failed = untried; then
10903         EBOOKFOUND=no
10904 else
10905         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10906         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10907         { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10909         EBOOKFOUND=yes
10910 fi
10911 if test "x${EBOOKFOUND}" = "xno"; then
10912
10913 pkg_failed=no
10914 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10915 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10916
10917 if test -n "$PKG_CONFIG"; then
10918     if test -n "$EBOOK_CFLAGS"; then
10919         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10920     else
10921         if test -n "$PKG_CONFIG" && \
10922     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10923   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; then
10927   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
10928 else
10929   pkg_failed=yes
10930 fi
10931     fi
10932 else
10933         pkg_failed=untried
10934 fi
10935 if test -n "$PKG_CONFIG"; then
10936     if test -n "$EBOOK_LIBS"; then
10937         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10938     else
10939         if test -n "$PKG_CONFIG" && \
10940     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10941   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; then
10945   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
10946 else
10947   pkg_failed=yes
10948 fi
10949     fi
10950 else
10951         pkg_failed=untried
10952 fi
10953
10954
10955
10956 if test $pkg_failed = yes; then
10957
10958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10959         _pkg_short_errors_supported=yes
10960 else
10961         _pkg_short_errors_supported=no
10962 fi
10963         if test $_pkg_short_errors_supported = yes; then
10964                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
10965         else
10966                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
10967         fi
10968         # Put the nasty error message in config.log where it belongs
10969         echo "$EBOOK_PKG_ERRORS" >&5
10970
10971         { echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6; }
10973                 EBOOKFOUND=no
10974 elif test $pkg_failed = untried; then
10975         EBOOKFOUND=no
10976 else
10977         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10978         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10979         { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10981         EBOOKFOUND=yes
10982 fi
10983         if test "x${EBOOKFOUND}" = "xno"; then
10984
10985 pkg_failed=no
10986 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10987 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10988
10989 if test -n "$PKG_CONFIG"; then
10990     if test -n "$EBOOK_CFLAGS"; then
10991         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10992     else
10993         if test -n "$PKG_CONFIG" && \
10994     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
10995   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; then
10999   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
11000 else
11001   pkg_failed=yes
11002 fi
11003     fi
11004 else
11005         pkg_failed=untried
11006 fi
11007 if test -n "$PKG_CONFIG"; then
11008     if test -n "$EBOOK_LIBS"; then
11009         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11010     else
11011         if test -n "$PKG_CONFIG" && \
11012     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
11013   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; then
11017   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
11018 else
11019   pkg_failed=yes
11020 fi
11021     fi
11022 else
11023         pkg_failed=untried
11024 fi
11025
11026
11027
11028 if test $pkg_failed = yes; then
11029
11030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11031         _pkg_short_errors_supported=yes
11032 else
11033         _pkg_short_errors_supported=no
11034 fi
11035         if test $_pkg_short_errors_supported = yes; then
11036                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
11037         else
11038                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
11039         fi
11040         # Put the nasty error message in config.log where it belongs
11041         echo "$EBOOK_PKG_ERRORS" >&5
11042
11043         { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11045                 EBOOKFOUND=no
11046 elif test $pkg_failed = untried; then
11047         EBOOKFOUND=no
11048 else
11049         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11050         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11051         { echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6; }
11053         EBOOKFOUND=yes
11054 fi
11055         fi
11056 fi
11057
11058
11059         # Check whether --enable-ebook was given.
11060 if test "${enable_ebook+set}" = set; then
11061   enableval=$enable_ebook; enable_ebook="$enableval"
11062 else
11063   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
11064                        { { echo "$as_me:$LINENO: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&5
11065 echo "$as_me: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&2;}
11066    { (exit 1); exit 1; }; }
11067 fi
11068
11069         BACKENDS="$BACKENDS ebook"
11070         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
11071         for source in evolution; do
11072             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
11073         done
11074
11075
11076         # Check whether --enable-ecal was given.
11077 if test "${enable_ecal+set}" = set; then
11078   enableval=$enable_ecal; enable_ecal="$enableval"
11079 else
11080   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
11081                        { { echo "$as_me:$LINENO: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&5
11082 echo "$as_me: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&2;}
11083    { (exit 1); exit 1; }; }
11084 fi
11085
11086         BACKENDS="$BACKENDS ecal"
11087         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
11088         for source in evolution; do
11089             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
11090         done
11091
11092
11093 enable_evo="no"
11094 if test "$enable_ebook" = "yes"; then
11095         test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
11096 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
11097    { (exit 1); exit 1; }; }
11098
11099 cat >>confdefs.h <<\_ACEOF
11100 #define ENABLE_EBOOK 1
11101 _ACEOF
11102
11103         enable_evo="yes"
11104 else
11105         EBOOK_CFLAGS=
11106         EBOOK_LIBS=
11107 fi
11108
11109  if test "$enable_ecal" == "yes"; then
11110   ENABLE_ECAL_TRUE=
11111   ENABLE_ECAL_FALSE='#'
11112 else
11113   ENABLE_ECAL_TRUE='#'
11114   ENABLE_ECAL_FALSE=
11115 fi
11116
11117 if test "$enable_ecal" = "yes"; then
11118         test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
11119 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
11120    { (exit 1); exit 1; }; }
11121
11122 cat >>confdefs.h <<\_ACEOF
11123 #define ENABLE_ECAL 1
11124 _ACEOF
11125
11126         enable_evo="yes"
11127 else
11128         ECAL_CFLAGS=
11129         ECAL_LIBS=
11130 fi
11131
11132
11133 pkg_failed=no
11134 { echo "$as_me:$LINENO: checking for LIBICAL_AVAILABLE" >&5
11135 echo $ECHO_N "checking for LIBICAL_AVAILABLE... $ECHO_C" >&6; }
11136
11137 if test -n "$PKG_CONFIG"; then
11138     if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
11139         pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
11140     else
11141         if test -n "$PKG_CONFIG" && \
11142     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11143   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; then
11147   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
11148 else
11149   pkg_failed=yes
11150 fi
11151     fi
11152 else
11153         pkg_failed=untried
11154 fi
11155 if test -n "$PKG_CONFIG"; then
11156     if test -n "$LIBICAL_AVAILABLE_LIBS"; then
11157         pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
11158     else
11159         if test -n "$PKG_CONFIG" && \
11160     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11161   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; then
11165   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
11166 else
11167   pkg_failed=yes
11168 fi
11169     fi
11170 else
11171         pkg_failed=untried
11172 fi
11173
11174
11175
11176 if test $pkg_failed = yes; then
11177
11178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11179         _pkg_short_errors_supported=yes
11180 else
11181         _pkg_short_errors_supported=no
11182 fi
11183         if test $_pkg_short_errors_supported = yes; then
11184                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical >= 0.43"`
11185         else
11186                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical >= 0.43"`
11187         fi
11188         # Put the nasty error message in config.log where it belongs
11189         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
11190
11191         { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11193                 pass
11194 elif test $pkg_failed = untried; then
11195         pass
11196 else
11197         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
11198         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
11199         { echo "$as_me:$LINENO: result: yes" >&5
11200 echo "${ECHO_T}yes" >&6; }
11201
11202 cat >>confdefs.h <<\_ACEOF
11203 #define HAVE_LIBICAL_R 1
11204 _ACEOF
11205
11206 fi
11207
11208 if test "$enable_evo" = "yes"; then
11209         need_glib="yes"
11210         if test "$EDSFOUND" = "yes"; then
11211
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_EDS 1
11214 _ACEOF
11215
11216         else
11217                 { { echo "$as_me:$LINENO: error: $evomissing" >&5
11218 echo "$as_me: error: $evomissing" >&2;}
11219    { (exit 1); exit 1; }; }
11220         fi
11221 else
11222         EPACKAGE_CFLAGS=
11223         EPACKAGE_LIBS=
11224 fi
11225
11226 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS"
11227 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
11228
11229 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
11230
11231 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
11232
11233
11234 FILE_CFLAGS=
11235 FILE_LIBS=
11236
11237
11238
11239 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
11240
11241
11242         # Check whether --enable-file was given.
11243 if test "${enable_file+set}" = set; then
11244   enableval=$enable_file; enable_file="$enableval"
11245 else
11246   enable_file="yes"
11247
11248 fi
11249
11250         BACKENDS="$BACKENDS file"
11251         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
11252         for source in file; do
11253             SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
11254         done
11255
11256
11257 if test "$enable_file" = "yes"; then
11258
11259 cat >>confdefs.h <<\_ACEOF
11260 #define ENABLE_FILE 1
11261 _ACEOF
11262
11263 fi
11264 ac_config_files="$ac_config_files src/backends/file/Makefile"
11265
11266 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
11267
11268 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
11269
11270
11271 pkg_failed=no
11272 { echo "$as_me:$LINENO: checking for MCALB" >&5
11273 echo $ECHO_N "checking for MCALB... $ECHO_C" >&6; }
11274
11275 if test -n "$PKG_CONFIG"; then
11276     if test -n "$MCALB_CFLAGS"; then
11277         pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
11278     else
11279         if test -n "$PKG_CONFIG" && \
11280     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11281   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; then
11285   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
11286 else
11287   pkg_failed=yes
11288 fi
11289     fi
11290 else
11291         pkg_failed=untried
11292 fi
11293 if test -n "$PKG_CONFIG"; then
11294     if test -n "$MCALB_LIBS"; then
11295         pkg_cv_MCALB_LIBS="$MCALB_LIBS"
11296     else
11297         if test -n "$PKG_CONFIG" && \
11298     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11299   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; then
11303   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
11304 else
11305   pkg_failed=yes
11306 fi
11307     fi
11308 else
11309         pkg_failed=untried
11310 fi
11311
11312
11313
11314 if test $pkg_failed = yes; then
11315
11316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11317         _pkg_short_errors_supported=yes
11318 else
11319         _pkg_short_errors_supported=no
11320 fi
11321         if test $_pkg_short_errors_supported = yes; then
11322                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "calendar-backend"`
11323         else
11324                 MCALB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "calendar-backend"`
11325         fi
11326         # Put the nasty error message in config.log where it belongs
11327         echo "$MCALB_PKG_ERRORS" >&5
11328
11329         { echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6; }
11331                 MCALBFOUND=no
11332 elif test $pkg_failed = untried; then
11333         MCALBFOUND=no
11334 else
11335         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
11336         MCALB_LIBS=$pkg_cv_MCALB_LIBS
11337         { echo "$as_me:$LINENO: result: yes" >&5
11338 echo "${ECHO_T}yes" >&6; }
11339         MCALBFOUND=yes
11340 fi
11341
11342
11343 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
11344
11345
11346         # Check whether --enable-maemocal was given.
11347 if test "${enable_maemocal+set}" = set; then
11348   enableval=$enable_maemocal; enable_maemocal="$enableval"
11349 else
11350   enable_maemocal="no"
11351 fi
11352
11353         BACKENDS="$BACKENDS maemocal"
11354         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo maemocal | tr a-z A-Z`"
11355         for source in maemo; do
11356             SYNCSOURCES="$SYNCSOURCES backends/maemo/syncmaemocal.la"
11357         done
11358
11359
11360 if test "$enable_maemocal" = "yes"; then
11361         test "x${MCALBFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&5
11362 echo "$as_me: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&2;}
11363    { (exit 1); exit 1; }; }
11364
11365 cat >>confdefs.h <<\_ACEOF
11366 #define ENABLE_MAEMO_CALENDAR 1
11367 _ACEOF
11368
11369 fi
11370 ac_config_files="$ac_config_files src/backends/maemo/Makefile"
11371
11372 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
11373
11374 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
11375
11376
11377 pkg_failed=no
11378 { echo "$as_me:$LINENO: checking for SQLITE" >&5
11379 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6; }
11380
11381 if test -n "$PKG_CONFIG"; then
11382     if test -n "$SQLITE_CFLAGS"; then
11383         pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
11384     else
11385         if test -n "$PKG_CONFIG" && \
11386     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11387   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; then
11391   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
11392 else
11393   pkg_failed=yes
11394 fi
11395     fi
11396 else
11397         pkg_failed=untried
11398 fi
11399 if test -n "$PKG_CONFIG"; then
11400     if test -n "$SQLITE_LIBS"; then
11401         pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
11402     else
11403         if test -n "$PKG_CONFIG" && \
11404     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11405   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; then
11409   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
11410 else
11411   pkg_failed=yes
11412 fi
11413     fi
11414 else
11415         pkg_failed=untried
11416 fi
11417
11418
11419
11420 if test $pkg_failed = yes; then
11421
11422 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11423         _pkg_short_errors_supported=yes
11424 else
11425         _pkg_short_errors_supported=no
11426 fi
11427         if test $_pkg_short_errors_supported = yes; then
11428                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
11429         else
11430                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
11431         fi
11432         # Put the nasty error message in config.log where it belongs
11433         echo "$SQLITE_PKG_ERRORS" >&5
11434
11435         { echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6; }
11437                 SQLITEFOUND=no
11438 elif test $pkg_failed = untried; then
11439         SQLITEFOUND=no
11440 else
11441         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
11442         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
11443         { echo "$as_me:$LINENO: result: yes" >&5
11444 echo "${ECHO_T}yes" >&6; }
11445         SQLITEFOUND=yes
11446 fi
11447
11448
11449 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
11450
11451
11452         # Check whether --enable-sqlite was given.
11453 if test "${enable_sqlite+set}" = set; then
11454   enableval=$enable_sqlite; enable_sqlite="$enableval"
11455 else
11456   enable_sqlite="no"
11457 fi
11458
11459         BACKENDS="$BACKENDS sqlite"
11460         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
11461         for source in sqlite; do
11462             SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
11463         done
11464
11465
11466 if test "$enable_sqlite" = "yes"; then
11467         test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
11468 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
11469    { (exit 1); exit 1; }; }
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define ENABLE_SQLITE 1
11473 _ACEOF
11474
11475 else
11476         # avoid linking against it if not needed
11477         SQLITE_CFLAGS=
11478         SQLITE_LIBS=
11479 fi
11480 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
11481
11482 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
11483
11484 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
11485
11486
11487
11488
11489         # Check whether --enable-xmlrpc was given.
11490 if test "${enable_xmlrpc+set}" = set; then
11491   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
11492 else
11493   enable_xmlrpc="no"
11494
11495 fi
11496
11497         BACKENDS="$BACKENDS xmlrpc"
11498         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo xmlrpc | tr a-z A-Z`"
11499         for source in xmlrpc; do
11500             SYNCSOURCES="$SYNCSOURCES backends/xmlrpc/syncxmlrpc.la"
11501         done
11502
11503
11504 if test "$enable_xmlrpc" = "yes"; then
11505
11506         test -e /usr/bin/xmlrpc-c-config || { { echo "$as_me:$LINENO: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&5
11507 echo "$as_me: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&2;}
11508    { (exit 1); exit 1; }; }
11509
11510         XMLRPC_CFLAGS=`/usr/bin/xmlrpc-c-config c++2 client --cflags`
11511         XMLRPC_LIBS=`/usr/bin/xmlrpc-c-config c++2 client --libs`
11512
11513
11514
11515                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
11516
11517
11518 cat >>confdefs.h <<\_ACEOF
11519 #define ENABLE_XMLRPC 1
11520 _ACEOF
11521
11522 fi
11523 ac_config_files="$ac_config_files src/backends/xmlrpc/Makefile"
11524
11525 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
11526
11527
11528
11529
11530 enable_any="no"
11531 backend_is_enabled () {
11532     eval echo \${enable_${1}}
11533 }
11534 for backend in $BACKENDS; do
11535     if test `backend_is_enabled $backend` == "yes"; then
11536        enable_any="yes"
11537        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
11538     fi
11539 done
11540
11541 if test "$enable_any" = "no"; then
11542         { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
11543 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
11544    { (exit 1); exit 1; }; }
11545 fi
11546
11547 ac_ext=cpp
11548 ac_cpp='$CXXCPP $CPPFLAGS'
11549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11552 if test -z "$CXX"; then
11553   if test -n "$CCC"; then
11554     CXX=$CCC
11555   else
11556     if test -n "$ac_tool_prefix"; then
11557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11558   do
11559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11563 if test "${ac_cv_prog_CXX+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   if test -n "$CXX"; then
11567   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11568 else
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11571 do
11572   IFS=$as_save_IFS
11573   test -z "$as_dir" && as_dir=.
11574   for ac_exec_ext in '' $ac_executable_extensions; do
11575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11578     break 2
11579   fi
11580 done
11581 done
11582 IFS=$as_save_IFS
11583
11584 fi
11585 fi
11586 CXX=$ac_cv_prog_CXX
11587 if test -n "$CXX"; then
11588   { echo "$as_me:$LINENO: result: $CXX" >&5
11589 echo "${ECHO_T}$CXX" >&6; }
11590 else
11591   { echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6; }
11593 fi
11594
11595
11596     test -n "$CXX" && break
11597   done
11598 fi
11599 if test -z "$CXX"; then
11600   ac_ct_CXX=$CXX
11601   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11602 do
11603   # Extract the first word of "$ac_prog", so it can be a program name with args.
11604 set dummy $ac_prog; ac_word=$2
11605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   if test -n "$ac_ct_CXX"; then
11611   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11612 else
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616   IFS=$as_save_IFS
11617   test -z "$as_dir" && as_dir=.
11618   for ac_exec_ext in '' $ac_executable_extensions; do
11619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11620     ac_cv_prog_ac_ct_CXX="$ac_prog"
11621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11622     break 2
11623   fi
11624 done
11625 done
11626 IFS=$as_save_IFS
11627
11628 fi
11629 fi
11630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11631 if test -n "$ac_ct_CXX"; then
11632   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11633 echo "${ECHO_T}$ac_ct_CXX" >&6; }
11634 else
11635   { echo "$as_me:$LINENO: result: no" >&5
11636 echo "${ECHO_T}no" >&6; }
11637 fi
11638
11639
11640   test -n "$ac_ct_CXX" && break
11641 done
11642
11643   if test "x$ac_ct_CXX" = x; then
11644     CXX="g++"
11645   else
11646     case $cross_compiling:$ac_tool_warned in
11647 yes:)
11648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11649 whose name does not start with the host triplet.  If you think this
11650 configuration is useful to you, please write to autoconf@gnu.org." >&5
11651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11652 whose name does not start with the host triplet.  If you think this
11653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11654 ac_tool_warned=yes ;;
11655 esac
11656     CXX=$ac_ct_CXX
11657   fi
11658 fi
11659
11660   fi
11661 fi
11662 # Provide some information about the compiler.
11663 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11664 ac_compiler=`set X $ac_compile; echo $2`
11665 { (ac_try="$ac_compiler --version >&5"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_compiler --version >&5") 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }
11675 { (ac_try="$ac_compiler -v >&5"
11676 case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_compiler -v >&5") 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }
11685 { (ac_try="$ac_compiler -V >&5"
11686 case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691   (eval "$ac_compiler -V >&5") 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }
11695
11696 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707
11708 int
11709 main ()
11710 {
11711 #ifndef __GNUC__
11712        choke me
11713 #endif
11714
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_compile") 2>conftest.er1
11727   ac_status=$?
11728   grep -v '^ *+' conftest.er1 >conftest.err
11729   rm -f conftest.er1
11730   cat conftest.err >&5
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); } && {
11733          test -z "$ac_cxx_werror_flag" ||
11734          test ! -s conftest.err
11735        } && test -s conftest.$ac_objext; then
11736   ac_compiler_gnu=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741         ac_compiler_gnu=no
11742 fi
11743
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11746
11747 fi
11748 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11749 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11750 GXX=`test $ac_compiler_gnu = yes && echo yes`
11751 ac_test_CXXFLAGS=${CXXFLAGS+set}
11752 ac_save_CXXFLAGS=$CXXFLAGS
11753 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11754 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11755 if test "${ac_cv_prog_cxx_g+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11759    ac_cxx_werror_flag=yes
11760    ac_cv_prog_cxx_g=no
11761    CXXFLAGS="-g"
11762    cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768
11769 int
11770 main ()
11771 {
11772
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_compile") 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } && {
11791          test -z "$ac_cxx_werror_flag" ||
11792          test ! -s conftest.err
11793        } && test -s conftest.$ac_objext; then
11794   ac_cv_prog_cxx_g=yes
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         CXXFLAGS=""
11800       cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 int
11808 main ()
11809 {
11810
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (ac_try="$ac_compile"
11817 case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_compile") 2>conftest.er1
11823   ac_status=$?
11824   grep -v '^ *+' conftest.er1 >conftest.err
11825   rm -f conftest.er1
11826   cat conftest.err >&5
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } && {
11829          test -z "$ac_cxx_werror_flag" ||
11830          test ! -s conftest.err
11831        } && test -s conftest.$ac_objext; then
11832   :
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11838          CXXFLAGS="-g"
11839          cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845
11846 int
11847 main ()
11848 {
11849
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_compile") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } && {
11868          test -z "$ac_cxx_werror_flag" ||
11869          test ! -s conftest.err
11870        } && test -s conftest.$ac_objext; then
11871   ac_cv_prog_cxx_g=yes
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876
11877 fi
11878
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11887 fi
11888 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11889 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11890 if test "$ac_test_CXXFLAGS" = set; then
11891   CXXFLAGS=$ac_save_CXXFLAGS
11892 elif test $ac_cv_prog_cxx_g = yes; then
11893   if test "$GXX" = yes; then
11894     CXXFLAGS="-g -O2"
11895   else
11896     CXXFLAGS="-g"
11897   fi
11898 else
11899   if test "$GXX" = yes; then
11900     CXXFLAGS="-O2"
11901   else
11902     CXXFLAGS=
11903   fi
11904 fi
11905 ac_ext=c
11906 ac_cpp='$CPP $CPPFLAGS'
11907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11910
11911 depcc="$CXX"  am_compiler_list=
11912
11913 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11914 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11915 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11919   # We make a subdir and do the tests there.  Otherwise we can end up
11920   # making bogus files that we don't know about and never remove.  For
11921   # instance it was reported that on HP-UX the gcc test will end up
11922   # making a dummy file named `D' -- because `-MD' means `put the output
11923   # in D'.
11924   mkdir conftest.dir
11925   # Copy depcomp to subdir because otherwise we won't find it if we're
11926   # using a relative directory.
11927   cp "$am_depcomp" conftest.dir
11928   cd conftest.dir
11929   # We will build objects and dependencies in a subdirectory because
11930   # it helps to detect inapplicable dependency modes.  For instance
11931   # both Tru64's cc and ICC support -MD to output dependencies as a
11932   # side effect of compilation, but ICC will put the dependencies in
11933   # the current directory while Tru64 will put them in the object
11934   # directory.
11935   mkdir sub
11936
11937   am_cv_CXX_dependencies_compiler_type=none
11938   if test "$am_compiler_list" = ""; then
11939      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11940   fi
11941   for depmode in $am_compiler_list; do
11942     # Setup a source with many dependencies, because some compilers
11943     # like to wrap large dependency lists on column 80 (with \), and
11944     # we should not choose a depcomp mode which is confused by this.
11945     #
11946     # We need to recreate these files for each test, as the compiler may
11947     # overwrite some of them when testing with obscure command lines.
11948     # This happens at least with the AIX C compiler.
11949     : > sub/conftest.c
11950     for i in 1 2 3 4 5 6; do
11951       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11952       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11953       # Solaris 8's {/usr,}/bin/sh.
11954       touch sub/conftst$i.h
11955     done
11956     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11957
11958     case $depmode in
11959     nosideeffect)
11960       # after this tag, mechanisms are not by side-effect, so they'll
11961       # only be used when explicitly requested
11962       if test "x$enable_dependency_tracking" = xyes; then
11963         continue
11964       else
11965         break
11966       fi
11967       ;;
11968     none) break ;;
11969     esac
11970     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11971     # mode.  It turns out that the SunPro C++ compiler does not properly
11972     # handle `-M -o', and we need to detect this.
11973     if depmode=$depmode \
11974        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11975        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11976        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11977          >/dev/null 2>conftest.err &&
11978        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11979        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11980        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11981        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11982       # icc doesn't choke on unknown options, it will just issue warnings
11983       # or remarks (even with -Werror).  So we grep stderr for any message
11984       # that says an option was ignored or not supported.
11985       # When given -MP, icc 7.0 and 7.1 complain thusly:
11986       #   icc: Command line warning: ignoring option '-M'; no argument required
11987       # The diagnosis changed in icc 8.0:
11988       #   icc: Command line remark: option '-MP' not supported
11989       if (grep 'ignoring option' conftest.err ||
11990           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11991         am_cv_CXX_dependencies_compiler_type=$depmode
11992         break
11993       fi
11994     fi
11995   done
11996
11997   cd ..
11998   rm -rf conftest.dir
11999 else
12000   am_cv_CXX_dependencies_compiler_type=none
12001 fi
12002
12003 fi
12004 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12005 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12007
12008  if
12009   test "x$enable_dependency_tracking" != xno \
12010   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12011   am__fastdepCXX_TRUE=
12012   am__fastdepCXX_FALSE='#'
12013 else
12014   am__fastdepCXX_TRUE='#'
12015   am__fastdepCXX_FALSE=
12016 fi
12017
12018
12019 # Check whether --enable-shared was given.
12020 if test "${enable_shared+set}" = set; then
12021   enableval=$enable_shared; p=${PACKAGE-default}
12022     case $enableval in
12023     yes) enable_shared=yes ;;
12024     no) enable_shared=no ;;
12025     *)
12026       enable_shared=no
12027       # Look at the argument we got.  We use all the common list separators.
12028       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12029       for pkg in $enableval; do
12030         IFS="$lt_save_ifs"
12031         if test "X$pkg" = "X$p"; then
12032           enable_shared=yes
12033         fi
12034       done
12035       IFS="$lt_save_ifs"
12036       ;;
12037     esac
12038 else
12039   enable_shared=yes
12040 fi
12041
12042
12043 # Check whether --enable-static was given.
12044 if test "${enable_static+set}" = set; then
12045   enableval=$enable_static; p=${PACKAGE-default}
12046     case $enableval in
12047     yes) enable_static=yes ;;
12048     no) enable_static=no ;;
12049     *)
12050      enable_static=no
12051       # Look at the argument we got.  We use all the common list separators.
12052       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12053       for pkg in $enableval; do
12054         IFS="$lt_save_ifs"
12055         if test "X$pkg" = "X$p"; then
12056           enable_static=yes
12057         fi
12058       done
12059       IFS="$lt_save_ifs"
12060       ;;
12061     esac
12062 else
12063   enable_static=yes
12064 fi
12065
12066
12067 # Check whether --enable-fast-install was given.
12068 if test "${enable_fast_install+set}" = set; then
12069   enableval=$enable_fast_install; p=${PACKAGE-default}
12070     case $enableval in
12071     yes) enable_fast_install=yes ;;
12072     no) enable_fast_install=no ;;
12073     *)
12074       enable_fast_install=no
12075       # Look at the argument we got.  We use all the common list separators.
12076       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12077       for pkg in $enableval; do
12078         IFS="$lt_save_ifs"
12079         if test "X$pkg" = "X$p"; then
12080           enable_fast_install=yes
12081         fi
12082       done
12083       IFS="$lt_save_ifs"
12084       ;;
12085     esac
12086 else
12087   enable_fast_install=yes
12088 fi
12089
12090
12091 # Make sure we can run config.sub.
12092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12093   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
12094 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
12095    { (exit 1); exit 1; }; }
12096
12097 { echo "$as_me:$LINENO: checking build system type" >&5
12098 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
12099 if test "${ac_cv_build+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   ac_build_alias=$build_alias
12103 test "x$ac_build_alias" = x &&
12104   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
12105 test "x$ac_build_alias" = x &&
12106   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
12107 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
12108    { (exit 1); exit 1; }; }
12109 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12110   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
12111 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
12112    { (exit 1); exit 1; }; }
12113
12114 fi
12115 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
12116 echo "${ECHO_T}$ac_cv_build" >&6; }
12117 case $ac_cv_build in
12118 *-*-*) ;;
12119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
12120 echo "$as_me: error: invalid value of canonical build" >&2;}
12121    { (exit 1); exit 1; }; };;
12122 esac
12123 build=$ac_cv_build
12124 ac_save_IFS=$IFS; IFS='-'
12125 set x $ac_cv_build
12126 shift
12127 build_cpu=$1
12128 build_vendor=$2
12129 shift; shift
12130 # Remember, the first character of IFS is used to create $*,
12131 # except with old shells:
12132 build_os=$*
12133 IFS=$ac_save_IFS
12134 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
12135
12136
12137 { echo "$as_me:$LINENO: checking host system type" >&5
12138 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
12139 if test "${ac_cv_host+set}" = set; then
12140   echo $ECHO_N "(cached) $ECHO_C" >&6
12141 else
12142   if test "x$host_alias" = x; then
12143   ac_cv_host=$ac_cv_build
12144 else
12145   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12146     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12147 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12148    { (exit 1); exit 1; }; }
12149 fi
12150
12151 fi
12152 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12153 echo "${ECHO_T}$ac_cv_host" >&6; }
12154 case $ac_cv_host in
12155 *-*-*) ;;
12156 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12157 echo "$as_me: error: invalid value of canonical host" >&2;}
12158    { (exit 1); exit 1; }; };;
12159 esac
12160 host=$ac_cv_host
12161 ac_save_IFS=$IFS; IFS='-'
12162 set x $ac_cv_host
12163 shift
12164 host_cpu=$1
12165 host_vendor=$2
12166 shift; shift
12167 # Remember, the first character of IFS is used to create $*,
12168 # except with old shells:
12169 host_os=$*
12170 IFS=$ac_save_IFS
12171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12172
12173
12174 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12175 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12176 if test "${lt_cv_path_SED+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   # Loop through the user's path and test for sed and gsed.
12180 # Then use that list of sed's as ones to test for truncation.
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186   for lt_ac_prog in sed gsed; do
12187     for ac_exec_ext in '' $ac_executable_extensions; do
12188       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12189         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12190       fi
12191     done
12192   done
12193 done
12194 IFS=$as_save_IFS
12195 lt_ac_max=0
12196 lt_ac_count=0
12197 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12198 # along with /bin/sed that truncates output.
12199 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12200   test ! -f $lt_ac_sed && continue
12201   cat /dev/null > conftest.in
12202   lt_ac_count=0
12203   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12204   # Check for GNU sed and select it if it is found.
12205   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12206     lt_cv_path_SED=$lt_ac_sed
12207     break
12208   fi
12209   while true; do
12210     cat conftest.in conftest.in >conftest.tmp
12211     mv conftest.tmp conftest.in
12212     cp conftest.in conftest.nl
12213     echo >>conftest.nl
12214     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12215     cmp -s conftest.out conftest.nl || break
12216     # 10000 chars as input seems more than enough
12217     test $lt_ac_count -gt 10 && break
12218     lt_ac_count=`expr $lt_ac_count + 1`
12219     if test $lt_ac_count -gt $lt_ac_max; then
12220       lt_ac_max=$lt_ac_count
12221       lt_cv_path_SED=$lt_ac_sed
12222     fi
12223   done
12224 done
12225
12226 fi
12227
12228 SED=$lt_cv_path_SED
12229
12230 { echo "$as_me:$LINENO: result: $SED" >&5
12231 echo "${ECHO_T}$SED" >&6; }
12232
12233
12234 # Check whether --with-gnu-ld was given.
12235 if test "${with_gnu_ld+set}" = set; then
12236   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12237 else
12238   with_gnu_ld=no
12239 fi
12240
12241 ac_prog=ld
12242 if test "$GCC" = yes; then
12243   # Check if gcc -print-prog-name=ld gives a path.
12244   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12245 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12246   case $host in
12247   *-*-mingw*)
12248     # gcc leaves a trailing carriage return which upsets mingw
12249     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12250   *)
12251     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12252   esac
12253   case $ac_prog in
12254     # Accept absolute paths.
12255     [\\/]* | ?:[\\/]*)
12256       re_direlt='/[^/][^/]*/\.\./'
12257       # Canonicalize the pathname of ld
12258       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12259       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12260         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12261       done
12262       test -z "$LD" && LD="$ac_prog"
12263       ;;
12264   "")
12265     # If it fails, then pretend we aren't using GCC.
12266     ac_prog=ld
12267     ;;
12268   *)
12269     # If it is relative, then search for the first ld in PATH.
12270     with_gnu_ld=unknown
12271     ;;
12272   esac
12273 elif test "$with_gnu_ld" = yes; then
12274   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12276 else
12277   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12279 fi
12280 if test "${lt_cv_path_LD+set}" = set; then
12281   echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283   if test -z "$LD"; then
12284   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12285   for ac_dir in $PATH; do
12286     IFS="$lt_save_ifs"
12287     test -z "$ac_dir" && ac_dir=.
12288     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12289       lt_cv_path_LD="$ac_dir/$ac_prog"
12290       # Check to see if the program is GNU ld.  I'd rather use --version,
12291       # but apparently some variants of GNU ld only accept -v.
12292       # Break only if it was the GNU/non-GNU ld that we prefer.
12293       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12294       *GNU* | *'with BFD'*)
12295         test "$with_gnu_ld" != no && break
12296         ;;
12297       *)
12298         test "$with_gnu_ld" != yes && break
12299         ;;
12300       esac
12301     fi
12302   done
12303   IFS="$lt_save_ifs"
12304 else
12305   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12306 fi
12307 fi
12308
12309 LD="$lt_cv_path_LD"
12310 if test -n "$LD"; then
12311   { echo "$as_me:$LINENO: result: $LD" >&5
12312 echo "${ECHO_T}$LD" >&6; }
12313 else
12314   { echo "$as_me:$LINENO: result: no" >&5
12315 echo "${ECHO_T}no" >&6; }
12316 fi
12317 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12318 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12319    { (exit 1); exit 1; }; }
12320 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12321 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12322 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12326 case `$LD -v 2>&1 </dev/null` in
12327 *GNU* | *'with BFD'*)
12328   lt_cv_prog_gnu_ld=yes
12329   ;;
12330 *)
12331   lt_cv_prog_gnu_ld=no
12332   ;;
12333 esac
12334 fi
12335 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12336 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12337 with_gnu_ld=$lt_cv_prog_gnu_ld
12338
12339
12340 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12341 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12342 if test "${lt_cv_ld_reload_flag+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   lt_cv_ld_reload_flag='-r'
12346 fi
12347 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12348 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12349 reload_flag=$lt_cv_ld_reload_flag
12350 case $reload_flag in
12351 "" | " "*) ;;
12352 *) reload_flag=" $reload_flag" ;;
12353 esac
12354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12355 case $host_os in
12356   darwin*)
12357     if test "$GCC" = yes; then
12358       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12359     else
12360       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12361     fi
12362     ;;
12363 esac
12364
12365 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12366 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12367 if test "${lt_cv_path_NM+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   if test -n "$NM"; then
12371   # Let the user override the test.
12372   lt_cv_path_NM="$NM"
12373 else
12374   lt_nm_to_check="${ac_tool_prefix}nm"
12375   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12376     lt_nm_to_check="$lt_nm_to_check nm"
12377   fi
12378   for lt_tmp_nm in $lt_nm_to_check; do
12379     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12380     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12381       IFS="$lt_save_ifs"
12382       test -z "$ac_dir" && ac_dir=.
12383       tmp_nm="$ac_dir/$lt_tmp_nm"
12384       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12385         # Check to see if the nm accepts a BSD-compat flag.
12386         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12387         #   nm: unknown option "B" ignored
12388         # Tru64's nm complains that /dev/null is an invalid object file
12389         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12390         */dev/null* | *'Invalid file or object type'*)
12391           lt_cv_path_NM="$tmp_nm -B"
12392           break
12393           ;;
12394         *)
12395           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12396           */dev/null*)
12397             lt_cv_path_NM="$tmp_nm -p"
12398             break
12399             ;;
12400           *)
12401             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12402             continue # so that we can try to find one that supports BSD flags
12403             ;;
12404           esac
12405           ;;
12406         esac
12407       fi
12408     done
12409     IFS="$lt_save_ifs"
12410   done
12411   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12412 fi
12413 fi
12414 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12415 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12416 NM="$lt_cv_path_NM"
12417
12418 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
12419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12420 LN_S=$as_ln_s
12421 if test "$LN_S" = "ln -s"; then
12422   { echo "$as_me:$LINENO: result: yes" >&5
12423 echo "${ECHO_T}yes" >&6; }
12424 else
12425   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12426 echo "${ECHO_T}no, using $LN_S" >&6; }
12427 fi
12428
12429 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12430 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12431 if test "${lt_cv_deplibs_check_method+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   lt_cv_file_magic_cmd='$MAGIC_CMD'
12435 lt_cv_file_magic_test_file=
12436 lt_cv_deplibs_check_method='unknown'
12437 # Need to set the preceding variable on all platforms that support
12438 # interlibrary dependencies.
12439 # 'none' -- dependencies not supported.
12440 # `unknown' -- same as none, but documents that we really don't know.
12441 # 'pass_all' -- all dependencies passed with no checks.
12442 # 'test_compile' -- check by making test program.
12443 # 'file_magic [[regex]]' -- check by looking for files in library path
12444 # which responds to the $file_magic_cmd with a given extended regex.
12445 # If you have `file' or equivalent on your system and you're not sure
12446 # whether `pass_all' will *always* work, you probably want this one.
12447
12448 case $host_os in
12449 aix[4-9]*)
12450   lt_cv_deplibs_check_method=pass_all
12451   ;;
12452
12453 beos*)
12454   lt_cv_deplibs_check_method=pass_all
12455   ;;
12456
12457 bsdi[45]*)
12458   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12459   lt_cv_file_magic_cmd='/usr/bin/file -L'
12460   lt_cv_file_magic_test_file=/shlib/libc.so
12461   ;;
12462
12463 cygwin*)
12464   # func_win32_libid is a shell function defined in ltmain.sh
12465   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12466   lt_cv_file_magic_cmd='func_win32_libid'
12467   ;;
12468
12469 mingw* | pw32*)
12470   # Base MSYS/MinGW do not provide the 'file' command needed by
12471   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12472   # unless we find 'file', for example because we are cross-compiling.
12473   if ( file / ) >/dev/null 2>&1; then
12474     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12475     lt_cv_file_magic_cmd='func_win32_libid'
12476   else
12477     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12478     lt_cv_file_magic_cmd='$OBJDUMP -f'
12479   fi
12480   ;;
12481
12482 darwin* | rhapsody*)
12483   lt_cv_deplibs_check_method=pass_all
12484   ;;
12485
12486 freebsd* | dragonfly*)
12487   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12488     case $host_cpu in
12489     i*86 )
12490       # Not sure whether the presence of OpenBSD here was a mistake.
12491       # Let's accept both of them until this is cleared up.
12492       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12493       lt_cv_file_magic_cmd=/usr/bin/file
12494       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12495       ;;
12496     esac
12497   else
12498     lt_cv_deplibs_check_method=pass_all
12499   fi
12500   ;;
12501
12502 gnu*)
12503   lt_cv_deplibs_check_method=pass_all
12504   ;;
12505
12506 hpux10.20* | hpux11*)
12507   lt_cv_file_magic_cmd=/usr/bin/file
12508   case $host_cpu in
12509   ia64*)
12510     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12511     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12512     ;;
12513   hppa*64*)
12514     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]'
12515     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12516     ;;
12517   *)
12518     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12519     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12520     ;;
12521   esac
12522   ;;
12523
12524 interix[3-9]*)
12525   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12526   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12527   ;;
12528
12529 irix5* | irix6* | nonstopux*)
12530   case $LD in
12531   *-32|*"-32 ") libmagic=32-bit;;
12532   *-n32|*"-n32 ") libmagic=N32;;
12533   *-64|*"-64 ") libmagic=64-bit;;
12534   *) libmagic=never-match;;
12535   esac
12536   lt_cv_deplibs_check_method=pass_all
12537   ;;
12538
12539 # This must be Linux ELF.
12540 linux* | k*bsd*-gnu)
12541   lt_cv_deplibs_check_method=pass_all
12542   ;;
12543
12544 netbsd* | netbsdelf*-gnu)
12545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12546     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12547   else
12548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12549   fi
12550   ;;
12551
12552 newos6*)
12553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12554   lt_cv_file_magic_cmd=/usr/bin/file
12555   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12556   ;;
12557
12558 nto-qnx*)
12559   lt_cv_deplibs_check_method=unknown
12560   ;;
12561
12562 openbsd*)
12563   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12565   else
12566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12567   fi
12568   ;;
12569
12570 osf3* | osf4* | osf5*)
12571   lt_cv_deplibs_check_method=pass_all
12572   ;;
12573
12574 rdos*)
12575   lt_cv_deplibs_check_method=pass_all
12576   ;;
12577
12578 solaris*)
12579   lt_cv_deplibs_check_method=pass_all
12580   ;;
12581
12582 sysv4 | sysv4.3*)
12583   case $host_vendor in
12584   motorola)
12585     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]'
12586     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12587     ;;
12588   ncr)
12589     lt_cv_deplibs_check_method=pass_all
12590     ;;
12591   sequent)
12592     lt_cv_file_magic_cmd='/bin/file'
12593     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12594     ;;
12595   sni)
12596     lt_cv_file_magic_cmd='/bin/file'
12597     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12598     lt_cv_file_magic_test_file=/lib/libc.so
12599     ;;
12600   siemens)
12601     lt_cv_deplibs_check_method=pass_all
12602     ;;
12603   pc)
12604     lt_cv_deplibs_check_method=pass_all
12605     ;;
12606   esac
12607   ;;
12608
12609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12610   lt_cv_deplibs_check_method=pass_all
12611   ;;
12612 esac
12613
12614 fi
12615 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12616 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12617 file_magic_cmd=$lt_cv_file_magic_cmd
12618 deplibs_check_method=$lt_cv_deplibs_check_method
12619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12620
12621
12622
12623
12624 # If no C compiler was specified, use CC.
12625 LTCC=${LTCC-"$CC"}
12626
12627 # If no C compiler flags were specified, use CFLAGS.
12628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12629
12630 # Allow CC to be a program name with arguments.
12631 compiler=$CC
12632
12633 # Check whether --enable-libtool-lock was given.
12634 if test "${enable_libtool_lock+set}" = set; then
12635   enableval=$enable_libtool_lock;
12636 fi
12637
12638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12639
12640 # Some flags need to be propagated to the compiler or linker for good
12641 # libtool support.
12642 case $host in
12643 ia64-*-hpux*)
12644   # Find out which ABI we are using.
12645   echo 'int i;' > conftest.$ac_ext
12646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647   (eval $ac_compile) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; then
12651     case `/usr/bin/file conftest.$ac_objext` in
12652     *ELF-32*)
12653       HPUX_IA64_MODE="32"
12654       ;;
12655     *ELF-64*)
12656       HPUX_IA64_MODE="64"
12657       ;;
12658     esac
12659   fi
12660   rm -rf conftest*
12661   ;;
12662 *-*-irix6*)
12663   # Find out which ABI we are using.
12664   echo '#line 12664 "configure"' > conftest.$ac_ext
12665   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666   (eval $ac_compile) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; then
12670    if test "$lt_cv_prog_gnu_ld" = yes; then
12671     case `/usr/bin/file conftest.$ac_objext` in
12672     *32-bit*)
12673       LD="${LD-ld} -melf32bsmip"
12674       ;;
12675     *N32*)
12676       LD="${LD-ld} -melf32bmipn32"
12677       ;;
12678     *64-bit*)
12679       LD="${LD-ld} -melf64bmip"
12680       ;;
12681     esac
12682    else
12683     case `/usr/bin/file conftest.$ac_objext` in
12684     *32-bit*)
12685       LD="${LD-ld} -32"
12686       ;;
12687     *N32*)
12688       LD="${LD-ld} -n32"
12689       ;;
12690     *64-bit*)
12691       LD="${LD-ld} -64"
12692       ;;
12693     esac
12694    fi
12695   fi
12696   rm -rf conftest*
12697   ;;
12698
12699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12700 s390*-*linux*|sparc*-*linux*)
12701   # Find out which ABI we are using.
12702   echo 'int i;' > conftest.$ac_ext
12703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704   (eval $ac_compile) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; then
12708     case `/usr/bin/file conftest.o` in
12709     *32-bit*)
12710       case $host in
12711         x86_64-*kfreebsd*-gnu)
12712           LD="${LD-ld} -m elf_i386_fbsd"
12713           ;;
12714         x86_64-*linux*)
12715           LD="${LD-ld} -m elf_i386"
12716           ;;
12717         ppc64-*linux*|powerpc64-*linux*)
12718           LD="${LD-ld} -m elf32ppclinux"
12719           ;;
12720         s390x-*linux*)
12721           LD="${LD-ld} -m elf_s390"
12722           ;;
12723         sparc64-*linux*)
12724           LD="${LD-ld} -m elf32_sparc"
12725           ;;
12726       esac
12727       ;;
12728     *64-bit*)
12729       case $host in
12730         x86_64-*kfreebsd*-gnu)
12731           LD="${LD-ld} -m elf_x86_64_fbsd"
12732           ;;
12733         x86_64-*linux*)
12734           LD="${LD-ld} -m elf_x86_64"
12735           ;;
12736         ppc*-*linux*|powerpc*-*linux*)
12737           LD="${LD-ld} -m elf64ppc"
12738           ;;
12739         s390*-*linux*)
12740           LD="${LD-ld} -m elf64_s390"
12741           ;;
12742         sparc*-*linux*)
12743           LD="${LD-ld} -m elf64_sparc"
12744           ;;
12745       esac
12746       ;;
12747     esac
12748   fi
12749   rm -rf conftest*
12750   ;;
12751
12752 *-*-sco3.2v5*)
12753   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12754   SAVE_CFLAGS="$CFLAGS"
12755   CFLAGS="$CFLAGS -belf"
12756   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12757 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12758 if test "${lt_cv_cc_needs_belf+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766
12767      cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773
12774 int
12775 main ()
12776 {
12777
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 rm -f conftest.$ac_objext conftest$ac_exeext
12783 if { (ac_try="$ac_link"
12784 case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789   (eval "$ac_link") 2>conftest.er1
12790   ac_status=$?
12791   grep -v '^ *+' conftest.er1 >conftest.err
12792   rm -f conftest.er1
12793   cat conftest.err >&5
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } && {
12796          test -z "$ac_c_werror_flag" ||
12797          test ! -s conftest.err
12798        } && test -s conftest$ac_exeext &&
12799        $as_test_x conftest$ac_exeext; then
12800   lt_cv_cc_needs_belf=yes
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805         lt_cv_cc_needs_belf=no
12806 fi
12807
12808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12809       conftest$ac_exeext conftest.$ac_ext
12810      ac_ext=c
12811 ac_cpp='$CPP $CPPFLAGS'
12812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12815
12816 fi
12817 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12818 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12819   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12820     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12821     CFLAGS="$SAVE_CFLAGS"
12822   fi
12823   ;;
12824 sparc*-*solaris*)
12825   # Find out which ABI we are using.
12826   echo 'int i;' > conftest.$ac_ext
12827   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828   (eval $ac_compile) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; then
12832     case `/usr/bin/file conftest.o` in
12833     *64-bit*)
12834       case $lt_cv_prog_gnu_ld in
12835       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12836       *)
12837         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12838           LD="${LD-ld} -64"
12839         fi
12840         ;;
12841       esac
12842       ;;
12843     esac
12844   fi
12845   rm -rf conftest*
12846   ;;
12847
12848
12849 esac
12850
12851 need_locks="$enable_libtool_lock"
12852
12853
12854
12855 for ac_header in dlfcn.h
12856 do
12857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 fi
12864 ac_res=`eval echo '${'$as_ac_Header'}'`
12865                { echo "$as_me:$LINENO: result: $ac_res" >&5
12866 echo "${ECHO_T}$ac_res" >&6; }
12867 else
12868   # Is the header compilable?
12869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877 $ac_includes_default
12878 #include <$ac_header>
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (ac_try="$ac_compile"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_compile") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } && {
12894          test -z "$ac_c_werror_flag" ||
12895          test ! -s conftest.err
12896        } && test -s conftest.$ac_objext; then
12897   ac_header_compiler=yes
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902         ac_header_compiler=no
12903 fi
12904
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12907 echo "${ECHO_T}$ac_header_compiler" >&6; }
12908
12909 # Is the header present?
12910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918 #include <$ac_header>
12919 _ACEOF
12920 if { (ac_try="$ac_cpp conftest.$ac_ext"
12921 case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } >/dev/null && {
12933          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12934          test ! -s conftest.err
12935        }; then
12936   ac_header_preproc=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941   ac_header_preproc=no
12942 fi
12943
12944 rm -f conftest.err conftest.$ac_ext
12945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12946 echo "${ECHO_T}$ac_header_preproc" >&6; }
12947
12948 # So?  What about this header?
12949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12950   yes:no: )
12951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12955     ac_header_preproc=yes
12956     ;;
12957   no:yes:* )
12958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12970
12971     ;;
12972 esac
12973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12976   echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978   eval "$as_ac_Header=\$ac_header_preproc"
12979 fi
12980 ac_res=`eval echo '${'$as_ac_Header'}'`
12981                { echo "$as_me:$LINENO: result: $ac_res" >&5
12982 echo "${ECHO_T}$ac_res" >&6; }
12983
12984 fi
12985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12986   cat >>confdefs.h <<_ACEOF
12987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12988 _ACEOF
12989
12990 fi
12991
12992 done
12993
12994
12995
12996 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12997     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12998     (test "X$CXX" != "Xg++"))) ; then
12999   ac_ext=cpp
13000 ac_cpp='$CXXCPP $CPPFLAGS'
13001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13004 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13005 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13006 if test -z "$CXXCPP"; then
13007   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13008   echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010       # Double quotes because CXXCPP needs to be expanded
13011     for CXXCPP in "$CXX -E" "/lib/cpp"
13012     do
13013       ac_preproc_ok=false
13014 for ac_cxx_preproc_warn_flag in '' yes
13015 do
13016   # Use a header file that comes with gcc, so configuring glibc
13017   # with a fresh cross-compiler works.
13018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13019   # <limits.h> exists even on freestanding compilers.
13020   # On the NeXT, cc -E runs the code through the compiler's parser,
13021   # not just through cpp. "Syntax error" is here to catch this case.
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 #ifdef __STDC__
13029 # include <limits.h>
13030 #else
13031 # include <assert.h>
13032 #endif
13033                      Syntax error
13034 _ACEOF
13035 if { (ac_try="$ac_cpp conftest.$ac_ext"
13036 case "(($ac_try" in
13037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038   *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13042   ac_status=$?
13043   grep -v '^ *+' conftest.er1 >conftest.err
13044   rm -f conftest.er1
13045   cat conftest.err >&5
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); } >/dev/null && {
13048          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13049          test ! -s conftest.err
13050        }; then
13051   :
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056   # Broken: fails on valid input.
13057 continue
13058 fi
13059
13060 rm -f conftest.err conftest.$ac_ext
13061
13062   # OK, works on sane cases.  Now check whether nonexistent headers
13063   # can be detected and how.
13064   cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 #include <ac_nonexistent.h>
13071 _ACEOF
13072 if { (ac_try="$ac_cpp conftest.$ac_ext"
13073 case "(($ac_try" in
13074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075   *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13079   ac_status=$?
13080   grep -v '^ *+' conftest.er1 >conftest.err
13081   rm -f conftest.er1
13082   cat conftest.err >&5
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } >/dev/null && {
13085          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13086          test ! -s conftest.err
13087        }; then
13088   # Broken: success on invalid input.
13089 continue
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094   # Passes both tests.
13095 ac_preproc_ok=:
13096 break
13097 fi
13098
13099 rm -f conftest.err conftest.$ac_ext
13100
13101 done
13102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13103 rm -f conftest.err conftest.$ac_ext
13104 if $ac_preproc_ok; then
13105   break
13106 fi
13107
13108     done
13109     ac_cv_prog_CXXCPP=$CXXCPP
13110
13111 fi
13112   CXXCPP=$ac_cv_prog_CXXCPP
13113 else
13114   ac_cv_prog_CXXCPP=$CXXCPP
13115 fi
13116 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13117 echo "${ECHO_T}$CXXCPP" >&6; }
13118 ac_preproc_ok=false
13119 for ac_cxx_preproc_warn_flag in '' yes
13120 do
13121   # Use a header file that comes with gcc, so configuring glibc
13122   # with a fresh cross-compiler works.
13123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13124   # <limits.h> exists even on freestanding compilers.
13125   # On the NeXT, cc -E runs the code through the compiler's parser,
13126   # not just through cpp. "Syntax error" is here to catch this case.
13127   cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 #ifdef __STDC__
13134 # include <limits.h>
13135 #else
13136 # include <assert.h>
13137 #endif
13138                      Syntax error
13139 _ACEOF
13140 if { (ac_try="$ac_cpp conftest.$ac_ext"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } >/dev/null && {
13153          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13154          test ! -s conftest.err
13155        }; then
13156   :
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161   # Broken: fails on valid input.
13162 continue
13163 fi
13164
13165 rm -f conftest.err conftest.$ac_ext
13166
13167   # OK, works on sane cases.  Now check whether nonexistent headers
13168   # can be detected and how.
13169   cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175 #include <ac_nonexistent.h>
13176 _ACEOF
13177 if { (ac_try="$ac_cpp conftest.$ac_ext"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } >/dev/null && {
13190          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13191          test ! -s conftest.err
13192        }; then
13193   # Broken: success on invalid input.
13194 continue
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199   # Passes both tests.
13200 ac_preproc_ok=:
13201 break
13202 fi
13203
13204 rm -f conftest.err conftest.$ac_ext
13205
13206 done
13207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13208 rm -f conftest.err conftest.$ac_ext
13209 if $ac_preproc_ok; then
13210   :
13211 else
13212   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13213 See \`config.log' for more details." >&5
13214 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13215 See \`config.log' for more details." >&2;}
13216    { (exit 1); exit 1; }; }
13217 fi
13218
13219 ac_ext=cpp
13220 ac_cpp='$CXXCPP $CPPFLAGS'
13221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13224
13225 fi
13226
13227 ac_ext=f
13228 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13229 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13231 if test -n "$ac_tool_prefix"; then
13232   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
13233   do
13234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13238 if test "${ac_cv_prog_F77+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   if test -n "$F77"; then
13242   ac_cv_prog_F77="$F77" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247   IFS=$as_save_IFS
13248   test -z "$as_dir" && as_dir=.
13249   for ac_exec_ext in '' $ac_executable_extensions; do
13250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13253     break 2
13254   fi
13255 done
13256 done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 F77=$ac_cv_prog_F77
13262 if test -n "$F77"; then
13263   { echo "$as_me:$LINENO: result: $F77" >&5
13264 echo "${ECHO_T}$F77" >&6; }
13265 else
13266   { echo "$as_me:$LINENO: result: no" >&5
13267 echo "${ECHO_T}no" >&6; }
13268 fi
13269
13270
13271     test -n "$F77" && break
13272   done
13273 fi
13274 if test -z "$F77"; then
13275   ac_ct_F77=$F77
13276   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
13277 do
13278   # Extract the first word of "$ac_prog", so it can be a program name with args.
13279 set dummy $ac_prog; ac_word=$2
13280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13282 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13283   echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285   if test -n "$ac_ct_F77"; then
13286   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13287 else
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13290 do
13291   IFS=$as_save_IFS
13292   test -z "$as_dir" && as_dir=.
13293   for ac_exec_ext in '' $ac_executable_extensions; do
13294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295     ac_cv_prog_ac_ct_F77="$ac_prog"
13296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13297     break 2
13298   fi
13299 done
13300 done
13301 IFS=$as_save_IFS
13302
13303 fi
13304 fi
13305 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13306 if test -n "$ac_ct_F77"; then
13307   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13308 echo "${ECHO_T}$ac_ct_F77" >&6; }
13309 else
13310   { echo "$as_me:$LINENO: result: no" >&5
13311 echo "${ECHO_T}no" >&6; }
13312 fi
13313
13314
13315   test -n "$ac_ct_F77" && break
13316 done
13317
13318   if test "x$ac_ct_F77" = x; then
13319     F77=""
13320   else
13321     case $cross_compiling:$ac_tool_warned in
13322 yes:)
13323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13324 whose name does not start with the host triplet.  If you think this
13325 configuration is useful to you, please write to autoconf@gnu.org." >&5
13326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13327 whose name does not start with the host triplet.  If you think this
13328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13329 ac_tool_warned=yes ;;
13330 esac
13331     F77=$ac_ct_F77
13332   fi
13333 fi
13334
13335
13336 # Provide some information about the compiler.
13337 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13338 ac_compiler=`set X $ac_compile; echo $2`
13339 { (ac_try="$ac_compiler --version >&5"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_compiler --version >&5") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }
13349 { (ac_try="$ac_compiler -v >&5"
13350 case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_compiler -v >&5") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }
13359 { (ac_try="$ac_compiler -V >&5"
13360 case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_compiler -V >&5") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }
13369 rm -f a.out
13370
13371 # If we don't use `.F' as extension, the preprocessor is not run on the
13372 # input file.  (Note that this only needs to work for GNU compilers.)
13373 ac_save_ext=$ac_ext
13374 ac_ext=F
13375 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13376 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13377 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380   cat >conftest.$ac_ext <<_ACEOF
13381       program main
13382 #ifndef __GNUC__
13383        choke me
13384 #endif
13385
13386       end
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (ac_try="$ac_compile"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_compile") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_f77_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest.$ac_objext; then
13405   ac_compiler_gnu=yes
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410         ac_compiler_gnu=no
13411 fi
13412
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13415
13416 fi
13417 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13418 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13419 ac_ext=$ac_save_ext
13420 ac_test_FFLAGS=${FFLAGS+set}
13421 ac_save_FFLAGS=$FFLAGS
13422 FFLAGS=
13423 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13424 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13425 if test "${ac_cv_prog_f77_g+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   FFLAGS=-g
13429 cat >conftest.$ac_ext <<_ACEOF
13430       program main
13431
13432       end
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_compile") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } && {
13448          test -z "$ac_f77_werror_flag" ||
13449          test ! -s conftest.err
13450        } && test -s conftest.$ac_objext; then
13451   ac_cv_prog_f77_g=yes
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456         ac_cv_prog_f77_g=no
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460
13461 fi
13462 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13463 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13464 if test "$ac_test_FFLAGS" = set; then
13465   FFLAGS=$ac_save_FFLAGS
13466 elif test $ac_cv_prog_f77_g = yes; then
13467   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13468     FFLAGS="-g -O2"
13469   else
13470     FFLAGS="-g"
13471   fi
13472 else
13473   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13474     FFLAGS="-O2"
13475   else
13476     FFLAGS=
13477   fi
13478 fi
13479
13480 G77=`test $ac_compiler_gnu = yes && echo yes`
13481 ac_ext=c
13482 ac_cpp='$CPP $CPPFLAGS'
13483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13486
13487
13488
13489 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13490 # find the maximum length of command line arguments
13491 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13492 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13493 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496     i=0
13497   teststring="ABCD"
13498
13499   case $build_os in
13500   msdosdjgpp*)
13501     # On DJGPP, this test can blow up pretty badly due to problems in libc
13502     # (any single argument exceeding 2000 bytes causes a buffer overrun
13503     # during glob expansion).  Even if it were fixed, the result of this
13504     # check would be larger than it should be.
13505     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13506     ;;
13507
13508   gnu*)
13509     # Under GNU Hurd, this test is not required because there is
13510     # no limit to the length of command line arguments.
13511     # Libtool will interpret -1 as no limit whatsoever
13512     lt_cv_sys_max_cmd_len=-1;
13513     ;;
13514
13515   cygwin* | mingw*)
13516     # On Win9x/ME, this test blows up -- it succeeds, but takes
13517     # about 5 minutes as the teststring grows exponentially.
13518     # Worse, since 9x/ME are not pre-emptively multitasking,
13519     # you end up with a "frozen" computer, even though with patience
13520     # the test eventually succeeds (with a max line length of 256k).
13521     # Instead, let's just punt: use the minimum linelength reported by
13522     # all of the supported platforms: 8192 (on NT/2K/XP).
13523     lt_cv_sys_max_cmd_len=8192;
13524     ;;
13525
13526   amigaos*)
13527     # On AmigaOS with pdksh, this test takes hours, literally.
13528     # So we just punt and use a minimum line length of 8192.
13529     lt_cv_sys_max_cmd_len=8192;
13530     ;;
13531
13532   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13533     # This has been around since 386BSD, at least.  Likely further.
13534     if test -x /sbin/sysctl; then
13535       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13536     elif test -x /usr/sbin/sysctl; then
13537       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13538     else
13539       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13540     fi
13541     # And add a safety zone
13542     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13544     ;;
13545
13546   interix*)
13547     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13548     lt_cv_sys_max_cmd_len=196608
13549     ;;
13550
13551   osf*)
13552     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13553     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13554     # nice to cause kernel panics so lets avoid the loop below.
13555     # First set a reasonable default.
13556     lt_cv_sys_max_cmd_len=16384
13557     #
13558     if test -x /sbin/sysconfig; then
13559       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13560         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13561       esac
13562     fi
13563     ;;
13564   sco3.2v5*)
13565     lt_cv_sys_max_cmd_len=102400
13566     ;;
13567   sysv5* | sco5v6* | sysv4.2uw2*)
13568     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13569     if test -n "$kargmax"; then
13570       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13571     else
13572       lt_cv_sys_max_cmd_len=32768
13573     fi
13574     ;;
13575   *)
13576     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13577     if test -n "$lt_cv_sys_max_cmd_len"; then
13578       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13579       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13580     else
13581       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13582       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13583                = "XX$teststring") >/dev/null 2>&1 &&
13584               new_result=`expr "X$teststring" : ".*" 2>&1` &&
13585               lt_cv_sys_max_cmd_len=$new_result &&
13586               test $i != 17 # 1/2 MB should be enough
13587       do
13588         i=`expr $i + 1`
13589         teststring=$teststring$teststring
13590       done
13591       teststring=
13592       # Add a significant safety factor because C++ compilers can tack on massive
13593       # amounts of additional arguments before passing them to the linker.
13594       # It appears as though 1/2 is a usable value.
13595       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13596     fi
13597     ;;
13598   esac
13599
13600 fi
13601
13602 if test -n $lt_cv_sys_max_cmd_len ; then
13603   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13605 else
13606   { echo "$as_me:$LINENO: result: none" >&5
13607 echo "${ECHO_T}none" >&6; }
13608 fi
13609
13610
13611
13612
13613
13614 # Check for command to grab the raw symbol name followed by C symbol from nm.
13615 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13616 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620
13621 # These are sane defaults that work on at least a few old systems.
13622 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13623
13624 # Character class describing NM global symbol codes.
13625 symcode='[BCDEGRST]'
13626
13627 # Regexp to match symbols that can be accessed directly from C.
13628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13629
13630 # Transform an extracted symbol line into a proper C declaration
13631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13632
13633 # Transform an extracted symbol line into symbol name and symbol address
13634 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'"
13635
13636 # Define system-specific variables.
13637 case $host_os in
13638 aix*)
13639   symcode='[BCDT]'
13640   ;;
13641 cygwin* | mingw* | pw32*)
13642   symcode='[ABCDGISTW]'
13643   ;;
13644 hpux*) # Its linker distinguishes data from code symbols
13645   if test "$host_cpu" = ia64; then
13646     symcode='[ABCDEGRST]'
13647   fi
13648   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13649   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'"
13650   ;;
13651 linux* | k*bsd*-gnu)
13652   if test "$host_cpu" = ia64; then
13653     symcode='[ABCDGIRSTW]'
13654     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13655     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'"
13656   fi
13657   ;;
13658 irix* | nonstopux*)
13659   symcode='[BCDEGRST]'
13660   ;;
13661 osf*)
13662   symcode='[BCDEGQRST]'
13663   ;;
13664 solaris*)
13665   symcode='[BDRT]'
13666   ;;
13667 sco3.2v5*)
13668   symcode='[DT]'
13669   ;;
13670 sysv4.2uw2*)
13671   symcode='[DT]'
13672   ;;
13673 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13674   symcode='[ABDT]'
13675   ;;
13676 sysv4)
13677   symcode='[DFNSTU]'
13678   ;;
13679 esac
13680
13681 # Handle CRLF in mingw tool chain
13682 opt_cr=
13683 case $build_os in
13684 mingw*)
13685   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13686   ;;
13687 esac
13688
13689 # If we're using GNU nm, then use its standard symbol codes.
13690 case `$NM -V 2>&1` in
13691 *GNU* | *'with BFD'*)
13692   symcode='[ABCDGIRSTW]' ;;
13693 esac
13694
13695 # Try without a prefix undercore, then with it.
13696 for ac_symprfx in "" "_"; do
13697
13698   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13699   symxfrm="\\1 $ac_symprfx\\2 \\2"
13700
13701   # Write the raw and C identifiers.
13702   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13703
13704   # Check to see that the pipe works correctly.
13705   pipe_works=no
13706
13707   rm -f conftest*
13708   cat > conftest.$ac_ext <<EOF
13709 #ifdef __cplusplus
13710 extern "C" {
13711 #endif
13712 char nm_test_var;
13713 void nm_test_func(){}
13714 #ifdef __cplusplus
13715 }
13716 #endif
13717 int main(){nm_test_var='a';nm_test_func();return(0);}
13718 EOF
13719
13720   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; then
13725     # Now try to grab the symbols.
13726     nlist=conftest.nm
13727     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13728   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } && test -s "$nlist"; then
13732       # Try sorting and uniquifying the output.
13733       if sort "$nlist" | uniq > "$nlist"T; then
13734         mv -f "$nlist"T "$nlist"
13735       else
13736         rm -f "$nlist"T
13737       fi
13738
13739       # Make sure that we snagged all the symbols we need.
13740       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13741         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13742           cat <<EOF > conftest.$ac_ext
13743 #ifdef __cplusplus
13744 extern "C" {
13745 #endif
13746
13747 EOF
13748           # Now generate the symbol file.
13749           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13750
13751           cat <<EOF >> conftest.$ac_ext
13752 #if defined (__STDC__) && __STDC__
13753 # define lt_ptr_t void *
13754 #else
13755 # define lt_ptr_t char *
13756 # define const
13757 #endif
13758
13759 /* The mapping between symbol names and symbols. */
13760 const struct {
13761   const char *name;
13762   lt_ptr_t address;
13763 }
13764 lt_preloaded_symbols[] =
13765 {
13766 EOF
13767           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13768           cat <<\EOF >> conftest.$ac_ext
13769   {0, (lt_ptr_t) 0}
13770 };
13771
13772 #ifdef __cplusplus
13773 }
13774 #endif
13775 EOF
13776           # Now try linking the two files.
13777           mv conftest.$ac_objext conftstm.$ac_objext
13778           lt_save_LIBS="$LIBS"
13779           lt_save_CFLAGS="$CFLAGS"
13780           LIBS="conftstm.$ac_objext"
13781           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13782           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783   (eval $ac_link) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13787             pipe_works=yes
13788           fi
13789           LIBS="$lt_save_LIBS"
13790           CFLAGS="$lt_save_CFLAGS"
13791         else
13792           echo "cannot find nm_test_func in $nlist" >&5
13793         fi
13794       else
13795         echo "cannot find nm_test_var in $nlist" >&5
13796       fi
13797     else
13798       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13799     fi
13800   else
13801     echo "$progname: failed program was:" >&5
13802     cat conftest.$ac_ext >&5
13803   fi
13804   rm -rf conftest* conftst*
13805
13806   # Do not use the global_symbol_pipe unless it works.
13807   if test "$pipe_works" = yes; then
13808     break
13809   else
13810     lt_cv_sys_global_symbol_pipe=
13811   fi
13812 done
13813
13814 fi
13815
13816 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13817   lt_cv_sys_global_symbol_to_cdecl=
13818 fi
13819 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13820   { echo "$as_me:$LINENO: result: failed" >&5
13821 echo "${ECHO_T}failed" >&6; }
13822 else
13823   { echo "$as_me:$LINENO: result: ok" >&5
13824 echo "${ECHO_T}ok" >&6; }
13825 fi
13826
13827 { echo "$as_me:$LINENO: checking for objdir" >&5
13828 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13829 if test "${lt_cv_objdir+set}" = set; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   rm -f .libs 2>/dev/null
13833 mkdir .libs 2>/dev/null
13834 if test -d .libs; then
13835   lt_cv_objdir=.libs
13836 else
13837   # MS-DOS does not allow filenames that begin with a dot.
13838   lt_cv_objdir=_libs
13839 fi
13840 rmdir .libs 2>/dev/null
13841 fi
13842 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13843 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13844 objdir=$lt_cv_objdir
13845
13846
13847
13848
13849
13850 case $host_os in
13851 aix3*)
13852   # AIX sometimes has problems with the GCC collect2 program.  For some
13853   # reason, if we set the COLLECT_NAMES environment variable, the problems
13854   # vanish in a puff of smoke.
13855   if test "X${COLLECT_NAMES+set}" != Xset; then
13856     COLLECT_NAMES=
13857     export COLLECT_NAMES
13858   fi
13859   ;;
13860 esac
13861
13862 # Sed substitution that helps us do robust quoting.  It backslashifies
13863 # metacharacters that are still active within double-quoted strings.
13864 Xsed='sed -e 1s/^X//'
13865 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13866
13867 # Same as above, but do not quote variable references.
13868 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13869
13870 # Sed substitution to delay expansion of an escaped shell variable in a
13871 # double_quote_subst'ed string.
13872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13873
13874 # Sed substitution to avoid accidental globbing in evaled expressions
13875 no_glob_subst='s/\*/\\\*/g'
13876
13877 # Constants:
13878 rm="rm -f"
13879
13880 # Global variables:
13881 default_ofile=libtool
13882 can_build_shared=yes
13883
13884 # All known linkers require a `.a' archive for static linking (except MSVC,
13885 # which needs '.lib').
13886 libext=a
13887 ltmain="$ac_aux_dir/ltmain.sh"
13888 ofile="$default_ofile"
13889 with_gnu_ld="$lt_cv_prog_gnu_ld"
13890
13891 if test -n "$ac_tool_prefix"; then
13892   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13893 set dummy ${ac_tool_prefix}ar; ac_word=$2
13894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13896 if test "${ac_cv_prog_AR+set}" = set; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   if test -n "$AR"; then
13900   ac_cv_prog_AR="$AR" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905   IFS=$as_save_IFS
13906   test -z "$as_dir" && as_dir=.
13907   for ac_exec_ext in '' $ac_executable_extensions; do
13908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13909     ac_cv_prog_AR="${ac_tool_prefix}ar"
13910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13911     break 2
13912   fi
13913 done
13914 done
13915 IFS=$as_save_IFS
13916
13917 fi
13918 fi
13919 AR=$ac_cv_prog_AR
13920 if test -n "$AR"; then
13921   { echo "$as_me:$LINENO: result: $AR" >&5
13922 echo "${ECHO_T}$AR" >&6; }
13923 else
13924   { echo "$as_me:$LINENO: result: no" >&5
13925 echo "${ECHO_T}no" >&6; }
13926 fi
13927
13928
13929 fi
13930 if test -z "$ac_cv_prog_AR"; then
13931   ac_ct_AR=$AR
13932   # Extract the first word of "ar", so it can be a program name with args.
13933 set dummy ar; ac_word=$2
13934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13936 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13937   echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939   if test -n "$ac_ct_AR"; then
13940   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13941 else
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13944 do
13945   IFS=$as_save_IFS
13946   test -z "$as_dir" && as_dir=.
13947   for ac_exec_ext in '' $ac_executable_extensions; do
13948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13949     ac_cv_prog_ac_ct_AR="ar"
13950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13951     break 2
13952   fi
13953 done
13954 done
13955 IFS=$as_save_IFS
13956
13957 fi
13958 fi
13959 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13960 if test -n "$ac_ct_AR"; then
13961   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13962 echo "${ECHO_T}$ac_ct_AR" >&6; }
13963 else
13964   { echo "$as_me:$LINENO: result: no" >&5
13965 echo "${ECHO_T}no" >&6; }
13966 fi
13967
13968   if test "x$ac_ct_AR" = x; then
13969     AR="false"
13970   else
13971     case $cross_compiling:$ac_tool_warned in
13972 yes:)
13973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13974 whose name does not start with the host triplet.  If you think this
13975 configuration is useful to you, please write to autoconf@gnu.org." >&5
13976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13977 whose name does not start with the host triplet.  If you think this
13978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13979 ac_tool_warned=yes ;;
13980 esac
13981     AR=$ac_ct_AR
13982   fi
13983 else
13984   AR="$ac_cv_prog_AR"
13985 fi
13986
13987 if test -n "$ac_tool_prefix"; then
13988   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13992 if test "${ac_cv_prog_RANLIB+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   if test -n "$RANLIB"; then
13996   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001   IFS=$as_save_IFS
14002   test -z "$as_dir" && as_dir=.
14003   for ac_exec_ext in '' $ac_executable_extensions; do
14004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14005     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14007     break 2
14008   fi
14009 done
14010 done
14011 IFS=$as_save_IFS
14012
14013 fi
14014 fi
14015 RANLIB=$ac_cv_prog_RANLIB
14016 if test -n "$RANLIB"; then
14017   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14018 echo "${ECHO_T}$RANLIB" >&6; }
14019 else
14020   { echo "$as_me:$LINENO: result: no" >&5
14021 echo "${ECHO_T}no" >&6; }
14022 fi
14023
14024
14025 fi
14026 if test -z "$ac_cv_prog_RANLIB"; then
14027   ac_ct_RANLIB=$RANLIB
14028   # Extract the first word of "ranlib", so it can be a program name with args.
14029 set dummy ranlib; ac_word=$2
14030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   if test -n "$ac_ct_RANLIB"; then
14036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14040 do
14041   IFS=$as_save_IFS
14042   test -z "$as_dir" && as_dir=.
14043   for ac_exec_ext in '' $ac_executable_extensions; do
14044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14045     ac_cv_prog_ac_ct_RANLIB="ranlib"
14046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14047     break 2
14048   fi
14049 done
14050 done
14051 IFS=$as_save_IFS
14052
14053 fi
14054 fi
14055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14056 if test -n "$ac_ct_RANLIB"; then
14057   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14059 else
14060   { echo "$as_me:$LINENO: result: no" >&5
14061 echo "${ECHO_T}no" >&6; }
14062 fi
14063
14064   if test "x$ac_ct_RANLIB" = x; then
14065     RANLIB=":"
14066   else
14067     case $cross_compiling:$ac_tool_warned in
14068 yes:)
14069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14070 whose name does not start with the host triplet.  If you think this
14071 configuration is useful to you, please write to autoconf@gnu.org." >&5
14072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14073 whose name does not start with the host triplet.  If you think this
14074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14075 ac_tool_warned=yes ;;
14076 esac
14077     RANLIB=$ac_ct_RANLIB
14078   fi
14079 else
14080   RANLIB="$ac_cv_prog_RANLIB"
14081 fi
14082
14083 if test -n "$ac_tool_prefix"; then
14084   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14085 set dummy ${ac_tool_prefix}strip; ac_word=$2
14086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14088 if test "${ac_cv_prog_STRIP+set}" = set; then
14089   echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091   if test -n "$STRIP"; then
14092   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097   IFS=$as_save_IFS
14098   test -z "$as_dir" && as_dir=.
14099   for ac_exec_ext in '' $ac_executable_extensions; do
14100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14101     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103     break 2
14104   fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 STRIP=$ac_cv_prog_STRIP
14112 if test -n "$STRIP"; then
14113   { echo "$as_me:$LINENO: result: $STRIP" >&5
14114 echo "${ECHO_T}$STRIP" >&6; }
14115 else
14116   { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14118 fi
14119
14120
14121 fi
14122 if test -z "$ac_cv_prog_STRIP"; then
14123   ac_ct_STRIP=$STRIP
14124   # Extract the first word of "strip", so it can be a program name with args.
14125 set dummy strip; ac_word=$2
14126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   if test -n "$ac_ct_STRIP"; then
14132   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14133 else
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14136 do
14137   IFS=$as_save_IFS
14138   test -z "$as_dir" && as_dir=.
14139   for ac_exec_ext in '' $ac_executable_extensions; do
14140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14141     ac_cv_prog_ac_ct_STRIP="strip"
14142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14143     break 2
14144   fi
14145 done
14146 done
14147 IFS=$as_save_IFS
14148
14149 fi
14150 fi
14151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14152 if test -n "$ac_ct_STRIP"; then
14153   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14154 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14155 else
14156   { echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6; }
14158 fi
14159
14160   if test "x$ac_ct_STRIP" = x; then
14161     STRIP=":"
14162   else
14163     case $cross_compiling:$ac_tool_warned in
14164 yes:)
14165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14166 whose name does not start with the host triplet.  If you think this
14167 configuration is useful to you, please write to autoconf@gnu.org." >&5
14168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14169 whose name does not start with the host triplet.  If you think this
14170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14171 ac_tool_warned=yes ;;
14172 esac
14173     STRIP=$ac_ct_STRIP
14174   fi
14175 else
14176   STRIP="$ac_cv_prog_STRIP"
14177 fi
14178
14179
14180 old_CC="$CC"
14181 old_CFLAGS="$CFLAGS"
14182
14183 # Set sane defaults for various variables
14184 test -z "$AR" && AR=ar
14185 test -z "$AR_FLAGS" && AR_FLAGS=cru
14186 test -z "$AS" && AS=as
14187 test -z "$CC" && CC=cc
14188 test -z "$LTCC" && LTCC=$CC
14189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14190 test -z "$DLLTOOL" && DLLTOOL=dlltool
14191 test -z "$LD" && LD=ld
14192 test -z "$LN_S" && LN_S="ln -s"
14193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14194 test -z "$NM" && NM=nm
14195 test -z "$SED" && SED=sed
14196 test -z "$OBJDUMP" && OBJDUMP=objdump
14197 test -z "$RANLIB" && RANLIB=:
14198 test -z "$STRIP" && STRIP=:
14199 test -z "$ac_objext" && ac_objext=o
14200
14201 # Determine commands to create old-style static archives.
14202 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14203 old_postinstall_cmds='chmod 644 $oldlib'
14204 old_postuninstall_cmds=
14205
14206 if test -n "$RANLIB"; then
14207   case $host_os in
14208   openbsd*)
14209     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14210     ;;
14211   *)
14212     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14213     ;;
14214   esac
14215   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14216 fi
14217
14218 for cc_temp in $compiler""; do
14219   case $cc_temp in
14220     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14221     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14222     \-*) ;;
14223     *) break;;
14224   esac
14225 done
14226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14227
14228
14229 # Only perform the check for file, if the check method requires it
14230 case $deplibs_check_method in
14231 file_magic*)
14232   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14233     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14234 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   case $MAGIC_CMD in
14239 [\\/*] |  ?:[\\/]*)
14240   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14241   ;;
14242 *)
14243   lt_save_MAGIC_CMD="$MAGIC_CMD"
14244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14245   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14246   for ac_dir in $ac_dummy; do
14247     IFS="$lt_save_ifs"
14248     test -z "$ac_dir" && ac_dir=.
14249     if test -f $ac_dir/${ac_tool_prefix}file; then
14250       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14251       if test -n "$file_magic_test_file"; then
14252         case $deplibs_check_method in
14253         "file_magic "*)
14254           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14257             $EGREP "$file_magic_regex" > /dev/null; then
14258             :
14259           else
14260             cat <<EOF 1>&2
14261
14262 *** Warning: the command libtool uses to detect shared libraries,
14263 *** $file_magic_cmd, produces output that libtool cannot recognize.
14264 *** The result is that libtool may fail to recognize shared libraries
14265 *** as such.  This will affect the creation of libtool libraries that
14266 *** depend on shared libraries, but programs linked with such libtool
14267 *** libraries will work regardless of this problem.  Nevertheless, you
14268 *** may want to report the problem to your system manager and/or to
14269 *** bug-libtool@gnu.org
14270
14271 EOF
14272           fi ;;
14273         esac
14274       fi
14275       break
14276     fi
14277   done
14278   IFS="$lt_save_ifs"
14279   MAGIC_CMD="$lt_save_MAGIC_CMD"
14280   ;;
14281 esac
14282 fi
14283
14284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14285 if test -n "$MAGIC_CMD"; then
14286   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14287 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14288 else
14289   { echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6; }
14291 fi
14292
14293 if test -z "$lt_cv_path_MAGIC_CMD"; then
14294   if test -n "$ac_tool_prefix"; then
14295     { echo "$as_me:$LINENO: checking for file" >&5
14296 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14297 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   case $MAGIC_CMD in
14301 [\\/*] |  ?:[\\/]*)
14302   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14303   ;;
14304 *)
14305   lt_save_MAGIC_CMD="$MAGIC_CMD"
14306   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14307   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14308   for ac_dir in $ac_dummy; do
14309     IFS="$lt_save_ifs"
14310     test -z "$ac_dir" && ac_dir=.
14311     if test -f $ac_dir/file; then
14312       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14313       if test -n "$file_magic_test_file"; then
14314         case $deplibs_check_method in
14315         "file_magic "*)
14316           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14317           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14318           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14319             $EGREP "$file_magic_regex" > /dev/null; then
14320             :
14321           else
14322             cat <<EOF 1>&2
14323
14324 *** Warning: the command libtool uses to detect shared libraries,
14325 *** $file_magic_cmd, produces output that libtool cannot recognize.
14326 *** The result is that libtool may fail to recognize shared libraries
14327 *** as such.  This will affect the creation of libtool libraries that
14328 *** depend on shared libraries, but programs linked with such libtool
14329 *** libraries will work regardless of this problem.  Nevertheless, you
14330 *** may want to report the problem to your system manager and/or to
14331 *** bug-libtool@gnu.org
14332
14333 EOF
14334           fi ;;
14335         esac
14336       fi
14337       break
14338     fi
14339   done
14340   IFS="$lt_save_ifs"
14341   MAGIC_CMD="$lt_save_MAGIC_CMD"
14342   ;;
14343 esac
14344 fi
14345
14346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14347 if test -n "$MAGIC_CMD"; then
14348   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14349 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14350 else
14351   { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14353 fi
14354
14355   else
14356     MAGIC_CMD=:
14357   fi
14358 fi
14359
14360   fi
14361   ;;
14362 esac
14363
14364
14365   case $host_os in
14366     rhapsody* | darwin*)
14367     if test -n "$ac_tool_prefix"; then
14368   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14372 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   if test -n "$DSYMUTIL"; then
14376   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14377 else
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14380 do
14381   IFS=$as_save_IFS
14382   test -z "$as_dir" && as_dir=.
14383   for ac_exec_ext in '' $ac_executable_extensions; do
14384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14385     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14387     break 2
14388   fi
14389 done
14390 done
14391 IFS=$as_save_IFS
14392
14393 fi
14394 fi
14395 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14396 if test -n "$DSYMUTIL"; then
14397   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
14398 echo "${ECHO_T}$DSYMUTIL" >&6; }
14399 else
14400   { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14402 fi
14403
14404
14405 fi
14406 if test -z "$ac_cv_prog_DSYMUTIL"; then
14407   ac_ct_DSYMUTIL=$DSYMUTIL
14408   # Extract the first word of "dsymutil", so it can be a program name with args.
14409 set dummy dsymutil; ac_word=$2
14410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14412 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415   if test -n "$ac_ct_DSYMUTIL"; then
14416   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14417 else
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14420 do
14421   IFS=$as_save_IFS
14422   test -z "$as_dir" && as_dir=.
14423   for ac_exec_ext in '' $ac_executable_extensions; do
14424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14425     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14427     break 2
14428   fi
14429 done
14430 done
14431 IFS=$as_save_IFS
14432
14433 fi
14434 fi
14435 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14436 if test -n "$ac_ct_DSYMUTIL"; then
14437   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
14438 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
14439 else
14440   { echo "$as_me:$LINENO: result: no" >&5
14441 echo "${ECHO_T}no" >&6; }
14442 fi
14443
14444   if test "x$ac_ct_DSYMUTIL" = x; then
14445     DSYMUTIL=":"
14446   else
14447     case $cross_compiling:$ac_tool_warned in
14448 yes:)
14449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14450 whose name does not start with the host triplet.  If you think this
14451 configuration is useful to you, please write to autoconf@gnu.org." >&5
14452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14453 whose name does not start with the host triplet.  If you think this
14454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14455 ac_tool_warned=yes ;;
14456 esac
14457     DSYMUTIL=$ac_ct_DSYMUTIL
14458   fi
14459 else
14460   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14461 fi
14462
14463     if test -n "$ac_tool_prefix"; then
14464   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14465 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14468 if test "${ac_cv_prog_NMEDIT+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   if test -n "$NMEDIT"; then
14472   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14476 do
14477   IFS=$as_save_IFS
14478   test -z "$as_dir" && as_dir=.
14479   for ac_exec_ext in '' $ac_executable_extensions; do
14480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483     break 2
14484   fi
14485 done
14486 done
14487 IFS=$as_save_IFS
14488
14489 fi
14490 fi
14491 NMEDIT=$ac_cv_prog_NMEDIT
14492 if test -n "$NMEDIT"; then
14493   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
14494 echo "${ECHO_T}$NMEDIT" >&6; }
14495 else
14496   { echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6; }
14498 fi
14499
14500
14501 fi
14502 if test -z "$ac_cv_prog_NMEDIT"; then
14503   ac_ct_NMEDIT=$NMEDIT
14504   # Extract the first word of "nmedit", so it can be a program name with args.
14505 set dummy nmedit; ac_word=$2
14506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14508 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   if test -n "$ac_ct_NMEDIT"; then
14512   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14513 else
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14516 do
14517   IFS=$as_save_IFS
14518   test -z "$as_dir" && as_dir=.
14519   for ac_exec_ext in '' $ac_executable_extensions; do
14520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14521     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523     break 2
14524   fi
14525 done
14526 done
14527 IFS=$as_save_IFS
14528
14529 fi
14530 fi
14531 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14532 if test -n "$ac_ct_NMEDIT"; then
14533   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
14534 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
14535 else
14536   { echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6; }
14538 fi
14539
14540   if test "x$ac_ct_NMEDIT" = x; then
14541     NMEDIT=":"
14542   else
14543     case $cross_compiling:$ac_tool_warned in
14544 yes:)
14545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14546 whose name does not start with the host triplet.  If you think this
14547 configuration is useful to you, please write to autoconf@gnu.org." >&5
14548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14549 whose name does not start with the host triplet.  If you think this
14550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14551 ac_tool_warned=yes ;;
14552 esac
14553     NMEDIT=$ac_ct_NMEDIT
14554   fi
14555 else
14556   NMEDIT="$ac_cv_prog_NMEDIT"
14557 fi
14558
14559
14560     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
14561 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
14562 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
14563   echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565   lt_cv_apple_cc_single_mod=no
14566       if test -z "${LT_MULTI_MODULE}"; then
14567    # By default we will add the -single_module flag. You can override
14568    # by either setting the environment variable LT_MULTI_MODULE
14569    # non-empty at configure time, or by adding -multi_module to the
14570    # link flags.
14571    echo "int foo(void){return 1;}" > conftest.c
14572    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14573      -dynamiclib ${wl}-single_module conftest.c
14574    if test -f libconftest.dylib; then
14575      lt_cv_apple_cc_single_mod=yes
14576      rm -rf libconftest.dylib*
14577    fi
14578    rm conftest.c
14579       fi
14580 fi
14581 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
14582 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
14583     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
14584 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
14585 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   lt_cv_ld_exported_symbols_list=no
14589       save_LDFLAGS=$LDFLAGS
14590       echo "_main" > conftest.sym
14591       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14592       cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598
14599 int
14600 main ()
14601 {
14602
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (ac_try="$ac_link"
14609 case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_link") 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } && {
14621          test -z "$ac_c_werror_flag" ||
14622          test ! -s conftest.err
14623        } && test -s conftest$ac_exeext &&
14624        $as_test_x conftest$ac_exeext; then
14625   lt_cv_ld_exported_symbols_list=yes
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630         lt_cv_ld_exported_symbols_list=no
14631 fi
14632
14633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14634       conftest$ac_exeext conftest.$ac_ext
14635    LDFLAGS="$save_LDFLAGS"
14636
14637 fi
14638 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
14639 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
14640     case $host_os in
14641     rhapsody* | darwin1.[0123])
14642       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14643     darwin1.*)
14644      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14645     darwin*)
14646       # if running on 10.5 or later, the deployment target defaults
14647       # to the OS version, if on x86, and 10.4, the deployment
14648       # target defaults to 10.4. Don't you love it?
14649       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14650    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14651      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14652    10.[012]*)
14653      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14654    10.*)
14655      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14656       esac
14657     ;;
14658   esac
14659     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14660       _lt_dar_single_mod='$single_module'
14661     fi
14662     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14663       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14664     else
14665       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
14666     fi
14667     if test "$DSYMUTIL" != ":"; then
14668       _lt_dsymutil="~$DSYMUTIL \$lib || :"
14669     else
14670       _lt_dsymutil=
14671     fi
14672     ;;
14673   esac
14674
14675
14676 enable_dlopen=yes
14677 enable_win32_dll=no
14678
14679 # Check whether --enable-libtool-lock was given.
14680 if test "${enable_libtool_lock+set}" = set; then
14681   enableval=$enable_libtool_lock;
14682 fi
14683
14684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14685
14686
14687 # Check whether --with-pic was given.
14688 if test "${with_pic+set}" = set; then
14689   withval=$with_pic; pic_mode="$withval"
14690 else
14691   pic_mode=default
14692 fi
14693
14694 test -z "$pic_mode" && pic_mode=default
14695
14696 # Use C for the default configuration in the libtool script
14697 tagname=
14698 lt_save_CC="$CC"
14699 ac_ext=c
14700 ac_cpp='$CPP $CPPFLAGS'
14701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14704
14705
14706 # Source file extension for C test sources.
14707 ac_ext=c
14708
14709 # Object file extension for compiled C test sources.
14710 objext=o
14711 objext=$objext
14712
14713 # Code to be used in simple compile tests
14714 lt_simple_compile_test_code="int some_variable = 0;"
14715
14716 # Code to be used in simple link tests
14717 lt_simple_link_test_code='int main(){return(0);}'
14718
14719
14720 # If no C compiler was specified, use CC.
14721 LTCC=${LTCC-"$CC"}
14722
14723 # If no C compiler flags were specified, use CFLAGS.
14724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14725
14726 # Allow CC to be a program name with arguments.
14727 compiler=$CC
14728
14729
14730 # save warnings/boilerplate of simple test code
14731 ac_outfile=conftest.$ac_objext
14732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14734 _lt_compiler_boilerplate=`cat conftest.err`
14735 $rm conftest*
14736
14737 ac_outfile=conftest.$ac_objext
14738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740 _lt_linker_boilerplate=`cat conftest.err`
14741 $rm -r conftest*
14742
14743
14744
14745 lt_prog_compiler_no_builtin_flag=
14746
14747 if test "$GCC" = yes; then
14748   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14749
14750
14751 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14752 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14753 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   lt_cv_prog_compiler_rtti_exceptions=no
14757   ac_outfile=conftest.$ac_objext
14758    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759    lt_compiler_flag="-fno-rtti -fno-exceptions"
14760    # Insert the option either (1) after the last *FLAGS variable, or
14761    # (2) before a word containing "conftest.", or (3) at the end.
14762    # Note that $ac_compile itself does not contain backslashes and begins
14763    # with a dollar sign (not a hyphen), so the echo should work correctly.
14764    # The option is referenced via a variable to avoid confusing sed.
14765    lt_compile=`echo "$ac_compile" | $SED \
14766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768    -e 's:$: $lt_compiler_flag:'`
14769    (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770    (eval "$lt_compile" 2>conftest.err)
14771    ac_status=$?
14772    cat conftest.err >&5
14773    echo "$as_me:14773: \$? = $ac_status" >&5
14774    if (exit $ac_status) && test -s "$ac_outfile"; then
14775      # The compiler can only warn and ignore the option if not recognized
14776      # So say no if there are warnings other than the usual output.
14777      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14778      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14780        lt_cv_prog_compiler_rtti_exceptions=yes
14781      fi
14782    fi
14783    $rm conftest*
14784
14785 fi
14786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14787 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14788
14789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14790     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14791 else
14792     :
14793 fi
14794
14795 fi
14796
14797 lt_prog_compiler_wl=
14798 lt_prog_compiler_pic=
14799 lt_prog_compiler_static=
14800
14801 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14803
14804   if test "$GCC" = yes; then
14805     lt_prog_compiler_wl='-Wl,'
14806     lt_prog_compiler_static='-static'
14807
14808     case $host_os in
14809       aix*)
14810       # All AIX code is PIC.
14811       if test "$host_cpu" = ia64; then
14812         # AIX 5 now supports IA64 processor
14813         lt_prog_compiler_static='-Bstatic'
14814       fi
14815       ;;
14816
14817     amigaos*)
14818       # FIXME: we need at least 68020 code to build shared libraries, but
14819       # adding the `-m68020' flag to GCC prevents building anything better,
14820       # like `-m68040'.
14821       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14822       ;;
14823
14824     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14825       # PIC is the default for these OSes.
14826       ;;
14827
14828     mingw* | cygwin* | pw32* | os2*)
14829       # This hack is so that the source file can tell whether it is being
14830       # built for inclusion in a dll (and should export symbols for example).
14831       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14832       # (--disable-auto-import) libraries
14833       lt_prog_compiler_pic='-DDLL_EXPORT'
14834       ;;
14835
14836     darwin* | rhapsody*)
14837       # PIC is the default on this platform
14838       # Common symbols not allowed in MH_DYLIB files
14839       lt_prog_compiler_pic='-fno-common'
14840       ;;
14841
14842     interix[3-9]*)
14843       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14844       # Instead, we relocate shared libraries at runtime.
14845       ;;
14846
14847     msdosdjgpp*)
14848       # Just because we use GCC doesn't mean we suddenly get shared libraries
14849       # on systems that don't support them.
14850       lt_prog_compiler_can_build_shared=no
14851       enable_shared=no
14852       ;;
14853
14854     sysv4*MP*)
14855       if test -d /usr/nec; then
14856         lt_prog_compiler_pic=-Kconform_pic
14857       fi
14858       ;;
14859
14860     hpux*)
14861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14862       # not for PA HP-UX.
14863       case $host_cpu in
14864       hppa*64*|ia64*)
14865         # +Z the default
14866         ;;
14867       *)
14868         lt_prog_compiler_pic='-fPIC'
14869         ;;
14870       esac
14871       ;;
14872
14873     *)
14874       lt_prog_compiler_pic='-fPIC'
14875       ;;
14876     esac
14877   else
14878     # PORTME Check for flag to pass linker flags through the system compiler.
14879     case $host_os in
14880     aix*)
14881       lt_prog_compiler_wl='-Wl,'
14882       if test "$host_cpu" = ia64; then
14883         # AIX 5 now supports IA64 processor
14884         lt_prog_compiler_static='-Bstatic'
14885       else
14886         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14887       fi
14888       ;;
14889       darwin*)
14890         # PIC is the default on this platform
14891         # Common symbols not allowed in MH_DYLIB files
14892        case $cc_basename in
14893          xlc*)
14894          lt_prog_compiler_pic='-qnocommon'
14895          lt_prog_compiler_wl='-Wl,'
14896          ;;
14897        esac
14898        ;;
14899
14900     mingw* | cygwin* | pw32* | os2*)
14901       # This hack is so that the source file can tell whether it is being
14902       # built for inclusion in a dll (and should export symbols for example).
14903       lt_prog_compiler_pic='-DDLL_EXPORT'
14904       ;;
14905
14906     hpux9* | hpux10* | hpux11*)
14907       lt_prog_compiler_wl='-Wl,'
14908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14909       # not for PA HP-UX.
14910       case $host_cpu in
14911       hppa*64*|ia64*)
14912         # +Z the default
14913         ;;
14914       *)
14915         lt_prog_compiler_pic='+Z'
14916         ;;
14917       esac
14918       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14919       lt_prog_compiler_static='${wl}-a ${wl}archive'
14920       ;;
14921
14922     irix5* | irix6* | nonstopux*)
14923       lt_prog_compiler_wl='-Wl,'
14924       # PIC (with -KPIC) is the default.
14925       lt_prog_compiler_static='-non_shared'
14926       ;;
14927
14928     newsos6)
14929       lt_prog_compiler_pic='-KPIC'
14930       lt_prog_compiler_static='-Bstatic'
14931       ;;
14932
14933     linux* | k*bsd*-gnu)
14934       case $cc_basename in
14935       icc* | ecc*)
14936         lt_prog_compiler_wl='-Wl,'
14937         lt_prog_compiler_pic='-KPIC'
14938         lt_prog_compiler_static='-static'
14939         ;;
14940       pgcc* | pgf77* | pgf90* | pgf95*)
14941         # Portland Group compilers (*not* the Pentium gcc compiler,
14942         # which looks to be a dead project)
14943         lt_prog_compiler_wl='-Wl,'
14944         lt_prog_compiler_pic='-fpic'
14945         lt_prog_compiler_static='-Bstatic'
14946         ;;
14947       ccc*)
14948         lt_prog_compiler_wl='-Wl,'
14949         # All Alpha code is PIC.
14950         lt_prog_compiler_static='-non_shared'
14951         ;;
14952       *)
14953         case `$CC -V 2>&1 | sed 5q` in
14954         *Sun\ C*)
14955           # Sun C 5.9
14956           lt_prog_compiler_pic='-KPIC'
14957           lt_prog_compiler_static='-Bstatic'
14958           lt_prog_compiler_wl='-Wl,'
14959           ;;
14960         *Sun\ F*)
14961           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14962           lt_prog_compiler_pic='-KPIC'
14963           lt_prog_compiler_static='-Bstatic'
14964           lt_prog_compiler_wl=''
14965           ;;
14966         esac
14967         ;;
14968       esac
14969       ;;
14970
14971     osf3* | osf4* | osf5*)
14972       lt_prog_compiler_wl='-Wl,'
14973       # All OSF/1 code is PIC.
14974       lt_prog_compiler_static='-non_shared'
14975       ;;
14976
14977     rdos*)
14978       lt_prog_compiler_static='-non_shared'
14979       ;;
14980
14981     solaris*)
14982       lt_prog_compiler_pic='-KPIC'
14983       lt_prog_compiler_static='-Bstatic'
14984       case $cc_basename in
14985       f77* | f90* | f95*)
14986         lt_prog_compiler_wl='-Qoption ld ';;
14987       *)
14988         lt_prog_compiler_wl='-Wl,';;
14989       esac
14990       ;;
14991
14992     sunos4*)
14993       lt_prog_compiler_wl='-Qoption ld '
14994       lt_prog_compiler_pic='-PIC'
14995       lt_prog_compiler_static='-Bstatic'
14996       ;;
14997
14998     sysv4 | sysv4.2uw2* | sysv4.3*)
14999       lt_prog_compiler_wl='-Wl,'
15000       lt_prog_compiler_pic='-KPIC'
15001       lt_prog_compiler_static='-Bstatic'
15002       ;;
15003
15004     sysv4*MP*)
15005       if test -d /usr/nec ;then
15006         lt_prog_compiler_pic='-Kconform_pic'
15007         lt_prog_compiler_static='-Bstatic'
15008       fi
15009       ;;
15010
15011     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15012       lt_prog_compiler_wl='-Wl,'
15013       lt_prog_compiler_pic='-KPIC'
15014       lt_prog_compiler_static='-Bstatic'
15015       ;;
15016
15017     unicos*)
15018       lt_prog_compiler_wl='-Wl,'
15019       lt_prog_compiler_can_build_shared=no
15020       ;;
15021
15022     uts4*)
15023       lt_prog_compiler_pic='-pic'
15024       lt_prog_compiler_static='-Bstatic'
15025       ;;
15026
15027     *)
15028       lt_prog_compiler_can_build_shared=no
15029       ;;
15030     esac
15031   fi
15032
15033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15034 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15035
15036 #
15037 # Check to make sure the PIC flag actually works.
15038 #
15039 if test -n "$lt_prog_compiler_pic"; then
15040
15041 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15043 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
15044   echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046   lt_cv_prog_compiler_pic_works=no
15047   ac_outfile=conftest.$ac_objext
15048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15049    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15050    # Insert the option either (1) after the last *FLAGS variable, or
15051    # (2) before a word containing "conftest.", or (3) at the end.
15052    # Note that $ac_compile itself does not contain backslashes and begins
15053    # with a dollar sign (not a hyphen), so the echo should work correctly.
15054    # The option is referenced via a variable to avoid confusing sed.
15055    lt_compile=`echo "$ac_compile" | $SED \
15056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15058    -e 's:$: $lt_compiler_flag:'`
15059    (eval echo "\"\$as_me:15059: $lt_compile\"" >&5)
15060    (eval "$lt_compile" 2>conftest.err)
15061    ac_status=$?
15062    cat conftest.err >&5
15063    echo "$as_me:15063: \$? = $ac_status" >&5
15064    if (exit $ac_status) && test -s "$ac_outfile"; then
15065      # The compiler can only warn and ignore the option if not recognized
15066      # So say no if there are warnings other than the usual output.
15067      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15070        lt_cv_prog_compiler_pic_works=yes
15071      fi
15072    fi
15073    $rm conftest*
15074
15075 fi
15076 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
15077 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
15078
15079 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15080     case $lt_prog_compiler_pic in
15081      "" | " "*) ;;
15082      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15083      esac
15084 else
15085     lt_prog_compiler_pic=
15086      lt_prog_compiler_can_build_shared=no
15087 fi
15088
15089 fi
15090 case $host_os in
15091   # For platforms which do not support PIC, -DPIC is meaningless:
15092   *djgpp*)
15093     lt_prog_compiler_pic=
15094     ;;
15095   *)
15096     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15097     ;;
15098 esac
15099
15100 #
15101 # Check to make sure the static flag actually works.
15102 #
15103 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15104 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15105 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15106 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   lt_cv_prog_compiler_static_works=no
15110    save_LDFLAGS="$LDFLAGS"
15111    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15112    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15114      # The linker can only warn and ignore the option if not recognized
15115      # So say no if there are warnings
15116      if test -s conftest.err; then
15117        # Append any errors to the config.log.
15118        cat conftest.err 1>&5
15119        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15121        if diff conftest.exp conftest.er2 >/dev/null; then
15122          lt_cv_prog_compiler_static_works=yes
15123        fi
15124      else
15125        lt_cv_prog_compiler_static_works=yes
15126      fi
15127    fi
15128    $rm -r conftest*
15129    LDFLAGS="$save_LDFLAGS"
15130
15131 fi
15132 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
15133 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
15134
15135 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15136     :
15137 else
15138     lt_prog_compiler_static=
15139 fi
15140
15141
15142 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   lt_cv_prog_compiler_c_o=no
15148    $rm -r conftest 2>/dev/null
15149    mkdir conftest
15150    cd conftest
15151    mkdir out
15152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15153
15154    lt_compiler_flag="-o out/conftest2.$ac_objext"
15155    # Insert the option either (1) after the last *FLAGS variable, or
15156    # (2) before a word containing "conftest.", or (3) at the end.
15157    # Note that $ac_compile itself does not contain backslashes and begins
15158    # with a dollar sign (not a hyphen), so the echo should work correctly.
15159    lt_compile=`echo "$ac_compile" | $SED \
15160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15162    -e 's:$: $lt_compiler_flag:'`
15163    (eval echo "\"\$as_me:15163: $lt_compile\"" >&5)
15164    (eval "$lt_compile" 2>out/conftest.err)
15165    ac_status=$?
15166    cat out/conftest.err >&5
15167    echo "$as_me:15167: \$? = $ac_status" >&5
15168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15169    then
15170      # The compiler can only warn and ignore the option if not recognized
15171      # So say no if there are warnings
15172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15175        lt_cv_prog_compiler_c_o=yes
15176      fi
15177    fi
15178    chmod u+w . 2>&5
15179    $rm conftest*
15180    # SGI C++ compiler will create directory out/ii_files/ for
15181    # template instantiation
15182    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15183    $rm out/* && rmdir out
15184    cd ..
15185    rmdir conftest
15186    $rm conftest*
15187
15188 fi
15189 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15190 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15191
15192
15193 hard_links="nottested"
15194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15195   # do not overwrite the value of need_locks provided by the user
15196   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15197 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15198   hard_links=yes
15199   $rm conftest*
15200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15201   touch conftest.a
15202   ln conftest.a conftest.b 2>&5 || hard_links=no
15203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15204   { echo "$as_me:$LINENO: result: $hard_links" >&5
15205 echo "${ECHO_T}$hard_links" >&6; }
15206   if test "$hard_links" = no; then
15207     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15208 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15209     need_locks=warn
15210   fi
15211 else
15212   need_locks=no
15213 fi
15214
15215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15217
15218   runpath_var=
15219   allow_undefined_flag=
15220   enable_shared_with_static_runtimes=no
15221   archive_cmds=
15222   archive_expsym_cmds=
15223   old_archive_From_new_cmds=
15224   old_archive_from_expsyms_cmds=
15225   export_dynamic_flag_spec=
15226   whole_archive_flag_spec=
15227   thread_safe_flag_spec=
15228   hardcode_libdir_flag_spec=
15229   hardcode_libdir_flag_spec_ld=
15230   hardcode_libdir_separator=
15231   hardcode_direct=no
15232   hardcode_minus_L=no
15233   hardcode_shlibpath_var=unsupported
15234   link_all_deplibs=unknown
15235   hardcode_automatic=no
15236   module_cmds=
15237   module_expsym_cmds=
15238   always_export_symbols=no
15239   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15240   # include_expsyms should be a list of space-separated symbols to be *always*
15241   # included in the symbol list
15242   include_expsyms=
15243   # exclude_expsyms can be an extended regexp of symbols to exclude
15244   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15245   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15246   # as well as any symbol that contains `d'.
15247   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15248   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15249   # platforms (ab)use it in PIC code, but their linkers get confused if
15250   # the symbol is explicitly referenced.  Since portable code cannot
15251   # rely on this symbol name, it's probably fine to never include it in
15252   # preloaded symbol tables.
15253   # Exclude shared library initialization/finalization symbols.
15254   extract_expsyms_cmds=
15255   # Just being paranoid about ensuring that cc_basename is set.
15256   for cc_temp in $compiler""; do
15257   case $cc_temp in
15258     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15259     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15260     \-*) ;;
15261     *) break;;
15262   esac
15263 done
15264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15265
15266   case $host_os in
15267   cygwin* | mingw* | pw32*)
15268     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15269     # When not using gcc, we currently assume that we are using
15270     # Microsoft Visual C++.
15271     if test "$GCC" != yes; then
15272       with_gnu_ld=no
15273     fi
15274     ;;
15275   interix*)
15276     # we just hope/assume this is gcc and not c89 (= MSVC++)
15277     with_gnu_ld=yes
15278     ;;
15279   openbsd*)
15280     with_gnu_ld=no
15281     ;;
15282   esac
15283
15284   ld_shlibs=yes
15285   if test "$with_gnu_ld" = yes; then
15286     # If archive_cmds runs LD, not CC, wlarc should be empty
15287     wlarc='${wl}'
15288
15289     # Set some defaults for GNU ld with shared library support. These
15290     # are reset later if shared libraries are not supported. Putting them
15291     # here allows them to be overridden if necessary.
15292     runpath_var=LD_RUN_PATH
15293     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15294     export_dynamic_flag_spec='${wl}--export-dynamic'
15295     # ancient GNU ld didn't support --whole-archive et. al.
15296     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15297         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15298       else
15299         whole_archive_flag_spec=
15300     fi
15301     supports_anon_versioning=no
15302     case `$LD -v 2>/dev/null` in
15303       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15304       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15305       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15306       *\ 2.11.*) ;; # other 2.11 versions
15307       *) supports_anon_versioning=yes ;;
15308     esac
15309
15310     # See if GNU ld supports shared libraries.
15311     case $host_os in
15312     aix[3-9]*)
15313       # On AIX/PPC, the GNU linker is very broken
15314       if test "$host_cpu" != ia64; then
15315         ld_shlibs=no
15316         cat <<EOF 1>&2
15317
15318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15319 *** to be unable to reliably create shared libraries on AIX.
15320 *** Therefore, libtool is disabling shared libraries support.  If you
15321 *** really care for shared libraries, you may want to modify your PATH
15322 *** so that a non-GNU linker is found, and then restart.
15323
15324 EOF
15325       fi
15326       ;;
15327
15328     amigaos*)
15329       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)'
15330       hardcode_libdir_flag_spec='-L$libdir'
15331       hardcode_minus_L=yes
15332
15333       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15334       # that the semantics of dynamic libraries on AmigaOS, at least up
15335       # to version 4, is to share data among multiple programs linked
15336       # with the same dynamic library.  Since this doesn't match the
15337       # behavior of shared libraries on other platforms, we can't use
15338       # them.
15339       ld_shlibs=no
15340       ;;
15341
15342     beos*)
15343       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15344         allow_undefined_flag=unsupported
15345         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15346         # support --undefined.  This deserves some investigation.  FIXME
15347         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15348       else
15349         ld_shlibs=no
15350       fi
15351       ;;
15352
15353     cygwin* | mingw* | pw32*)
15354       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15355       # as there is no search path for DLLs.
15356       hardcode_libdir_flag_spec='-L$libdir'
15357       allow_undefined_flag=unsupported
15358       always_export_symbols=no
15359       enable_shared_with_static_runtimes=yes
15360       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15361
15362       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15364         # If the export-symbols file already is a .def file (1st line
15365         # is EXPORTS), use it as is; otherwise, prepend...
15366         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15367           cp $export_symbols $output_objdir/$soname.def;
15368         else
15369           echo EXPORTS > $output_objdir/$soname.def;
15370           cat $export_symbols >> $output_objdir/$soname.def;
15371         fi~
15372         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15373       else
15374         ld_shlibs=no
15375       fi
15376       ;;
15377
15378     interix[3-9]*)
15379       hardcode_direct=no
15380       hardcode_shlibpath_var=no
15381       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15382       export_dynamic_flag_spec='${wl}-E'
15383       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15384       # Instead, shared libraries are loaded at an image base (0x10000000 by
15385       # default) and relocated if they conflict, which is a slow very memory
15386       # consuming and fragmenting process.  To avoid this, we pick a random,
15387       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15388       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15389       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15390       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15391       ;;
15392
15393     gnu* | linux* | k*bsd*-gnu)
15394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15395         tmp_addflag=
15396         case $cc_basename,$host_cpu in
15397         pgcc*)                          # Portland Group C compiler
15398           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'
15399           tmp_addflag=' $pic_flag'
15400           ;;
15401         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15402           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'
15403           tmp_addflag=' $pic_flag -Mnomain' ;;
15404         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15405           tmp_addflag=' -i_dynamic' ;;
15406         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15407           tmp_addflag=' -i_dynamic -nofor_main' ;;
15408         ifc* | ifort*)                  # Intel Fortran compiler
15409           tmp_addflag=' -nofor_main' ;;
15410         esac
15411         case `$CC -V 2>&1 | sed 5q` in
15412         *Sun\ C*)                       # Sun C 5.9
15413           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15414           tmp_sharedflag='-G' ;;
15415         *Sun\ F*)                       # Sun Fortran 8.3
15416           tmp_sharedflag='-G' ;;
15417         *)
15418           tmp_sharedflag='-shared' ;;
15419         esac
15420         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15421
15422         if test $supports_anon_versioning = yes; then
15423           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15424   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15425   $echo "local: *; };" >> $output_objdir/$libname.ver~
15426           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15427         fi
15428         link_all_deplibs=no
15429       else
15430         ld_shlibs=no
15431       fi
15432       ;;
15433
15434     netbsd* | netbsdelf*-gnu)
15435       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15436         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15437         wlarc=
15438       else
15439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15441       fi
15442       ;;
15443
15444     solaris*)
15445       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15446         ld_shlibs=no
15447         cat <<EOF 1>&2
15448
15449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15450 *** create shared libraries on Solaris systems.  Therefore, libtool
15451 *** is disabling shared libraries support.  We urge you to upgrade GNU
15452 *** binutils to release 2.9.1 or newer.  Another option is to modify
15453 *** your PATH or compiler configuration so that the native linker is
15454 *** used, and then restart.
15455
15456 EOF
15457       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15458         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15459         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15460       else
15461         ld_shlibs=no
15462       fi
15463       ;;
15464
15465     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15466       case `$LD -v 2>&1` in
15467         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15468         ld_shlibs=no
15469         cat <<_LT_EOF 1>&2
15470
15471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15472 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15473 *** is disabling shared libraries support.  We urge you to upgrade GNU
15474 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15475 *** your PATH or compiler configuration so that the native linker is
15476 *** used, and then restart.
15477
15478 _LT_EOF
15479         ;;
15480         *)
15481           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15482             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15483             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15484             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15485           else
15486             ld_shlibs=no
15487           fi
15488         ;;
15489       esac
15490       ;;
15491
15492     sunos4*)
15493       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494       wlarc=
15495       hardcode_direct=yes
15496       hardcode_shlibpath_var=no
15497       ;;
15498
15499     *)
15500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15501         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15503       else
15504         ld_shlibs=no
15505       fi
15506       ;;
15507     esac
15508
15509     if test "$ld_shlibs" = no; then
15510       runpath_var=
15511       hardcode_libdir_flag_spec=
15512       export_dynamic_flag_spec=
15513       whole_archive_flag_spec=
15514     fi
15515   else
15516     # PORTME fill in a description of your system's linker (not GNU ld)
15517     case $host_os in
15518     aix3*)
15519       allow_undefined_flag=unsupported
15520       always_export_symbols=yes
15521       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'
15522       # Note: this linker hardcodes the directories in LIBPATH if there
15523       # are no directories specified by -L.
15524       hardcode_minus_L=yes
15525       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15526         # Neither direct hardcoding nor static linking is supported with a
15527         # broken collect2.
15528         hardcode_direct=unsupported
15529       fi
15530       ;;
15531
15532     aix[4-9]*)
15533       if test "$host_cpu" = ia64; then
15534         # On IA64, the linker does run time linking by default, so we don't
15535         # have to do anything special.
15536         aix_use_runtimelinking=no
15537         exp_sym_flag='-Bexport'
15538         no_entry_flag=""
15539       else
15540         # If we're using GNU nm, then we don't want the "-C" option.
15541         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15542         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15543           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'
15544         else
15545           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'
15546         fi
15547         aix_use_runtimelinking=no
15548
15549         # Test if we are trying to use run time linking or normal
15550         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15551         # need to do runtime linking.
15552         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15553           for ld_flag in $LDFLAGS; do
15554           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15555             aix_use_runtimelinking=yes
15556             break
15557           fi
15558           done
15559           ;;
15560         esac
15561
15562         exp_sym_flag='-bexport'
15563         no_entry_flag='-bnoentry'
15564       fi
15565
15566       # When large executables or shared objects are built, AIX ld can
15567       # have problems creating the table of contents.  If linking a library
15568       # or program results in "error TOC overflow" add -mminimal-toc to
15569       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15570       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15571
15572       archive_cmds=''
15573       hardcode_direct=yes
15574       hardcode_libdir_separator=':'
15575       link_all_deplibs=yes
15576
15577       if test "$GCC" = yes; then
15578         case $host_os in aix4.[012]|aix4.[012].*)
15579         # We only want to do this on AIX 4.2 and lower, the check
15580         # below for broken collect2 doesn't work under 4.3+
15581           collect2name=`${CC} -print-prog-name=collect2`
15582           if test -f "$collect2name" && \
15583            strings "$collect2name" | grep resolve_lib_name >/dev/null
15584           then
15585           # We have reworked collect2
15586           :
15587           else
15588           # We have old collect2
15589           hardcode_direct=unsupported
15590           # It fails to find uninstalled libraries when the uninstalled
15591           # path is not listed in the libpath.  Setting hardcode_minus_L
15592           # to unsupported forces relinking
15593           hardcode_minus_L=yes
15594           hardcode_libdir_flag_spec='-L$libdir'
15595           hardcode_libdir_separator=
15596           fi
15597           ;;
15598         esac
15599         shared_flag='-shared'
15600         if test "$aix_use_runtimelinking" = yes; then
15601           shared_flag="$shared_flag "'${wl}-G'
15602         fi
15603       else
15604         # not using gcc
15605         if test "$host_cpu" = ia64; then
15606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15607         # chokes on -Wl,-G. The following line is correct:
15608           shared_flag='-G'
15609         else
15610           if test "$aix_use_runtimelinking" = yes; then
15611             shared_flag='${wl}-G'
15612           else
15613             shared_flag='${wl}-bM:SRE'
15614           fi
15615         fi
15616       fi
15617
15618       # It seems that -bexpall does not export symbols beginning with
15619       # underscore (_), so it is better to generate a list of symbols to export.
15620       always_export_symbols=yes
15621       if test "$aix_use_runtimelinking" = yes; then
15622         # Warning - without using the other runtime loading flags (-brtl),
15623         # -berok will link without error, but may produce a broken library.
15624         allow_undefined_flag='-berok'
15625        # Determine the default libpath from the value encoded in an empty executable.
15626        cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632
15633 int
15634 main ()
15635 {
15636
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_link") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } && {
15655          test -z "$ac_c_werror_flag" ||
15656          test ! -s conftest.err
15657        } && test -s conftest$ac_exeext &&
15658        $as_test_x conftest$ac_exeext; then
15659
15660 lt_aix_libpath_sed='
15661     /Import File Strings/,/^$/ {
15662         /^0/ {
15663             s/^0  *\(.*\)$/\1/
15664             p
15665         }
15666     }'
15667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15668 # Check for a 64-bit object if we didn't find anything.
15669 if test -z "$aix_libpath"; then
15670   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15671 fi
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676
15677 fi
15678
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680       conftest$ac_exeext conftest.$ac_ext
15681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15682
15683        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15684         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15685        else
15686         if test "$host_cpu" = ia64; then
15687           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15688           allow_undefined_flag="-z nodefs"
15689           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15690         else
15691          # Determine the default libpath from the value encoded in an empty executable.
15692          cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698
15699 int
15700 main ()
15701 {
15702
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_link") 2>conftest.er1
15715   ac_status=$?
15716   grep -v '^ *+' conftest.er1 >conftest.err
15717   rm -f conftest.er1
15718   cat conftest.err >&5
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } && {
15721          test -z "$ac_c_werror_flag" ||
15722          test ! -s conftest.err
15723        } && test -s conftest$ac_exeext &&
15724        $as_test_x conftest$ac_exeext; then
15725
15726 lt_aix_libpath_sed='
15727     /Import File Strings/,/^$/ {
15728         /^0/ {
15729             s/^0  *\(.*\)$/\1/
15730             p
15731         }
15732     }'
15733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15734 # Check for a 64-bit object if we didn't find anything.
15735 if test -z "$aix_libpath"; then
15736   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15737 fi
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742
15743 fi
15744
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746       conftest$ac_exeext conftest.$ac_ext
15747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15748
15749          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15750           # Warning - without using the other run time loading flags,
15751           # -berok will link without error, but may produce a broken library.
15752           no_undefined_flag=' ${wl}-bernotok'
15753           allow_undefined_flag=' ${wl}-berok'
15754           # Exported symbols can be pulled into shared objects from archives
15755           whole_archive_flag_spec='$convenience'
15756           archive_cmds_need_lc=yes
15757           # This is similar to how AIX traditionally builds its shared libraries.
15758           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15759         fi
15760       fi
15761       ;;
15762
15763     amigaos*)
15764       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)'
15765       hardcode_libdir_flag_spec='-L$libdir'
15766       hardcode_minus_L=yes
15767       # see comment about different semantics on the GNU ld section
15768       ld_shlibs=no
15769       ;;
15770
15771     bsdi[45]*)
15772       export_dynamic_flag_spec=-rdynamic
15773       ;;
15774
15775     cygwin* | mingw* | pw32*)
15776       # When not using gcc, we currently assume that we are using
15777       # Microsoft Visual C++.
15778       # hardcode_libdir_flag_spec is actually meaningless, as there is
15779       # no search path for DLLs.
15780       hardcode_libdir_flag_spec=' '
15781       allow_undefined_flag=unsupported
15782       # Tell ltmain to make .lib files, not .a files.
15783       libext=lib
15784       # Tell ltmain to make .dll files, not .so files.
15785       shrext_cmds=".dll"
15786       # FIXME: Setting linknames here is a bad hack.
15787       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15788       # The linker will automatically build a .lib file if we build a DLL.
15789       old_archive_From_new_cmds='true'
15790       # FIXME: Should let the user specify the lib program.
15791       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15792       fix_srcfile_path='`cygpath -w "$srcfile"`'
15793       enable_shared_with_static_runtimes=yes
15794       ;;
15795
15796     darwin* | rhapsody*)
15797       case $host_os in
15798         rhapsody* | darwin1.[012])
15799          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15800          ;;
15801        *) # Darwin 1.3 on
15802          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15803            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15804          else
15805            case ${MACOSX_DEPLOYMENT_TARGET} in
15806              10.[012])
15807                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15808                ;;
15809              10.*)
15810                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15811                ;;
15812            esac
15813          fi
15814          ;;
15815       esac
15816       archive_cmds_need_lc=no
15817       hardcode_direct=no
15818       hardcode_automatic=yes
15819       hardcode_shlibpath_var=unsupported
15820       whole_archive_flag_spec=''
15821       link_all_deplibs=yes
15822     if test "$GCC" = yes ; then
15823         output_verbose_link_cmd='echo'
15824         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15825         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15826         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15827         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15828     else
15829       case $cc_basename in
15830         xlc*)
15831          output_verbose_link_cmd='echo'
15832          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15833          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15834           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15835          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15836           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}'
15837           ;;
15838        *)
15839          ld_shlibs=no
15840           ;;
15841       esac
15842     fi
15843       ;;
15844
15845     dgux*)
15846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847       hardcode_libdir_flag_spec='-L$libdir'
15848       hardcode_shlibpath_var=no
15849       ;;
15850
15851     freebsd1*)
15852       ld_shlibs=no
15853       ;;
15854
15855     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15856     # support.  Future versions do this automatically, but an explicit c++rt0.o
15857     # does not break anything, and helps significantly (at the cost of a little
15858     # extra space).
15859     freebsd2.2*)
15860       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15861       hardcode_libdir_flag_spec='-R$libdir'
15862       hardcode_direct=yes
15863       hardcode_shlibpath_var=no
15864       ;;
15865
15866     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15867     freebsd2*)
15868       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15869       hardcode_direct=yes
15870       hardcode_minus_L=yes
15871       hardcode_shlibpath_var=no
15872       ;;
15873
15874     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15875     freebsd* | dragonfly*)
15876       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15877       hardcode_libdir_flag_spec='-R$libdir'
15878       hardcode_direct=yes
15879       hardcode_shlibpath_var=no
15880       ;;
15881
15882     hpux9*)
15883       if test "$GCC" = yes; then
15884         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'
15885       else
15886         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'
15887       fi
15888       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889       hardcode_libdir_separator=:
15890       hardcode_direct=yes
15891
15892       # hardcode_minus_L: Not really in the search PATH,
15893       # but as the default location of the library.
15894       hardcode_minus_L=yes
15895       export_dynamic_flag_spec='${wl}-E'
15896       ;;
15897
15898     hpux10*)
15899       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15900         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15901       else
15902         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15903       fi
15904       if test "$with_gnu_ld" = no; then
15905         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15906         hardcode_libdir_separator=:
15907
15908         hardcode_direct=yes
15909         export_dynamic_flag_spec='${wl}-E'
15910
15911         # hardcode_minus_L: Not really in the search PATH,
15912         # but as the default location of the library.
15913         hardcode_minus_L=yes
15914       fi
15915       ;;
15916
15917     hpux11*)
15918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15919         case $host_cpu in
15920         hppa*64*)
15921           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922           ;;
15923         ia64*)
15924           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15925           ;;
15926         *)
15927           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15928           ;;
15929         esac
15930       else
15931         case $host_cpu in
15932         hppa*64*)
15933           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15934           ;;
15935         ia64*)
15936           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15937           ;;
15938         *)
15939           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15940           ;;
15941         esac
15942       fi
15943       if test "$with_gnu_ld" = no; then
15944         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15945         hardcode_libdir_separator=:
15946
15947         case $host_cpu in
15948         hppa*64*|ia64*)
15949           hardcode_libdir_flag_spec_ld='+b $libdir'
15950           hardcode_direct=no
15951           hardcode_shlibpath_var=no
15952           ;;
15953         *)
15954           hardcode_direct=yes
15955           export_dynamic_flag_spec='${wl}-E'
15956
15957           # hardcode_minus_L: Not really in the search PATH,
15958           # but as the default location of the library.
15959           hardcode_minus_L=yes
15960           ;;
15961         esac
15962       fi
15963       ;;
15964
15965     irix5* | irix6* | nonstopux*)
15966       if test "$GCC" = yes; then
15967         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'
15968       else
15969         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'
15970         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15971       fi
15972       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973       hardcode_libdir_separator=:
15974       link_all_deplibs=yes
15975       ;;
15976
15977     netbsd* | netbsdelf*-gnu)
15978       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15979         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15980       else
15981         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15982       fi
15983       hardcode_libdir_flag_spec='-R$libdir'
15984       hardcode_direct=yes
15985       hardcode_shlibpath_var=no
15986       ;;
15987
15988     newsos6)
15989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15990       hardcode_direct=yes
15991       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15992       hardcode_libdir_separator=:
15993       hardcode_shlibpath_var=no
15994       ;;
15995
15996     openbsd*)
15997       if test -f /usr/libexec/ld.so; then
15998         hardcode_direct=yes
15999         hardcode_shlibpath_var=no
16000         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16001           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16003           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16004           export_dynamic_flag_spec='${wl}-E'
16005         else
16006           case $host_os in
16007            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16008              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009              hardcode_libdir_flag_spec='-R$libdir'
16010              ;;
16011            *)
16012              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16013              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16014              ;;
16015           esac
16016         fi
16017       else
16018         ld_shlibs=no
16019       fi
16020       ;;
16021
16022     os2*)
16023       hardcode_libdir_flag_spec='-L$libdir'
16024       hardcode_minus_L=yes
16025       allow_undefined_flag=unsupported
16026       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'
16027       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16028       ;;
16029
16030     osf3*)
16031       if test "$GCC" = yes; then
16032         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16033         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'
16034       else
16035         allow_undefined_flag=' -expect_unresolved \*'
16036         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'
16037       fi
16038       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16039       hardcode_libdir_separator=:
16040       ;;
16041
16042     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16043       if test "$GCC" = yes; then
16044         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16045         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'
16046         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16047       else
16048         allow_undefined_flag=' -expect_unresolved \*'
16049         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'
16050         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16051         $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'
16052
16053         # Both c and cxx compiler support -rpath directly
16054         hardcode_libdir_flag_spec='-rpath $libdir'
16055       fi
16056       hardcode_libdir_separator=:
16057       ;;
16058
16059     solaris*)
16060       no_undefined_flag=' -z text'
16061       if test "$GCC" = yes; then
16062         wlarc='${wl}'
16063         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16064         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16065           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16066       else
16067         wlarc=''
16068         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16071       fi
16072       hardcode_libdir_flag_spec='-R$libdir'
16073       hardcode_shlibpath_var=no
16074       case $host_os in
16075       solaris2.[0-5] | solaris2.[0-5].*) ;;
16076       *)
16077         # The compiler driver will combine and reorder linker options,
16078         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16079         # but is careful enough not to reorder.
16080         # Supported since Solaris 2.6 (maybe 2.5.1?)
16081         if test "$GCC" = yes; then
16082           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16083         else
16084           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16085         fi
16086         ;;
16087       esac
16088       link_all_deplibs=yes
16089       ;;
16090
16091     sunos4*)
16092       if test "x$host_vendor" = xsequent; then
16093         # Use $CC to link under sequent, because it throws in some extra .o
16094         # files that make .init and .fini sections work.
16095         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16096       else
16097         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16098       fi
16099       hardcode_libdir_flag_spec='-L$libdir'
16100       hardcode_direct=yes
16101       hardcode_minus_L=yes
16102       hardcode_shlibpath_var=no
16103       ;;
16104
16105     sysv4)
16106       case $host_vendor in
16107         sni)
16108           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109           hardcode_direct=yes # is this really true???
16110         ;;
16111         siemens)
16112           ## LD is ld it makes a PLAMLIB
16113           ## CC just makes a GrossModule.
16114           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16115           reload_cmds='$CC -r -o $output$reload_objs'
16116           hardcode_direct=no
16117         ;;
16118         motorola)
16119           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16121         ;;
16122       esac
16123       runpath_var='LD_RUN_PATH'
16124       hardcode_shlibpath_var=no
16125       ;;
16126
16127     sysv4.3*)
16128       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129       hardcode_shlibpath_var=no
16130       export_dynamic_flag_spec='-Bexport'
16131       ;;
16132
16133     sysv4*MP*)
16134       if test -d /usr/nec; then
16135         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136         hardcode_shlibpath_var=no
16137         runpath_var=LD_RUN_PATH
16138         hardcode_runpath_var=yes
16139         ld_shlibs=yes
16140       fi
16141       ;;
16142
16143     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16144       no_undefined_flag='${wl}-z,text'
16145       archive_cmds_need_lc=no
16146       hardcode_shlibpath_var=no
16147       runpath_var='LD_RUN_PATH'
16148
16149       if test "$GCC" = yes; then
16150         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16151         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16152       else
16153         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16154         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16155       fi
16156       ;;
16157
16158     sysv5* | sco3.2v5* | sco5v6*)
16159       # Note: We can NOT use -z defs as we might desire, because we do not
16160       # link with -lc, and that would cause any symbols used from libc to
16161       # always be unresolved, which means just about no library would
16162       # ever link correctly.  If we're not using GNU ld we use -z text
16163       # though, which does catch some bad symbols but isn't as heavy-handed
16164       # as -z defs.
16165       no_undefined_flag='${wl}-z,text'
16166       allow_undefined_flag='${wl}-z,nodefs'
16167       archive_cmds_need_lc=no
16168       hardcode_shlibpath_var=no
16169       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16170       hardcode_libdir_separator=':'
16171       link_all_deplibs=yes
16172       export_dynamic_flag_spec='${wl}-Bexport'
16173       runpath_var='LD_RUN_PATH'
16174
16175       if test "$GCC" = yes; then
16176         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178       else
16179         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16180         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16181       fi
16182       ;;
16183
16184     uts4*)
16185       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186       hardcode_libdir_flag_spec='-L$libdir'
16187       hardcode_shlibpath_var=no
16188       ;;
16189
16190     *)
16191       ld_shlibs=no
16192       ;;
16193     esac
16194   fi
16195
16196 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16197 echo "${ECHO_T}$ld_shlibs" >&6; }
16198 test "$ld_shlibs" = no && can_build_shared=no
16199
16200 #
16201 # Do we need to explicitly link libc?
16202 #
16203 case "x$archive_cmds_need_lc" in
16204 x|xyes)
16205   # Assume -lc should be added
16206   archive_cmds_need_lc=yes
16207
16208   if test "$enable_shared" = yes && test "$GCC" = yes; then
16209     case $archive_cmds in
16210     *'~'*)
16211       # FIXME: we may have to deal with multi-command sequences.
16212       ;;
16213     '$CC '*)
16214       # Test whether the compiler implicitly links with -lc since on some
16215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16216       # to ld, don't add -lc before -lgcc.
16217       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16219       $rm conftest*
16220       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16221
16222       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223   (eval $ac_compile) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } 2>conftest.err; then
16227         soname=conftest
16228         lib=conftest
16229         libobjs=conftest.$ac_objext
16230         deplibs=
16231         wl=$lt_prog_compiler_wl
16232         pic_flag=$lt_prog_compiler_pic
16233         compiler_flags=-v
16234         linker_flags=-v
16235         verstring=
16236         output_objdir=.
16237         libname=conftest
16238         lt_save_allow_undefined_flag=$allow_undefined_flag
16239         allow_undefined_flag=
16240         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16241   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }
16245         then
16246           archive_cmds_need_lc=no
16247         else
16248           archive_cmds_need_lc=yes
16249         fi
16250         allow_undefined_flag=$lt_save_allow_undefined_flag
16251       else
16252         cat conftest.err 1>&5
16253       fi
16254       $rm conftest*
16255       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16256 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16257       ;;
16258     esac
16259   fi
16260   ;;
16261 esac
16262
16263 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16265 library_names_spec=
16266 libname_spec='lib$name'
16267 soname_spec=
16268 shrext_cmds=".so"
16269 postinstall_cmds=
16270 postuninstall_cmds=
16271 finish_cmds=
16272 finish_eval=
16273 shlibpath_var=
16274 shlibpath_overrides_runpath=unknown
16275 version_type=none
16276 dynamic_linker="$host_os ld.so"
16277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16278
16279 if test "$GCC" = yes; then
16280   case $host_os in
16281     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16282     *) lt_awk_arg="/^libraries:/" ;;
16283   esac
16284   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16285   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16286     # if the path contains ";" then we assume it to be the separator
16287     # otherwise default to the standard path separator (i.e. ":") - it is
16288     # assumed that no part of a normal pathname contains ";" but that should
16289     # okay in the real world where ";" in dirpaths is itself problematic.
16290     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16291   else
16292     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16293   fi
16294   # Ok, now we have the path, separated by spaces, we can step through it
16295   # and add multilib dir if necessary.
16296   lt_tmp_lt_search_path_spec=
16297   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16298   for lt_sys_path in $lt_search_path_spec; do
16299     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16300       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16301     else
16302       test -d "$lt_sys_path" && \
16303         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16304     fi
16305   done
16306   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16307 BEGIN {RS=" "; FS="/|\n";} {
16308   lt_foo="";
16309   lt_count=0;
16310   for (lt_i = NF; lt_i > 0; lt_i--) {
16311     if ($lt_i != "" && $lt_i != ".") {
16312       if ($lt_i == "..") {
16313         lt_count++;
16314       } else {
16315         if (lt_count == 0) {
16316           lt_foo="/" $lt_i lt_foo;
16317         } else {
16318           lt_count--;
16319         }
16320       }
16321     }
16322   }
16323   if (lt_foo != "") { lt_freq[lt_foo]++; }
16324   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16325 }'`
16326   sys_lib_search_path_spec=`echo $lt_search_path_spec`
16327 else
16328   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16329 fi
16330 need_lib_prefix=unknown
16331 hardcode_into_libs=no
16332
16333 # when you set need_version to no, make sure it does not cause -set_version
16334 # flags to be left without arguments
16335 need_version=unknown
16336
16337 case $host_os in
16338 aix3*)
16339   version_type=linux
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16341   shlibpath_var=LIBPATH
16342
16343   # AIX 3 has no versioning support, so we append a major version to the name.
16344   soname_spec='${libname}${release}${shared_ext}$major'
16345   ;;
16346
16347 aix[4-9]*)
16348   version_type=linux
16349   need_lib_prefix=no
16350   need_version=no
16351   hardcode_into_libs=yes
16352   if test "$host_cpu" = ia64; then
16353     # AIX 5 supports IA64
16354     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16355     shlibpath_var=LD_LIBRARY_PATH
16356   else
16357     # With GCC up to 2.95.x, collect2 would create an import file
16358     # for dependence libraries.  The import file would start with
16359     # the line `#! .'.  This would cause the generated library to
16360     # depend on `.', always an invalid library.  This was fixed in
16361     # development snapshots of GCC prior to 3.0.
16362     case $host_os in
16363       aix4 | aix4.[01] | aix4.[01].*)
16364       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16365            echo ' yes '
16366            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16367         :
16368       else
16369         can_build_shared=no
16370       fi
16371       ;;
16372     esac
16373     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16374     # soname into executable. Probably we can add versioning support to
16375     # collect2, so additional links can be useful in future.
16376     if test "$aix_use_runtimelinking" = yes; then
16377       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16378       # instead of lib<name>.a to let people know that these are not
16379       # typical AIX shared libraries.
16380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381     else
16382       # We preserve .a as extension for shared libraries through AIX4.2
16383       # and later when we are not doing run time linking.
16384       library_names_spec='${libname}${release}.a $libname.a'
16385       soname_spec='${libname}${release}${shared_ext}$major'
16386     fi
16387     shlibpath_var=LIBPATH
16388   fi
16389   ;;
16390
16391 amigaos*)
16392   library_names_spec='$libname.ixlibrary $libname.a'
16393   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16394   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'
16395   ;;
16396
16397 beos*)
16398   library_names_spec='${libname}${shared_ext}'
16399   dynamic_linker="$host_os ld.so"
16400   shlibpath_var=LIBRARY_PATH
16401   ;;
16402
16403 bsdi[45]*)
16404   version_type=linux
16405   need_version=no
16406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407   soname_spec='${libname}${release}${shared_ext}$major'
16408   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16409   shlibpath_var=LD_LIBRARY_PATH
16410   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16411   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16412   # the default ld.so.conf also contains /usr/contrib/lib and
16413   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16414   # libtool to hard-code these into programs
16415   ;;
16416
16417 cygwin* | mingw* | pw32*)
16418   version_type=windows
16419   shrext_cmds=".dll"
16420   need_version=no
16421   need_lib_prefix=no
16422
16423   case $GCC,$host_os in
16424   yes,cygwin* | yes,mingw* | yes,pw32*)
16425     library_names_spec='$libname.dll.a'
16426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16427     postinstall_cmds='base_file=`basename \${file}`~
16428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16429       dldir=$destdir/`dirname \$dlpath`~
16430       test -d \$dldir || mkdir -p \$dldir~
16431       $install_prog $dir/$dlname \$dldir/$dlname~
16432       chmod a+x \$dldir/$dlname'
16433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16434       dlpath=$dir/\$dldll~
16435        $rm \$dlpath'
16436     shlibpath_overrides_runpath=yes
16437
16438     case $host_os in
16439     cygwin*)
16440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16441       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16443       ;;
16444     mingw*)
16445       # MinGW DLLs use traditional 'lib' prefix
16446       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16448       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16449         # It is most probably a Windows format PATH printed by
16450         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16451         # path with ; separators, and with drive letters. We can handle the
16452         # drive letters (cygwin fileutils understands them), so leave them,
16453         # especially as we might pass files found there to a mingw objdump,
16454         # which wouldn't understand a cygwinified path. Ahh.
16455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16456       else
16457         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16458       fi
16459       ;;
16460     pw32*)
16461       # pw32 DLLs use 'pw' prefix rather than 'lib'
16462       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16463       ;;
16464     esac
16465     ;;
16466
16467   *)
16468     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16469     ;;
16470   esac
16471   dynamic_linker='Win32 ld.exe'
16472   # FIXME: first we should search . and the directory the executable is in
16473   shlibpath_var=PATH
16474   ;;
16475
16476 darwin* | rhapsody*)
16477   dynamic_linker="$host_os dyld"
16478   version_type=darwin
16479   need_lib_prefix=no
16480   need_version=no
16481   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16482   soname_spec='${libname}${release}${major}$shared_ext'
16483   shlibpath_overrides_runpath=yes
16484   shlibpath_var=DYLD_LIBRARY_PATH
16485   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16486
16487   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16488   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16489   ;;
16490
16491 dgux*)
16492   version_type=linux
16493   need_lib_prefix=no
16494   need_version=no
16495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16496   soname_spec='${libname}${release}${shared_ext}$major'
16497   shlibpath_var=LD_LIBRARY_PATH
16498   ;;
16499
16500 freebsd1*)
16501   dynamic_linker=no
16502   ;;
16503
16504 freebsd* | dragonfly*)
16505   # DragonFly does not have aout.  When/if they implement a new
16506   # versioning mechanism, adjust this.
16507   if test -x /usr/bin/objformat; then
16508     objformat=`/usr/bin/objformat`
16509   else
16510     case $host_os in
16511     freebsd[123]*) objformat=aout ;;
16512     *) objformat=elf ;;
16513     esac
16514   fi
16515   version_type=freebsd-$objformat
16516   case $version_type in
16517     freebsd-elf*)
16518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16519       need_version=no
16520       need_lib_prefix=no
16521       ;;
16522     freebsd-*)
16523       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16524       need_version=yes
16525       ;;
16526   esac
16527   shlibpath_var=LD_LIBRARY_PATH
16528   case $host_os in
16529   freebsd2*)
16530     shlibpath_overrides_runpath=yes
16531     ;;
16532   freebsd3.[01]* | freebsdelf3.[01]*)
16533     shlibpath_overrides_runpath=yes
16534     hardcode_into_libs=yes
16535     ;;
16536   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16537   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16538     shlibpath_overrides_runpath=no
16539     hardcode_into_libs=yes
16540     ;;
16541   *) # from 4.6 on, and DragonFly
16542     shlibpath_overrides_runpath=yes
16543     hardcode_into_libs=yes
16544     ;;
16545   esac
16546   ;;
16547
16548 gnu*)
16549   version_type=linux
16550   need_lib_prefix=no
16551   need_version=no
16552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16553   soname_spec='${libname}${release}${shared_ext}$major'
16554   shlibpath_var=LD_LIBRARY_PATH
16555   hardcode_into_libs=yes
16556   ;;
16557
16558 hpux9* | hpux10* | hpux11*)
16559   # Give a soname corresponding to the major version so that dld.sl refuses to
16560   # link against other versions.
16561   version_type=sunos
16562   need_lib_prefix=no
16563   need_version=no
16564   case $host_cpu in
16565   ia64*)
16566     shrext_cmds='.so'
16567     hardcode_into_libs=yes
16568     dynamic_linker="$host_os dld.so"
16569     shlibpath_var=LD_LIBRARY_PATH
16570     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16572     soname_spec='${libname}${release}${shared_ext}$major'
16573     if test "X$HPUX_IA64_MODE" = X32; then
16574       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16575     else
16576       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16577     fi
16578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16579     ;;
16580    hppa*64*)
16581      shrext_cmds='.sl'
16582      hardcode_into_libs=yes
16583      dynamic_linker="$host_os dld.sl"
16584      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16585      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16586      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587      soname_spec='${libname}${release}${shared_ext}$major'
16588      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16589      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16590      ;;
16591    *)
16592     shrext_cmds='.sl'
16593     dynamic_linker="$host_os dld.sl"
16594     shlibpath_var=SHLIB_PATH
16595     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597     soname_spec='${libname}${release}${shared_ext}$major'
16598     ;;
16599   esac
16600   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16601   postinstall_cmds='chmod 555 $lib'
16602   ;;
16603
16604 interix[3-9]*)
16605   version_type=linux
16606   need_lib_prefix=no
16607   need_version=no
16608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16609   soname_spec='${libname}${release}${shared_ext}$major'
16610   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16611   shlibpath_var=LD_LIBRARY_PATH
16612   shlibpath_overrides_runpath=no
16613   hardcode_into_libs=yes
16614   ;;
16615
16616 irix5* | irix6* | nonstopux*)
16617   case $host_os in
16618     nonstopux*) version_type=nonstopux ;;
16619     *)
16620         if test "$lt_cv_prog_gnu_ld" = yes; then
16621                 version_type=linux
16622         else
16623                 version_type=irix
16624         fi ;;
16625   esac
16626   need_lib_prefix=no
16627   need_version=no
16628   soname_spec='${libname}${release}${shared_ext}$major'
16629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16630   case $host_os in
16631   irix5* | nonstopux*)
16632     libsuff= shlibsuff=
16633     ;;
16634   *)
16635     case $LD in # libtool.m4 will add one of these switches to LD
16636     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16637       libsuff= shlibsuff= libmagic=32-bit;;
16638     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16639       libsuff=32 shlibsuff=N32 libmagic=N32;;
16640     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16641       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16642     *) libsuff= shlibsuff= libmagic=never-match;;
16643     esac
16644     ;;
16645   esac
16646   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16647   shlibpath_overrides_runpath=no
16648   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16649   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16650   hardcode_into_libs=yes
16651   ;;
16652
16653 # No shared lib support for Linux oldld, aout, or coff.
16654 linux*oldld* | linux*aout* | linux*coff*)
16655   dynamic_linker=no
16656   ;;
16657
16658 # This must be Linux ELF.
16659 linux* | k*bsd*-gnu)
16660   version_type=linux
16661   need_lib_prefix=no
16662   need_version=no
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664   soname_spec='${libname}${release}${shared_ext}$major'
16665   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16666   shlibpath_var=LD_LIBRARY_PATH
16667   shlibpath_overrides_runpath=no
16668   # This implies no fast_install, which is unacceptable.
16669   # Some rework will be needed to allow for fast_install
16670   # before this can be enabled.
16671   hardcode_into_libs=yes
16672
16673   # Append ld.so.conf contents to the search path
16674   if test -f /etc/ld.so.conf; then
16675     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16676     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16677   fi
16678
16679   # We used to test for /lib/ld.so.1 and disable shared libraries on
16680   # powerpc, because MkLinux only supported shared libraries with the
16681   # GNU dynamic linker.  Since this was broken with cross compilers,
16682   # most powerpc-linux boxes support dynamic linking these days and
16683   # people can always --disable-shared, the test was removed, and we
16684   # assume the GNU/Linux dynamic linker is in use.
16685   dynamic_linker='GNU/Linux ld.so'
16686   ;;
16687
16688 netbsdelf*-gnu)
16689   version_type=linux
16690   need_lib_prefix=no
16691   need_version=no
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   shlibpath_overrides_runpath=no
16696   hardcode_into_libs=yes
16697   dynamic_linker='NetBSD ld.elf_so'
16698   ;;
16699
16700 netbsd*)
16701   version_type=sunos
16702   need_lib_prefix=no
16703   need_version=no
16704   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16707     dynamic_linker='NetBSD (a.out) ld.so'
16708   else
16709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16710     soname_spec='${libname}${release}${shared_ext}$major'
16711     dynamic_linker='NetBSD ld.elf_so'
16712   fi
16713   shlibpath_var=LD_LIBRARY_PATH
16714   shlibpath_overrides_runpath=yes
16715   hardcode_into_libs=yes
16716   ;;
16717
16718 newsos6)
16719   version_type=linux
16720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16721   shlibpath_var=LD_LIBRARY_PATH
16722   shlibpath_overrides_runpath=yes
16723   ;;
16724
16725 nto-qnx*)
16726   version_type=linux
16727   need_lib_prefix=no
16728   need_version=no
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   shlibpath_overrides_runpath=yes
16733   ;;
16734
16735 openbsd*)
16736   version_type=sunos
16737   sys_lib_dlsearch_path_spec="/usr/lib"
16738   need_lib_prefix=no
16739   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16740   case $host_os in
16741     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16742     *)                         need_version=no  ;;
16743   esac
16744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16746   shlibpath_var=LD_LIBRARY_PATH
16747   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16748     case $host_os in
16749       openbsd2.[89] | openbsd2.[89].*)
16750         shlibpath_overrides_runpath=no
16751         ;;
16752       *)
16753         shlibpath_overrides_runpath=yes
16754         ;;
16755       esac
16756   else
16757     shlibpath_overrides_runpath=yes
16758   fi
16759   ;;
16760
16761 os2*)
16762   libname_spec='$name'
16763   shrext_cmds=".dll"
16764   need_lib_prefix=no
16765   library_names_spec='$libname${shared_ext} $libname.a'
16766   dynamic_linker='OS/2 ld.exe'
16767   shlibpath_var=LIBPATH
16768   ;;
16769
16770 osf3* | osf4* | osf5*)
16771   version_type=osf
16772   need_lib_prefix=no
16773   need_version=no
16774   soname_spec='${libname}${release}${shared_ext}$major'
16775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776   shlibpath_var=LD_LIBRARY_PATH
16777   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16778   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16779   ;;
16780
16781 rdos*)
16782   dynamic_linker=no
16783   ;;
16784
16785 solaris*)
16786   version_type=linux
16787   need_lib_prefix=no
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   shlibpath_overrides_runpath=yes
16793   hardcode_into_libs=yes
16794   # ldd complains unless libraries are executable
16795   postinstall_cmds='chmod +x $lib'
16796   ;;
16797
16798 sunos4*)
16799   version_type=sunos
16800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16801   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16802   shlibpath_var=LD_LIBRARY_PATH
16803   shlibpath_overrides_runpath=yes
16804   if test "$with_gnu_ld" = yes; then
16805     need_lib_prefix=no
16806   fi
16807   need_version=yes
16808   ;;
16809
16810 sysv4 | sysv4.3*)
16811   version_type=linux
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   case $host_vendor in
16816     sni)
16817       shlibpath_overrides_runpath=no
16818       need_lib_prefix=no
16819       export_dynamic_flag_spec='${wl}-Blargedynsym'
16820       runpath_var=LD_RUN_PATH
16821       ;;
16822     siemens)
16823       need_lib_prefix=no
16824       ;;
16825     motorola)
16826       need_lib_prefix=no
16827       need_version=no
16828       shlibpath_overrides_runpath=no
16829       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16830       ;;
16831   esac
16832   ;;
16833
16834 sysv4*MP*)
16835   if test -d /usr/nec ;then
16836     version_type=linux
16837     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16838     soname_spec='$libname${shared_ext}.$major'
16839     shlibpath_var=LD_LIBRARY_PATH
16840   fi
16841   ;;
16842
16843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16844   version_type=freebsd-elf
16845   need_lib_prefix=no
16846   need_version=no
16847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16848   soname_spec='${libname}${release}${shared_ext}$major'
16849   shlibpath_var=LD_LIBRARY_PATH
16850   hardcode_into_libs=yes
16851   if test "$with_gnu_ld" = yes; then
16852     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16853     shlibpath_overrides_runpath=no
16854   else
16855     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16856     shlibpath_overrides_runpath=yes
16857     case $host_os in
16858       sco3.2v5*)
16859         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16860         ;;
16861     esac
16862   fi
16863   sys_lib_dlsearch_path_spec='/usr/lib'
16864   ;;
16865
16866 uts4*)
16867   version_type=linux
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869   soname_spec='${libname}${release}${shared_ext}$major'
16870   shlibpath_var=LD_LIBRARY_PATH
16871   ;;
16872
16873 *)
16874   dynamic_linker=no
16875   ;;
16876 esac
16877 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16878 echo "${ECHO_T}$dynamic_linker" >&6; }
16879 test "$dynamic_linker" = no && can_build_shared=no
16880
16881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16885 fi
16886
16887 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16888 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16892 fi
16893
16894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16895
16896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16897 if test "$GCC" = yes; then
16898   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16899 fi
16900
16901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16903 hardcode_action=
16904 if test -n "$hardcode_libdir_flag_spec" || \
16905    test -n "$runpath_var" || \
16906    test "X$hardcode_automatic" = "Xyes" ; then
16907
16908   # We can hardcode non-existant directories.
16909   if test "$hardcode_direct" != no &&
16910      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16911      # have to relink, otherwise we might link with an installed library
16912      # when we should be linking with a yet-to-be-installed one
16913      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16914      test "$hardcode_minus_L" != no; then
16915     # Linking always hardcodes the temporary library directory.
16916     hardcode_action=relink
16917   else
16918     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16919     hardcode_action=immediate
16920   fi
16921 else
16922   # We cannot hardcode anything, or else we can only hardcode existing
16923   # directories.
16924   hardcode_action=unsupported
16925 fi
16926 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16927 echo "${ECHO_T}$hardcode_action" >&6; }
16928
16929 if test "$hardcode_action" = relink; then
16930   # Fast installation is not supported
16931   enable_fast_install=no
16932 elif test "$shlibpath_overrides_runpath" = yes ||
16933      test "$enable_shared" = no; then
16934   # Fast installation is not necessary
16935   enable_fast_install=needless
16936 fi
16937
16938 striplib=
16939 old_striplib=
16940 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16941 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16942 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16943   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16944   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16945   { echo "$as_me:$LINENO: result: yes" >&5
16946 echo "${ECHO_T}yes" >&6; }
16947 else
16948 # FIXME - insert some real tests, host_os isn't really good enough
16949   case $host_os in
16950    darwin*)
16951        if test -n "$STRIP" ; then
16952          striplib="$STRIP -x"
16953          old_striplib="$STRIP -S"
16954          { echo "$as_me:$LINENO: result: yes" >&5
16955 echo "${ECHO_T}yes" >&6; }
16956        else
16957   { echo "$as_me:$LINENO: result: no" >&5
16958 echo "${ECHO_T}no" >&6; }
16959 fi
16960        ;;
16961    *)
16962   { echo "$as_me:$LINENO: result: no" >&5
16963 echo "${ECHO_T}no" >&6; }
16964     ;;
16965   esac
16966 fi
16967
16968 if test "x$enable_dlopen" != xyes; then
16969   enable_dlopen=unknown
16970   enable_dlopen_self=unknown
16971   enable_dlopen_self_static=unknown
16972 else
16973   lt_cv_dlopen=no
16974   lt_cv_dlopen_libs=
16975
16976   case $host_os in
16977   beos*)
16978     lt_cv_dlopen="load_add_on"
16979     lt_cv_dlopen_libs=
16980     lt_cv_dlopen_self=yes
16981     ;;
16982
16983   mingw* | pw32*)
16984     lt_cv_dlopen="LoadLibrary"
16985     lt_cv_dlopen_libs=
16986    ;;
16987
16988   cygwin*)
16989     lt_cv_dlopen="dlopen"
16990     lt_cv_dlopen_libs=
16991    ;;
16992
16993   darwin*)
16994   # if libdl is installed we need to link against it
16995     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   ac_check_lib_save_LIBS=$LIBS
17001 LIBS="-ldl  $LIBS"
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h.  */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h.  */
17008
17009 /* Override any GCC internal prototype to avoid an error.
17010    Use char because int might match the return type of a GCC
17011    builtin and then its argument prototype would still apply.  */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char dlopen ();
17016 int
17017 main ()
17018 {
17019 return dlopen ();
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (ac_try="$ac_link"
17026 case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_link") 2>conftest.er1
17032   ac_status=$?
17033   grep -v '^ *+' conftest.er1 >conftest.err
17034   rm -f conftest.er1
17035   cat conftest.err >&5
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } && {
17038          test -z "$ac_c_werror_flag" ||
17039          test ! -s conftest.err
17040        } && test -s conftest$ac_exeext &&
17041        $as_test_x conftest$ac_exeext; then
17042   ac_cv_lib_dl_dlopen=yes
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         ac_cv_lib_dl_dlopen=no
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17051       conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17053 fi
17054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17056 if test $ac_cv_lib_dl_dlopen = yes; then
17057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17058 else
17059
17060     lt_cv_dlopen="dyld"
17061     lt_cv_dlopen_libs=
17062     lt_cv_dlopen_self=yes
17063
17064 fi
17065
17066    ;;
17067
17068   *)
17069     { echo "$as_me:$LINENO: checking for shl_load" >&5
17070 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17071 if test "${ac_cv_func_shl_load+set}" = set; then
17072   echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17082 #define shl_load innocuous_shl_load
17083
17084 /* System header to define __stub macros and hopefully few prototypes,
17085     which can conflict with char shl_load (); below.
17086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17087     <limits.h> exists even on freestanding compilers.  */
17088
17089 #ifdef __STDC__
17090 # include <limits.h>
17091 #else
17092 # include <assert.h>
17093 #endif
17094
17095 #undef shl_load
17096
17097 /* Override any GCC internal prototype to avoid an error.
17098    Use char because int might match the return type of a GCC
17099    builtin and then its argument prototype would still apply.  */
17100 #ifdef __cplusplus
17101 extern "C"
17102 #endif
17103 char shl_load ();
17104 /* The GNU C library defines this for functions which it implements
17105     to always fail with ENOSYS.  Some functions are actually named
17106     something starting with __ and the normal name is an alias.  */
17107 #if defined __stub_shl_load || defined __stub___shl_load
17108 choke me
17109 #endif
17110
17111 int
17112 main ()
17113 {
17114 return shl_load ();
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123   *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126   (eval "$ac_link") 2>conftest.er1
17127   ac_status=$?
17128   grep -v '^ *+' conftest.er1 >conftest.err
17129   rm -f conftest.er1
17130   cat conftest.err >&5
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); } && {
17133          test -z "$ac_c_werror_flag" ||
17134          test ! -s conftest.err
17135        } && test -s conftest$ac_exeext &&
17136        $as_test_x conftest$ac_exeext; then
17137   ac_cv_func_shl_load=yes
17138 else
17139   echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142         ac_cv_func_shl_load=no
17143 fi
17144
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146       conftest$ac_exeext conftest.$ac_ext
17147 fi
17148 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17149 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17150 if test $ac_cv_func_shl_load = yes; then
17151   lt_cv_dlopen="shl_load"
17152 else
17153   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17154 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-ldld  $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166
17167 /* Override any GCC internal prototype to avoid an error.
17168    Use char because int might match the return type of a GCC
17169    builtin and then its argument prototype would still apply.  */
17170 #ifdef __cplusplus
17171 extern "C"
17172 #endif
17173 char shl_load ();
17174 int
17175 main ()
17176 {
17177 return shl_load ();
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189   (eval "$ac_link") 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && {
17196          test -z "$ac_c_werror_flag" ||
17197          test ! -s conftest.err
17198        } && test -s conftest$ac_exeext &&
17199        $as_test_x conftest$ac_exeext; then
17200   ac_cv_lib_dld_shl_load=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205         ac_cv_lib_dld_shl_load=no
17206 fi
17207
17208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17209       conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17211 fi
17212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17213 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17214 if test $ac_cv_lib_dld_shl_load = yes; then
17215   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17216 else
17217   { echo "$as_me:$LINENO: checking for dlopen" >&5
17218 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17219 if test "${ac_cv_func_dlopen+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222   cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h.  */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h.  */
17228 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17230 #define dlopen innocuous_dlopen
17231
17232 /* System header to define __stub macros and hopefully few prototypes,
17233     which can conflict with char dlopen (); below.
17234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17235     <limits.h> exists even on freestanding compilers.  */
17236
17237 #ifdef __STDC__
17238 # include <limits.h>
17239 #else
17240 # include <assert.h>
17241 #endif
17242
17243 #undef dlopen
17244
17245 /* Override any GCC internal prototype to avoid an error.
17246    Use char because int might match the return type of a GCC
17247    builtin and then its argument prototype would still apply.  */
17248 #ifdef __cplusplus
17249 extern "C"
17250 #endif
17251 char dlopen ();
17252 /* The GNU C library defines this for functions which it implements
17253     to always fail with ENOSYS.  Some functions are actually named
17254     something starting with __ and the normal name is an alias.  */
17255 #if defined __stub_dlopen || defined __stub___dlopen
17256 choke me
17257 #endif
17258
17259 int
17260 main ()
17261 {
17262 return dlopen ();
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_link") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } && {
17281          test -z "$ac_c_werror_flag" ||
17282          test ! -s conftest.err
17283        } && test -s conftest$ac_exeext &&
17284        $as_test_x conftest$ac_exeext; then
17285   ac_cv_func_dlopen=yes
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290         ac_cv_func_dlopen=no
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17294       conftest$ac_exeext conftest.$ac_ext
17295 fi
17296 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17297 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17298 if test $ac_cv_func_dlopen = yes; then
17299   lt_cv_dlopen="dlopen"
17300 else
17301   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17302 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17303 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   ac_check_lib_save_LIBS=$LIBS
17307 LIBS="-ldl  $LIBS"
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314
17315 /* Override any GCC internal prototype to avoid an error.
17316    Use char because int might match the return type of a GCC
17317    builtin and then its argument prototype would still apply.  */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char dlopen ();
17322 int
17323 main ()
17324 {
17325 return dlopen ();
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_link") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } && {
17344          test -z "$ac_c_werror_flag" ||
17345          test ! -s conftest.err
17346        } && test -s conftest$ac_exeext &&
17347        $as_test_x conftest$ac_exeext; then
17348   ac_cv_lib_dl_dlopen=yes
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353         ac_cv_lib_dl_dlopen=no
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17357       conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17359 fi
17360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17362 if test $ac_cv_lib_dl_dlopen = yes; then
17363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17364 else
17365   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   ac_check_lib_save_LIBS=$LIBS
17371 LIBS="-lsvld  $LIBS"
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378
17379 /* Override any GCC internal prototype to avoid an error.
17380    Use char because int might match the return type of a GCC
17381    builtin and then its argument prototype would still apply.  */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 char dlopen ();
17386 int
17387 main ()
17388 {
17389 return dlopen ();
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (ac_try="$ac_link"
17396 case "(($ac_try" in
17397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398   *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401   (eval "$ac_link") 2>conftest.er1
17402   ac_status=$?
17403   grep -v '^ *+' conftest.er1 >conftest.err
17404   rm -f conftest.er1
17405   cat conftest.err >&5
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); } && {
17408          test -z "$ac_c_werror_flag" ||
17409          test ! -s conftest.err
17410        } && test -s conftest$ac_exeext &&
17411        $as_test_x conftest$ac_exeext; then
17412   ac_cv_lib_svld_dlopen=yes
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         ac_cv_lib_svld_dlopen=no
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17421       conftest$ac_exeext conftest.$ac_ext
17422 LIBS=$ac_check_lib_save_LIBS
17423 fi
17424 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17425 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17426 if test $ac_cv_lib_svld_dlopen = yes; then
17427   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17428 else
17429   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17430 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17431 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17432   echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434   ac_check_lib_save_LIBS=$LIBS
17435 LIBS="-ldld  $LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442
17443 /* Override any GCC internal prototype to avoid an error.
17444    Use char because int might match the return type of a GCC
17445    builtin and then its argument prototype would still apply.  */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 char dld_link ();
17450 int
17451 main ()
17452 {
17453 return dld_link ();
17454   ;
17455   return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_link") 2>conftest.er1
17466   ac_status=$?
17467   grep -v '^ *+' conftest.er1 >conftest.err
17468   rm -f conftest.er1
17469   cat conftest.err >&5
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } && {
17472          test -z "$ac_c_werror_flag" ||
17473          test ! -s conftest.err
17474        } && test -s conftest$ac_exeext &&
17475        $as_test_x conftest$ac_exeext; then
17476   ac_cv_lib_dld_dld_link=yes
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481         ac_cv_lib_dld_dld_link=no
17482 fi
17483
17484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17485       conftest$ac_exeext conftest.$ac_ext
17486 LIBS=$ac_check_lib_save_LIBS
17487 fi
17488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17489 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17490 if test $ac_cv_lib_dld_dld_link = yes; then
17491   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17492 fi
17493
17494
17495 fi
17496
17497
17498 fi
17499
17500
17501 fi
17502
17503
17504 fi
17505
17506
17507 fi
17508
17509     ;;
17510   esac
17511
17512   if test "x$lt_cv_dlopen" != xno; then
17513     enable_dlopen=yes
17514   else
17515     enable_dlopen=no
17516   fi
17517
17518   case $lt_cv_dlopen in
17519   dlopen)
17520     save_CPPFLAGS="$CPPFLAGS"
17521     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17522
17523     save_LDFLAGS="$LDFLAGS"
17524     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17525
17526     save_LIBS="$LIBS"
17527     LIBS="$lt_cv_dlopen_libs $LIBS"
17528
17529     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17530 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17531 if test "${lt_cv_dlopen_self+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534           if test "$cross_compiling" = yes; then :
17535   lt_cv_dlopen_self=cross
17536 else
17537   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17538   lt_status=$lt_dlunknown
17539   cat > conftest.$ac_ext <<EOF
17540 #line 17540 "configure"
17541 #include "confdefs.h"
17542
17543 #if HAVE_DLFCN_H
17544 #include <dlfcn.h>
17545 #endif
17546
17547 #include <stdio.h>
17548
17549 #ifdef RTLD_GLOBAL
17550 #  define LT_DLGLOBAL           RTLD_GLOBAL
17551 #else
17552 #  ifdef DL_GLOBAL
17553 #    define LT_DLGLOBAL         DL_GLOBAL
17554 #  else
17555 #    define LT_DLGLOBAL         0
17556 #  endif
17557 #endif
17558
17559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17560    find out it does not work in some platform. */
17561 #ifndef LT_DLLAZY_OR_NOW
17562 #  ifdef RTLD_LAZY
17563 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17564 #  else
17565 #    ifdef DL_LAZY
17566 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17567 #    else
17568 #      ifdef RTLD_NOW
17569 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17570 #      else
17571 #        ifdef DL_NOW
17572 #          define LT_DLLAZY_OR_NOW      DL_NOW
17573 #        else
17574 #          define LT_DLLAZY_OR_NOW      0
17575 #        endif
17576 #      endif
17577 #    endif
17578 #  endif
17579 #endif
17580
17581 #ifdef __cplusplus
17582 extern "C" void exit (int);
17583 #endif
17584
17585 void fnord() { int i=42;}
17586 int main ()
17587 {
17588   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17589   int status = $lt_dlunknown;
17590
17591   if (self)
17592     {
17593       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17594       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17595       /* dlclose (self); */
17596     }
17597   else
17598     puts (dlerror ());
17599
17600     exit (status);
17601 }
17602 EOF
17603   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17604   (eval $ac_link) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17608     (./conftest; exit; ) >&5 2>/dev/null
17609     lt_status=$?
17610     case x$lt_status in
17611       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17612       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17613       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17614     esac
17615   else :
17616     # compilation failed
17617     lt_cv_dlopen_self=no
17618   fi
17619 fi
17620 rm -fr conftest*
17621
17622
17623 fi
17624 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17625 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17626
17627     if test "x$lt_cv_dlopen_self" = xyes; then
17628       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17629       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17630 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17631 if test "${lt_cv_dlopen_self_static+set}" = set; then
17632   echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634           if test "$cross_compiling" = yes; then :
17635   lt_cv_dlopen_self_static=cross
17636 else
17637   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17638   lt_status=$lt_dlunknown
17639   cat > conftest.$ac_ext <<EOF
17640 #line 17640 "configure"
17641 #include "confdefs.h"
17642
17643 #if HAVE_DLFCN_H
17644 #include <dlfcn.h>
17645 #endif
17646
17647 #include <stdio.h>
17648
17649 #ifdef RTLD_GLOBAL
17650 #  define LT_DLGLOBAL           RTLD_GLOBAL
17651 #else
17652 #  ifdef DL_GLOBAL
17653 #    define LT_DLGLOBAL         DL_GLOBAL
17654 #  else
17655 #    define LT_DLGLOBAL         0
17656 #  endif
17657 #endif
17658
17659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17660    find out it does not work in some platform. */
17661 #ifndef LT_DLLAZY_OR_NOW
17662 #  ifdef RTLD_LAZY
17663 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17664 #  else
17665 #    ifdef DL_LAZY
17666 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17667 #    else
17668 #      ifdef RTLD_NOW
17669 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17670 #      else
17671 #        ifdef DL_NOW
17672 #          define LT_DLLAZY_OR_NOW      DL_NOW
17673 #        else
17674 #          define LT_DLLAZY_OR_NOW      0
17675 #        endif
17676 #      endif
17677 #    endif
17678 #  endif
17679 #endif
17680
17681 #ifdef __cplusplus
17682 extern "C" void exit (int);
17683 #endif
17684
17685 void fnord() { int i=42;}
17686 int main ()
17687 {
17688   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17689   int status = $lt_dlunknown;
17690
17691   if (self)
17692     {
17693       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17694       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17695       /* dlclose (self); */
17696     }
17697   else
17698     puts (dlerror ());
17699
17700     exit (status);
17701 }
17702 EOF
17703   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704   (eval $ac_link) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17708     (./conftest; exit; ) >&5 2>/dev/null
17709     lt_status=$?
17710     case x$lt_status in
17711       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17712       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17713       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17714     esac
17715   else :
17716     # compilation failed
17717     lt_cv_dlopen_self_static=no
17718   fi
17719 fi
17720 rm -fr conftest*
17721
17722
17723 fi
17724 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17725 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17726     fi
17727
17728     CPPFLAGS="$save_CPPFLAGS"
17729     LDFLAGS="$save_LDFLAGS"
17730     LIBS="$save_LIBS"
17731     ;;
17732   esac
17733
17734   case $lt_cv_dlopen_self in
17735   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17736   *) enable_dlopen_self=unknown ;;
17737   esac
17738
17739   case $lt_cv_dlopen_self_static in
17740   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17741   *) enable_dlopen_self_static=unknown ;;
17742   esac
17743 fi
17744
17745
17746 # Report which library types will actually be built
17747 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17749 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17750 echo "${ECHO_T}$can_build_shared" >&6; }
17751
17752 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17754 test "$can_build_shared" = "no" && enable_shared=no
17755
17756 # On AIX, shared libraries and static libraries use the same namespace, and
17757 # are all built from PIC.
17758 case $host_os in
17759 aix3*)
17760   test "$enable_shared" = yes && enable_static=no
17761   if test -n "$RANLIB"; then
17762     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17763     postinstall_cmds='$RANLIB $lib'
17764   fi
17765   ;;
17766
17767 aix[4-9]*)
17768   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17769     test "$enable_shared" = yes && enable_static=no
17770   fi
17771     ;;
17772 esac
17773 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17774 echo "${ECHO_T}$enable_shared" >&6; }
17775
17776 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17777 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17778 # Make sure either enable_shared or enable_static is yes.
17779 test "$enable_shared" = yes || enable_static=yes
17780 { echo "$as_me:$LINENO: result: $enable_static" >&5
17781 echo "${ECHO_T}$enable_static" >&6; }
17782
17783 # The else clause should only fire when bootstrapping the
17784 # libtool distribution, otherwise you forgot to ship ltmain.sh
17785 # with your package, and you will get complaints that there are
17786 # no rules to generate ltmain.sh.
17787 if test -f "$ltmain"; then
17788   # See if we are running on zsh, and set the options which allow our commands through
17789   # without removal of \ escapes.
17790   if test -n "${ZSH_VERSION+set}" ; then
17791     setopt NO_GLOB_SUBST
17792   fi
17793   # Now quote all the things that may contain metacharacters while being
17794   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17795   # variables and quote the copies for generation of the libtool script.
17796   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17797     SED SHELL STRIP \
17798     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800     deplibs_check_method reload_flag reload_cmds need_locks \
17801     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802     lt_cv_sys_global_symbol_to_c_name_address \
17803     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804     old_postinstall_cmds old_postuninstall_cmds \
17805     compiler \
17806     CC \
17807     LD \
17808     lt_prog_compiler_wl \
17809     lt_prog_compiler_pic \
17810     lt_prog_compiler_static \
17811     lt_prog_compiler_no_builtin_flag \
17812     export_dynamic_flag_spec \
17813     thread_safe_flag_spec \
17814     whole_archive_flag_spec \
17815     enable_shared_with_static_runtimes \
17816     old_archive_cmds \
17817     old_archive_from_new_cmds \
17818     predep_objects \
17819     postdep_objects \
17820     predeps \
17821     postdeps \
17822     compiler_lib_search_path \
17823     compiler_lib_search_dirs \
17824     archive_cmds \
17825     archive_expsym_cmds \
17826     postinstall_cmds \
17827     postuninstall_cmds \
17828     old_archive_from_expsyms_cmds \
17829     allow_undefined_flag \
17830     no_undefined_flag \
17831     export_symbols_cmds \
17832     hardcode_libdir_flag_spec \
17833     hardcode_libdir_flag_spec_ld \
17834     hardcode_libdir_separator \
17835     hardcode_automatic \
17836     module_cmds \
17837     module_expsym_cmds \
17838     lt_cv_prog_compiler_c_o \
17839     fix_srcfile_path \
17840     exclude_expsyms \
17841     include_expsyms; do
17842
17843     case $var in
17844     old_archive_cmds | \
17845     old_archive_from_new_cmds | \
17846     archive_cmds | \
17847     archive_expsym_cmds | \
17848     module_cmds | \
17849     module_expsym_cmds | \
17850     old_archive_from_expsyms_cmds | \
17851     export_symbols_cmds | \
17852     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17853     postinstall_cmds | postuninstall_cmds | \
17854     old_postinstall_cmds | old_postuninstall_cmds | \
17855     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17856       # Double-quote double-evaled strings.
17857       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17858       ;;
17859     *)
17860       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17861       ;;
17862     esac
17863   done
17864
17865   case $lt_echo in
17866   *'\$0 --fallback-echo"')
17867     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17868     ;;
17869   esac
17870
17871 cfgfile="${ofile}T"
17872   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17873   $rm -f "$cfgfile"
17874   { echo "$as_me:$LINENO: creating $ofile" >&5
17875 echo "$as_me: creating $ofile" >&6;}
17876
17877   cat <<__EOF__ >> "$cfgfile"
17878 #! $SHELL
17879
17880 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17881 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17883 #
17884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17885 # Free Software Foundation, Inc.
17886 #
17887 # This file is part of GNU Libtool:
17888 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17889 #
17890 # This program is free software; you can redistribute it and/or modify
17891 # it under the terms of the GNU General Public License as published by
17892 # the Free Software Foundation; either version 2 of the License, or
17893 # (at your option) any later version.
17894 #
17895 # This program is distributed in the hope that it will be useful, but
17896 # WITHOUT ANY WARRANTY; without even the implied warranty of
17897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17898 # General Public License for more details.
17899 #
17900 # You should have received a copy of the GNU General Public License
17901 # along with this program; if not, write to the Free Software
17902 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17903 #
17904 # As a special exception to the GNU General Public License, if you
17905 # distribute this file as part of a program that contains a
17906 # configuration script generated by Autoconf, you may include it under
17907 # the same distribution terms that you use for the rest of that program.
17908
17909 # A sed program that does not truncate output.
17910 SED=$lt_SED
17911
17912 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17913 Xsed="$SED -e 1s/^X//"
17914
17915 # The HP-UX ksh and POSIX shell print the target directory to stdout
17916 # if CDPATH is set.
17917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17918
17919 # The names of the tagged configurations supported by this script.
17920 available_tags=
17921
17922 # ### BEGIN LIBTOOL CONFIG
17923
17924 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17925
17926 # Shell to use when invoking shell scripts.
17927 SHELL=$lt_SHELL
17928
17929 # Whether or not to build shared libraries.
17930 build_libtool_libs=$enable_shared
17931
17932 # Whether or not to build static libraries.
17933 build_old_libs=$enable_static
17934
17935 # Whether or not to add -lc for building shared libraries.
17936 build_libtool_need_lc=$archive_cmds_need_lc
17937
17938 # Whether or not to disallow shared libs when runtime libs are static
17939 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17940
17941 # Whether or not to optimize for fast installation.
17942 fast_install=$enable_fast_install
17943
17944 # The host system.
17945 host_alias=$host_alias
17946 host=$host
17947 host_os=$host_os
17948
17949 # The build system.
17950 build_alias=$build_alias
17951 build=$build
17952 build_os=$build_os
17953
17954 # An echo program that does not interpret backslashes.
17955 echo=$lt_echo
17956
17957 # The archiver.
17958 AR=$lt_AR
17959 AR_FLAGS=$lt_AR_FLAGS
17960
17961 # A C compiler.
17962 LTCC=$lt_LTCC
17963
17964 # LTCC compiler flags.
17965 LTCFLAGS=$lt_LTCFLAGS
17966
17967 # A language-specific compiler.
17968 CC=$lt_compiler
17969
17970 # Is the compiler the GNU C compiler?
17971 with_gcc=$GCC
17972
17973 # An ERE matcher.
17974 EGREP=$lt_EGREP
17975
17976 # The linker used to build libraries.
17977 LD=$lt_LD
17978
17979 # Whether we need hard or soft links.
17980 LN_S=$lt_LN_S
17981
17982 # A BSD-compatible nm program.
17983 NM=$lt_NM
17984
17985 # A symbol stripping program
17986 STRIP=$lt_STRIP
17987
17988 # Used to examine libraries when file_magic_cmd begins "file"
17989 MAGIC_CMD=$MAGIC_CMD
17990
17991 # Used on cygwin: DLL creation program.
17992 DLLTOOL="$DLLTOOL"
17993
17994 # Used on cygwin: object dumper.
17995 OBJDUMP="$OBJDUMP"
17996
17997 # Used on cygwin: assembler.
17998 AS="$AS"
17999
18000 # The name of the directory that contains temporary libtool files.
18001 objdir=$objdir
18002
18003 # How to create reloadable object files.
18004 reload_flag=$lt_reload_flag
18005 reload_cmds=$lt_reload_cmds
18006
18007 # How to pass a linker flag through the compiler.
18008 wl=$lt_lt_prog_compiler_wl
18009
18010 # Object file suffix (normally "o").
18011 objext="$ac_objext"
18012
18013 # Old archive suffix (normally "a").
18014 libext="$libext"
18015
18016 # Shared library suffix (normally ".so").
18017 shrext_cmds='$shrext_cmds'
18018
18019 # Executable file suffix (normally "").
18020 exeext="$exeext"
18021
18022 # Additional compiler flags for building library objects.
18023 pic_flag=$lt_lt_prog_compiler_pic
18024 pic_mode=$pic_mode
18025
18026 # What is the maximum length of a command?
18027 max_cmd_len=$lt_cv_sys_max_cmd_len
18028
18029 # Does compiler simultaneously support -c and -o options?
18030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18031
18032 # Must we lock files when doing compilation?
18033 need_locks=$lt_need_locks
18034
18035 # Do we need the lib prefix for modules?
18036 need_lib_prefix=$need_lib_prefix
18037
18038 # Do we need a version for libraries?
18039 need_version=$need_version
18040
18041 # Whether dlopen is supported.
18042 dlopen_support=$enable_dlopen
18043
18044 # Whether dlopen of programs is supported.
18045 dlopen_self=$enable_dlopen_self
18046
18047 # Whether dlopen of statically linked programs is supported.
18048 dlopen_self_static=$enable_dlopen_self_static
18049
18050 # Compiler flag to prevent dynamic linking.
18051 link_static_flag=$lt_lt_prog_compiler_static
18052
18053 # Compiler flag to turn off builtin functions.
18054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18055
18056 # Compiler flag to allow reflexive dlopens.
18057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18058
18059 # Compiler flag to generate shared objects directly from archives.
18060 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18061
18062 # Compiler flag to generate thread-safe objects.
18063 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18064
18065 # Library versioning type.
18066 version_type=$version_type
18067
18068 # Format of library name prefix.
18069 libname_spec=$lt_libname_spec
18070
18071 # List of archive names.  First name is the real one, the rest are links.
18072 # The last name is the one that the linker finds with -lNAME.
18073 library_names_spec=$lt_library_names_spec
18074
18075 # The coded name of the library, if different from the real name.
18076 soname_spec=$lt_soname_spec
18077
18078 # Commands used to build and install an old-style archive.
18079 RANLIB=$lt_RANLIB
18080 old_archive_cmds=$lt_old_archive_cmds
18081 old_postinstall_cmds=$lt_old_postinstall_cmds
18082 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18083
18084 # Create an old-style archive from a shared archive.
18085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18086
18087 # Create a temporary old-style archive to link instead of a shared archive.
18088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18089
18090 # Commands used to build and install a shared archive.
18091 archive_cmds=$lt_archive_cmds
18092 archive_expsym_cmds=$lt_archive_expsym_cmds
18093 postinstall_cmds=$lt_postinstall_cmds
18094 postuninstall_cmds=$lt_postuninstall_cmds
18095
18096 # Commands used to build a loadable module (assumed same as above if empty)
18097 module_cmds=$lt_module_cmds
18098 module_expsym_cmds=$lt_module_expsym_cmds
18099
18100 # Commands to strip libraries.
18101 old_striplib=$lt_old_striplib
18102 striplib=$lt_striplib
18103
18104 # Dependencies to place before the objects being linked to create a
18105 # shared library.
18106 predep_objects=$lt_predep_objects
18107
18108 # Dependencies to place after the objects being linked to create a
18109 # shared library.
18110 postdep_objects=$lt_postdep_objects
18111
18112 # Dependencies to place before the objects being linked to create a
18113 # shared library.
18114 predeps=$lt_predeps
18115
18116 # Dependencies to place after the objects being linked to create a
18117 # shared library.
18118 postdeps=$lt_postdeps
18119
18120 # The directories searched by this compiler when creating a shared
18121 # library
18122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18123
18124 # The library search path used internally by the compiler when linking
18125 # a shared library.
18126 compiler_lib_search_path=$lt_compiler_lib_search_path
18127
18128 # Method to check whether dependent libraries are shared objects.
18129 deplibs_check_method=$lt_deplibs_check_method
18130
18131 # Command to use when deplibs_check_method == file_magic.
18132 file_magic_cmd=$lt_file_magic_cmd
18133
18134 # Flag that allows shared libraries with undefined symbols to be built.
18135 allow_undefined_flag=$lt_allow_undefined_flag
18136
18137 # Flag that forces no undefined symbols.
18138 no_undefined_flag=$lt_no_undefined_flag
18139
18140 # Commands used to finish a libtool library installation in a directory.
18141 finish_cmds=$lt_finish_cmds
18142
18143 # Same as above, but a single script fragment to be evaled but not shown.
18144 finish_eval=$lt_finish_eval
18145
18146 # Take the output of nm and produce a listing of raw symbols and C names.
18147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18148
18149 # Transform the output of nm in a proper C declaration
18150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18151
18152 # Transform the output of nm in a C name address pair
18153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18154
18155 # This is the shared library runtime path variable.
18156 runpath_var=$runpath_var
18157
18158 # This is the shared library path variable.
18159 shlibpath_var=$shlibpath_var
18160
18161 # Is shlibpath searched before the hard-coded library search path?
18162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18163
18164 # How to hardcode a shared library path into an executable.
18165 hardcode_action=$hardcode_action
18166
18167 # Whether we should hardcode library paths into libraries.
18168 hardcode_into_libs=$hardcode_into_libs
18169
18170 # Flag to hardcode \$libdir into a binary during linking.
18171 # This must work even if \$libdir does not exist.
18172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18173
18174 # If ld is used when linking, flag to hardcode \$libdir into
18175 # a binary during linking. This must work even if \$libdir does
18176 # not exist.
18177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18178
18179 # Whether we need a single -rpath flag with a separated argument.
18180 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18181
18182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18183 # resulting binary.
18184 hardcode_direct=$hardcode_direct
18185
18186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18187 # resulting binary.
18188 hardcode_minus_L=$hardcode_minus_L
18189
18190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18191 # the resulting binary.
18192 hardcode_shlibpath_var=$hardcode_shlibpath_var
18193
18194 # Set to yes if building a shared library automatically hardcodes DIR into the library
18195 # and all subsequent libraries and executables linked against it.
18196 hardcode_automatic=$hardcode_automatic
18197
18198 # Variables whose values should be saved in libtool wrapper scripts and
18199 # restored at relink time.
18200 variables_saved_for_relink="$variables_saved_for_relink"
18201
18202 # Whether libtool must link a program against all its dependency libraries.
18203 link_all_deplibs=$link_all_deplibs
18204
18205 # Compile-time system search path for libraries
18206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18207
18208 # Run-time system search path for libraries
18209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18210
18211 # Fix the shell variable \$srcfile for the compiler.
18212 fix_srcfile_path=$lt_fix_srcfile_path
18213
18214 # Set to yes if exported symbols are required.
18215 always_export_symbols=$always_export_symbols
18216
18217 # The commands to list exported symbols.
18218 export_symbols_cmds=$lt_export_symbols_cmds
18219
18220 # The commands to extract the exported symbol list from a shared archive.
18221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18222
18223 # Symbols that should not be listed in the preloaded symbols.
18224 exclude_expsyms=$lt_exclude_expsyms
18225
18226 # Symbols that must always be exported.
18227 include_expsyms=$lt_include_expsyms
18228
18229 # ### END LIBTOOL CONFIG
18230
18231 __EOF__
18232
18233
18234   case $host_os in
18235   aix3*)
18236     cat <<\EOF >> "$cfgfile"
18237
18238 # AIX sometimes has problems with the GCC collect2 program.  For some
18239 # reason, if we set the COLLECT_NAMES environment variable, the problems
18240 # vanish in a puff of smoke.
18241 if test "X${COLLECT_NAMES+set}" != Xset; then
18242   COLLECT_NAMES=
18243   export COLLECT_NAMES
18244 fi
18245 EOF
18246     ;;
18247   esac
18248
18249   # We use sed instead of cat because bash on DJGPP gets confused if
18250   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18251   # text mode, it properly converts lines to CR/LF.  This bash problem
18252   # is reportedly fixed, but why not run on old versions too?
18253   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18254
18255   mv -f "$cfgfile" "$ofile" || \
18256     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18257   chmod +x "$ofile"
18258
18259 else
18260   # If there is no Makefile yet, we rely on a make rule to execute
18261   # `config.status --recheck' to rerun these tests and create the
18262   # libtool script then.
18263   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18264   if test -f "$ltmain_in"; then
18265     test -f Makefile && make "$ltmain"
18266   fi
18267 fi
18268
18269
18270 ac_ext=c
18271 ac_cpp='$CPP $CPPFLAGS'
18272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18275
18276 CC="$lt_save_CC"
18277
18278
18279 # Check whether --with-tags was given.
18280 if test "${with_tags+set}" = set; then
18281   withval=$with_tags; tagnames="$withval"
18282 fi
18283
18284
18285 if test -f "$ltmain" && test -n "$tagnames"; then
18286   if test ! -f "${ofile}"; then
18287     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18288 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18289   fi
18290
18291   if test -z "$LTCC"; then
18292     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18293     if test -z "$LTCC"; then
18294       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18295 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18296     else
18297       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18298 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18299     fi
18300   fi
18301   if test -z "$LTCFLAGS"; then
18302     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18303   fi
18304
18305   # Extract list of available tagged configurations in $ofile.
18306   # Note that this assumes the entire list is on one line.
18307   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18308
18309   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18310   for tagname in $tagnames; do
18311     IFS="$lt_save_ifs"
18312     # Check whether tagname contains only valid characters
18313     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18314     "") ;;
18315     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18316 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18317    { (exit 1); exit 1; }; }
18318         ;;
18319     esac
18320
18321     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18322     then
18323       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18324 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18325    { (exit 1); exit 1; }; }
18326     fi
18327
18328     # Update the list of available tags.
18329     if test -n "$tagname"; then
18330       echo appending configuration tag \"$tagname\" to $ofile
18331
18332       case $tagname in
18333       CXX)
18334         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18335             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18336             (test "X$CXX" != "Xg++"))) ; then
18337           ac_ext=cpp
18338 ac_cpp='$CXXCPP $CPPFLAGS'
18339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18342
18343
18344
18345
18346 archive_cmds_need_lc_CXX=no
18347 allow_undefined_flag_CXX=
18348 always_export_symbols_CXX=no
18349 archive_expsym_cmds_CXX=
18350 export_dynamic_flag_spec_CXX=
18351 hardcode_direct_CXX=no
18352 hardcode_libdir_flag_spec_CXX=
18353 hardcode_libdir_flag_spec_ld_CXX=
18354 hardcode_libdir_separator_CXX=
18355 hardcode_minus_L_CXX=no
18356 hardcode_shlibpath_var_CXX=unsupported
18357 hardcode_automatic_CXX=no
18358 module_cmds_CXX=
18359 module_expsym_cmds_CXX=
18360 link_all_deplibs_CXX=unknown
18361 old_archive_cmds_CXX=$old_archive_cmds
18362 no_undefined_flag_CXX=
18363 whole_archive_flag_spec_CXX=
18364 enable_shared_with_static_runtimes_CXX=no
18365
18366 # Dependencies to place before and after the object being linked:
18367 predep_objects_CXX=
18368 postdep_objects_CXX=
18369 predeps_CXX=
18370 postdeps_CXX=
18371 compiler_lib_search_path_CXX=
18372 compiler_lib_search_dirs_CXX=
18373
18374 # Source file extension for C++ test sources.
18375 ac_ext=cpp
18376
18377 # Object file extension for compiled C++ test sources.
18378 objext=o
18379 objext_CXX=$objext
18380
18381 # Code to be used in simple compile tests
18382 lt_simple_compile_test_code="int some_variable = 0;"
18383
18384 # Code to be used in simple link tests
18385 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18386
18387 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18388
18389 # If no C compiler was specified, use CC.
18390 LTCC=${LTCC-"$CC"}
18391
18392 # If no C compiler flags were specified, use CFLAGS.
18393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18394
18395 # Allow CC to be a program name with arguments.
18396 compiler=$CC
18397
18398
18399 # save warnings/boilerplate of simple test code
18400 ac_outfile=conftest.$ac_objext
18401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18403 _lt_compiler_boilerplate=`cat conftest.err`
18404 $rm conftest*
18405
18406 ac_outfile=conftest.$ac_objext
18407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18409 _lt_linker_boilerplate=`cat conftest.err`
18410 $rm -r conftest*
18411
18412
18413 # Allow CC to be a program name with arguments.
18414 lt_save_CC=$CC
18415 lt_save_LD=$LD
18416 lt_save_GCC=$GCC
18417 GCC=$GXX
18418 lt_save_with_gnu_ld=$with_gnu_ld
18419 lt_save_path_LD=$lt_cv_path_LD
18420 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18421   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18422 else
18423   $as_unset lt_cv_prog_gnu_ld
18424 fi
18425 if test -n "${lt_cv_path_LDCXX+set}"; then
18426   lt_cv_path_LD=$lt_cv_path_LDCXX
18427 else
18428   $as_unset lt_cv_path_LD
18429 fi
18430 test -z "${LDCXX+set}" || LD=$LDCXX
18431 CC=${CXX-"c++"}
18432 compiler=$CC
18433 compiler_CXX=$CC
18434 for cc_temp in $compiler""; do
18435   case $cc_temp in
18436     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18437     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18438     \-*) ;;
18439     *) break;;
18440   esac
18441 done
18442 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18443
18444
18445 # We don't want -fno-exception wen compiling C++ code, so set the
18446 # no_builtin_flag separately
18447 if test "$GXX" = yes; then
18448   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18449 else
18450   lt_prog_compiler_no_builtin_flag_CXX=
18451 fi
18452
18453 if test "$GXX" = yes; then
18454   # Set up default GNU C++ configuration
18455
18456
18457 # Check whether --with-gnu-ld was given.
18458 if test "${with_gnu_ld+set}" = set; then
18459   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18460 else
18461   with_gnu_ld=no
18462 fi
18463
18464 ac_prog=ld
18465 if test "$GCC" = yes; then
18466   # Check if gcc -print-prog-name=ld gives a path.
18467   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18468 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18469   case $host in
18470   *-*-mingw*)
18471     # gcc leaves a trailing carriage return which upsets mingw
18472     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18473   *)
18474     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18475   esac
18476   case $ac_prog in
18477     # Accept absolute paths.
18478     [\\/]* | ?:[\\/]*)
18479       re_direlt='/[^/][^/]*/\.\./'
18480       # Canonicalize the pathname of ld
18481       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18482       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18483         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18484       done
18485       test -z "$LD" && LD="$ac_prog"
18486       ;;
18487   "")
18488     # If it fails, then pretend we aren't using GCC.
18489     ac_prog=ld
18490     ;;
18491   *)
18492     # If it is relative, then search for the first ld in PATH.
18493     with_gnu_ld=unknown
18494     ;;
18495   esac
18496 elif test "$with_gnu_ld" = yes; then
18497   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18498 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18499 else
18500   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18501 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18502 fi
18503 if test "${lt_cv_path_LD+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   if test -z "$LD"; then
18507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18508   for ac_dir in $PATH; do
18509     IFS="$lt_save_ifs"
18510     test -z "$ac_dir" && ac_dir=.
18511     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18512       lt_cv_path_LD="$ac_dir/$ac_prog"
18513       # Check to see if the program is GNU ld.  I'd rather use --version,
18514       # but apparently some variants of GNU ld only accept -v.
18515       # Break only if it was the GNU/non-GNU ld that we prefer.
18516       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18517       *GNU* | *'with BFD'*)
18518         test "$with_gnu_ld" != no && break
18519         ;;
18520       *)
18521         test "$with_gnu_ld" != yes && break
18522         ;;
18523       esac
18524     fi
18525   done
18526   IFS="$lt_save_ifs"
18527 else
18528   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18529 fi
18530 fi
18531
18532 LD="$lt_cv_path_LD"
18533 if test -n "$LD"; then
18534   { echo "$as_me:$LINENO: result: $LD" >&5
18535 echo "${ECHO_T}$LD" >&6; }
18536 else
18537   { echo "$as_me:$LINENO: result: no" >&5
18538 echo "${ECHO_T}no" >&6; }
18539 fi
18540 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18541 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18542    { (exit 1); exit 1; }; }
18543 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18544 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18545 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18549 case `$LD -v 2>&1 </dev/null` in
18550 *GNU* | *'with BFD'*)
18551   lt_cv_prog_gnu_ld=yes
18552   ;;
18553 *)
18554   lt_cv_prog_gnu_ld=no
18555   ;;
18556 esac
18557 fi
18558 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18559 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18560 with_gnu_ld=$lt_cv_prog_gnu_ld
18561
18562
18563
18564   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18565   # archiving commands below assume that GNU ld is being used.
18566   if test "$with_gnu_ld" = yes; then
18567     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18568     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'
18569
18570     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18571     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18572
18573     # If archive_cmds runs LD, not CC, wlarc should be empty
18574     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18575     #     investigate it a little bit more. (MM)
18576     wlarc='${wl}'
18577
18578     # ancient GNU ld didn't support --whole-archive et. al.
18579     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18580         grep 'no-whole-archive' > /dev/null; then
18581       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18582     else
18583       whole_archive_flag_spec_CXX=
18584     fi
18585   else
18586     with_gnu_ld=no
18587     wlarc=
18588
18589     # A generic and very simple default shared library creation
18590     # command for GNU C++ for the case where it uses the native
18591     # linker, instead of GNU ld.  If possible, this setting should
18592     # overridden to take advantage of the native linker features on
18593     # the platform it is being used on.
18594     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18595   fi
18596
18597   # Commands to make compiler produce verbose output that lists
18598   # what "hidden" libraries, object files and flags are used when
18599   # linking a shared library.
18600   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18601
18602 else
18603   GXX=no
18604   with_gnu_ld=no
18605   wlarc=
18606 fi
18607
18608 # PORTME: fill in a description of your system's C++ link characteristics
18609 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18611 ld_shlibs_CXX=yes
18612 case $host_os in
18613   aix3*)
18614     # FIXME: insert proper C++ library support
18615     ld_shlibs_CXX=no
18616     ;;
18617   aix[4-9]*)
18618     if test "$host_cpu" = ia64; then
18619       # On IA64, the linker does run time linking by default, so we don't
18620       # have to do anything special.
18621       aix_use_runtimelinking=no
18622       exp_sym_flag='-Bexport'
18623       no_entry_flag=""
18624     else
18625       aix_use_runtimelinking=no
18626
18627       # Test if we are trying to use run time linking or normal
18628       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18629       # need to do runtime linking.
18630       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18631         for ld_flag in $LDFLAGS; do
18632           case $ld_flag in
18633           *-brtl*)
18634             aix_use_runtimelinking=yes
18635             break
18636             ;;
18637           esac
18638         done
18639         ;;
18640       esac
18641
18642       exp_sym_flag='-bexport'
18643       no_entry_flag='-bnoentry'
18644     fi
18645
18646     # When large executables or shared objects are built, AIX ld can
18647     # have problems creating the table of contents.  If linking a library
18648     # or program results in "error TOC overflow" add -mminimal-toc to
18649     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18650     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18651
18652     archive_cmds_CXX=''
18653     hardcode_direct_CXX=yes
18654     hardcode_libdir_separator_CXX=':'
18655     link_all_deplibs_CXX=yes
18656
18657     if test "$GXX" = yes; then
18658       case $host_os in aix4.[012]|aix4.[012].*)
18659       # We only want to do this on AIX 4.2 and lower, the check
18660       # below for broken collect2 doesn't work under 4.3+
18661         collect2name=`${CC} -print-prog-name=collect2`
18662         if test -f "$collect2name" && \
18663            strings "$collect2name" | grep resolve_lib_name >/dev/null
18664         then
18665           # We have reworked collect2
18666           :
18667         else
18668           # We have old collect2
18669           hardcode_direct_CXX=unsupported
18670           # It fails to find uninstalled libraries when the uninstalled
18671           # path is not listed in the libpath.  Setting hardcode_minus_L
18672           # to unsupported forces relinking
18673           hardcode_minus_L_CXX=yes
18674           hardcode_libdir_flag_spec_CXX='-L$libdir'
18675           hardcode_libdir_separator_CXX=
18676         fi
18677         ;;
18678       esac
18679       shared_flag='-shared'
18680       if test "$aix_use_runtimelinking" = yes; then
18681         shared_flag="$shared_flag "'${wl}-G'
18682       fi
18683     else
18684       # not using gcc
18685       if test "$host_cpu" = ia64; then
18686         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18687         # chokes on -Wl,-G. The following line is correct:
18688         shared_flag='-G'
18689       else
18690         if test "$aix_use_runtimelinking" = yes; then
18691           shared_flag='${wl}-G'
18692         else
18693           shared_flag='${wl}-bM:SRE'
18694         fi
18695       fi
18696     fi
18697
18698     # It seems that -bexpall does not export symbols beginning with
18699     # underscore (_), so it is better to generate a list of symbols to export.
18700     always_export_symbols_CXX=yes
18701     if test "$aix_use_runtimelinking" = yes; then
18702       # Warning - without using the other runtime loading flags (-brtl),
18703       # -berok will link without error, but may produce a broken library.
18704       allow_undefined_flag_CXX='-berok'
18705       # Determine the default libpath from the value encoded in an empty executable.
18706       cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h.  */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h.  */
18712
18713 int
18714 main ()
18715 {
18716
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest.$ac_objext conftest$ac_exeext
18722 if { (ac_try="$ac_link"
18723 case "(($ac_try" in
18724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725   *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728   (eval "$ac_link") 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } && {
18735          test -z "$ac_cxx_werror_flag" ||
18736          test ! -s conftest.err
18737        } && test -s conftest$ac_exeext &&
18738        $as_test_x conftest$ac_exeext; then
18739
18740 lt_aix_libpath_sed='
18741     /Import File Strings/,/^$/ {
18742         /^0/ {
18743             s/^0  *\(.*\)$/\1/
18744             p
18745         }
18746     }'
18747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18748 # Check for a 64-bit object if we didn't find anything.
18749 if test -z "$aix_libpath"; then
18750   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18751 fi
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756
18757 fi
18758
18759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760       conftest$ac_exeext conftest.$ac_ext
18761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18762
18763       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18764
18765       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18766      else
18767       if test "$host_cpu" = ia64; then
18768         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18769         allow_undefined_flag_CXX="-z nodefs"
18770         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18771       else
18772         # Determine the default libpath from the value encoded in an empty executable.
18773         cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779
18780 int
18781 main ()
18782 {
18783
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_link") 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } && {
18802          test -z "$ac_cxx_werror_flag" ||
18803          test ! -s conftest.err
18804        } && test -s conftest$ac_exeext &&
18805        $as_test_x conftest$ac_exeext; then
18806
18807 lt_aix_libpath_sed='
18808     /Import File Strings/,/^$/ {
18809         /^0/ {
18810             s/^0  *\(.*\)$/\1/
18811             p
18812         }
18813     }'
18814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18815 # Check for a 64-bit object if we didn't find anything.
18816 if test -z "$aix_libpath"; then
18817   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18818 fi
18819 else
18820   echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823
18824 fi
18825
18826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18827       conftest$ac_exeext conftest.$ac_ext
18828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18829
18830         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18831         # Warning - without using the other run time loading flags,
18832         # -berok will link without error, but may produce a broken library.
18833         no_undefined_flag_CXX=' ${wl}-bernotok'
18834         allow_undefined_flag_CXX=' ${wl}-berok'
18835         # Exported symbols can be pulled into shared objects from archives
18836         whole_archive_flag_spec_CXX='$convenience'
18837         archive_cmds_need_lc_CXX=yes
18838         # This is similar to how AIX traditionally builds its shared libraries.
18839         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18840       fi
18841     fi
18842     ;;
18843
18844   beos*)
18845     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18846       allow_undefined_flag_CXX=unsupported
18847       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18848       # support --undefined.  This deserves some investigation.  FIXME
18849       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18850     else
18851       ld_shlibs_CXX=no
18852     fi
18853     ;;
18854
18855   chorus*)
18856     case $cc_basename in
18857       *)
18858         # FIXME: insert proper C++ library support
18859         ld_shlibs_CXX=no
18860         ;;
18861     esac
18862     ;;
18863
18864   cygwin* | mingw* | pw32*)
18865     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18866     # as there is no search path for DLLs.
18867     hardcode_libdir_flag_spec_CXX='-L$libdir'
18868     allow_undefined_flag_CXX=unsupported
18869     always_export_symbols_CXX=no
18870     enable_shared_with_static_runtimes_CXX=yes
18871
18872     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18873       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18874       # If the export-symbols file already is a .def file (1st line
18875       # is EXPORTS), use it as is; otherwise, prepend...
18876       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18877         cp $export_symbols $output_objdir/$soname.def;
18878       else
18879         echo EXPORTS > $output_objdir/$soname.def;
18880         cat $export_symbols >> $output_objdir/$soname.def;
18881       fi~
18882       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18883     else
18884       ld_shlibs_CXX=no
18885     fi
18886   ;;
18887       darwin* | rhapsody*)
18888       archive_cmds_need_lc_CXX=no
18889       hardcode_direct_CXX=no
18890       hardcode_automatic_CXX=yes
18891       hardcode_shlibpath_var_CXX=unsupported
18892       whole_archive_flag_spec_CXX=''
18893       link_all_deplibs_CXX=yes
18894       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18895       if test "$GXX" = yes ; then
18896       output_verbose_link_cmd='echo'
18897       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18898       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18899       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18900       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18901       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18902         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${_lt_dsymutil}"
18903         archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
18904       fi
18905       else
18906       case $cc_basename in
18907         xlc*)
18908          output_verbose_link_cmd='echo'
18909           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18910           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18911           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18912           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18913           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}'
18914           ;;
18915        *)
18916          ld_shlibs_CXX=no
18917           ;;
18918       esac
18919       fi
18920         ;;
18921
18922   dgux*)
18923     case $cc_basename in
18924       ec++*)
18925         # FIXME: insert proper C++ library support
18926         ld_shlibs_CXX=no
18927         ;;
18928       ghcx*)
18929         # Green Hills C++ Compiler
18930         # FIXME: insert proper C++ library support
18931         ld_shlibs_CXX=no
18932         ;;
18933       *)
18934         # FIXME: insert proper C++ library support
18935         ld_shlibs_CXX=no
18936         ;;
18937     esac
18938     ;;
18939   freebsd[12]*)
18940     # C++ shared libraries reported to be fairly broken before switch to ELF
18941     ld_shlibs_CXX=no
18942     ;;
18943   freebsd-elf*)
18944     archive_cmds_need_lc_CXX=no
18945     ;;
18946   freebsd* | dragonfly*)
18947     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18948     # conventions
18949     ld_shlibs_CXX=yes
18950     ;;
18951   gnu*)
18952     ;;
18953   hpux9*)
18954     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18955     hardcode_libdir_separator_CXX=:
18956     export_dynamic_flag_spec_CXX='${wl}-E'
18957     hardcode_direct_CXX=yes
18958     hardcode_minus_L_CXX=yes # Not in the search PATH,
18959                                 # but as the default
18960                                 # location of the library.
18961
18962     case $cc_basename in
18963     CC*)
18964       # FIXME: insert proper C++ library support
18965       ld_shlibs_CXX=no
18966       ;;
18967     aCC*)
18968       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'
18969       # Commands to make compiler produce verbose output that lists
18970       # what "hidden" libraries, object files and flags are used when
18971       # linking a shared library.
18972       #
18973       # There doesn't appear to be a way to prevent this compiler from
18974       # explicitly linking system object files so we need to strip them
18975       # from the output so that they don't get included in the library
18976       # dependencies.
18977       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'
18978       ;;
18979     *)
18980       if test "$GXX" = yes; then
18981         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'
18982       else
18983         # FIXME: insert proper C++ library support
18984         ld_shlibs_CXX=no
18985       fi
18986       ;;
18987     esac
18988     ;;
18989   hpux10*|hpux11*)
18990     if test $with_gnu_ld = no; then
18991       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18992       hardcode_libdir_separator_CXX=:
18993
18994       case $host_cpu in
18995       hppa*64*|ia64*) ;;
18996       *)
18997         export_dynamic_flag_spec_CXX='${wl}-E'
18998         ;;
18999       esac
19000     fi
19001     case $host_cpu in
19002     hppa*64*|ia64*)
19003       hardcode_direct_CXX=no
19004       hardcode_shlibpath_var_CXX=no
19005       ;;
19006     *)
19007       hardcode_direct_CXX=yes
19008       hardcode_minus_L_CXX=yes # Not in the search PATH,
19009                                               # but as the default
19010                                               # location of the library.
19011       ;;
19012     esac
19013
19014     case $cc_basename in
19015       CC*)
19016         # FIXME: insert proper C++ library support
19017         ld_shlibs_CXX=no
19018         ;;
19019       aCC*)
19020         case $host_cpu in
19021         hppa*64*)
19022           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19023           ;;
19024         ia64*)
19025           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19026           ;;
19027         *)
19028           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19029           ;;
19030         esac
19031         # Commands to make compiler produce verbose output that lists
19032         # what "hidden" libraries, object files and flags are used when
19033         # linking a shared library.
19034         #
19035         # There doesn't appear to be a way to prevent this compiler from
19036         # explicitly linking system object files so we need to strip them
19037         # from the output so that they don't get included in the library
19038         # dependencies.
19039         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'
19040         ;;
19041       *)
19042         if test "$GXX" = yes; then
19043           if test $with_gnu_ld = no; then
19044             case $host_cpu in
19045             hppa*64*)
19046               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047               ;;
19048             ia64*)
19049               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050               ;;
19051             *)
19052               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'
19053               ;;
19054             esac
19055           fi
19056         else
19057           # FIXME: insert proper C++ library support
19058           ld_shlibs_CXX=no
19059         fi
19060         ;;
19061     esac
19062     ;;
19063   interix[3-9]*)
19064     hardcode_direct_CXX=no
19065     hardcode_shlibpath_var_CXX=no
19066     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19067     export_dynamic_flag_spec_CXX='${wl}-E'
19068     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19069     # Instead, shared libraries are loaded at an image base (0x10000000 by
19070     # default) and relocated if they conflict, which is a slow very memory
19071     # consuming and fragmenting process.  To avoid this, we pick a random,
19072     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19073     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19074     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19075     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19076     ;;
19077   irix5* | irix6*)
19078     case $cc_basename in
19079       CC*)
19080         # SGI C++
19081         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'
19082
19083         # Archives containing C++ object files must be created using
19084         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19085         # necessary to make sure instantiated templates are included
19086         # in the archive.
19087         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19088         ;;
19089       *)
19090         if test "$GXX" = yes; then
19091           if test "$with_gnu_ld" = no; then
19092             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'
19093           else
19094             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'
19095           fi
19096         fi
19097         link_all_deplibs_CXX=yes
19098         ;;
19099     esac
19100     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101     hardcode_libdir_separator_CXX=:
19102     ;;
19103   linux* | k*bsd*-gnu)
19104     case $cc_basename in
19105       KCC*)
19106         # Kuck and Associates, Inc. (KAI) C++ Compiler
19107
19108         # KCC will only create a shared library if the output file
19109         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19110         # to its proper name (with version) after linking.
19111         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'
19112         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'
19113         # Commands to make compiler produce verbose output that lists
19114         # what "hidden" libraries, object files and flags are used when
19115         # linking a shared library.
19116         #
19117         # There doesn't appear to be a way to prevent this compiler from
19118         # explicitly linking system object files so we need to strip them
19119         # from the output so that they don't get included in the library
19120         # dependencies.
19121         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'
19122
19123         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19124         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19125
19126         # Archives containing C++ object files must be created using
19127         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19128         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19129         ;;
19130       icpc*)
19131         # Intel C++
19132         with_gnu_ld=yes
19133         # version 8.0 and above of icpc choke on multiply defined symbols
19134         # if we add $predep_objects and $postdep_objects, however 7.1 and
19135         # earlier do not add the objects themselves.
19136         case `$CC -V 2>&1` in
19137         *"Version 7."*)
19138           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139           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'
19140           ;;
19141         *)  # Version 8.0 or newer
19142           tmp_idyn=
19143           case $host_cpu in
19144             ia64*) tmp_idyn=' -i_dynamic';;
19145           esac
19146           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147           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'
19148           ;;
19149         esac
19150         archive_cmds_need_lc_CXX=no
19151         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19152         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19153         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19154         ;;
19155       pgCC* | pgcpp*)
19156         # Portland Group C++ compiler
19157         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19158         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'
19159
19160         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19161         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19162         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'
19163         ;;
19164       cxx*)
19165         # Compaq C++
19166         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167         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'
19168
19169         runpath_var=LD_RUN_PATH
19170         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19171         hardcode_libdir_separator_CXX=:
19172
19173         # Commands to make compiler produce verbose output that lists
19174         # what "hidden" libraries, object files and flags are used when
19175         # linking a shared library.
19176         #
19177         # There doesn't appear to be a way to prevent this compiler from
19178         # explicitly linking system object files so we need to strip them
19179         # from the output so that they don't get included in the library
19180         # dependencies.
19181         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'
19182         ;;
19183       *)
19184         case `$CC -V 2>&1 | sed 5q` in
19185         *Sun\ C*)
19186           # Sun C++ 5.9
19187           no_undefined_flag_CXX=' -zdefs'
19188           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19189           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19190           hardcode_libdir_flag_spec_CXX='-R$libdir'
19191           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19192
19193           # Not sure whether something based on
19194           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19195           # would be better.
19196           output_verbose_link_cmd='echo'
19197
19198           # Archives containing C++ object files must be created using
19199           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19200           # necessary to make sure instantiated templates are included
19201           # in the archive.
19202           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19203           ;;
19204         esac
19205         ;;
19206     esac
19207     ;;
19208   lynxos*)
19209     # FIXME: insert proper C++ library support
19210     ld_shlibs_CXX=no
19211     ;;
19212   m88k*)
19213     # FIXME: insert proper C++ library support
19214     ld_shlibs_CXX=no
19215     ;;
19216   mvs*)
19217     case $cc_basename in
19218       cxx*)
19219         # FIXME: insert proper C++ library support
19220         ld_shlibs_CXX=no
19221         ;;
19222       *)
19223         # FIXME: insert proper C++ library support
19224         ld_shlibs_CXX=no
19225         ;;
19226     esac
19227     ;;
19228   netbsd* | netbsdelf*-gnu)
19229     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19230       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19231       wlarc=
19232       hardcode_libdir_flag_spec_CXX='-R$libdir'
19233       hardcode_direct_CXX=yes
19234       hardcode_shlibpath_var_CXX=no
19235     fi
19236     # Workaround some broken pre-1.5 toolchains
19237     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19238     ;;
19239   openbsd2*)
19240     # C++ shared libraries are fairly broken
19241     ld_shlibs_CXX=no
19242     ;;
19243   openbsd*)
19244     if test -f /usr/libexec/ld.so; then
19245       hardcode_direct_CXX=yes
19246       hardcode_shlibpath_var_CXX=no
19247       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19248       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19250         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19251         export_dynamic_flag_spec_CXX='${wl}-E'
19252         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19253       fi
19254       output_verbose_link_cmd='echo'
19255     else
19256       ld_shlibs_CXX=no
19257     fi
19258     ;;
19259   osf3*)
19260     case $cc_basename in
19261       KCC*)
19262         # Kuck and Associates, Inc. (KAI) C++ Compiler
19263
19264         # KCC will only create a shared library if the output file
19265         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266         # to its proper name (with version) after linking.
19267         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'
19268
19269         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270         hardcode_libdir_separator_CXX=:
19271
19272         # Archives containing C++ object files must be created using
19273         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19274         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19275
19276         ;;
19277       RCC*)
19278         # Rational C++ 2.4.1
19279         # FIXME: insert proper C++ library support
19280         ld_shlibs_CXX=no
19281         ;;
19282       cxx*)
19283         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19284         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'
19285
19286         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19287         hardcode_libdir_separator_CXX=:
19288
19289         # Commands to make compiler produce verbose output that lists
19290         # what "hidden" libraries, object files and flags are used when
19291         # linking a shared library.
19292         #
19293         # There doesn't appear to be a way to prevent this compiler from
19294         # explicitly linking system object files so we need to strip them
19295         # from the output so that they don't get included in the library
19296         # dependencies.
19297         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'
19298         ;;
19299       *)
19300         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19301           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19302           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'
19303
19304           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19305           hardcode_libdir_separator_CXX=:
19306
19307           # Commands to make compiler produce verbose output that lists
19308           # what "hidden" libraries, object files and flags are used when
19309           # linking a shared library.
19310           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19311
19312         else
19313           # FIXME: insert proper C++ library support
19314           ld_shlibs_CXX=no
19315         fi
19316         ;;
19317     esac
19318     ;;
19319   osf4* | osf5*)
19320     case $cc_basename in
19321       KCC*)
19322         # Kuck and Associates, Inc. (KAI) C++ Compiler
19323
19324         # KCC will only create a shared library if the output file
19325         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19326         # to its proper name (with version) after linking.
19327         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'
19328
19329         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330         hardcode_libdir_separator_CXX=:
19331
19332         # Archives containing C++ object files must be created using
19333         # the KAI C++ compiler.
19334         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19335         ;;
19336       RCC*)
19337         # Rational C++ 2.4.1
19338         # FIXME: insert proper C++ library support
19339         ld_shlibs_CXX=no
19340         ;;
19341       cxx*)
19342         allow_undefined_flag_CXX=' -expect_unresolved \*'
19343         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'
19344         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19345           echo "-hidden">> $lib.exp~
19346           $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~
19347           $rm $lib.exp'
19348
19349         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19350         hardcode_libdir_separator_CXX=:
19351
19352         # Commands to make compiler produce verbose output that lists
19353         # what "hidden" libraries, object files and flags are used when
19354         # linking a shared library.
19355         #
19356         # There doesn't appear to be a way to prevent this compiler from
19357         # explicitly linking system object files so we need to strip them
19358         # from the output so that they don't get included in the library
19359         # dependencies.
19360         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'
19361         ;;
19362       *)
19363         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19364           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19365          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'
19366
19367           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19368           hardcode_libdir_separator_CXX=:
19369
19370           # Commands to make compiler produce verbose output that lists
19371           # what "hidden" libraries, object files and flags are used when
19372           # linking a shared library.
19373           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19374
19375         else
19376           # FIXME: insert proper C++ library support
19377           ld_shlibs_CXX=no
19378         fi
19379         ;;
19380     esac
19381     ;;
19382   psos*)
19383     # FIXME: insert proper C++ library support
19384     ld_shlibs_CXX=no
19385     ;;
19386   sunos4*)
19387     case $cc_basename in
19388       CC*)
19389         # Sun C++ 4.x
19390         # FIXME: insert proper C++ library support
19391         ld_shlibs_CXX=no
19392         ;;
19393       lcc*)
19394         # Lucid
19395         # FIXME: insert proper C++ library support
19396         ld_shlibs_CXX=no
19397         ;;
19398       *)
19399         # FIXME: insert proper C++ library support
19400         ld_shlibs_CXX=no
19401         ;;
19402     esac
19403     ;;
19404   solaris*)
19405     case $cc_basename in
19406       CC*)
19407         # Sun C++ 4.2, 5.x and Centerline C++
19408         archive_cmds_need_lc_CXX=yes
19409         no_undefined_flag_CXX=' -zdefs'
19410         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19411         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19412         $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'
19413
19414         hardcode_libdir_flag_spec_CXX='-R$libdir'
19415         hardcode_shlibpath_var_CXX=no
19416         case $host_os in
19417           solaris2.[0-5] | solaris2.[0-5].*) ;;
19418           *)
19419             # The compiler driver will combine and reorder linker options,
19420             # but understands `-z linker_flag'.
19421             # Supported since Solaris 2.6 (maybe 2.5.1?)
19422             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19423             ;;
19424         esac
19425         link_all_deplibs_CXX=yes
19426
19427         output_verbose_link_cmd='echo'
19428
19429         # Archives containing C++ object files must be created using
19430         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19431         # necessary to make sure instantiated templates are included
19432         # in the archive.
19433         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19434         ;;
19435       gcx*)
19436         # Green Hills C++ Compiler
19437         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19438
19439         # The C++ compiler must be used to create the archive.
19440         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19441         ;;
19442       *)
19443         # GNU C++ compiler with Solaris linker
19444         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19445           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19446           if $CC --version | grep -v '^2\.7' > /dev/null; then
19447             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19448             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19449                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19450
19451             # Commands to make compiler produce verbose output that lists
19452             # what "hidden" libraries, object files and flags are used when
19453             # linking a shared library.
19454             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19455           else
19456             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19457             # platform.
19458             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19459             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19460                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19461
19462             # Commands to make compiler produce verbose output that lists
19463             # what "hidden" libraries, object files and flags are used when
19464             # linking a shared library.
19465             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19466           fi
19467
19468           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19469           case $host_os in
19470           solaris2.[0-5] | solaris2.[0-5].*) ;;
19471           *)
19472             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19473             ;;
19474           esac
19475         fi
19476         ;;
19477     esac
19478     ;;
19479   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19480     no_undefined_flag_CXX='${wl}-z,text'
19481     archive_cmds_need_lc_CXX=no
19482     hardcode_shlibpath_var_CXX=no
19483     runpath_var='LD_RUN_PATH'
19484
19485     case $cc_basename in
19486       CC*)
19487         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19489         ;;
19490       *)
19491         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19492         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19493         ;;
19494     esac
19495     ;;
19496   sysv5* | sco3.2v5* | sco5v6*)
19497     # Note: We can NOT use -z defs as we might desire, because we do not
19498     # link with -lc, and that would cause any symbols used from libc to
19499     # always be unresolved, which means just about no library would
19500     # ever link correctly.  If we're not using GNU ld we use -z text
19501     # though, which does catch some bad symbols but isn't as heavy-handed
19502     # as -z defs.
19503     # For security reasons, it is highly recommended that you always
19504     # use absolute paths for naming shared libraries, and exclude the
19505     # DT_RUNPATH tag from executables and libraries.  But doing so
19506     # requires that you compile everything twice, which is a pain.
19507     # So that behaviour is only enabled if SCOABSPATH is set to a
19508     # non-empty value in the environment.  Most likely only useful for
19509     # creating official distributions of packages.
19510     # This is a hack until libtool officially supports absolute path
19511     # names for shared libraries.
19512     no_undefined_flag_CXX='${wl}-z,text'
19513     allow_undefined_flag_CXX='${wl}-z,nodefs'
19514     archive_cmds_need_lc_CXX=no
19515     hardcode_shlibpath_var_CXX=no
19516     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19517     hardcode_libdir_separator_CXX=':'
19518     link_all_deplibs_CXX=yes
19519     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19520     runpath_var='LD_RUN_PATH'
19521
19522     case $cc_basename in
19523       CC*)
19524         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19525         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19526         ;;
19527       *)
19528         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19529         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19530         ;;
19531     esac
19532     ;;
19533   tandem*)
19534     case $cc_basename in
19535       NCC*)
19536         # NonStop-UX NCC 3.20
19537         # FIXME: insert proper C++ library support
19538         ld_shlibs_CXX=no
19539         ;;
19540       *)
19541         # FIXME: insert proper C++ library support
19542         ld_shlibs_CXX=no
19543         ;;
19544     esac
19545     ;;
19546   vxworks*)
19547     # FIXME: insert proper C++ library support
19548     ld_shlibs_CXX=no
19549     ;;
19550   *)
19551     # FIXME: insert proper C++ library support
19552     ld_shlibs_CXX=no
19553     ;;
19554 esac
19555 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19556 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19557 test "$ld_shlibs_CXX" = no && can_build_shared=no
19558
19559 GCC_CXX="$GXX"
19560 LD_CXX="$LD"
19561
19562 cat > conftest.$ac_ext <<EOF
19563 class Foo
19564 {
19565 public:
19566   Foo (void) { a = 0; }
19567 private:
19568   int a;
19569 };
19570 EOF
19571
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; then
19577   # Parse the compiler output and extract the necessary
19578   # objects, libraries and library flags.
19579
19580   # Sentinel used to keep track of whether or not we are before
19581   # the conftest object file.
19582   pre_test_object_deps_done=no
19583
19584   # The `*' in the case matches for architectures that use `case' in
19585   # $output_verbose_cmd can trigger glob expansion during the loop
19586   # eval without this substitution.
19587   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19588
19589   for p in `eval $output_verbose_link_cmd`; do
19590     case $p in
19591
19592     -L* | -R* | -l*)
19593        # Some compilers place space between "-{L,R}" and the path.
19594        # Remove the space.
19595        if test $p = "-L" \
19596           || test $p = "-R"; then
19597          prev=$p
19598          continue
19599        else
19600          prev=
19601        fi
19602
19603        if test "$pre_test_object_deps_done" = no; then
19604          case $p in
19605          -L* | -R*)
19606            # Internal compiler library paths should come after those
19607            # provided the user.  The postdeps already come after the
19608            # user supplied libs so there is no need to process them.
19609            if test -z "$compiler_lib_search_path_CXX"; then
19610              compiler_lib_search_path_CXX="${prev}${p}"
19611            else
19612              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19613            fi
19614            ;;
19615          # The "-l" case would never come before the object being
19616          # linked, so don't bother handling this case.
19617          esac
19618        else
19619          if test -z "$postdeps_CXX"; then
19620            postdeps_CXX="${prev}${p}"
19621          else
19622            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19623          fi
19624        fi
19625        ;;
19626
19627     *.$objext)
19628        # This assumes that the test object file only shows up
19629        # once in the compiler output.
19630        if test "$p" = "conftest.$objext"; then
19631          pre_test_object_deps_done=yes
19632          continue
19633        fi
19634
19635        if test "$pre_test_object_deps_done" = no; then
19636          if test -z "$predep_objects_CXX"; then
19637            predep_objects_CXX="$p"
19638          else
19639            predep_objects_CXX="$predep_objects_CXX $p"
19640          fi
19641        else
19642          if test -z "$postdep_objects_CXX"; then
19643            postdep_objects_CXX="$p"
19644          else
19645            postdep_objects_CXX="$postdep_objects_CXX $p"
19646          fi
19647        fi
19648        ;;
19649
19650     *) ;; # Ignore the rest.
19651
19652     esac
19653   done
19654
19655   # Clean up.
19656   rm -f a.out a.exe
19657 else
19658   echo "libtool.m4: error: problem compiling CXX test program"
19659 fi
19660
19661 $rm -f confest.$objext
19662
19663 compiler_lib_search_dirs_CXX=
19664 if test -n "$compiler_lib_search_path_CXX"; then
19665   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19666 fi
19667
19668 # PORTME: override above test on systems where it is broken
19669 case $host_os in
19670 interix[3-9]*)
19671   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19672   # hack all around it, let's just trust "g++" to DTRT.
19673   predep_objects_CXX=
19674   postdep_objects_CXX=
19675   postdeps_CXX=
19676   ;;
19677
19678 linux*)
19679   case `$CC -V 2>&1 | sed 5q` in
19680   *Sun\ C*)
19681     # Sun C++ 5.9
19682     #
19683     # The more standards-conforming stlport4 library is
19684     # incompatible with the Cstd library. Avoid specifying
19685     # it if it's in CXXFLAGS. Ignore libCrun as
19686     # -library=stlport4 depends on it.
19687     case " $CXX $CXXFLAGS " in
19688     *" -library=stlport4 "*)
19689       solaris_use_stlport4=yes
19690       ;;
19691     esac
19692     if test "$solaris_use_stlport4" != yes; then
19693       postdeps_CXX='-library=Cstd -library=Crun'
19694     fi
19695     ;;
19696   esac
19697   ;;
19698
19699 solaris*)
19700   case $cc_basename in
19701   CC*)
19702     # The more standards-conforming stlport4 library is
19703     # incompatible with the Cstd library. Avoid specifying
19704     # it if it's in CXXFLAGS. Ignore libCrun as
19705     # -library=stlport4 depends on it.
19706     case " $CXX $CXXFLAGS " in
19707     *" -library=stlport4 "*)
19708       solaris_use_stlport4=yes
19709       ;;
19710     esac
19711
19712     # Adding this requires a known-good setup of shared libraries for
19713     # Sun compiler versions before 5.6, else PIC objects from an old
19714     # archive will be linked into the output, leading to subtle bugs.
19715     if test "$solaris_use_stlport4" != yes; then
19716       postdeps_CXX='-library=Cstd -library=Crun'
19717     fi
19718     ;;
19719   esac
19720   ;;
19721 esac
19722
19723 case " $postdeps_CXX " in
19724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19725 esac
19726
19727 lt_prog_compiler_wl_CXX=
19728 lt_prog_compiler_pic_CXX=
19729 lt_prog_compiler_static_CXX=
19730
19731 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19732 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19733
19734   # C++ specific cases for pic, static, wl, etc.
19735   if test "$GXX" = yes; then
19736     lt_prog_compiler_wl_CXX='-Wl,'
19737     lt_prog_compiler_static_CXX='-static'
19738
19739     case $host_os in
19740     aix*)
19741       # All AIX code is PIC.
19742       if test "$host_cpu" = ia64; then
19743         # AIX 5 now supports IA64 processor
19744         lt_prog_compiler_static_CXX='-Bstatic'
19745       fi
19746       ;;
19747     amigaos*)
19748       # FIXME: we need at least 68020 code to build shared libraries, but
19749       # adding the `-m68020' flag to GCC prevents building anything better,
19750       # like `-m68040'.
19751       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19752       ;;
19753     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19754       # PIC is the default for these OSes.
19755       ;;
19756     mingw* | cygwin* | os2* | pw32*)
19757       # This hack is so that the source file can tell whether it is being
19758       # built for inclusion in a dll (and should export symbols for example).
19759       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19760       # (--disable-auto-import) libraries
19761       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19762       ;;
19763     darwin* | rhapsody*)
19764       # PIC is the default on this platform
19765       # Common symbols not allowed in MH_DYLIB files
19766       lt_prog_compiler_pic_CXX='-fno-common'
19767       ;;
19768     *djgpp*)
19769       # DJGPP does not support shared libraries at all
19770       lt_prog_compiler_pic_CXX=
19771       ;;
19772     interix[3-9]*)
19773       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19774       # Instead, we relocate shared libraries at runtime.
19775       ;;
19776     sysv4*MP*)
19777       if test -d /usr/nec; then
19778         lt_prog_compiler_pic_CXX=-Kconform_pic
19779       fi
19780       ;;
19781     hpux*)
19782       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19783       # not for PA HP-UX.
19784       case $host_cpu in
19785       hppa*64*|ia64*)
19786         ;;
19787       *)
19788         lt_prog_compiler_pic_CXX='-fPIC'
19789         ;;
19790       esac
19791       ;;
19792     *)
19793       lt_prog_compiler_pic_CXX='-fPIC'
19794       ;;
19795     esac
19796   else
19797     case $host_os in
19798       aix[4-9]*)
19799         # All AIX code is PIC.
19800         if test "$host_cpu" = ia64; then
19801           # AIX 5 now supports IA64 processor
19802           lt_prog_compiler_static_CXX='-Bstatic'
19803         else
19804           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19805         fi
19806         ;;
19807       chorus*)
19808         case $cc_basename in
19809         cxch68*)
19810           # Green Hills C++ Compiler
19811           # _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"
19812           ;;
19813         esac
19814         ;;
19815        darwin*)
19816          # PIC is the default on this platform
19817          # Common symbols not allowed in MH_DYLIB files
19818          case $cc_basename in
19819            xlc*)
19820            lt_prog_compiler_pic_CXX='-qnocommon'
19821            lt_prog_compiler_wl_CXX='-Wl,'
19822            ;;
19823          esac
19824        ;;
19825       dgux*)
19826         case $cc_basename in
19827           ec++*)
19828             lt_prog_compiler_pic_CXX='-KPIC'
19829             ;;
19830           ghcx*)
19831             # Green Hills C++ Compiler
19832             lt_prog_compiler_pic_CXX='-pic'
19833             ;;
19834           *)
19835             ;;
19836         esac
19837         ;;
19838       freebsd* | dragonfly*)
19839         # FreeBSD uses GNU C++
19840         ;;
19841       hpux9* | hpux10* | hpux11*)
19842         case $cc_basename in
19843           CC*)
19844             lt_prog_compiler_wl_CXX='-Wl,'
19845             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19846             if test "$host_cpu" != ia64; then
19847               lt_prog_compiler_pic_CXX='+Z'
19848             fi
19849             ;;
19850           aCC*)
19851             lt_prog_compiler_wl_CXX='-Wl,'
19852             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19853             case $host_cpu in
19854             hppa*64*|ia64*)
19855               # +Z the default
19856               ;;
19857             *)
19858               lt_prog_compiler_pic_CXX='+Z'
19859               ;;
19860             esac
19861             ;;
19862           *)
19863             ;;
19864         esac
19865         ;;
19866       interix*)
19867         # This is c89, which is MS Visual C++ (no shared libs)
19868         # Anyone wants to do a port?
19869         ;;
19870       irix5* | irix6* | nonstopux*)
19871         case $cc_basename in
19872           CC*)
19873             lt_prog_compiler_wl_CXX='-Wl,'
19874             lt_prog_compiler_static_CXX='-non_shared'
19875             # CC pic flag -KPIC is the default.
19876             ;;
19877           *)
19878             ;;
19879         esac
19880         ;;
19881       linux* | k*bsd*-gnu)
19882         case $cc_basename in
19883           KCC*)
19884             # KAI C++ Compiler
19885             lt_prog_compiler_wl_CXX='--backend -Wl,'
19886             lt_prog_compiler_pic_CXX='-fPIC'
19887             ;;
19888           icpc* | ecpc*)
19889             # Intel C++
19890             lt_prog_compiler_wl_CXX='-Wl,'
19891             lt_prog_compiler_pic_CXX='-KPIC'
19892             lt_prog_compiler_static_CXX='-static'
19893             ;;
19894           pgCC* | pgcpp*)
19895             # Portland Group C++ compiler.
19896             lt_prog_compiler_wl_CXX='-Wl,'
19897             lt_prog_compiler_pic_CXX='-fpic'
19898             lt_prog_compiler_static_CXX='-Bstatic'
19899             ;;
19900           cxx*)
19901             # Compaq C++
19902             # Make sure the PIC flag is empty.  It appears that all Alpha
19903             # Linux and Compaq Tru64 Unix objects are PIC.
19904             lt_prog_compiler_pic_CXX=
19905             lt_prog_compiler_static_CXX='-non_shared'
19906             ;;
19907           *)
19908             case `$CC -V 2>&1 | sed 5q` in
19909             *Sun\ C*)
19910               # Sun C++ 5.9
19911               lt_prog_compiler_pic_CXX='-KPIC'
19912               lt_prog_compiler_static_CXX='-Bstatic'
19913               lt_prog_compiler_wl_CXX='-Qoption ld '
19914               ;;
19915             esac
19916             ;;
19917         esac
19918         ;;
19919       lynxos*)
19920         ;;
19921       m88k*)
19922         ;;
19923       mvs*)
19924         case $cc_basename in
19925           cxx*)
19926             lt_prog_compiler_pic_CXX='-W c,exportall'
19927             ;;
19928           *)
19929             ;;
19930         esac
19931         ;;
19932       netbsd* | netbsdelf*-gnu)
19933         ;;
19934       osf3* | osf4* | osf5*)
19935         case $cc_basename in
19936           KCC*)
19937             lt_prog_compiler_wl_CXX='--backend -Wl,'
19938             ;;
19939           RCC*)
19940             # Rational C++ 2.4.1
19941             lt_prog_compiler_pic_CXX='-pic'
19942             ;;
19943           cxx*)
19944             # Digital/Compaq C++
19945             lt_prog_compiler_wl_CXX='-Wl,'
19946             # Make sure the PIC flag is empty.  It appears that all Alpha
19947             # Linux and Compaq Tru64 Unix objects are PIC.
19948             lt_prog_compiler_pic_CXX=
19949             lt_prog_compiler_static_CXX='-non_shared'
19950             ;;
19951           *)
19952             ;;
19953         esac
19954         ;;
19955       psos*)
19956         ;;
19957       solaris*)
19958         case $cc_basename in
19959           CC*)
19960             # Sun C++ 4.2, 5.x and Centerline C++
19961             lt_prog_compiler_pic_CXX='-KPIC'
19962             lt_prog_compiler_static_CXX='-Bstatic'
19963             lt_prog_compiler_wl_CXX='-Qoption ld '
19964             ;;
19965           gcx*)
19966             # Green Hills C++ Compiler
19967             lt_prog_compiler_pic_CXX='-PIC'
19968             ;;
19969           *)
19970             ;;
19971         esac
19972         ;;
19973       sunos4*)
19974         case $cc_basename in
19975           CC*)
19976             # Sun C++ 4.x
19977             lt_prog_compiler_pic_CXX='-pic'
19978             lt_prog_compiler_static_CXX='-Bstatic'
19979             ;;
19980           lcc*)
19981             # Lucid
19982             lt_prog_compiler_pic_CXX='-pic'
19983             ;;
19984           *)
19985             ;;
19986         esac
19987         ;;
19988       tandem*)
19989         case $cc_basename in
19990           NCC*)
19991             # NonStop-UX NCC 3.20
19992             lt_prog_compiler_pic_CXX='-KPIC'
19993             ;;
19994           *)
19995             ;;
19996         esac
19997         ;;
19998       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19999         case $cc_basename in
20000           CC*)
20001             lt_prog_compiler_wl_CXX='-Wl,'
20002             lt_prog_compiler_pic_CXX='-KPIC'
20003             lt_prog_compiler_static_CXX='-Bstatic'
20004             ;;
20005         esac
20006         ;;
20007       vxworks*)
20008         ;;
20009       *)
20010         lt_prog_compiler_can_build_shared_CXX=no
20011         ;;
20012     esac
20013   fi
20014
20015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20016 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20017
20018 #
20019 # Check to make sure the PIC flag actually works.
20020 #
20021 if test -n "$lt_prog_compiler_pic_CXX"; then
20022
20023 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20024 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20025 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   lt_cv_prog_compiler_pic_works_CXX=no
20029   ac_outfile=conftest.$ac_objext
20030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20031    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20032    # Insert the option either (1) after the last *FLAGS variable, or
20033    # (2) before a word containing "conftest.", or (3) at the end.
20034    # Note that $ac_compile itself does not contain backslashes and begins
20035    # with a dollar sign (not a hyphen), so the echo should work correctly.
20036    # The option is referenced via a variable to avoid confusing sed.
20037    lt_compile=`echo "$ac_compile" | $SED \
20038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20040    -e 's:$: $lt_compiler_flag:'`
20041    (eval echo "\"\$as_me:20041: $lt_compile\"" >&5)
20042    (eval "$lt_compile" 2>conftest.err)
20043    ac_status=$?
20044    cat conftest.err >&5
20045    echo "$as_me:20045: \$? = $ac_status" >&5
20046    if (exit $ac_status) && test -s "$ac_outfile"; then
20047      # The compiler can only warn and ignore the option if not recognized
20048      # So say no if there are warnings other than the usual output.
20049      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20050      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20052        lt_cv_prog_compiler_pic_works_CXX=yes
20053      fi
20054    fi
20055    $rm conftest*
20056
20057 fi
20058 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20059 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20060
20061 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20062     case $lt_prog_compiler_pic_CXX in
20063      "" | " "*) ;;
20064      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20065      esac
20066 else
20067     lt_prog_compiler_pic_CXX=
20068      lt_prog_compiler_can_build_shared_CXX=no
20069 fi
20070
20071 fi
20072 case $host_os in
20073   # For platforms which do not support PIC, -DPIC is meaningless:
20074   *djgpp*)
20075     lt_prog_compiler_pic_CXX=
20076     ;;
20077   *)
20078     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20079     ;;
20080 esac
20081
20082 #
20083 # Check to make sure the static flag actually works.
20084 #
20085 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20086 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20087 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20088 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   lt_cv_prog_compiler_static_works_CXX=no
20092    save_LDFLAGS="$LDFLAGS"
20093    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20094    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20095    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20096      # The linker can only warn and ignore the option if not recognized
20097      # So say no if there are warnings
20098      if test -s conftest.err; then
20099        # Append any errors to the config.log.
20100        cat conftest.err 1>&5
20101        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20102        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20103        if diff conftest.exp conftest.er2 >/dev/null; then
20104          lt_cv_prog_compiler_static_works_CXX=yes
20105        fi
20106      else
20107        lt_cv_prog_compiler_static_works_CXX=yes
20108      fi
20109    fi
20110    $rm -r conftest*
20111    LDFLAGS="$save_LDFLAGS"
20112
20113 fi
20114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20115 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
20116
20117 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20118     :
20119 else
20120     lt_prog_compiler_static_CXX=
20121 fi
20122
20123
20124 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20126 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   lt_cv_prog_compiler_c_o_CXX=no
20130    $rm -r conftest 2>/dev/null
20131    mkdir conftest
20132    cd conftest
20133    mkdir out
20134    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20135
20136    lt_compiler_flag="-o out/conftest2.$ac_objext"
20137    # Insert the option either (1) after the last *FLAGS variable, or
20138    # (2) before a word containing "conftest.", or (3) at the end.
20139    # Note that $ac_compile itself does not contain backslashes and begins
20140    # with a dollar sign (not a hyphen), so the echo should work correctly.
20141    lt_compile=`echo "$ac_compile" | $SED \
20142    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144    -e 's:$: $lt_compiler_flag:'`
20145    (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
20146    (eval "$lt_compile" 2>out/conftest.err)
20147    ac_status=$?
20148    cat out/conftest.err >&5
20149    echo "$as_me:20149: \$? = $ac_status" >&5
20150    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20151    then
20152      # The compiler can only warn and ignore the option if not recognized
20153      # So say no if there are warnings
20154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20155      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20156      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20157        lt_cv_prog_compiler_c_o_CXX=yes
20158      fi
20159    fi
20160    chmod u+w . 2>&5
20161    $rm conftest*
20162    # SGI C++ compiler will create directory out/ii_files/ for
20163    # template instantiation
20164    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20165    $rm out/* && rmdir out
20166    cd ..
20167    rmdir conftest
20168    $rm conftest*
20169
20170 fi
20171 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20173
20174
20175 hard_links="nottested"
20176 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20177   # do not overwrite the value of need_locks provided by the user
20178   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20180   hard_links=yes
20181   $rm conftest*
20182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20183   touch conftest.a
20184   ln conftest.a conftest.b 2>&5 || hard_links=no
20185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20186   { echo "$as_me:$LINENO: result: $hard_links" >&5
20187 echo "${ECHO_T}$hard_links" >&6; }
20188   if test "$hard_links" = no; then
20189     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20191     need_locks=warn
20192   fi
20193 else
20194   need_locks=no
20195 fi
20196
20197 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20199
20200   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20201   case $host_os in
20202   aix[4-9]*)
20203     # If we're using GNU nm, then we don't want the "-C" option.
20204     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20205     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20206       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'
20207     else
20208       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'
20209     fi
20210     ;;
20211   pw32*)
20212     export_symbols_cmds_CXX="$ltdll_cmds"
20213   ;;
20214   cygwin* | mingw*)
20215     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'
20216   ;;
20217   linux* | k*bsd*-gnu)
20218     link_all_deplibs_CXX=no
20219   ;;
20220   *)
20221     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20222   ;;
20223   esac
20224   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20225
20226 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20227 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20228 test "$ld_shlibs_CXX" = no && can_build_shared=no
20229
20230 #
20231 # Do we need to explicitly link libc?
20232 #
20233 case "x$archive_cmds_need_lc_CXX" in
20234 x|xyes)
20235   # Assume -lc should be added
20236   archive_cmds_need_lc_CXX=yes
20237
20238   if test "$enable_shared" = yes && test "$GCC" = yes; then
20239     case $archive_cmds_CXX in
20240     *'~'*)
20241       # FIXME: we may have to deal with multi-command sequences.
20242       ;;
20243     '$CC '*)
20244       # Test whether the compiler implicitly links with -lc since on some
20245       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20246       # to ld, don't add -lc before -lgcc.
20247       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20248 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20249       $rm conftest*
20250       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20251
20252       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253   (eval $ac_compile) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } 2>conftest.err; then
20257         soname=conftest
20258         lib=conftest
20259         libobjs=conftest.$ac_objext
20260         deplibs=
20261         wl=$lt_prog_compiler_wl_CXX
20262         pic_flag=$lt_prog_compiler_pic_CXX
20263         compiler_flags=-v
20264         linker_flags=-v
20265         verstring=
20266         output_objdir=.
20267         libname=conftest
20268         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20269         allow_undefined_flag_CXX=
20270         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20271   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }
20275         then
20276           archive_cmds_need_lc_CXX=no
20277         else
20278           archive_cmds_need_lc_CXX=yes
20279         fi
20280         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20281       else
20282         cat conftest.err 1>&5
20283       fi
20284       $rm conftest*
20285       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20286 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20287       ;;
20288     esac
20289   fi
20290   ;;
20291 esac
20292
20293 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20295 library_names_spec=
20296 libname_spec='lib$name'
20297 soname_spec=
20298 shrext_cmds=".so"
20299 postinstall_cmds=
20300 postuninstall_cmds=
20301 finish_cmds=
20302 finish_eval=
20303 shlibpath_var=
20304 shlibpath_overrides_runpath=unknown
20305 version_type=none
20306 dynamic_linker="$host_os ld.so"
20307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20308
20309 need_lib_prefix=unknown
20310 hardcode_into_libs=no
20311
20312 # when you set need_version to no, make sure it does not cause -set_version
20313 # flags to be left without arguments
20314 need_version=unknown
20315
20316 case $host_os in
20317 aix3*)
20318   version_type=linux
20319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20320   shlibpath_var=LIBPATH
20321
20322   # AIX 3 has no versioning support, so we append a major version to the name.
20323   soname_spec='${libname}${release}${shared_ext}$major'
20324   ;;
20325
20326 aix[4-9]*)
20327   version_type=linux
20328   need_lib_prefix=no
20329   need_version=no
20330   hardcode_into_libs=yes
20331   if test "$host_cpu" = ia64; then
20332     # AIX 5 supports IA64
20333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20334     shlibpath_var=LD_LIBRARY_PATH
20335   else
20336     # With GCC up to 2.95.x, collect2 would create an import file
20337     # for dependence libraries.  The import file would start with
20338     # the line `#! .'.  This would cause the generated library to
20339     # depend on `.', always an invalid library.  This was fixed in
20340     # development snapshots of GCC prior to 3.0.
20341     case $host_os in
20342       aix4 | aix4.[01] | aix4.[01].*)
20343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20344            echo ' yes '
20345            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20346         :
20347       else
20348         can_build_shared=no
20349       fi
20350       ;;
20351     esac
20352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20353     # soname into executable. Probably we can add versioning support to
20354     # collect2, so additional links can be useful in future.
20355     if test "$aix_use_runtimelinking" = yes; then
20356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20357       # instead of lib<name>.a to let people know that these are not
20358       # typical AIX shared libraries.
20359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360     else
20361       # We preserve .a as extension for shared libraries through AIX4.2
20362       # and later when we are not doing run time linking.
20363       library_names_spec='${libname}${release}.a $libname.a'
20364       soname_spec='${libname}${release}${shared_ext}$major'
20365     fi
20366     shlibpath_var=LIBPATH
20367   fi
20368   ;;
20369
20370 amigaos*)
20371   library_names_spec='$libname.ixlibrary $libname.a'
20372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20373   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'
20374   ;;
20375
20376 beos*)
20377   library_names_spec='${libname}${shared_ext}'
20378   dynamic_linker="$host_os ld.so"
20379   shlibpath_var=LIBRARY_PATH
20380   ;;
20381
20382 bsdi[45]*)
20383   version_type=linux
20384   need_version=no
20385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386   soname_spec='${libname}${release}${shared_ext}$major'
20387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20388   shlibpath_var=LD_LIBRARY_PATH
20389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20391   # the default ld.so.conf also contains /usr/contrib/lib and
20392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20393   # libtool to hard-code these into programs
20394   ;;
20395
20396 cygwin* | mingw* | pw32*)
20397   version_type=windows
20398   shrext_cmds=".dll"
20399   need_version=no
20400   need_lib_prefix=no
20401
20402   case $GCC,$host_os in
20403   yes,cygwin* | yes,mingw* | yes,pw32*)
20404     library_names_spec='$libname.dll.a'
20405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20406     postinstall_cmds='base_file=`basename \${file}`~
20407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20408       dldir=$destdir/`dirname \$dlpath`~
20409       test -d \$dldir || mkdir -p \$dldir~
20410       $install_prog $dir/$dlname \$dldir/$dlname~
20411       chmod a+x \$dldir/$dlname'
20412     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20413       dlpath=$dir/\$dldll~
20414        $rm \$dlpath'
20415     shlibpath_overrides_runpath=yes
20416
20417     case $host_os in
20418     cygwin*)
20419       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20420       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20421       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20422       ;;
20423     mingw*)
20424       # MinGW DLLs use traditional 'lib' prefix
20425       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20426       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20427       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20428         # It is most probably a Windows format PATH printed by
20429         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20430         # path with ; separators, and with drive letters. We can handle the
20431         # drive letters (cygwin fileutils understands them), so leave them,
20432         # especially as we might pass files found there to a mingw objdump,
20433         # which wouldn't understand a cygwinified path. Ahh.
20434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20435       else
20436         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20437       fi
20438       ;;
20439     pw32*)
20440       # pw32 DLLs use 'pw' prefix rather than 'lib'
20441       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20442       ;;
20443     esac
20444     ;;
20445
20446   *)
20447     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20448     ;;
20449   esac
20450   dynamic_linker='Win32 ld.exe'
20451   # FIXME: first we should search . and the directory the executable is in
20452   shlibpath_var=PATH
20453   ;;
20454
20455 darwin* | rhapsody*)
20456   dynamic_linker="$host_os dyld"
20457   version_type=darwin
20458   need_lib_prefix=no
20459   need_version=no
20460   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20461   soname_spec='${libname}${release}${major}$shared_ext'
20462   shlibpath_overrides_runpath=yes
20463   shlibpath_var=DYLD_LIBRARY_PATH
20464   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20465
20466   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20467   ;;
20468
20469 dgux*)
20470   version_type=linux
20471   need_lib_prefix=no
20472   need_version=no
20473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20474   soname_spec='${libname}${release}${shared_ext}$major'
20475   shlibpath_var=LD_LIBRARY_PATH
20476   ;;
20477
20478 freebsd1*)
20479   dynamic_linker=no
20480   ;;
20481
20482 freebsd* | dragonfly*)
20483   # DragonFly does not have aout.  When/if they implement a new
20484   # versioning mechanism, adjust this.
20485   if test -x /usr/bin/objformat; then
20486     objformat=`/usr/bin/objformat`
20487   else
20488     case $host_os in
20489     freebsd[123]*) objformat=aout ;;
20490     *) objformat=elf ;;
20491     esac
20492   fi
20493   version_type=freebsd-$objformat
20494   case $version_type in
20495     freebsd-elf*)
20496       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20497       need_version=no
20498       need_lib_prefix=no
20499       ;;
20500     freebsd-*)
20501       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20502       need_version=yes
20503       ;;
20504   esac
20505   shlibpath_var=LD_LIBRARY_PATH
20506   case $host_os in
20507   freebsd2*)
20508     shlibpath_overrides_runpath=yes
20509     ;;
20510   freebsd3.[01]* | freebsdelf3.[01]*)
20511     shlibpath_overrides_runpath=yes
20512     hardcode_into_libs=yes
20513     ;;
20514   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20515   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20516     shlibpath_overrides_runpath=no
20517     hardcode_into_libs=yes
20518     ;;
20519   *) # from 4.6 on, and DragonFly
20520     shlibpath_overrides_runpath=yes
20521     hardcode_into_libs=yes
20522     ;;
20523   esac
20524   ;;
20525
20526 gnu*)
20527   version_type=linux
20528   need_lib_prefix=no
20529   need_version=no
20530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20531   soname_spec='${libname}${release}${shared_ext}$major'
20532   shlibpath_var=LD_LIBRARY_PATH
20533   hardcode_into_libs=yes
20534   ;;
20535
20536 hpux9* | hpux10* | hpux11*)
20537   # Give a soname corresponding to the major version so that dld.sl refuses to
20538   # link against other versions.
20539   version_type=sunos
20540   need_lib_prefix=no
20541   need_version=no
20542   case $host_cpu in
20543   ia64*)
20544     shrext_cmds='.so'
20545     hardcode_into_libs=yes
20546     dynamic_linker="$host_os dld.so"
20547     shlibpath_var=LD_LIBRARY_PATH
20548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20550     soname_spec='${libname}${release}${shared_ext}$major'
20551     if test "X$HPUX_IA64_MODE" = X32; then
20552       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20553     else
20554       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20555     fi
20556     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20557     ;;
20558    hppa*64*)
20559      shrext_cmds='.sl'
20560      hardcode_into_libs=yes
20561      dynamic_linker="$host_os dld.sl"
20562      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20563      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20564      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565      soname_spec='${libname}${release}${shared_ext}$major'
20566      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20567      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20568      ;;
20569    *)
20570     shrext_cmds='.sl'
20571     dynamic_linker="$host_os dld.sl"
20572     shlibpath_var=SHLIB_PATH
20573     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575     soname_spec='${libname}${release}${shared_ext}$major'
20576     ;;
20577   esac
20578   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20579   postinstall_cmds='chmod 555 $lib'
20580   ;;
20581
20582 interix[3-9]*)
20583   version_type=linux
20584   need_lib_prefix=no
20585   need_version=no
20586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20587   soname_spec='${libname}${release}${shared_ext}$major'
20588   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20589   shlibpath_var=LD_LIBRARY_PATH
20590   shlibpath_overrides_runpath=no
20591   hardcode_into_libs=yes
20592   ;;
20593
20594 irix5* | irix6* | nonstopux*)
20595   case $host_os in
20596     nonstopux*) version_type=nonstopux ;;
20597     *)
20598         if test "$lt_cv_prog_gnu_ld" = yes; then
20599                 version_type=linux
20600         else
20601                 version_type=irix
20602         fi ;;
20603   esac
20604   need_lib_prefix=no
20605   need_version=no
20606   soname_spec='${libname}${release}${shared_ext}$major'
20607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20608   case $host_os in
20609   irix5* | nonstopux*)
20610     libsuff= shlibsuff=
20611     ;;
20612   *)
20613     case $LD in # libtool.m4 will add one of these switches to LD
20614     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20615       libsuff= shlibsuff= libmagic=32-bit;;
20616     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20617       libsuff=32 shlibsuff=N32 libmagic=N32;;
20618     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20619       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20620     *) libsuff= shlibsuff= libmagic=never-match;;
20621     esac
20622     ;;
20623   esac
20624   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20625   shlibpath_overrides_runpath=no
20626   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20627   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20628   hardcode_into_libs=yes
20629   ;;
20630
20631 # No shared lib support for Linux oldld, aout, or coff.
20632 linux*oldld* | linux*aout* | linux*coff*)
20633   dynamic_linker=no
20634   ;;
20635
20636 # This must be Linux ELF.
20637 linux* | k*bsd*-gnu)
20638   version_type=linux
20639   need_lib_prefix=no
20640   need_version=no
20641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20642   soname_spec='${libname}${release}${shared_ext}$major'
20643   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20644   shlibpath_var=LD_LIBRARY_PATH
20645   shlibpath_overrides_runpath=no
20646   # This implies no fast_install, which is unacceptable.
20647   # Some rework will be needed to allow for fast_install
20648   # before this can be enabled.
20649   hardcode_into_libs=yes
20650
20651   # Append ld.so.conf contents to the search path
20652   if test -f /etc/ld.so.conf; then
20653     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20654     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20655   fi
20656
20657   # We used to test for /lib/ld.so.1 and disable shared libraries on
20658   # powerpc, because MkLinux only supported shared libraries with the
20659   # GNU dynamic linker.  Since this was broken with cross compilers,
20660   # most powerpc-linux boxes support dynamic linking these days and
20661   # people can always --disable-shared, the test was removed, and we
20662   # assume the GNU/Linux dynamic linker is in use.
20663   dynamic_linker='GNU/Linux ld.so'
20664   ;;
20665
20666 netbsdelf*-gnu)
20667   version_type=linux
20668   need_lib_prefix=no
20669   need_version=no
20670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20671   soname_spec='${libname}${release}${shared_ext}$major'
20672   shlibpath_var=LD_LIBRARY_PATH
20673   shlibpath_overrides_runpath=no
20674   hardcode_into_libs=yes
20675   dynamic_linker='NetBSD ld.elf_so'
20676   ;;
20677
20678 netbsd*)
20679   version_type=sunos
20680   need_lib_prefix=no
20681   need_version=no
20682   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20684     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20685     dynamic_linker='NetBSD (a.out) ld.so'
20686   else
20687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20688     soname_spec='${libname}${release}${shared_ext}$major'
20689     dynamic_linker='NetBSD ld.elf_so'
20690   fi
20691   shlibpath_var=LD_LIBRARY_PATH
20692   shlibpath_overrides_runpath=yes
20693   hardcode_into_libs=yes
20694   ;;
20695
20696 newsos6)
20697   version_type=linux
20698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20699   shlibpath_var=LD_LIBRARY_PATH
20700   shlibpath_overrides_runpath=yes
20701   ;;
20702
20703 nto-qnx*)
20704   version_type=linux
20705   need_lib_prefix=no
20706   need_version=no
20707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20708   soname_spec='${libname}${release}${shared_ext}$major'
20709   shlibpath_var=LD_LIBRARY_PATH
20710   shlibpath_overrides_runpath=yes
20711   ;;
20712
20713 openbsd*)
20714   version_type=sunos
20715   sys_lib_dlsearch_path_spec="/usr/lib"
20716   need_lib_prefix=no
20717   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20718   case $host_os in
20719     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20720     *)                         need_version=no  ;;
20721   esac
20722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20724   shlibpath_var=LD_LIBRARY_PATH
20725   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20726     case $host_os in
20727       openbsd2.[89] | openbsd2.[89].*)
20728         shlibpath_overrides_runpath=no
20729         ;;
20730       *)
20731         shlibpath_overrides_runpath=yes
20732         ;;
20733       esac
20734   else
20735     shlibpath_overrides_runpath=yes
20736   fi
20737   ;;
20738
20739 os2*)
20740   libname_spec='$name'
20741   shrext_cmds=".dll"
20742   need_lib_prefix=no
20743   library_names_spec='$libname${shared_ext} $libname.a'
20744   dynamic_linker='OS/2 ld.exe'
20745   shlibpath_var=LIBPATH
20746   ;;
20747
20748 osf3* | osf4* | osf5*)
20749   version_type=osf
20750   need_lib_prefix=no
20751   need_version=no
20752   soname_spec='${libname}${release}${shared_ext}$major'
20753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754   shlibpath_var=LD_LIBRARY_PATH
20755   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20756   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20757   ;;
20758
20759 rdos*)
20760   dynamic_linker=no
20761   ;;
20762
20763 solaris*)
20764   version_type=linux
20765   need_lib_prefix=no
20766   need_version=no
20767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768   soname_spec='${libname}${release}${shared_ext}$major'
20769   shlibpath_var=LD_LIBRARY_PATH
20770   shlibpath_overrides_runpath=yes
20771   hardcode_into_libs=yes
20772   # ldd complains unless libraries are executable
20773   postinstall_cmds='chmod +x $lib'
20774   ;;
20775
20776 sunos4*)
20777   version_type=sunos
20778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20780   shlibpath_var=LD_LIBRARY_PATH
20781   shlibpath_overrides_runpath=yes
20782   if test "$with_gnu_ld" = yes; then
20783     need_lib_prefix=no
20784   fi
20785   need_version=yes
20786   ;;
20787
20788 sysv4 | sysv4.3*)
20789   version_type=linux
20790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791   soname_spec='${libname}${release}${shared_ext}$major'
20792   shlibpath_var=LD_LIBRARY_PATH
20793   case $host_vendor in
20794     sni)
20795       shlibpath_overrides_runpath=no
20796       need_lib_prefix=no
20797       export_dynamic_flag_spec='${wl}-Blargedynsym'
20798       runpath_var=LD_RUN_PATH
20799       ;;
20800     siemens)
20801       need_lib_prefix=no
20802       ;;
20803     motorola)
20804       need_lib_prefix=no
20805       need_version=no
20806       shlibpath_overrides_runpath=no
20807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20808       ;;
20809   esac
20810   ;;
20811
20812 sysv4*MP*)
20813   if test -d /usr/nec ;then
20814     version_type=linux
20815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20816     soname_spec='$libname${shared_ext}.$major'
20817     shlibpath_var=LD_LIBRARY_PATH
20818   fi
20819   ;;
20820
20821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20822   version_type=freebsd-elf
20823   need_lib_prefix=no
20824   need_version=no
20825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20826   soname_spec='${libname}${release}${shared_ext}$major'
20827   shlibpath_var=LD_LIBRARY_PATH
20828   hardcode_into_libs=yes
20829   if test "$with_gnu_ld" = yes; then
20830     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20831     shlibpath_overrides_runpath=no
20832   else
20833     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20834     shlibpath_overrides_runpath=yes
20835     case $host_os in
20836       sco3.2v5*)
20837         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20838         ;;
20839     esac
20840   fi
20841   sys_lib_dlsearch_path_spec='/usr/lib'
20842   ;;
20843
20844 uts4*)
20845   version_type=linux
20846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847   soname_spec='${libname}${release}${shared_ext}$major'
20848   shlibpath_var=LD_LIBRARY_PATH
20849   ;;
20850
20851 *)
20852   dynamic_linker=no
20853   ;;
20854 esac
20855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20856 echo "${ECHO_T}$dynamic_linker" >&6; }
20857 test "$dynamic_linker" = no && can_build_shared=no
20858
20859 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20863 fi
20864
20865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20866 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20870 fi
20871
20872 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20873
20874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20875 if test "$GCC" = yes; then
20876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20877 fi
20878
20879 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20880 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20881 hardcode_action_CXX=
20882 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20883    test -n "$runpath_var_CXX" || \
20884    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20885
20886   # We can hardcode non-existant directories.
20887   if test "$hardcode_direct_CXX" != no &&
20888      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20889      # have to relink, otherwise we might link with an installed library
20890      # when we should be linking with a yet-to-be-installed one
20891      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20892      test "$hardcode_minus_L_CXX" != no; then
20893     # Linking always hardcodes the temporary library directory.
20894     hardcode_action_CXX=relink
20895   else
20896     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20897     hardcode_action_CXX=immediate
20898   fi
20899 else
20900   # We cannot hardcode anything, or else we can only hardcode existing
20901   # directories.
20902   hardcode_action_CXX=unsupported
20903 fi
20904 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20905 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20906
20907 if test "$hardcode_action_CXX" = relink; then
20908   # Fast installation is not supported
20909   enable_fast_install=no
20910 elif test "$shlibpath_overrides_runpath" = yes ||
20911      test "$enable_shared" = no; then
20912   # Fast installation is not necessary
20913   enable_fast_install=needless
20914 fi
20915
20916
20917 # The else clause should only fire when bootstrapping the
20918 # libtool distribution, otherwise you forgot to ship ltmain.sh
20919 # with your package, and you will get complaints that there are
20920 # no rules to generate ltmain.sh.
20921 if test -f "$ltmain"; then
20922   # See if we are running on zsh, and set the options which allow our commands through
20923   # without removal of \ escapes.
20924   if test -n "${ZSH_VERSION+set}" ; then
20925     setopt NO_GLOB_SUBST
20926   fi
20927   # Now quote all the things that may contain metacharacters while being
20928   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20929   # variables and quote the copies for generation of the libtool script.
20930   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20931     SED SHELL STRIP \
20932     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20933     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20934     deplibs_check_method reload_flag reload_cmds need_locks \
20935     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20936     lt_cv_sys_global_symbol_to_c_name_address \
20937     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20938     old_postinstall_cmds old_postuninstall_cmds \
20939     compiler_CXX \
20940     CC_CXX \
20941     LD_CXX \
20942     lt_prog_compiler_wl_CXX \
20943     lt_prog_compiler_pic_CXX \
20944     lt_prog_compiler_static_CXX \
20945     lt_prog_compiler_no_builtin_flag_CXX \
20946     export_dynamic_flag_spec_CXX \
20947     thread_safe_flag_spec_CXX \
20948     whole_archive_flag_spec_CXX \
20949     enable_shared_with_static_runtimes_CXX \
20950     old_archive_cmds_CXX \
20951     old_archive_from_new_cmds_CXX \
20952     predep_objects_CXX \
20953     postdep_objects_CXX \
20954     predeps_CXX \
20955     postdeps_CXX \
20956     compiler_lib_search_path_CXX \
20957     compiler_lib_search_dirs_CXX \
20958     archive_cmds_CXX \
20959     archive_expsym_cmds_CXX \
20960     postinstall_cmds_CXX \
20961     postuninstall_cmds_CXX \
20962     old_archive_from_expsyms_cmds_CXX \
20963     allow_undefined_flag_CXX \
20964     no_undefined_flag_CXX \
20965     export_symbols_cmds_CXX \
20966     hardcode_libdir_flag_spec_CXX \
20967     hardcode_libdir_flag_spec_ld_CXX \
20968     hardcode_libdir_separator_CXX \
20969     hardcode_automatic_CXX \
20970     module_cmds_CXX \
20971     module_expsym_cmds_CXX \
20972     lt_cv_prog_compiler_c_o_CXX \
20973     fix_srcfile_path_CXX \
20974     exclude_expsyms_CXX \
20975     include_expsyms_CXX; do
20976
20977     case $var in
20978     old_archive_cmds_CXX | \
20979     old_archive_from_new_cmds_CXX | \
20980     archive_cmds_CXX | \
20981     archive_expsym_cmds_CXX | \
20982     module_cmds_CXX | \
20983     module_expsym_cmds_CXX | \
20984     old_archive_from_expsyms_cmds_CXX | \
20985     export_symbols_cmds_CXX | \
20986     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20987     postinstall_cmds | postuninstall_cmds | \
20988     old_postinstall_cmds | old_postuninstall_cmds | \
20989     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20990       # Double-quote double-evaled strings.
20991       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20992       ;;
20993     *)
20994       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20995       ;;
20996     esac
20997   done
20998
20999   case $lt_echo in
21000   *'\$0 --fallback-echo"')
21001     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21002     ;;
21003   esac
21004
21005 cfgfile="$ofile"
21006
21007   cat <<__EOF__ >> "$cfgfile"
21008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21009
21010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21011
21012 # Shell to use when invoking shell scripts.
21013 SHELL=$lt_SHELL
21014
21015 # Whether or not to build shared libraries.
21016 build_libtool_libs=$enable_shared
21017
21018 # Whether or not to build static libraries.
21019 build_old_libs=$enable_static
21020
21021 # Whether or not to add -lc for building shared libraries.
21022 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21023
21024 # Whether or not to disallow shared libs when runtime libs are static
21025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21026
21027 # Whether or not to optimize for fast installation.
21028 fast_install=$enable_fast_install
21029
21030 # The host system.
21031 host_alias=$host_alias
21032 host=$host
21033 host_os=$host_os
21034
21035 # The build system.
21036 build_alias=$build_alias
21037 build=$build
21038 build_os=$build_os
21039
21040 # An echo program that does not interpret backslashes.
21041 echo=$lt_echo
21042
21043 # The archiver.
21044 AR=$lt_AR
21045 AR_FLAGS=$lt_AR_FLAGS
21046
21047 # A C compiler.
21048 LTCC=$lt_LTCC
21049
21050 # LTCC compiler flags.
21051 LTCFLAGS=$lt_LTCFLAGS
21052
21053 # A language-specific compiler.
21054 CC=$lt_compiler_CXX
21055
21056 # Is the compiler the GNU C compiler?
21057 with_gcc=$GCC_CXX
21058
21059 # An ERE matcher.
21060 EGREP=$lt_EGREP
21061
21062 # The linker used to build libraries.
21063 LD=$lt_LD_CXX
21064
21065 # Whether we need hard or soft links.
21066 LN_S=$lt_LN_S
21067
21068 # A BSD-compatible nm program.
21069 NM=$lt_NM
21070
21071 # A symbol stripping program
21072 STRIP=$lt_STRIP
21073
21074 # Used to examine libraries when file_magic_cmd begins "file"
21075 MAGIC_CMD=$MAGIC_CMD
21076
21077 # Used on cygwin: DLL creation program.
21078 DLLTOOL="$DLLTOOL"
21079
21080 # Used on cygwin: object dumper.
21081 OBJDUMP="$OBJDUMP"
21082
21083 # Used on cygwin: assembler.
21084 AS="$AS"
21085
21086 # The name of the directory that contains temporary libtool files.
21087 objdir=$objdir
21088
21089 # How to create reloadable object files.
21090 reload_flag=$lt_reload_flag
21091 reload_cmds=$lt_reload_cmds
21092
21093 # How to pass a linker flag through the compiler.
21094 wl=$lt_lt_prog_compiler_wl_CXX
21095
21096 # Object file suffix (normally "o").
21097 objext="$ac_objext"
21098
21099 # Old archive suffix (normally "a").
21100 libext="$libext"
21101
21102 # Shared library suffix (normally ".so").
21103 shrext_cmds='$shrext_cmds'
21104
21105 # Executable file suffix (normally "").
21106 exeext="$exeext"
21107
21108 # Additional compiler flags for building library objects.
21109 pic_flag=$lt_lt_prog_compiler_pic_CXX
21110 pic_mode=$pic_mode
21111
21112 # What is the maximum length of a command?
21113 max_cmd_len=$lt_cv_sys_max_cmd_len
21114
21115 # Does compiler simultaneously support -c and -o options?
21116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21117
21118 # Must we lock files when doing compilation?
21119 need_locks=$lt_need_locks
21120
21121 # Do we need the lib prefix for modules?
21122 need_lib_prefix=$need_lib_prefix
21123
21124 # Do we need a version for libraries?
21125 need_version=$need_version
21126
21127 # Whether dlopen is supported.
21128 dlopen_support=$enable_dlopen
21129
21130 # Whether dlopen of programs is supported.
21131 dlopen_self=$enable_dlopen_self
21132
21133 # Whether dlopen of statically linked programs is supported.
21134 dlopen_self_static=$enable_dlopen_self_static
21135
21136 # Compiler flag to prevent dynamic linking.
21137 link_static_flag=$lt_lt_prog_compiler_static_CXX
21138
21139 # Compiler flag to turn off builtin functions.
21140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21141
21142 # Compiler flag to allow reflexive dlopens.
21143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21144
21145 # Compiler flag to generate shared objects directly from archives.
21146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21147
21148 # Compiler flag to generate thread-safe objects.
21149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21150
21151 # Library versioning type.
21152 version_type=$version_type
21153
21154 # Format of library name prefix.
21155 libname_spec=$lt_libname_spec
21156
21157 # List of archive names.  First name is the real one, the rest are links.
21158 # The last name is the one that the linker finds with -lNAME.
21159 library_names_spec=$lt_library_names_spec
21160
21161 # The coded name of the library, if different from the real name.
21162 soname_spec=$lt_soname_spec
21163
21164 # Commands used to build and install an old-style archive.
21165 RANLIB=$lt_RANLIB
21166 old_archive_cmds=$lt_old_archive_cmds_CXX
21167 old_postinstall_cmds=$lt_old_postinstall_cmds
21168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21169
21170 # Create an old-style archive from a shared archive.
21171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21172
21173 # Create a temporary old-style archive to link instead of a shared archive.
21174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21175
21176 # Commands used to build and install a shared archive.
21177 archive_cmds=$lt_archive_cmds_CXX
21178 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21179 postinstall_cmds=$lt_postinstall_cmds
21180 postuninstall_cmds=$lt_postuninstall_cmds
21181
21182 # Commands used to build a loadable module (assumed same as above if empty)
21183 module_cmds=$lt_module_cmds_CXX
21184 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21185
21186 # Commands to strip libraries.
21187 old_striplib=$lt_old_striplib
21188 striplib=$lt_striplib
21189
21190 # Dependencies to place before the objects being linked to create a
21191 # shared library.
21192 predep_objects=$lt_predep_objects_CXX
21193
21194 # Dependencies to place after the objects being linked to create a
21195 # shared library.
21196 postdep_objects=$lt_postdep_objects_CXX
21197
21198 # Dependencies to place before the objects being linked to create a
21199 # shared library.
21200 predeps=$lt_predeps_CXX
21201
21202 # Dependencies to place after the objects being linked to create a
21203 # shared library.
21204 postdeps=$lt_postdeps_CXX
21205
21206 # The directories searched by this compiler when creating a shared
21207 # library
21208 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21209
21210 # The library search path used internally by the compiler when linking
21211 # a shared library.
21212 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21213
21214 # Method to check whether dependent libraries are shared objects.
21215 deplibs_check_method=$lt_deplibs_check_method
21216
21217 # Command to use when deplibs_check_method == file_magic.
21218 file_magic_cmd=$lt_file_magic_cmd
21219
21220 # Flag that allows shared libraries with undefined symbols to be built.
21221 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21222
21223 # Flag that forces no undefined symbols.
21224 no_undefined_flag=$lt_no_undefined_flag_CXX
21225
21226 # Commands used to finish a libtool library installation in a directory.
21227 finish_cmds=$lt_finish_cmds
21228
21229 # Same as above, but a single script fragment to be evaled but not shown.
21230 finish_eval=$lt_finish_eval
21231
21232 # Take the output of nm and produce a listing of raw symbols and C names.
21233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21234
21235 # Transform the output of nm in a proper C declaration
21236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21237
21238 # Transform the output of nm in a C name address pair
21239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21240
21241 # This is the shared library runtime path variable.
21242 runpath_var=$runpath_var
21243
21244 # This is the shared library path variable.
21245 shlibpath_var=$shlibpath_var
21246
21247 # Is shlibpath searched before the hard-coded library search path?
21248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21249
21250 # How to hardcode a shared library path into an executable.
21251 hardcode_action=$hardcode_action_CXX
21252
21253 # Whether we should hardcode library paths into libraries.
21254 hardcode_into_libs=$hardcode_into_libs
21255
21256 # Flag to hardcode \$libdir into a binary during linking.
21257 # This must work even if \$libdir does not exist.
21258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21259
21260 # If ld is used when linking, flag to hardcode \$libdir into
21261 # a binary during linking. This must work even if \$libdir does
21262 # not exist.
21263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21264
21265 # Whether we need a single -rpath flag with a separated argument.
21266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21267
21268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21269 # resulting binary.
21270 hardcode_direct=$hardcode_direct_CXX
21271
21272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21273 # resulting binary.
21274 hardcode_minus_L=$hardcode_minus_L_CXX
21275
21276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21277 # the resulting binary.
21278 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21279
21280 # Set to yes if building a shared library automatically hardcodes DIR into the library
21281 # and all subsequent libraries and executables linked against it.
21282 hardcode_automatic=$hardcode_automatic_CXX
21283
21284 # Variables whose values should be saved in libtool wrapper scripts and
21285 # restored at relink time.
21286 variables_saved_for_relink="$variables_saved_for_relink"
21287
21288 # Whether libtool must link a program against all its dependency libraries.
21289 link_all_deplibs=$link_all_deplibs_CXX
21290
21291 # Compile-time system search path for libraries
21292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21293
21294 # Run-time system search path for libraries
21295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21296
21297 # Fix the shell variable \$srcfile for the compiler.
21298 fix_srcfile_path=$lt_fix_srcfile_path
21299
21300 # Set to yes if exported symbols are required.
21301 always_export_symbols=$always_export_symbols_CXX
21302
21303 # The commands to list exported symbols.
21304 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21305
21306 # The commands to extract the exported symbol list from a shared archive.
21307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21308
21309 # Symbols that should not be listed in the preloaded symbols.
21310 exclude_expsyms=$lt_exclude_expsyms_CXX
21311
21312 # Symbols that must always be exported.
21313 include_expsyms=$lt_include_expsyms_CXX
21314
21315 # ### END LIBTOOL TAG CONFIG: $tagname
21316
21317 __EOF__
21318
21319
21320 else
21321   # If there is no Makefile yet, we rely on a make rule to execute
21322   # `config.status --recheck' to rerun these tests and create the
21323   # libtool script then.
21324   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21325   if test -f "$ltmain_in"; then
21326     test -f Makefile && make "$ltmain"
21327   fi
21328 fi
21329
21330
21331 ac_ext=c
21332 ac_cpp='$CPP $CPPFLAGS'
21333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21336
21337 CC=$lt_save_CC
21338 LDCXX=$LD
21339 LD=$lt_save_LD
21340 GCC=$lt_save_GCC
21341 with_gnu_ldcxx=$with_gnu_ld
21342 with_gnu_ld=$lt_save_with_gnu_ld
21343 lt_cv_path_LDCXX=$lt_cv_path_LD
21344 lt_cv_path_LD=$lt_save_path_LD
21345 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21346 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21347
21348         else
21349           tagname=""
21350         fi
21351         ;;
21352
21353       F77)
21354         if test -n "$F77" && test "X$F77" != "Xno"; then
21355
21356 ac_ext=f
21357 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21358 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21360
21361
21362 archive_cmds_need_lc_F77=no
21363 allow_undefined_flag_F77=
21364 always_export_symbols_F77=no
21365 archive_expsym_cmds_F77=
21366 export_dynamic_flag_spec_F77=
21367 hardcode_direct_F77=no
21368 hardcode_libdir_flag_spec_F77=
21369 hardcode_libdir_flag_spec_ld_F77=
21370 hardcode_libdir_separator_F77=
21371 hardcode_minus_L_F77=no
21372 hardcode_automatic_F77=no
21373 module_cmds_F77=
21374 module_expsym_cmds_F77=
21375 link_all_deplibs_F77=unknown
21376 old_archive_cmds_F77=$old_archive_cmds
21377 no_undefined_flag_F77=
21378 whole_archive_flag_spec_F77=
21379 enable_shared_with_static_runtimes_F77=no
21380
21381 # Source file extension for f77 test sources.
21382 ac_ext=f
21383
21384 # Object file extension for compiled f77 test sources.
21385 objext=o
21386 objext_F77=$objext
21387
21388 # Code to be used in simple compile tests
21389 lt_simple_compile_test_code="\
21390       subroutine t
21391       return
21392       end
21393 "
21394
21395 # Code to be used in simple link tests
21396 lt_simple_link_test_code="\
21397       program t
21398       end
21399 "
21400
21401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21402
21403 # If no C compiler was specified, use CC.
21404 LTCC=${LTCC-"$CC"}
21405
21406 # If no C compiler flags were specified, use CFLAGS.
21407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21408
21409 # Allow CC to be a program name with arguments.
21410 compiler=$CC
21411
21412
21413 # save warnings/boilerplate of simple test code
21414 ac_outfile=conftest.$ac_objext
21415 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21417 _lt_compiler_boilerplate=`cat conftest.err`
21418 $rm conftest*
21419
21420 ac_outfile=conftest.$ac_objext
21421 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21423 _lt_linker_boilerplate=`cat conftest.err`
21424 $rm -r conftest*
21425
21426
21427 # Allow CC to be a program name with arguments.
21428 lt_save_CC="$CC"
21429 CC=${F77-"f77"}
21430 compiler=$CC
21431 compiler_F77=$CC
21432 for cc_temp in $compiler""; do
21433   case $cc_temp in
21434     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21435     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21436     \-*) ;;
21437     *) break;;
21438   esac
21439 done
21440 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21441
21442
21443 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21444 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21445 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21446 echo "${ECHO_T}$can_build_shared" >&6; }
21447
21448 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21449 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21450 test "$can_build_shared" = "no" && enable_shared=no
21451
21452 # On AIX, shared libraries and static libraries use the same namespace, and
21453 # are all built from PIC.
21454 case $host_os in
21455 aix3*)
21456   test "$enable_shared" = yes && enable_static=no
21457   if test -n "$RANLIB"; then
21458     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21459     postinstall_cmds='$RANLIB $lib'
21460   fi
21461   ;;
21462 aix[4-9]*)
21463   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21464     test "$enable_shared" = yes && enable_static=no
21465   fi
21466   ;;
21467 esac
21468 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21469 echo "${ECHO_T}$enable_shared" >&6; }
21470
21471 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21472 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21473 # Make sure either enable_shared or enable_static is yes.
21474 test "$enable_shared" = yes || enable_static=yes
21475 { echo "$as_me:$LINENO: result: $enable_static" >&5
21476 echo "${ECHO_T}$enable_static" >&6; }
21477
21478 GCC_F77="$G77"
21479 LD_F77="$LD"
21480
21481 lt_prog_compiler_wl_F77=
21482 lt_prog_compiler_pic_F77=
21483 lt_prog_compiler_static_F77=
21484
21485 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21486 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21487
21488   if test "$GCC" = yes; then
21489     lt_prog_compiler_wl_F77='-Wl,'
21490     lt_prog_compiler_static_F77='-static'
21491
21492     case $host_os in
21493       aix*)
21494       # All AIX code is PIC.
21495       if test "$host_cpu" = ia64; then
21496         # AIX 5 now supports IA64 processor
21497         lt_prog_compiler_static_F77='-Bstatic'
21498       fi
21499       ;;
21500
21501     amigaos*)
21502       # FIXME: we need at least 68020 code to build shared libraries, but
21503       # adding the `-m68020' flag to GCC prevents building anything better,
21504       # like `-m68040'.
21505       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21506       ;;
21507
21508     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21509       # PIC is the default for these OSes.
21510       ;;
21511
21512     mingw* | cygwin* | pw32* | os2*)
21513       # This hack is so that the source file can tell whether it is being
21514       # built for inclusion in a dll (and should export symbols for example).
21515       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21516       # (--disable-auto-import) libraries
21517       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21518       ;;
21519
21520     darwin* | rhapsody*)
21521       # PIC is the default on this platform
21522       # Common symbols not allowed in MH_DYLIB files
21523       lt_prog_compiler_pic_F77='-fno-common'
21524       ;;
21525
21526     interix[3-9]*)
21527       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21528       # Instead, we relocate shared libraries at runtime.
21529       ;;
21530
21531     msdosdjgpp*)
21532       # Just because we use GCC doesn't mean we suddenly get shared libraries
21533       # on systems that don't support them.
21534       lt_prog_compiler_can_build_shared_F77=no
21535       enable_shared=no
21536       ;;
21537
21538     sysv4*MP*)
21539       if test -d /usr/nec; then
21540         lt_prog_compiler_pic_F77=-Kconform_pic
21541       fi
21542       ;;
21543
21544     hpux*)
21545       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21546       # not for PA HP-UX.
21547       case $host_cpu in
21548       hppa*64*|ia64*)
21549         # +Z the default
21550         ;;
21551       *)
21552         lt_prog_compiler_pic_F77='-fPIC'
21553         ;;
21554       esac
21555       ;;
21556
21557     *)
21558       lt_prog_compiler_pic_F77='-fPIC'
21559       ;;
21560     esac
21561   else
21562     # PORTME Check for flag to pass linker flags through the system compiler.
21563     case $host_os in
21564     aix*)
21565       lt_prog_compiler_wl_F77='-Wl,'
21566       if test "$host_cpu" = ia64; then
21567         # AIX 5 now supports IA64 processor
21568         lt_prog_compiler_static_F77='-Bstatic'
21569       else
21570         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21571       fi
21572       ;;
21573       darwin*)
21574         # PIC is the default on this platform
21575         # Common symbols not allowed in MH_DYLIB files
21576        case $cc_basename in
21577          xlc*)
21578          lt_prog_compiler_pic_F77='-qnocommon'
21579          lt_prog_compiler_wl_F77='-Wl,'
21580          ;;
21581        esac
21582        ;;
21583
21584     mingw* | cygwin* | pw32* | os2*)
21585       # This hack is so that the source file can tell whether it is being
21586       # built for inclusion in a dll (and should export symbols for example).
21587       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21588       ;;
21589
21590     hpux9* | hpux10* | hpux11*)
21591       lt_prog_compiler_wl_F77='-Wl,'
21592       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21593       # not for PA HP-UX.
21594       case $host_cpu in
21595       hppa*64*|ia64*)
21596         # +Z the default
21597         ;;
21598       *)
21599         lt_prog_compiler_pic_F77='+Z'
21600         ;;
21601       esac
21602       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21603       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21604       ;;
21605
21606     irix5* | irix6* | nonstopux*)
21607       lt_prog_compiler_wl_F77='-Wl,'
21608       # PIC (with -KPIC) is the default.
21609       lt_prog_compiler_static_F77='-non_shared'
21610       ;;
21611
21612     newsos6)
21613       lt_prog_compiler_pic_F77='-KPIC'
21614       lt_prog_compiler_static_F77='-Bstatic'
21615       ;;
21616
21617     linux* | k*bsd*-gnu)
21618       case $cc_basename in
21619       icc* | ecc*)
21620         lt_prog_compiler_wl_F77='-Wl,'
21621         lt_prog_compiler_pic_F77='-KPIC'
21622         lt_prog_compiler_static_F77='-static'
21623         ;;
21624       pgcc* | pgf77* | pgf90* | pgf95*)
21625         # Portland Group compilers (*not* the Pentium gcc compiler,
21626         # which looks to be a dead project)
21627         lt_prog_compiler_wl_F77='-Wl,'
21628         lt_prog_compiler_pic_F77='-fpic'
21629         lt_prog_compiler_static_F77='-Bstatic'
21630         ;;
21631       ccc*)
21632         lt_prog_compiler_wl_F77='-Wl,'
21633         # All Alpha code is PIC.
21634         lt_prog_compiler_static_F77='-non_shared'
21635         ;;
21636       *)
21637         case `$CC -V 2>&1 | sed 5q` in
21638         *Sun\ C*)
21639           # Sun C 5.9
21640           lt_prog_compiler_pic_F77='-KPIC'
21641           lt_prog_compiler_static_F77='-Bstatic'
21642           lt_prog_compiler_wl_F77='-Wl,'
21643           ;;
21644         *Sun\ F*)
21645           # Sun Fortran 8.3 passes all unrecognized flags to the linker
21646           lt_prog_compiler_pic_F77='-KPIC'
21647           lt_prog_compiler_static_F77='-Bstatic'
21648           lt_prog_compiler_wl_F77=''
21649           ;;
21650         esac
21651         ;;
21652       esac
21653       ;;
21654
21655     osf3* | osf4* | osf5*)
21656       lt_prog_compiler_wl_F77='-Wl,'
21657       # All OSF/1 code is PIC.
21658       lt_prog_compiler_static_F77='-non_shared'
21659       ;;
21660
21661     rdos*)
21662       lt_prog_compiler_static_F77='-non_shared'
21663       ;;
21664
21665     solaris*)
21666       lt_prog_compiler_pic_F77='-KPIC'
21667       lt_prog_compiler_static_F77='-Bstatic'
21668       case $cc_basename in
21669       f77* | f90* | f95*)
21670         lt_prog_compiler_wl_F77='-Qoption ld ';;
21671       *)
21672         lt_prog_compiler_wl_F77='-Wl,';;
21673       esac
21674       ;;
21675
21676     sunos4*)
21677       lt_prog_compiler_wl_F77='-Qoption ld '
21678       lt_prog_compiler_pic_F77='-PIC'
21679       lt_prog_compiler_static_F77='-Bstatic'
21680       ;;
21681
21682     sysv4 | sysv4.2uw2* | sysv4.3*)
21683       lt_prog_compiler_wl_F77='-Wl,'
21684       lt_prog_compiler_pic_F77='-KPIC'
21685       lt_prog_compiler_static_F77='-Bstatic'
21686       ;;
21687
21688     sysv4*MP*)
21689       if test -d /usr/nec ;then
21690         lt_prog_compiler_pic_F77='-Kconform_pic'
21691         lt_prog_compiler_static_F77='-Bstatic'
21692       fi
21693       ;;
21694
21695     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21696       lt_prog_compiler_wl_F77='-Wl,'
21697       lt_prog_compiler_pic_F77='-KPIC'
21698       lt_prog_compiler_static_F77='-Bstatic'
21699       ;;
21700
21701     unicos*)
21702       lt_prog_compiler_wl_F77='-Wl,'
21703       lt_prog_compiler_can_build_shared_F77=no
21704       ;;
21705
21706     uts4*)
21707       lt_prog_compiler_pic_F77='-pic'
21708       lt_prog_compiler_static_F77='-Bstatic'
21709       ;;
21710
21711     *)
21712       lt_prog_compiler_can_build_shared_F77=no
21713       ;;
21714     esac
21715   fi
21716
21717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21718 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21719
21720 #
21721 # Check to make sure the PIC flag actually works.
21722 #
21723 if test -n "$lt_prog_compiler_pic_F77"; then
21724
21725 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21727 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21728   echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730   lt_cv_prog_compiler_pic_works_F77=no
21731   ac_outfile=conftest.$ac_objext
21732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21733    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21734    # Insert the option either (1) after the last *FLAGS variable, or
21735    # (2) before a word containing "conftest.", or (3) at the end.
21736    # Note that $ac_compile itself does not contain backslashes and begins
21737    # with a dollar sign (not a hyphen), so the echo should work correctly.
21738    # The option is referenced via a variable to avoid confusing sed.
21739    lt_compile=`echo "$ac_compile" | $SED \
21740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21742    -e 's:$: $lt_compiler_flag:'`
21743    (eval echo "\"\$as_me:21743: $lt_compile\"" >&5)
21744    (eval "$lt_compile" 2>conftest.err)
21745    ac_status=$?
21746    cat conftest.err >&5
21747    echo "$as_me:21747: \$? = $ac_status" >&5
21748    if (exit $ac_status) && test -s "$ac_outfile"; then
21749      # The compiler can only warn and ignore the option if not recognized
21750      # So say no if there are warnings other than the usual output.
21751      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21754        lt_cv_prog_compiler_pic_works_F77=yes
21755      fi
21756    fi
21757    $rm conftest*
21758
21759 fi
21760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21761 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
21762
21763 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21764     case $lt_prog_compiler_pic_F77 in
21765      "" | " "*) ;;
21766      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21767      esac
21768 else
21769     lt_prog_compiler_pic_F77=
21770      lt_prog_compiler_can_build_shared_F77=no
21771 fi
21772
21773 fi
21774 case $host_os in
21775   # For platforms which do not support PIC, -DPIC is meaningless:
21776   *djgpp*)
21777     lt_prog_compiler_pic_F77=
21778     ;;
21779   *)
21780     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21781     ;;
21782 esac
21783
21784 #
21785 # Check to make sure the static flag actually works.
21786 #
21787 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21788 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21789 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21790 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793   lt_cv_prog_compiler_static_works_F77=no
21794    save_LDFLAGS="$LDFLAGS"
21795    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21796    echo "$lt_simple_link_test_code" > conftest.$ac_ext
21797    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21798      # The linker can only warn and ignore the option if not recognized
21799      # So say no if there are warnings
21800      if test -s conftest.err; then
21801        # Append any errors to the config.log.
21802        cat conftest.err 1>&5
21803        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21804        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21805        if diff conftest.exp conftest.er2 >/dev/null; then
21806          lt_cv_prog_compiler_static_works_F77=yes
21807        fi
21808      else
21809        lt_cv_prog_compiler_static_works_F77=yes
21810      fi
21811    fi
21812    $rm -r conftest*
21813    LDFLAGS="$save_LDFLAGS"
21814
21815 fi
21816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21817 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
21818
21819 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21820     :
21821 else
21822     lt_prog_compiler_static_F77=
21823 fi
21824
21825
21826 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21828 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21829   echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831   lt_cv_prog_compiler_c_o_F77=no
21832    $rm -r conftest 2>/dev/null
21833    mkdir conftest
21834    cd conftest
21835    mkdir out
21836    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21837
21838    lt_compiler_flag="-o out/conftest2.$ac_objext"
21839    # Insert the option either (1) after the last *FLAGS variable, or
21840    # (2) before a word containing "conftest.", or (3) at the end.
21841    # Note that $ac_compile itself does not contain backslashes and begins
21842    # with a dollar sign (not a hyphen), so the echo should work correctly.
21843    lt_compile=`echo "$ac_compile" | $SED \
21844    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21845    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21846    -e 's:$: $lt_compiler_flag:'`
21847    (eval echo "\"\$as_me:21847: $lt_compile\"" >&5)
21848    (eval "$lt_compile" 2>out/conftest.err)
21849    ac_status=$?
21850    cat out/conftest.err >&5
21851    echo "$as_me:21851: \$? = $ac_status" >&5
21852    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21853    then
21854      # The compiler can only warn and ignore the option if not recognized
21855      # So say no if there are warnings
21856      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21857      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21858      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21859        lt_cv_prog_compiler_c_o_F77=yes
21860      fi
21861    fi
21862    chmod u+w . 2>&5
21863    $rm conftest*
21864    # SGI C++ compiler will create directory out/ii_files/ for
21865    # template instantiation
21866    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21867    $rm out/* && rmdir out
21868    cd ..
21869    rmdir conftest
21870    $rm conftest*
21871
21872 fi
21873 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21875
21876
21877 hard_links="nottested"
21878 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21879   # do not overwrite the value of need_locks provided by the user
21880   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21882   hard_links=yes
21883   $rm conftest*
21884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21885   touch conftest.a
21886   ln conftest.a conftest.b 2>&5 || hard_links=no
21887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21888   { echo "$as_me:$LINENO: result: $hard_links" >&5
21889 echo "${ECHO_T}$hard_links" >&6; }
21890   if test "$hard_links" = no; then
21891     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21893     need_locks=warn
21894   fi
21895 else
21896   need_locks=no
21897 fi
21898
21899 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21901
21902   runpath_var=
21903   allow_undefined_flag_F77=
21904   enable_shared_with_static_runtimes_F77=no
21905   archive_cmds_F77=
21906   archive_expsym_cmds_F77=
21907   old_archive_From_new_cmds_F77=
21908   old_archive_from_expsyms_cmds_F77=
21909   export_dynamic_flag_spec_F77=
21910   whole_archive_flag_spec_F77=
21911   thread_safe_flag_spec_F77=
21912   hardcode_libdir_flag_spec_F77=
21913   hardcode_libdir_flag_spec_ld_F77=
21914   hardcode_libdir_separator_F77=
21915   hardcode_direct_F77=no
21916   hardcode_minus_L_F77=no
21917   hardcode_shlibpath_var_F77=unsupported
21918   link_all_deplibs_F77=unknown
21919   hardcode_automatic_F77=no
21920   module_cmds_F77=
21921   module_expsym_cmds_F77=
21922   always_export_symbols_F77=no
21923   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21924   # include_expsyms should be a list of space-separated symbols to be *always*
21925   # included in the symbol list
21926   include_expsyms_F77=
21927   # exclude_expsyms can be an extended regexp of symbols to exclude
21928   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21929   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21930   # as well as any symbol that contains `d'.
21931   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21932   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21933   # platforms (ab)use it in PIC code, but their linkers get confused if
21934   # the symbol is explicitly referenced.  Since portable code cannot
21935   # rely on this symbol name, it's probably fine to never include it in
21936   # preloaded symbol tables.
21937   # Exclude shared library initialization/finalization symbols.
21938   extract_expsyms_cmds=
21939   # Just being paranoid about ensuring that cc_basename is set.
21940   for cc_temp in $compiler""; do
21941   case $cc_temp in
21942     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21943     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21944     \-*) ;;
21945     *) break;;
21946   esac
21947 done
21948 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21949
21950   case $host_os in
21951   cygwin* | mingw* | pw32*)
21952     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21953     # When not using gcc, we currently assume that we are using
21954     # Microsoft Visual C++.
21955     if test "$GCC" != yes; then
21956       with_gnu_ld=no
21957     fi
21958     ;;
21959   interix*)
21960     # we just hope/assume this is gcc and not c89 (= MSVC++)
21961     with_gnu_ld=yes
21962     ;;
21963   openbsd*)
21964     with_gnu_ld=no
21965     ;;
21966   esac
21967
21968   ld_shlibs_F77=yes
21969   if test "$with_gnu_ld" = yes; then
21970     # If archive_cmds runs LD, not CC, wlarc should be empty
21971     wlarc='${wl}'
21972
21973     # Set some defaults for GNU ld with shared library support. These
21974     # are reset later if shared libraries are not supported. Putting them
21975     # here allows them to be overridden if necessary.
21976     runpath_var=LD_RUN_PATH
21977     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21978     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21979     # ancient GNU ld didn't support --whole-archive et. al.
21980     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21981         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21982       else
21983         whole_archive_flag_spec_F77=
21984     fi
21985     supports_anon_versioning=no
21986     case `$LD -v 2>/dev/null` in
21987       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21988       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21989       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21990       *\ 2.11.*) ;; # other 2.11 versions
21991       *) supports_anon_versioning=yes ;;
21992     esac
21993
21994     # See if GNU ld supports shared libraries.
21995     case $host_os in
21996     aix[3-9]*)
21997       # On AIX/PPC, the GNU linker is very broken
21998       if test "$host_cpu" != ia64; then
21999         ld_shlibs_F77=no
22000         cat <<EOF 1>&2
22001
22002 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22003 *** to be unable to reliably create shared libraries on AIX.
22004 *** Therefore, libtool is disabling shared libraries support.  If you
22005 *** really care for shared libraries, you may want to modify your PATH
22006 *** so that a non-GNU linker is found, and then restart.
22007
22008 EOF
22009       fi
22010       ;;
22011
22012     amigaos*)
22013       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)'
22014       hardcode_libdir_flag_spec_F77='-L$libdir'
22015       hardcode_minus_L_F77=yes
22016
22017       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22018       # that the semantics of dynamic libraries on AmigaOS, at least up
22019       # to version 4, is to share data among multiple programs linked
22020       # with the same dynamic library.  Since this doesn't match the
22021       # behavior of shared libraries on other platforms, we can't use
22022       # them.
22023       ld_shlibs_F77=no
22024       ;;
22025
22026     beos*)
22027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028         allow_undefined_flag_F77=unsupported
22029         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22030         # support --undefined.  This deserves some investigation.  FIXME
22031         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22032       else
22033         ld_shlibs_F77=no
22034       fi
22035       ;;
22036
22037     cygwin* | mingw* | pw32*)
22038       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22039       # as there is no search path for DLLs.
22040       hardcode_libdir_flag_spec_F77='-L$libdir'
22041       allow_undefined_flag_F77=unsupported
22042       always_export_symbols_F77=no
22043       enable_shared_with_static_runtimes_F77=yes
22044       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22045
22046       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22047         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22048         # If the export-symbols file already is a .def file (1st line
22049         # is EXPORTS), use it as is; otherwise, prepend...
22050         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22051           cp $export_symbols $output_objdir/$soname.def;
22052         else
22053           echo EXPORTS > $output_objdir/$soname.def;
22054           cat $export_symbols >> $output_objdir/$soname.def;
22055         fi~
22056         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22057       else
22058         ld_shlibs_F77=no
22059       fi
22060       ;;
22061
22062     interix[3-9]*)
22063       hardcode_direct_F77=no
22064       hardcode_shlibpath_var_F77=no
22065       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22066       export_dynamic_flag_spec_F77='${wl}-E'
22067       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22068       # Instead, shared libraries are loaded at an image base (0x10000000 by
22069       # default) and relocated if they conflict, which is a slow very memory
22070       # consuming and fragmenting process.  To avoid this, we pick a random,
22071       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22072       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22073       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22074       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22075       ;;
22076
22077     gnu* | linux* | k*bsd*-gnu)
22078       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22079         tmp_addflag=
22080         case $cc_basename,$host_cpu in
22081         pgcc*)                          # Portland Group C compiler
22082           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'
22083           tmp_addflag=' $pic_flag'
22084           ;;
22085         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22086           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'
22087           tmp_addflag=' $pic_flag -Mnomain' ;;
22088         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22089           tmp_addflag=' -i_dynamic' ;;
22090         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22091           tmp_addflag=' -i_dynamic -nofor_main' ;;
22092         ifc* | ifort*)                  # Intel Fortran compiler
22093           tmp_addflag=' -nofor_main' ;;
22094         esac
22095         case `$CC -V 2>&1 | sed 5q` in
22096         *Sun\ C*)                       # Sun C 5.9
22097           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22098           tmp_sharedflag='-G' ;;
22099         *Sun\ F*)                       # Sun Fortran 8.3
22100           tmp_sharedflag='-G' ;;
22101         *)
22102           tmp_sharedflag='-shared' ;;
22103         esac
22104         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22105
22106         if test $supports_anon_versioning = yes; then
22107           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22108   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22109   $echo "local: *; };" >> $output_objdir/$libname.ver~
22110           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22111         fi
22112         link_all_deplibs_F77=no
22113       else
22114         ld_shlibs_F77=no
22115       fi
22116       ;;
22117
22118     netbsd* | netbsdelf*-gnu)
22119       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22120         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22121         wlarc=
22122       else
22123         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22124         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22125       fi
22126       ;;
22127
22128     solaris*)
22129       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22130         ld_shlibs_F77=no
22131         cat <<EOF 1>&2
22132
22133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22134 *** create shared libraries on Solaris systems.  Therefore, libtool
22135 *** is disabling shared libraries support.  We urge you to upgrade GNU
22136 *** binutils to release 2.9.1 or newer.  Another option is to modify
22137 *** your PATH or compiler configuration so that the native linker is
22138 *** used, and then restart.
22139
22140 EOF
22141       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22144       else
22145         ld_shlibs_F77=no
22146       fi
22147       ;;
22148
22149     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22150       case `$LD -v 2>&1` in
22151         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22152         ld_shlibs_F77=no
22153         cat <<_LT_EOF 1>&2
22154
22155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22156 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22157 *** is disabling shared libraries support.  We urge you to upgrade GNU
22158 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22159 *** your PATH or compiler configuration so that the native linker is
22160 *** used, and then restart.
22161
22162 _LT_EOF
22163         ;;
22164         *)
22165           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22166             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22167             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22168             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22169           else
22170             ld_shlibs_F77=no
22171           fi
22172         ;;
22173       esac
22174       ;;
22175
22176     sunos4*)
22177       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22178       wlarc=
22179       hardcode_direct_F77=yes
22180       hardcode_shlibpath_var_F77=no
22181       ;;
22182
22183     *)
22184       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22185         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22186         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22187       else
22188         ld_shlibs_F77=no
22189       fi
22190       ;;
22191     esac
22192
22193     if test "$ld_shlibs_F77" = no; then
22194       runpath_var=
22195       hardcode_libdir_flag_spec_F77=
22196       export_dynamic_flag_spec_F77=
22197       whole_archive_flag_spec_F77=
22198     fi
22199   else
22200     # PORTME fill in a description of your system's linker (not GNU ld)
22201     case $host_os in
22202     aix3*)
22203       allow_undefined_flag_F77=unsupported
22204       always_export_symbols_F77=yes
22205       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'
22206       # Note: this linker hardcodes the directories in LIBPATH if there
22207       # are no directories specified by -L.
22208       hardcode_minus_L_F77=yes
22209       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22210         # Neither direct hardcoding nor static linking is supported with a
22211         # broken collect2.
22212         hardcode_direct_F77=unsupported
22213       fi
22214       ;;
22215
22216     aix[4-9]*)
22217       if test "$host_cpu" = ia64; then
22218         # On IA64, the linker does run time linking by default, so we don't
22219         # have to do anything special.
22220         aix_use_runtimelinking=no
22221         exp_sym_flag='-Bexport'
22222         no_entry_flag=""
22223       else
22224         # If we're using GNU nm, then we don't want the "-C" option.
22225         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22226         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22227           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'
22228         else
22229           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'
22230         fi
22231         aix_use_runtimelinking=no
22232
22233         # Test if we are trying to use run time linking or normal
22234         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22235         # need to do runtime linking.
22236         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22237           for ld_flag in $LDFLAGS; do
22238           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22239             aix_use_runtimelinking=yes
22240             break
22241           fi
22242           done
22243           ;;
22244         esac
22245
22246         exp_sym_flag='-bexport'
22247         no_entry_flag='-bnoentry'
22248       fi
22249
22250       # When large executables or shared objects are built, AIX ld can
22251       # have problems creating the table of contents.  If linking a library
22252       # or program results in "error TOC overflow" add -mminimal-toc to
22253       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22254       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22255
22256       archive_cmds_F77=''
22257       hardcode_direct_F77=yes
22258       hardcode_libdir_separator_F77=':'
22259       link_all_deplibs_F77=yes
22260
22261       if test "$GCC" = yes; then
22262         case $host_os in aix4.[012]|aix4.[012].*)
22263         # We only want to do this on AIX 4.2 and lower, the check
22264         # below for broken collect2 doesn't work under 4.3+
22265           collect2name=`${CC} -print-prog-name=collect2`
22266           if test -f "$collect2name" && \
22267            strings "$collect2name" | grep resolve_lib_name >/dev/null
22268           then
22269           # We have reworked collect2
22270           :
22271           else
22272           # We have old collect2
22273           hardcode_direct_F77=unsupported
22274           # It fails to find uninstalled libraries when the uninstalled
22275           # path is not listed in the libpath.  Setting hardcode_minus_L
22276           # to unsupported forces relinking
22277           hardcode_minus_L_F77=yes
22278           hardcode_libdir_flag_spec_F77='-L$libdir'
22279           hardcode_libdir_separator_F77=
22280           fi
22281           ;;
22282         esac
22283         shared_flag='-shared'
22284         if test "$aix_use_runtimelinking" = yes; then
22285           shared_flag="$shared_flag "'${wl}-G'
22286         fi
22287       else
22288         # not using gcc
22289         if test "$host_cpu" = ia64; then
22290         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22291         # chokes on -Wl,-G. The following line is correct:
22292           shared_flag='-G'
22293         else
22294           if test "$aix_use_runtimelinking" = yes; then
22295             shared_flag='${wl}-G'
22296           else
22297             shared_flag='${wl}-bM:SRE'
22298           fi
22299         fi
22300       fi
22301
22302       # It seems that -bexpall does not export symbols beginning with
22303       # underscore (_), so it is better to generate a list of symbols to export.
22304       always_export_symbols_F77=yes
22305       if test "$aix_use_runtimelinking" = yes; then
22306         # Warning - without using the other runtime loading flags (-brtl),
22307         # -berok will link without error, but may produce a broken library.
22308         allow_undefined_flag_F77='-berok'
22309        # Determine the default libpath from the value encoded in an empty executable.
22310        cat >conftest.$ac_ext <<_ACEOF
22311       program main
22312
22313       end
22314 _ACEOF
22315 rm -f conftest.$ac_objext conftest$ac_exeext
22316 if { (ac_try="$ac_link"
22317 case "(($ac_try" in
22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319   *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322   (eval "$ac_link") 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } && {
22329          test -z "$ac_f77_werror_flag" ||
22330          test ! -s conftest.err
22331        } && test -s conftest$ac_exeext &&
22332        $as_test_x conftest$ac_exeext; then
22333
22334 lt_aix_libpath_sed='
22335     /Import File Strings/,/^$/ {
22336         /^0/ {
22337             s/^0  *\(.*\)$/\1/
22338             p
22339         }
22340     }'
22341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22342 # Check for a 64-bit object if we didn't find anything.
22343 if test -z "$aix_libpath"; then
22344   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22345 fi
22346 else
22347   echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350
22351 fi
22352
22353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22354       conftest$ac_exeext conftest.$ac_ext
22355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22356
22357        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22358         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22359        else
22360         if test "$host_cpu" = ia64; then
22361           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22362           allow_undefined_flag_F77="-z nodefs"
22363           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22364         else
22365          # Determine the default libpath from the value encoded in an empty executable.
22366          cat >conftest.$ac_ext <<_ACEOF
22367       program main
22368
22369       end
22370 _ACEOF
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (ac_try="$ac_link"
22373 case "(($ac_try" in
22374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375   *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378   (eval "$ac_link") 2>conftest.er1
22379   ac_status=$?
22380   grep -v '^ *+' conftest.er1 >conftest.err
22381   rm -f conftest.er1
22382   cat conftest.err >&5
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } && {
22385          test -z "$ac_f77_werror_flag" ||
22386          test ! -s conftest.err
22387        } && test -s conftest$ac_exeext &&
22388        $as_test_x conftest$ac_exeext; then
22389
22390 lt_aix_libpath_sed='
22391     /Import File Strings/,/^$/ {
22392         /^0/ {
22393             s/^0  *\(.*\)$/\1/
22394             p
22395         }
22396     }'
22397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22398 # Check for a 64-bit object if we didn't find anything.
22399 if test -z "$aix_libpath"; then
22400   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22401 fi
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406
22407 fi
22408
22409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22410       conftest$ac_exeext conftest.$ac_ext
22411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22412
22413          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22414           # Warning - without using the other run time loading flags,
22415           # -berok will link without error, but may produce a broken library.
22416           no_undefined_flag_F77=' ${wl}-bernotok'
22417           allow_undefined_flag_F77=' ${wl}-berok'
22418           # Exported symbols can be pulled into shared objects from archives
22419           whole_archive_flag_spec_F77='$convenience'
22420           archive_cmds_need_lc_F77=yes
22421           # This is similar to how AIX traditionally builds its shared libraries.
22422           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22423         fi
22424       fi
22425       ;;
22426
22427     amigaos*)
22428       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)'
22429       hardcode_libdir_flag_spec_F77='-L$libdir'
22430       hardcode_minus_L_F77=yes
22431       # see comment about different semantics on the GNU ld section
22432       ld_shlibs_F77=no
22433       ;;
22434
22435     bsdi[45]*)
22436       export_dynamic_flag_spec_F77=-rdynamic
22437       ;;
22438
22439     cygwin* | mingw* | pw32*)
22440       # When not using gcc, we currently assume that we are using
22441       # Microsoft Visual C++.
22442       # hardcode_libdir_flag_spec is actually meaningless, as there is
22443       # no search path for DLLs.
22444       hardcode_libdir_flag_spec_F77=' '
22445       allow_undefined_flag_F77=unsupported
22446       # Tell ltmain to make .lib files, not .a files.
22447       libext=lib
22448       # Tell ltmain to make .dll files, not .so files.
22449       shrext_cmds=".dll"
22450       # FIXME: Setting linknames here is a bad hack.
22451       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22452       # The linker will automatically build a .lib file if we build a DLL.
22453       old_archive_From_new_cmds_F77='true'
22454       # FIXME: Should let the user specify the lib program.
22455       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22456       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22457       enable_shared_with_static_runtimes_F77=yes
22458       ;;
22459
22460     darwin* | rhapsody*)
22461       case $host_os in
22462         rhapsody* | darwin1.[012])
22463          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22464          ;;
22465        *) # Darwin 1.3 on
22466          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22467            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22468          else
22469            case ${MACOSX_DEPLOYMENT_TARGET} in
22470              10.[012])
22471                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22472                ;;
22473              10.*)
22474                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22475                ;;
22476            esac
22477          fi
22478          ;;
22479       esac
22480       archive_cmds_need_lc_F77=no
22481       hardcode_direct_F77=no
22482       hardcode_automatic_F77=yes
22483       hardcode_shlibpath_var_F77=unsupported
22484       whole_archive_flag_spec_F77=''
22485       link_all_deplibs_F77=yes
22486     if test "$GCC" = yes ; then
22487         output_verbose_link_cmd='echo'
22488         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22489         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22490         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22491         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22492     else
22493       case $cc_basename in
22494         xlc*)
22495          output_verbose_link_cmd='echo'
22496          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22497          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22498           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22499          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22500           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}'
22501           ;;
22502        *)
22503          ld_shlibs_F77=no
22504           ;;
22505       esac
22506     fi
22507       ;;
22508
22509     dgux*)
22510       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22511       hardcode_libdir_flag_spec_F77='-L$libdir'
22512       hardcode_shlibpath_var_F77=no
22513       ;;
22514
22515     freebsd1*)
22516       ld_shlibs_F77=no
22517       ;;
22518
22519     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22520     # support.  Future versions do this automatically, but an explicit c++rt0.o
22521     # does not break anything, and helps significantly (at the cost of a little
22522     # extra space).
22523     freebsd2.2*)
22524       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22525       hardcode_libdir_flag_spec_F77='-R$libdir'
22526       hardcode_direct_F77=yes
22527       hardcode_shlibpath_var_F77=no
22528       ;;
22529
22530     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22531     freebsd2*)
22532       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22533       hardcode_direct_F77=yes
22534       hardcode_minus_L_F77=yes
22535       hardcode_shlibpath_var_F77=no
22536       ;;
22537
22538     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22539     freebsd* | dragonfly*)
22540       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22541       hardcode_libdir_flag_spec_F77='-R$libdir'
22542       hardcode_direct_F77=yes
22543       hardcode_shlibpath_var_F77=no
22544       ;;
22545
22546     hpux9*)
22547       if test "$GCC" = yes; then
22548         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'
22549       else
22550         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'
22551       fi
22552       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22553       hardcode_libdir_separator_F77=:
22554       hardcode_direct_F77=yes
22555
22556       # hardcode_minus_L: Not really in the search PATH,
22557       # but as the default location of the library.
22558       hardcode_minus_L_F77=yes
22559       export_dynamic_flag_spec_F77='${wl}-E'
22560       ;;
22561
22562     hpux10*)
22563       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22564         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22565       else
22566         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22567       fi
22568       if test "$with_gnu_ld" = no; then
22569         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22570         hardcode_libdir_separator_F77=:
22571
22572         hardcode_direct_F77=yes
22573         export_dynamic_flag_spec_F77='${wl}-E'
22574
22575         # hardcode_minus_L: Not really in the search PATH,
22576         # but as the default location of the library.
22577         hardcode_minus_L_F77=yes
22578       fi
22579       ;;
22580
22581     hpux11*)
22582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22583         case $host_cpu in
22584         hppa*64*)
22585           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22586           ;;
22587         ia64*)
22588           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22589           ;;
22590         *)
22591           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22592           ;;
22593         esac
22594       else
22595         case $host_cpu in
22596         hppa*64*)
22597           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22598           ;;
22599         ia64*)
22600           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22601           ;;
22602         *)
22603           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22604           ;;
22605         esac
22606       fi
22607       if test "$with_gnu_ld" = no; then
22608         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22609         hardcode_libdir_separator_F77=:
22610
22611         case $host_cpu in
22612         hppa*64*|ia64*)
22613           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22614           hardcode_direct_F77=no
22615           hardcode_shlibpath_var_F77=no
22616           ;;
22617         *)
22618           hardcode_direct_F77=yes
22619           export_dynamic_flag_spec_F77='${wl}-E'
22620
22621           # hardcode_minus_L: Not really in the search PATH,
22622           # but as the default location of the library.
22623           hardcode_minus_L_F77=yes
22624           ;;
22625         esac
22626       fi
22627       ;;
22628
22629     irix5* | irix6* | nonstopux*)
22630       if test "$GCC" = yes; then
22631         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'
22632       else
22633         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'
22634         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22635       fi
22636       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22637       hardcode_libdir_separator_F77=:
22638       link_all_deplibs_F77=yes
22639       ;;
22640
22641     netbsd* | netbsdelf*-gnu)
22642       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22643         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22644       else
22645         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22646       fi
22647       hardcode_libdir_flag_spec_F77='-R$libdir'
22648       hardcode_direct_F77=yes
22649       hardcode_shlibpath_var_F77=no
22650       ;;
22651
22652     newsos6)
22653       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654       hardcode_direct_F77=yes
22655       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22656       hardcode_libdir_separator_F77=:
22657       hardcode_shlibpath_var_F77=no
22658       ;;
22659
22660     openbsd*)
22661       if test -f /usr/libexec/ld.so; then
22662         hardcode_direct_F77=yes
22663         hardcode_shlibpath_var_F77=no
22664         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22665           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22666           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22667           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22668           export_dynamic_flag_spec_F77='${wl}-E'
22669         else
22670           case $host_os in
22671            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22672              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22673              hardcode_libdir_flag_spec_F77='-R$libdir'
22674              ;;
22675            *)
22676              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22677              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22678              ;;
22679           esac
22680         fi
22681       else
22682         ld_shlibs_F77=no
22683       fi
22684       ;;
22685
22686     os2*)
22687       hardcode_libdir_flag_spec_F77='-L$libdir'
22688       hardcode_minus_L_F77=yes
22689       allow_undefined_flag_F77=unsupported
22690       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'
22691       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22692       ;;
22693
22694     osf3*)
22695       if test "$GCC" = yes; then
22696         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22697         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'
22698       else
22699         allow_undefined_flag_F77=' -expect_unresolved \*'
22700         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'
22701       fi
22702       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22703       hardcode_libdir_separator_F77=:
22704       ;;
22705
22706     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22707       if test "$GCC" = yes; then
22708         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22709         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'
22710         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22711       else
22712         allow_undefined_flag_F77=' -expect_unresolved \*'
22713         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'
22714         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~
22715         $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'
22716
22717         # Both c and cxx compiler support -rpath directly
22718         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22719       fi
22720       hardcode_libdir_separator_F77=:
22721       ;;
22722
22723     solaris*)
22724       no_undefined_flag_F77=' -z text'
22725       if test "$GCC" = yes; then
22726         wlarc='${wl}'
22727         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22728         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22729           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22730       else
22731         wlarc=''
22732         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22733         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22735       fi
22736       hardcode_libdir_flag_spec_F77='-R$libdir'
22737       hardcode_shlibpath_var_F77=no
22738       case $host_os in
22739       solaris2.[0-5] | solaris2.[0-5].*) ;;
22740       *)
22741         # The compiler driver will combine and reorder linker options,
22742         # but understands `-z linker_flag'.  GCC discards it without `$wl',
22743         # but is careful enough not to reorder.
22744         # Supported since Solaris 2.6 (maybe 2.5.1?)
22745         if test "$GCC" = yes; then
22746           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22747         else
22748           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22749         fi
22750         ;;
22751       esac
22752       link_all_deplibs_F77=yes
22753       ;;
22754
22755     sunos4*)
22756       if test "x$host_vendor" = xsequent; then
22757         # Use $CC to link under sequent, because it throws in some extra .o
22758         # files that make .init and .fini sections work.
22759         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22760       else
22761         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22762       fi
22763       hardcode_libdir_flag_spec_F77='-L$libdir'
22764       hardcode_direct_F77=yes
22765       hardcode_minus_L_F77=yes
22766       hardcode_shlibpath_var_F77=no
22767       ;;
22768
22769     sysv4)
22770       case $host_vendor in
22771         sni)
22772           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22773           hardcode_direct_F77=yes # is this really true???
22774         ;;
22775         siemens)
22776           ## LD is ld it makes a PLAMLIB
22777           ## CC just makes a GrossModule.
22778           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22779           reload_cmds_F77='$CC -r -o $output$reload_objs'
22780           hardcode_direct_F77=no
22781         ;;
22782         motorola)
22783           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22784           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22785         ;;
22786       esac
22787       runpath_var='LD_RUN_PATH'
22788       hardcode_shlibpath_var_F77=no
22789       ;;
22790
22791     sysv4.3*)
22792       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22793       hardcode_shlibpath_var_F77=no
22794       export_dynamic_flag_spec_F77='-Bexport'
22795       ;;
22796
22797     sysv4*MP*)
22798       if test -d /usr/nec; then
22799         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22800         hardcode_shlibpath_var_F77=no
22801         runpath_var=LD_RUN_PATH
22802         hardcode_runpath_var=yes
22803         ld_shlibs_F77=yes
22804       fi
22805       ;;
22806
22807     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22808       no_undefined_flag_F77='${wl}-z,text'
22809       archive_cmds_need_lc_F77=no
22810       hardcode_shlibpath_var_F77=no
22811       runpath_var='LD_RUN_PATH'
22812
22813       if test "$GCC" = yes; then
22814         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22815         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22816       else
22817         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22818         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22819       fi
22820       ;;
22821
22822     sysv5* | sco3.2v5* | sco5v6*)
22823       # Note: We can NOT use -z defs as we might desire, because we do not
22824       # link with -lc, and that would cause any symbols used from libc to
22825       # always be unresolved, which means just about no library would
22826       # ever link correctly.  If we're not using GNU ld we use -z text
22827       # though, which does catch some bad symbols but isn't as heavy-handed
22828       # as -z defs.
22829       no_undefined_flag_F77='${wl}-z,text'
22830       allow_undefined_flag_F77='${wl}-z,nodefs'
22831       archive_cmds_need_lc_F77=no
22832       hardcode_shlibpath_var_F77=no
22833       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22834       hardcode_libdir_separator_F77=':'
22835       link_all_deplibs_F77=yes
22836       export_dynamic_flag_spec_F77='${wl}-Bexport'
22837       runpath_var='LD_RUN_PATH'
22838
22839       if test "$GCC" = yes; then
22840         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842       else
22843         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845       fi
22846       ;;
22847
22848     uts4*)
22849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22850       hardcode_libdir_flag_spec_F77='-L$libdir'
22851       hardcode_shlibpath_var_F77=no
22852       ;;
22853
22854     *)
22855       ld_shlibs_F77=no
22856       ;;
22857     esac
22858   fi
22859
22860 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22861 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22862 test "$ld_shlibs_F77" = no && can_build_shared=no
22863
22864 #
22865 # Do we need to explicitly link libc?
22866 #
22867 case "x$archive_cmds_need_lc_F77" in
22868 x|xyes)
22869   # Assume -lc should be added
22870   archive_cmds_need_lc_F77=yes
22871
22872   if test "$enable_shared" = yes && test "$GCC" = yes; then
22873     case $archive_cmds_F77 in
22874     *'~'*)
22875       # FIXME: we may have to deal with multi-command sequences.
22876       ;;
22877     '$CC '*)
22878       # Test whether the compiler implicitly links with -lc since on some
22879       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22880       # to ld, don't add -lc before -lgcc.
22881       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22883       $rm conftest*
22884       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22885
22886       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887   (eval $ac_compile) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } 2>conftest.err; then
22891         soname=conftest
22892         lib=conftest
22893         libobjs=conftest.$ac_objext
22894         deplibs=
22895         wl=$lt_prog_compiler_wl_F77
22896         pic_flag=$lt_prog_compiler_pic_F77
22897         compiler_flags=-v
22898         linker_flags=-v
22899         verstring=
22900         output_objdir=.
22901         libname=conftest
22902         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22903         allow_undefined_flag_F77=
22904         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22905   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }
22909         then
22910           archive_cmds_need_lc_F77=no
22911         else
22912           archive_cmds_need_lc_F77=yes
22913         fi
22914         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22915       else
22916         cat conftest.err 1>&5
22917       fi
22918       $rm conftest*
22919       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22920 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22921       ;;
22922     esac
22923   fi
22924   ;;
22925 esac
22926
22927 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22929 library_names_spec=
22930 libname_spec='lib$name'
22931 soname_spec=
22932 shrext_cmds=".so"
22933 postinstall_cmds=
22934 postuninstall_cmds=
22935 finish_cmds=
22936 finish_eval=
22937 shlibpath_var=
22938 shlibpath_overrides_runpath=unknown
22939 version_type=none
22940 dynamic_linker="$host_os ld.so"
22941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22942
22943 need_lib_prefix=unknown
22944 hardcode_into_libs=no
22945
22946 # when you set need_version to no, make sure it does not cause -set_version
22947 # flags to be left without arguments
22948 need_version=unknown
22949
22950 case $host_os in
22951 aix3*)
22952   version_type=linux
22953   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22954   shlibpath_var=LIBPATH
22955
22956   # AIX 3 has no versioning support, so we append a major version to the name.
22957   soname_spec='${libname}${release}${shared_ext}$major'
22958   ;;
22959
22960 aix[4-9]*)
22961   version_type=linux
22962   need_lib_prefix=no
22963   need_version=no
22964   hardcode_into_libs=yes
22965   if test "$host_cpu" = ia64; then
22966     # AIX 5 supports IA64
22967     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22968     shlibpath_var=LD_LIBRARY_PATH
22969   else
22970     # With GCC up to 2.95.x, collect2 would create an import file
22971     # for dependence libraries.  The import file would start with
22972     # the line `#! .'.  This would cause the generated library to
22973     # depend on `.', always an invalid library.  This was fixed in
22974     # development snapshots of GCC prior to 3.0.
22975     case $host_os in
22976       aix4 | aix4.[01] | aix4.[01].*)
22977       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22978            echo ' yes '
22979            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22980         :
22981       else
22982         can_build_shared=no
22983       fi
22984       ;;
22985     esac
22986     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22987     # soname into executable. Probably we can add versioning support to
22988     # collect2, so additional links can be useful in future.
22989     if test "$aix_use_runtimelinking" = yes; then
22990       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22991       # instead of lib<name>.a to let people know that these are not
22992       # typical AIX shared libraries.
22993       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22994     else
22995       # We preserve .a as extension for shared libraries through AIX4.2
22996       # and later when we are not doing run time linking.
22997       library_names_spec='${libname}${release}.a $libname.a'
22998       soname_spec='${libname}${release}${shared_ext}$major'
22999     fi
23000     shlibpath_var=LIBPATH
23001   fi
23002   ;;
23003
23004 amigaos*)
23005   library_names_spec='$libname.ixlibrary $libname.a'
23006   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23007   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'
23008   ;;
23009
23010 beos*)
23011   library_names_spec='${libname}${shared_ext}'
23012   dynamic_linker="$host_os ld.so"
23013   shlibpath_var=LIBRARY_PATH
23014   ;;
23015
23016 bsdi[45]*)
23017   version_type=linux
23018   need_version=no
23019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23020   soname_spec='${libname}${release}${shared_ext}$major'
23021   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23022   shlibpath_var=LD_LIBRARY_PATH
23023   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23024   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23025   # the default ld.so.conf also contains /usr/contrib/lib and
23026   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23027   # libtool to hard-code these into programs
23028   ;;
23029
23030 cygwin* | mingw* | pw32*)
23031   version_type=windows
23032   shrext_cmds=".dll"
23033   need_version=no
23034   need_lib_prefix=no
23035
23036   case $GCC,$host_os in
23037   yes,cygwin* | yes,mingw* | yes,pw32*)
23038     library_names_spec='$libname.dll.a'
23039     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23040     postinstall_cmds='base_file=`basename \${file}`~
23041       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23042       dldir=$destdir/`dirname \$dlpath`~
23043       test -d \$dldir || mkdir -p \$dldir~
23044       $install_prog $dir/$dlname \$dldir/$dlname~
23045       chmod a+x \$dldir/$dlname'
23046     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23047       dlpath=$dir/\$dldll~
23048        $rm \$dlpath'
23049     shlibpath_overrides_runpath=yes
23050
23051     case $host_os in
23052     cygwin*)
23053       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23054       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23055       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23056       ;;
23057     mingw*)
23058       # MinGW DLLs use traditional 'lib' prefix
23059       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23060       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23061       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23062         # It is most probably a Windows format PATH printed by
23063         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23064         # path with ; separators, and with drive letters. We can handle the
23065         # drive letters (cygwin fileutils understands them), so leave them,
23066         # especially as we might pass files found there to a mingw objdump,
23067         # which wouldn't understand a cygwinified path. Ahh.
23068         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23069       else
23070         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23071       fi
23072       ;;
23073     pw32*)
23074       # pw32 DLLs use 'pw' prefix rather than 'lib'
23075       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23076       ;;
23077     esac
23078     ;;
23079
23080   *)
23081     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23082     ;;
23083   esac
23084   dynamic_linker='Win32 ld.exe'
23085   # FIXME: first we should search . and the directory the executable is in
23086   shlibpath_var=PATH
23087   ;;
23088
23089 darwin* | rhapsody*)
23090   dynamic_linker="$host_os dyld"
23091   version_type=darwin
23092   need_lib_prefix=no
23093   need_version=no
23094   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23095   soname_spec='${libname}${release}${major}$shared_ext'
23096   shlibpath_overrides_runpath=yes
23097   shlibpath_var=DYLD_LIBRARY_PATH
23098   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23099
23100   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23101   ;;
23102
23103 dgux*)
23104   version_type=linux
23105   need_lib_prefix=no
23106   need_version=no
23107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23108   soname_spec='${libname}${release}${shared_ext}$major'
23109   shlibpath_var=LD_LIBRARY_PATH
23110   ;;
23111
23112 freebsd1*)
23113   dynamic_linker=no
23114   ;;
23115
23116 freebsd* | dragonfly*)
23117   # DragonFly does not have aout.  When/if they implement a new
23118   # versioning mechanism, adjust this.
23119   if test -x /usr/bin/objformat; then
23120     objformat=`/usr/bin/objformat`
23121   else
23122     case $host_os in
23123     freebsd[123]*) objformat=aout ;;
23124     *) objformat=elf ;;
23125     esac
23126   fi
23127   version_type=freebsd-$objformat
23128   case $version_type in
23129     freebsd-elf*)
23130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23131       need_version=no
23132       need_lib_prefix=no
23133       ;;
23134     freebsd-*)
23135       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23136       need_version=yes
23137       ;;
23138   esac
23139   shlibpath_var=LD_LIBRARY_PATH
23140   case $host_os in
23141   freebsd2*)
23142     shlibpath_overrides_runpath=yes
23143     ;;
23144   freebsd3.[01]* | freebsdelf3.[01]*)
23145     shlibpath_overrides_runpath=yes
23146     hardcode_into_libs=yes
23147     ;;
23148   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23149   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23150     shlibpath_overrides_runpath=no
23151     hardcode_into_libs=yes
23152     ;;
23153   *) # from 4.6 on, and DragonFly
23154     shlibpath_overrides_runpath=yes
23155     hardcode_into_libs=yes
23156     ;;
23157   esac
23158   ;;
23159
23160 gnu*)
23161   version_type=linux
23162   need_lib_prefix=no
23163   need_version=no
23164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23165   soname_spec='${libname}${release}${shared_ext}$major'
23166   shlibpath_var=LD_LIBRARY_PATH
23167   hardcode_into_libs=yes
23168   ;;
23169
23170 hpux9* | hpux10* | hpux11*)
23171   # Give a soname corresponding to the major version so that dld.sl refuses to
23172   # link against other versions.
23173   version_type=sunos
23174   need_lib_prefix=no
23175   need_version=no
23176   case $host_cpu in
23177   ia64*)
23178     shrext_cmds='.so'
23179     hardcode_into_libs=yes
23180     dynamic_linker="$host_os dld.so"
23181     shlibpath_var=LD_LIBRARY_PATH
23182     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184     soname_spec='${libname}${release}${shared_ext}$major'
23185     if test "X$HPUX_IA64_MODE" = X32; then
23186       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23187     else
23188       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23189     fi
23190     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23191     ;;
23192    hppa*64*)
23193      shrext_cmds='.sl'
23194      hardcode_into_libs=yes
23195      dynamic_linker="$host_os dld.sl"
23196      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23197      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23198      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23199      soname_spec='${libname}${release}${shared_ext}$major'
23200      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23201      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23202      ;;
23203    *)
23204     shrext_cmds='.sl'
23205     dynamic_linker="$host_os dld.sl"
23206     shlibpath_var=SHLIB_PATH
23207     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209     soname_spec='${libname}${release}${shared_ext}$major'
23210     ;;
23211   esac
23212   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23213   postinstall_cmds='chmod 555 $lib'
23214   ;;
23215
23216 interix[3-9]*)
23217   version_type=linux
23218   need_lib_prefix=no
23219   need_version=no
23220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23221   soname_spec='${libname}${release}${shared_ext}$major'
23222   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23223   shlibpath_var=LD_LIBRARY_PATH
23224   shlibpath_overrides_runpath=no
23225   hardcode_into_libs=yes
23226   ;;
23227
23228 irix5* | irix6* | nonstopux*)
23229   case $host_os in
23230     nonstopux*) version_type=nonstopux ;;
23231     *)
23232         if test "$lt_cv_prog_gnu_ld" = yes; then
23233                 version_type=linux
23234         else
23235                 version_type=irix
23236         fi ;;
23237   esac
23238   need_lib_prefix=no
23239   need_version=no
23240   soname_spec='${libname}${release}${shared_ext}$major'
23241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23242   case $host_os in
23243   irix5* | nonstopux*)
23244     libsuff= shlibsuff=
23245     ;;
23246   *)
23247     case $LD in # libtool.m4 will add one of these switches to LD
23248     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23249       libsuff= shlibsuff= libmagic=32-bit;;
23250     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23251       libsuff=32 shlibsuff=N32 libmagic=N32;;
23252     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23253       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23254     *) libsuff= shlibsuff= libmagic=never-match;;
23255     esac
23256     ;;
23257   esac
23258   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23259   shlibpath_overrides_runpath=no
23260   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23261   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23262   hardcode_into_libs=yes
23263   ;;
23264
23265 # No shared lib support for Linux oldld, aout, or coff.
23266 linux*oldld* | linux*aout* | linux*coff*)
23267   dynamic_linker=no
23268   ;;
23269
23270 # This must be Linux ELF.
23271 linux* | k*bsd*-gnu)
23272   version_type=linux
23273   need_lib_prefix=no
23274   need_version=no
23275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23276   soname_spec='${libname}${release}${shared_ext}$major'
23277   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23278   shlibpath_var=LD_LIBRARY_PATH
23279   shlibpath_overrides_runpath=no
23280   # This implies no fast_install, which is unacceptable.
23281   # Some rework will be needed to allow for fast_install
23282   # before this can be enabled.
23283   hardcode_into_libs=yes
23284
23285   # Append ld.so.conf contents to the search path
23286   if test -f /etc/ld.so.conf; then
23287     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23288     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23289   fi
23290
23291   # We used to test for /lib/ld.so.1 and disable shared libraries on
23292   # powerpc, because MkLinux only supported shared libraries with the
23293   # GNU dynamic linker.  Since this was broken with cross compilers,
23294   # most powerpc-linux boxes support dynamic linking these days and
23295   # people can always --disable-shared, the test was removed, and we
23296   # assume the GNU/Linux dynamic linker is in use.
23297   dynamic_linker='GNU/Linux ld.so'
23298   ;;
23299
23300 netbsdelf*-gnu)
23301   version_type=linux
23302   need_lib_prefix=no
23303   need_version=no
23304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23305   soname_spec='${libname}${release}${shared_ext}$major'
23306   shlibpath_var=LD_LIBRARY_PATH
23307   shlibpath_overrides_runpath=no
23308   hardcode_into_libs=yes
23309   dynamic_linker='NetBSD ld.elf_so'
23310   ;;
23311
23312 netbsd*)
23313   version_type=sunos
23314   need_lib_prefix=no
23315   need_version=no
23316   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23318     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23319     dynamic_linker='NetBSD (a.out) ld.so'
23320   else
23321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23322     soname_spec='${libname}${release}${shared_ext}$major'
23323     dynamic_linker='NetBSD ld.elf_so'
23324   fi
23325   shlibpath_var=LD_LIBRARY_PATH
23326   shlibpath_overrides_runpath=yes
23327   hardcode_into_libs=yes
23328   ;;
23329
23330 newsos6)
23331   version_type=linux
23332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333   shlibpath_var=LD_LIBRARY_PATH
23334   shlibpath_overrides_runpath=yes
23335   ;;
23336
23337 nto-qnx*)
23338   version_type=linux
23339   need_lib_prefix=no
23340   need_version=no
23341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23342   soname_spec='${libname}${release}${shared_ext}$major'
23343   shlibpath_var=LD_LIBRARY_PATH
23344   shlibpath_overrides_runpath=yes
23345   ;;
23346
23347 openbsd*)
23348   version_type=sunos
23349   sys_lib_dlsearch_path_spec="/usr/lib"
23350   need_lib_prefix=no
23351   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23352   case $host_os in
23353     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23354     *)                         need_version=no  ;;
23355   esac
23356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23357   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23358   shlibpath_var=LD_LIBRARY_PATH
23359   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23360     case $host_os in
23361       openbsd2.[89] | openbsd2.[89].*)
23362         shlibpath_overrides_runpath=no
23363         ;;
23364       *)
23365         shlibpath_overrides_runpath=yes
23366         ;;
23367       esac
23368   else
23369     shlibpath_overrides_runpath=yes
23370   fi
23371   ;;
23372
23373 os2*)
23374   libname_spec='$name'
23375   shrext_cmds=".dll"
23376   need_lib_prefix=no
23377   library_names_spec='$libname${shared_ext} $libname.a'
23378   dynamic_linker='OS/2 ld.exe'
23379   shlibpath_var=LIBPATH
23380   ;;
23381
23382 osf3* | osf4* | osf5*)
23383   version_type=osf
23384   need_lib_prefix=no
23385   need_version=no
23386   soname_spec='${libname}${release}${shared_ext}$major'
23387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23388   shlibpath_var=LD_LIBRARY_PATH
23389   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23390   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23391   ;;
23392
23393 rdos*)
23394   dynamic_linker=no
23395   ;;
23396
23397 solaris*)
23398   version_type=linux
23399   need_lib_prefix=no
23400   need_version=no
23401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23402   soname_spec='${libname}${release}${shared_ext}$major'
23403   shlibpath_var=LD_LIBRARY_PATH
23404   shlibpath_overrides_runpath=yes
23405   hardcode_into_libs=yes
23406   # ldd complains unless libraries are executable
23407   postinstall_cmds='chmod +x $lib'
23408   ;;
23409
23410 sunos4*)
23411   version_type=sunos
23412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23413   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23414   shlibpath_var=LD_LIBRARY_PATH
23415   shlibpath_overrides_runpath=yes
23416   if test "$with_gnu_ld" = yes; then
23417     need_lib_prefix=no
23418   fi
23419   need_version=yes
23420   ;;
23421
23422 sysv4 | sysv4.3*)
23423   version_type=linux
23424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23425   soname_spec='${libname}${release}${shared_ext}$major'
23426   shlibpath_var=LD_LIBRARY_PATH
23427   case $host_vendor in
23428     sni)
23429       shlibpath_overrides_runpath=no
23430       need_lib_prefix=no
23431       export_dynamic_flag_spec='${wl}-Blargedynsym'
23432       runpath_var=LD_RUN_PATH
23433       ;;
23434     siemens)
23435       need_lib_prefix=no
23436       ;;
23437     motorola)
23438       need_lib_prefix=no
23439       need_version=no
23440       shlibpath_overrides_runpath=no
23441       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23442       ;;
23443   esac
23444   ;;
23445
23446 sysv4*MP*)
23447   if test -d /usr/nec ;then
23448     version_type=linux
23449     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23450     soname_spec='$libname${shared_ext}.$major'
23451     shlibpath_var=LD_LIBRARY_PATH
23452   fi
23453   ;;
23454
23455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23456   version_type=freebsd-elf
23457   need_lib_prefix=no
23458   need_version=no
23459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23460   soname_spec='${libname}${release}${shared_ext}$major'
23461   shlibpath_var=LD_LIBRARY_PATH
23462   hardcode_into_libs=yes
23463   if test "$with_gnu_ld" = yes; then
23464     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23465     shlibpath_overrides_runpath=no
23466   else
23467     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23468     shlibpath_overrides_runpath=yes
23469     case $host_os in
23470       sco3.2v5*)
23471         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23472         ;;
23473     esac
23474   fi
23475   sys_lib_dlsearch_path_spec='/usr/lib'
23476   ;;
23477
23478 uts4*)
23479   version_type=linux
23480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23481   soname_spec='${libname}${release}${shared_ext}$major'
23482   shlibpath_var=LD_LIBRARY_PATH
23483   ;;
23484
23485 *)
23486   dynamic_linker=no
23487   ;;
23488 esac
23489 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23490 echo "${ECHO_T}$dynamic_linker" >&6; }
23491 test "$dynamic_linker" = no && can_build_shared=no
23492
23493 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23494   echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23496   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23497 fi
23498
23499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23501   echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23504 fi
23505
23506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23507
23508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23509 if test "$GCC" = yes; then
23510   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23511 fi
23512
23513 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23515 hardcode_action_F77=
23516 if test -n "$hardcode_libdir_flag_spec_F77" || \
23517    test -n "$runpath_var_F77" || \
23518    test "X$hardcode_automatic_F77" = "Xyes" ; then
23519
23520   # We can hardcode non-existant directories.
23521   if test "$hardcode_direct_F77" != no &&
23522      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23523      # have to relink, otherwise we might link with an installed library
23524      # when we should be linking with a yet-to-be-installed one
23525      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23526      test "$hardcode_minus_L_F77" != no; then
23527     # Linking always hardcodes the temporary library directory.
23528     hardcode_action_F77=relink
23529   else
23530     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23531     hardcode_action_F77=immediate
23532   fi
23533 else
23534   # We cannot hardcode anything, or else we can only hardcode existing
23535   # directories.
23536   hardcode_action_F77=unsupported
23537 fi
23538 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23539 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23540
23541 if test "$hardcode_action_F77" = relink; then
23542   # Fast installation is not supported
23543   enable_fast_install=no
23544 elif test "$shlibpath_overrides_runpath" = yes ||
23545      test "$enable_shared" = no; then
23546   # Fast installation is not necessary
23547   enable_fast_install=needless
23548 fi
23549
23550
23551 # The else clause should only fire when bootstrapping the
23552 # libtool distribution, otherwise you forgot to ship ltmain.sh
23553 # with your package, and you will get complaints that there are
23554 # no rules to generate ltmain.sh.
23555 if test -f "$ltmain"; then
23556   # See if we are running on zsh, and set the options which allow our commands through
23557   # without removal of \ escapes.
23558   if test -n "${ZSH_VERSION+set}" ; then
23559     setopt NO_GLOB_SUBST
23560   fi
23561   # Now quote all the things that may contain metacharacters while being
23562   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23563   # variables and quote the copies for generation of the libtool script.
23564   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23565     SED SHELL STRIP \
23566     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23567     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23568     deplibs_check_method reload_flag reload_cmds need_locks \
23569     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23570     lt_cv_sys_global_symbol_to_c_name_address \
23571     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23572     old_postinstall_cmds old_postuninstall_cmds \
23573     compiler_F77 \
23574     CC_F77 \
23575     LD_F77 \
23576     lt_prog_compiler_wl_F77 \
23577     lt_prog_compiler_pic_F77 \
23578     lt_prog_compiler_static_F77 \
23579     lt_prog_compiler_no_builtin_flag_F77 \
23580     export_dynamic_flag_spec_F77 \
23581     thread_safe_flag_spec_F77 \
23582     whole_archive_flag_spec_F77 \
23583     enable_shared_with_static_runtimes_F77 \
23584     old_archive_cmds_F77 \
23585     old_archive_from_new_cmds_F77 \
23586     predep_objects_F77 \
23587     postdep_objects_F77 \
23588     predeps_F77 \
23589     postdeps_F77 \
23590     compiler_lib_search_path_F77 \
23591     compiler_lib_search_dirs_F77 \
23592     archive_cmds_F77 \
23593     archive_expsym_cmds_F77 \
23594     postinstall_cmds_F77 \
23595     postuninstall_cmds_F77 \
23596     old_archive_from_expsyms_cmds_F77 \
23597     allow_undefined_flag_F77 \
23598     no_undefined_flag_F77 \
23599     export_symbols_cmds_F77 \
23600     hardcode_libdir_flag_spec_F77 \
23601     hardcode_libdir_flag_spec_ld_F77 \
23602     hardcode_libdir_separator_F77 \
23603     hardcode_automatic_F77 \
23604     module_cmds_F77 \
23605     module_expsym_cmds_F77 \
23606     lt_cv_prog_compiler_c_o_F77 \
23607     fix_srcfile_path_F77 \
23608     exclude_expsyms_F77 \
23609     include_expsyms_F77; do
23610
23611     case $var in
23612     old_archive_cmds_F77 | \
23613     old_archive_from_new_cmds_F77 | \
23614     archive_cmds_F77 | \
23615     archive_expsym_cmds_F77 | \
23616     module_cmds_F77 | \
23617     module_expsym_cmds_F77 | \
23618     old_archive_from_expsyms_cmds_F77 | \
23619     export_symbols_cmds_F77 | \
23620     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23621     postinstall_cmds | postuninstall_cmds | \
23622     old_postinstall_cmds | old_postuninstall_cmds | \
23623     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23624       # Double-quote double-evaled strings.
23625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23626       ;;
23627     *)
23628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23629       ;;
23630     esac
23631   done
23632
23633   case $lt_echo in
23634   *'\$0 --fallback-echo"')
23635     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23636     ;;
23637   esac
23638
23639 cfgfile="$ofile"
23640
23641   cat <<__EOF__ >> "$cfgfile"
23642 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23643
23644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23645
23646 # Shell to use when invoking shell scripts.
23647 SHELL=$lt_SHELL
23648
23649 # Whether or not to build shared libraries.
23650 build_libtool_libs=$enable_shared
23651
23652 # Whether or not to build static libraries.
23653 build_old_libs=$enable_static
23654
23655 # Whether or not to add -lc for building shared libraries.
23656 build_libtool_need_lc=$archive_cmds_need_lc_F77
23657
23658 # Whether or not to disallow shared libs when runtime libs are static
23659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23660
23661 # Whether or not to optimize for fast installation.
23662 fast_install=$enable_fast_install
23663
23664 # The host system.
23665 host_alias=$host_alias
23666 host=$host
23667 host_os=$host_os
23668
23669 # The build system.
23670 build_alias=$build_alias
23671 build=$build
23672 build_os=$build_os
23673
23674 # An echo program that does not interpret backslashes.
23675 echo=$lt_echo
23676
23677 # The archiver.
23678 AR=$lt_AR
23679 AR_FLAGS=$lt_AR_FLAGS
23680
23681 # A C compiler.
23682 LTCC=$lt_LTCC
23683
23684 # LTCC compiler flags.
23685 LTCFLAGS=$lt_LTCFLAGS
23686
23687 # A language-specific compiler.
23688 CC=$lt_compiler_F77
23689
23690 # Is the compiler the GNU C compiler?
23691 with_gcc=$GCC_F77
23692
23693 # An ERE matcher.
23694 EGREP=$lt_EGREP
23695
23696 # The linker used to build libraries.
23697 LD=$lt_LD_F77
23698
23699 # Whether we need hard or soft links.
23700 LN_S=$lt_LN_S
23701
23702 # A BSD-compatible nm program.
23703 NM=$lt_NM
23704
23705 # A symbol stripping program
23706 STRIP=$lt_STRIP
23707
23708 # Used to examine libraries when file_magic_cmd begins "file"
23709 MAGIC_CMD=$MAGIC_CMD
23710
23711 # Used on cygwin: DLL creation program.
23712 DLLTOOL="$DLLTOOL"
23713
23714 # Used on cygwin: object dumper.
23715 OBJDUMP="$OBJDUMP"
23716
23717 # Used on cygwin: assembler.
23718 AS="$AS"
23719
23720 # The name of the directory that contains temporary libtool files.
23721 objdir=$objdir
23722
23723 # How to create reloadable object files.
23724 reload_flag=$lt_reload_flag
23725 reload_cmds=$lt_reload_cmds
23726
23727 # How to pass a linker flag through the compiler.
23728 wl=$lt_lt_prog_compiler_wl_F77
23729
23730 # Object file suffix (normally "o").
23731 objext="$ac_objext"
23732
23733 # Old archive suffix (normally "a").
23734 libext="$libext"
23735
23736 # Shared library suffix (normally ".so").
23737 shrext_cmds='$shrext_cmds'
23738
23739 # Executable file suffix (normally "").
23740 exeext="$exeext"
23741
23742 # Additional compiler flags for building library objects.
23743 pic_flag=$lt_lt_prog_compiler_pic_F77
23744 pic_mode=$pic_mode
23745
23746 # What is the maximum length of a command?
23747 max_cmd_len=$lt_cv_sys_max_cmd_len
23748
23749 # Does compiler simultaneously support -c and -o options?
23750 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23751
23752 # Must we lock files when doing compilation?
23753 need_locks=$lt_need_locks
23754
23755 # Do we need the lib prefix for modules?
23756 need_lib_prefix=$need_lib_prefix
23757
23758 # Do we need a version for libraries?
23759 need_version=$need_version
23760
23761 # Whether dlopen is supported.
23762 dlopen_support=$enable_dlopen
23763
23764 # Whether dlopen of programs is supported.
23765 dlopen_self=$enable_dlopen_self
23766
23767 # Whether dlopen of statically linked programs is supported.
23768 dlopen_self_static=$enable_dlopen_self_static
23769
23770 # Compiler flag to prevent dynamic linking.
23771 link_static_flag=$lt_lt_prog_compiler_static_F77
23772
23773 # Compiler flag to turn off builtin functions.
23774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23775
23776 # Compiler flag to allow reflexive dlopens.
23777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23778
23779 # Compiler flag to generate shared objects directly from archives.
23780 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23781
23782 # Compiler flag to generate thread-safe objects.
23783 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23784
23785 # Library versioning type.
23786 version_type=$version_type
23787
23788 # Format of library name prefix.
23789 libname_spec=$lt_libname_spec
23790
23791 # List of archive names.  First name is the real one, the rest are links.
23792 # The last name is the one that the linker finds with -lNAME.
23793 library_names_spec=$lt_library_names_spec
23794
23795 # The coded name of the library, if different from the real name.
23796 soname_spec=$lt_soname_spec
23797
23798 # Commands used to build and install an old-style archive.
23799 RANLIB=$lt_RANLIB
23800 old_archive_cmds=$lt_old_archive_cmds_F77
23801 old_postinstall_cmds=$lt_old_postinstall_cmds
23802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23803
23804 # Create an old-style archive from a shared archive.
23805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23806
23807 # Create a temporary old-style archive to link instead of a shared archive.
23808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23809
23810 # Commands used to build and install a shared archive.
23811 archive_cmds=$lt_archive_cmds_F77
23812 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23813 postinstall_cmds=$lt_postinstall_cmds
23814 postuninstall_cmds=$lt_postuninstall_cmds
23815
23816 # Commands used to build a loadable module (assumed same as above if empty)
23817 module_cmds=$lt_module_cmds_F77
23818 module_expsym_cmds=$lt_module_expsym_cmds_F77
23819
23820 # Commands to strip libraries.
23821 old_striplib=$lt_old_striplib
23822 striplib=$lt_striplib
23823
23824 # Dependencies to place before the objects being linked to create a
23825 # shared library.
23826 predep_objects=$lt_predep_objects_F77
23827
23828 # Dependencies to place after the objects being linked to create a
23829 # shared library.
23830 postdep_objects=$lt_postdep_objects_F77
23831
23832 # Dependencies to place before the objects being linked to create a
23833 # shared library.
23834 predeps=$lt_predeps_F77
23835
23836 # Dependencies to place after the objects being linked to create a
23837 # shared library.
23838 postdeps=$lt_postdeps_F77
23839
23840 # The directories searched by this compiler when creating a shared
23841 # library
23842 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23843
23844 # The library search path used internally by the compiler when linking
23845 # a shared library.
23846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23847
23848 # Method to check whether dependent libraries are shared objects.
23849 deplibs_check_method=$lt_deplibs_check_method
23850
23851 # Command to use when deplibs_check_method == file_magic.
23852 file_magic_cmd=$lt_file_magic_cmd
23853
23854 # Flag that allows shared libraries with undefined symbols to be built.
23855 allow_undefined_flag=$lt_allow_undefined_flag_F77
23856
23857 # Flag that forces no undefined symbols.
23858 no_undefined_flag=$lt_no_undefined_flag_F77
23859
23860 # Commands used to finish a libtool library installation in a directory.
23861 finish_cmds=$lt_finish_cmds
23862
23863 # Same as above, but a single script fragment to be evaled but not shown.
23864 finish_eval=$lt_finish_eval
23865
23866 # Take the output of nm and produce a listing of raw symbols and C names.
23867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23868
23869 # Transform the output of nm in a proper C declaration
23870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23871
23872 # Transform the output of nm in a C name address pair
23873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23874
23875 # This is the shared library runtime path variable.
23876 runpath_var=$runpath_var
23877
23878 # This is the shared library path variable.
23879 shlibpath_var=$shlibpath_var
23880
23881 # Is shlibpath searched before the hard-coded library search path?
23882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23883
23884 # How to hardcode a shared library path into an executable.
23885 hardcode_action=$hardcode_action_F77
23886
23887 # Whether we should hardcode library paths into libraries.
23888 hardcode_into_libs=$hardcode_into_libs
23889
23890 # Flag to hardcode \$libdir into a binary during linking.
23891 # This must work even if \$libdir does not exist.
23892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23893
23894 # If ld is used when linking, flag to hardcode \$libdir into
23895 # a binary during linking. This must work even if \$libdir does
23896 # not exist.
23897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23898
23899 # Whether we need a single -rpath flag with a separated argument.
23900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23901
23902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903 # resulting binary.
23904 hardcode_direct=$hardcode_direct_F77
23905
23906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_minus_L=$hardcode_minus_L_F77
23909
23910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911 # the resulting binary.
23912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23913
23914 # Set to yes if building a shared library automatically hardcodes DIR into the library
23915 # and all subsequent libraries and executables linked against it.
23916 hardcode_automatic=$hardcode_automatic_F77
23917
23918 # Variables whose values should be saved in libtool wrapper scripts and
23919 # restored at relink time.
23920 variables_saved_for_relink="$variables_saved_for_relink"
23921
23922 # Whether libtool must link a program against all its dependency libraries.
23923 link_all_deplibs=$link_all_deplibs_F77
23924
23925 # Compile-time system search path for libraries
23926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23927
23928 # Run-time system search path for libraries
23929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23930
23931 # Fix the shell variable \$srcfile for the compiler.
23932 fix_srcfile_path=$lt_fix_srcfile_path
23933
23934 # Set to yes if exported symbols are required.
23935 always_export_symbols=$always_export_symbols_F77
23936
23937 # The commands to list exported symbols.
23938 export_symbols_cmds=$lt_export_symbols_cmds_F77
23939
23940 # The commands to extract the exported symbol list from a shared archive.
23941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23942
23943 # Symbols that should not be listed in the preloaded symbols.
23944 exclude_expsyms=$lt_exclude_expsyms_F77
23945
23946 # Symbols that must always be exported.
23947 include_expsyms=$lt_include_expsyms_F77
23948
23949 # ### END LIBTOOL TAG CONFIG: $tagname
23950
23951 __EOF__
23952
23953
23954 else
23955   # If there is no Makefile yet, we rely on a make rule to execute
23956   # `config.status --recheck' to rerun these tests and create the
23957   # libtool script then.
23958   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959   if test -f "$ltmain_in"; then
23960     test -f Makefile && make "$ltmain"
23961   fi
23962 fi
23963
23964
23965 ac_ext=c
23966 ac_cpp='$CPP $CPPFLAGS'
23967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23970
23971 CC="$lt_save_CC"
23972
23973         else
23974           tagname=""
23975         fi
23976         ;;
23977
23978       GCJ)
23979         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23980
23981
23982 # Source file extension for Java test sources.
23983 ac_ext=java
23984
23985 # Object file extension for compiled Java test sources.
23986 objext=o
23987 objext_GCJ=$objext
23988
23989 # Code to be used in simple compile tests
23990 lt_simple_compile_test_code="class foo {}"
23991
23992 # Code to be used in simple link tests
23993 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23994
23995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23996
23997 # If no C compiler was specified, use CC.
23998 LTCC=${LTCC-"$CC"}
23999
24000 # If no C compiler flags were specified, use CFLAGS.
24001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24002
24003 # Allow CC to be a program name with arguments.
24004 compiler=$CC
24005
24006
24007 # save warnings/boilerplate of simple test code
24008 ac_outfile=conftest.$ac_objext
24009 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24010 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24011 _lt_compiler_boilerplate=`cat conftest.err`
24012 $rm conftest*
24013
24014 ac_outfile=conftest.$ac_objext
24015 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24016 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24017 _lt_linker_boilerplate=`cat conftest.err`
24018 $rm -r conftest*
24019
24020
24021 # Allow CC to be a program name with arguments.
24022 lt_save_CC="$CC"
24023 CC=${GCJ-"gcj"}
24024 compiler=$CC
24025 compiler_GCJ=$CC
24026 for cc_temp in $compiler""; do
24027   case $cc_temp in
24028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24030     \-*) ;;
24031     *) break;;
24032   esac
24033 done
24034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24035
24036
24037 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24038 archive_cmds_need_lc_GCJ=no
24039
24040 old_archive_cmds_GCJ=$old_archive_cmds
24041
24042
24043 lt_prog_compiler_no_builtin_flag_GCJ=
24044
24045 if test "$GCC" = yes; then
24046   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24047
24048
24049 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24050 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24051 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   lt_cv_prog_compiler_rtti_exceptions=no
24055   ac_outfile=conftest.$ac_objext
24056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24057    lt_compiler_flag="-fno-rtti -fno-exceptions"
24058    # Insert the option either (1) after the last *FLAGS variable, or
24059    # (2) before a word containing "conftest.", or (3) at the end.
24060    # Note that $ac_compile itself does not contain backslashes and begins
24061    # with a dollar sign (not a hyphen), so the echo should work correctly.
24062    # The option is referenced via a variable to avoid confusing sed.
24063    lt_compile=`echo "$ac_compile" | $SED \
24064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24066    -e 's:$: $lt_compiler_flag:'`
24067    (eval echo "\"\$as_me:24067: $lt_compile\"" >&5)
24068    (eval "$lt_compile" 2>conftest.err)
24069    ac_status=$?
24070    cat conftest.err >&5
24071    echo "$as_me:24071: \$? = $ac_status" >&5
24072    if (exit $ac_status) && test -s "$ac_outfile"; then
24073      # The compiler can only warn and ignore the option if not recognized
24074      # So say no if there are warnings other than the usual output.
24075      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24076      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24078        lt_cv_prog_compiler_rtti_exceptions=yes
24079      fi
24080    fi
24081    $rm conftest*
24082
24083 fi
24084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24085 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24086
24087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24088     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24089 else
24090     :
24091 fi
24092
24093 fi
24094
24095 lt_prog_compiler_wl_GCJ=
24096 lt_prog_compiler_pic_GCJ=
24097 lt_prog_compiler_static_GCJ=
24098
24099 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24100 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24101
24102   if test "$GCC" = yes; then
24103     lt_prog_compiler_wl_GCJ='-Wl,'
24104     lt_prog_compiler_static_GCJ='-static'
24105
24106     case $host_os in
24107       aix*)
24108       # All AIX code is PIC.
24109       if test "$host_cpu" = ia64; then
24110         # AIX 5 now supports IA64 processor
24111         lt_prog_compiler_static_GCJ='-Bstatic'
24112       fi
24113       ;;
24114
24115     amigaos*)
24116       # FIXME: we need at least 68020 code to build shared libraries, but
24117       # adding the `-m68020' flag to GCC prevents building anything better,
24118       # like `-m68040'.
24119       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24120       ;;
24121
24122     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24123       # PIC is the default for these OSes.
24124       ;;
24125
24126     mingw* | cygwin* | pw32* | os2*)
24127       # This hack is so that the source file can tell whether it is being
24128       # built for inclusion in a dll (and should export symbols for example).
24129       # Although the cygwin gcc ignores -fPIC, still need this for old-style
24130       # (--disable-auto-import) libraries
24131
24132       ;;
24133
24134     darwin* | rhapsody*)
24135       # PIC is the default on this platform
24136       # Common symbols not allowed in MH_DYLIB files
24137       lt_prog_compiler_pic_GCJ='-fno-common'
24138       ;;
24139
24140     interix[3-9]*)
24141       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24142       # Instead, we relocate shared libraries at runtime.
24143       ;;
24144
24145     msdosdjgpp*)
24146       # Just because we use GCC doesn't mean we suddenly get shared libraries
24147       # on systems that don't support them.
24148       lt_prog_compiler_can_build_shared_GCJ=no
24149       enable_shared=no
24150       ;;
24151
24152     sysv4*MP*)
24153       if test -d /usr/nec; then
24154         lt_prog_compiler_pic_GCJ=-Kconform_pic
24155       fi
24156       ;;
24157
24158     hpux*)
24159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24160       # not for PA HP-UX.
24161       case $host_cpu in
24162       hppa*64*|ia64*)
24163         # +Z the default
24164         ;;
24165       *)
24166         lt_prog_compiler_pic_GCJ='-fPIC'
24167         ;;
24168       esac
24169       ;;
24170
24171     *)
24172       lt_prog_compiler_pic_GCJ='-fPIC'
24173       ;;
24174     esac
24175   else
24176     # PORTME Check for flag to pass linker flags through the system compiler.
24177     case $host_os in
24178     aix*)
24179       lt_prog_compiler_wl_GCJ='-Wl,'
24180       if test "$host_cpu" = ia64; then
24181         # AIX 5 now supports IA64 processor
24182         lt_prog_compiler_static_GCJ='-Bstatic'
24183       else
24184         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24185       fi
24186       ;;
24187       darwin*)
24188         # PIC is the default on this platform
24189         # Common symbols not allowed in MH_DYLIB files
24190        case $cc_basename in
24191          xlc*)
24192          lt_prog_compiler_pic_GCJ='-qnocommon'
24193          lt_prog_compiler_wl_GCJ='-Wl,'
24194          ;;
24195        esac
24196        ;;
24197
24198     mingw* | cygwin* | pw32* | os2*)
24199       # This hack is so that the source file can tell whether it is being
24200       # built for inclusion in a dll (and should export symbols for example).
24201
24202       ;;
24203
24204     hpux9* | hpux10* | hpux11*)
24205       lt_prog_compiler_wl_GCJ='-Wl,'
24206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24207       # not for PA HP-UX.
24208       case $host_cpu in
24209       hppa*64*|ia64*)
24210         # +Z the default
24211         ;;
24212       *)
24213         lt_prog_compiler_pic_GCJ='+Z'
24214         ;;
24215       esac
24216       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24217       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24218       ;;
24219
24220     irix5* | irix6* | nonstopux*)
24221       lt_prog_compiler_wl_GCJ='-Wl,'
24222       # PIC (with -KPIC) is the default.
24223       lt_prog_compiler_static_GCJ='-non_shared'
24224       ;;
24225
24226     newsos6)
24227       lt_prog_compiler_pic_GCJ='-KPIC'
24228       lt_prog_compiler_static_GCJ='-Bstatic'
24229       ;;
24230
24231     linux* | k*bsd*-gnu)
24232       case $cc_basename in
24233       icc* | ecc*)
24234         lt_prog_compiler_wl_GCJ='-Wl,'
24235         lt_prog_compiler_pic_GCJ='-KPIC'
24236         lt_prog_compiler_static_GCJ='-static'
24237         ;;
24238       pgcc* | pgf77* | pgf90* | pgf95*)
24239         # Portland Group compilers (*not* the Pentium gcc compiler,
24240         # which looks to be a dead project)
24241         lt_prog_compiler_wl_GCJ='-Wl,'
24242         lt_prog_compiler_pic_GCJ='-fpic'
24243         lt_prog_compiler_static_GCJ='-Bstatic'
24244         ;;
24245       ccc*)
24246         lt_prog_compiler_wl_GCJ='-Wl,'
24247         # All Alpha code is PIC.
24248         lt_prog_compiler_static_GCJ='-non_shared'
24249         ;;
24250       *)
24251         case `$CC -V 2>&1 | sed 5q` in
24252         *Sun\ C*)
24253           # Sun C 5.9
24254           lt_prog_compiler_pic_GCJ='-KPIC'
24255           lt_prog_compiler_static_GCJ='-Bstatic'
24256           lt_prog_compiler_wl_GCJ='-Wl,'
24257           ;;
24258         *Sun\ F*)
24259           # Sun Fortran 8.3 passes all unrecognized flags to the linker
24260           lt_prog_compiler_pic_GCJ='-KPIC'
24261           lt_prog_compiler_static_GCJ='-Bstatic'
24262           lt_prog_compiler_wl_GCJ=''
24263           ;;
24264         esac
24265         ;;
24266       esac
24267       ;;
24268
24269     osf3* | osf4* | osf5*)
24270       lt_prog_compiler_wl_GCJ='-Wl,'
24271       # All OSF/1 code is PIC.
24272       lt_prog_compiler_static_GCJ='-non_shared'
24273       ;;
24274
24275     rdos*)
24276       lt_prog_compiler_static_GCJ='-non_shared'
24277       ;;
24278
24279     solaris*)
24280       lt_prog_compiler_pic_GCJ='-KPIC'
24281       lt_prog_compiler_static_GCJ='-Bstatic'
24282       case $cc_basename in
24283       f77* | f90* | f95*)
24284         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24285       *)
24286         lt_prog_compiler_wl_GCJ='-Wl,';;
24287       esac
24288       ;;
24289
24290     sunos4*)
24291       lt_prog_compiler_wl_GCJ='-Qoption ld '
24292       lt_prog_compiler_pic_GCJ='-PIC'
24293       lt_prog_compiler_static_GCJ='-Bstatic'
24294       ;;
24295
24296     sysv4 | sysv4.2uw2* | sysv4.3*)
24297       lt_prog_compiler_wl_GCJ='-Wl,'
24298       lt_prog_compiler_pic_GCJ='-KPIC'
24299       lt_prog_compiler_static_GCJ='-Bstatic'
24300       ;;
24301
24302     sysv4*MP*)
24303       if test -d /usr/nec ;then
24304         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24305         lt_prog_compiler_static_GCJ='-Bstatic'
24306       fi
24307       ;;
24308
24309     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24310       lt_prog_compiler_wl_GCJ='-Wl,'
24311       lt_prog_compiler_pic_GCJ='-KPIC'
24312       lt_prog_compiler_static_GCJ='-Bstatic'
24313       ;;
24314
24315     unicos*)
24316       lt_prog_compiler_wl_GCJ='-Wl,'
24317       lt_prog_compiler_can_build_shared_GCJ=no
24318       ;;
24319
24320     uts4*)
24321       lt_prog_compiler_pic_GCJ='-pic'
24322       lt_prog_compiler_static_GCJ='-Bstatic'
24323       ;;
24324
24325     *)
24326       lt_prog_compiler_can_build_shared_GCJ=no
24327       ;;
24328     esac
24329   fi
24330
24331 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24332 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24333
24334 #
24335 # Check to make sure the PIC flag actually works.
24336 #
24337 if test -n "$lt_prog_compiler_pic_GCJ"; then
24338
24339 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24340 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24341 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
24342   echo $ECHO_N "(cached) $ECHO_C" >&6
24343 else
24344   lt_cv_prog_compiler_pic_works_GCJ=no
24345   ac_outfile=conftest.$ac_objext
24346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24347    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24348    # Insert the option either (1) after the last *FLAGS variable, or
24349    # (2) before a word containing "conftest.", or (3) at the end.
24350    # Note that $ac_compile itself does not contain backslashes and begins
24351    # with a dollar sign (not a hyphen), so the echo should work correctly.
24352    # The option is referenced via a variable to avoid confusing sed.
24353    lt_compile=`echo "$ac_compile" | $SED \
24354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24356    -e 's:$: $lt_compiler_flag:'`
24357    (eval echo "\"\$as_me:24357: $lt_compile\"" >&5)
24358    (eval "$lt_compile" 2>conftest.err)
24359    ac_status=$?
24360    cat conftest.err >&5
24361    echo "$as_me:24361: \$? = $ac_status" >&5
24362    if (exit $ac_status) && test -s "$ac_outfile"; then
24363      # The compiler can only warn and ignore the option if not recognized
24364      # So say no if there are warnings other than the usual output.
24365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24366      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24367      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24368        lt_cv_prog_compiler_pic_works_GCJ=yes
24369      fi
24370    fi
24371    $rm conftest*
24372
24373 fi
24374 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
24375 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
24376
24377 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
24378     case $lt_prog_compiler_pic_GCJ in
24379      "" | " "*) ;;
24380      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24381      esac
24382 else
24383     lt_prog_compiler_pic_GCJ=
24384      lt_prog_compiler_can_build_shared_GCJ=no
24385 fi
24386
24387 fi
24388 case $host_os in
24389   # For platforms which do not support PIC, -DPIC is meaningless:
24390   *djgpp*)
24391     lt_prog_compiler_pic_GCJ=
24392     ;;
24393   *)
24394     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24395     ;;
24396 esac
24397
24398 #
24399 # Check to make sure the static flag actually works.
24400 #
24401 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24402 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24404 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
24405   echo $ECHO_N "(cached) $ECHO_C" >&6
24406 else
24407   lt_cv_prog_compiler_static_works_GCJ=no
24408    save_LDFLAGS="$LDFLAGS"
24409    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24410    echo "$lt_simple_link_test_code" > conftest.$ac_ext
24411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24412      # The linker can only warn and ignore the option if not recognized
24413      # So say no if there are warnings
24414      if test -s conftest.err; then
24415        # Append any errors to the config.log.
24416        cat conftest.err 1>&5
24417        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24419        if diff conftest.exp conftest.er2 >/dev/null; then
24420          lt_cv_prog_compiler_static_works_GCJ=yes
24421        fi
24422      else
24423        lt_cv_prog_compiler_static_works_GCJ=yes
24424      fi
24425    fi
24426    $rm -r conftest*
24427    LDFLAGS="$save_LDFLAGS"
24428
24429 fi
24430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24431 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24432
24433 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24434     :
24435 else
24436     lt_prog_compiler_static_GCJ=
24437 fi
24438
24439
24440 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24441 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24442 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24443   echo $ECHO_N "(cached) $ECHO_C" >&6
24444 else
24445   lt_cv_prog_compiler_c_o_GCJ=no
24446    $rm -r conftest 2>/dev/null
24447    mkdir conftest
24448    cd conftest
24449    mkdir out
24450    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24451
24452    lt_compiler_flag="-o out/conftest2.$ac_objext"
24453    # Insert the option either (1) after the last *FLAGS variable, or
24454    # (2) before a word containing "conftest.", or (3) at the end.
24455    # Note that $ac_compile itself does not contain backslashes and begins
24456    # with a dollar sign (not a hyphen), so the echo should work correctly.
24457    lt_compile=`echo "$ac_compile" | $SED \
24458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24460    -e 's:$: $lt_compiler_flag:'`
24461    (eval echo "\"\$as_me:24461: $lt_compile\"" >&5)
24462    (eval "$lt_compile" 2>out/conftest.err)
24463    ac_status=$?
24464    cat out/conftest.err >&5
24465    echo "$as_me:24465: \$? = $ac_status" >&5
24466    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24467    then
24468      # The compiler can only warn and ignore the option if not recognized
24469      # So say no if there are warnings
24470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24471      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24472      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24473        lt_cv_prog_compiler_c_o_GCJ=yes
24474      fi
24475    fi
24476    chmod u+w . 2>&5
24477    $rm conftest*
24478    # SGI C++ compiler will create directory out/ii_files/ for
24479    # template instantiation
24480    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24481    $rm out/* && rmdir out
24482    cd ..
24483    rmdir conftest
24484    $rm conftest*
24485
24486 fi
24487 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24488 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24489
24490
24491 hard_links="nottested"
24492 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24493   # do not overwrite the value of need_locks provided by the user
24494   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24495 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24496   hard_links=yes
24497   $rm conftest*
24498   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24499   touch conftest.a
24500   ln conftest.a conftest.b 2>&5 || hard_links=no
24501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24502   { echo "$as_me:$LINENO: result: $hard_links" >&5
24503 echo "${ECHO_T}$hard_links" >&6; }
24504   if test "$hard_links" = no; then
24505     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24506 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24507     need_locks=warn
24508   fi
24509 else
24510   need_locks=no
24511 fi
24512
24513 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24515
24516   runpath_var=
24517   allow_undefined_flag_GCJ=
24518   enable_shared_with_static_runtimes_GCJ=no
24519   archive_cmds_GCJ=
24520   archive_expsym_cmds_GCJ=
24521   old_archive_From_new_cmds_GCJ=
24522   old_archive_from_expsyms_cmds_GCJ=
24523   export_dynamic_flag_spec_GCJ=
24524   whole_archive_flag_spec_GCJ=
24525   thread_safe_flag_spec_GCJ=
24526   hardcode_libdir_flag_spec_GCJ=
24527   hardcode_libdir_flag_spec_ld_GCJ=
24528   hardcode_libdir_separator_GCJ=
24529   hardcode_direct_GCJ=no
24530   hardcode_minus_L_GCJ=no
24531   hardcode_shlibpath_var_GCJ=unsupported
24532   link_all_deplibs_GCJ=unknown
24533   hardcode_automatic_GCJ=no
24534   module_cmds_GCJ=
24535   module_expsym_cmds_GCJ=
24536   always_export_symbols_GCJ=no
24537   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24538   # include_expsyms should be a list of space-separated symbols to be *always*
24539   # included in the symbol list
24540   include_expsyms_GCJ=
24541   # exclude_expsyms can be an extended regexp of symbols to exclude
24542   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24543   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24544   # as well as any symbol that contains `d'.
24545   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24546   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24547   # platforms (ab)use it in PIC code, but their linkers get confused if
24548   # the symbol is explicitly referenced.  Since portable code cannot
24549   # rely on this symbol name, it's probably fine to never include it in
24550   # preloaded symbol tables.
24551   # Exclude shared library initialization/finalization symbols.
24552   extract_expsyms_cmds=
24553   # Just being paranoid about ensuring that cc_basename is set.
24554   for cc_temp in $compiler""; do
24555   case $cc_temp in
24556     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24557     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24558     \-*) ;;
24559     *) break;;
24560   esac
24561 done
24562 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24563
24564   case $host_os in
24565   cygwin* | mingw* | pw32*)
24566     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24567     # When not using gcc, we currently assume that we are using
24568     # Microsoft Visual C++.
24569     if test "$GCC" != yes; then
24570       with_gnu_ld=no
24571     fi
24572     ;;
24573   interix*)
24574     # we just hope/assume this is gcc and not c89 (= MSVC++)
24575     with_gnu_ld=yes
24576     ;;
24577   openbsd*)
24578     with_gnu_ld=no
24579     ;;
24580   esac
24581
24582   ld_shlibs_GCJ=yes
24583   if test "$with_gnu_ld" = yes; then
24584     # If archive_cmds runs LD, not CC, wlarc should be empty
24585     wlarc='${wl}'
24586
24587     # Set some defaults for GNU ld with shared library support. These
24588     # are reset later if shared libraries are not supported. Putting them
24589     # here allows them to be overridden if necessary.
24590     runpath_var=LD_RUN_PATH
24591     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24592     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24593     # ancient GNU ld didn't support --whole-archive et. al.
24594     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24595         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24596       else
24597         whole_archive_flag_spec_GCJ=
24598     fi
24599     supports_anon_versioning=no
24600     case `$LD -v 2>/dev/null` in
24601       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24602       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24603       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24604       *\ 2.11.*) ;; # other 2.11 versions
24605       *) supports_anon_versioning=yes ;;
24606     esac
24607
24608     # See if GNU ld supports shared libraries.
24609     case $host_os in
24610     aix[3-9]*)
24611       # On AIX/PPC, the GNU linker is very broken
24612       if test "$host_cpu" != ia64; then
24613         ld_shlibs_GCJ=no
24614         cat <<EOF 1>&2
24615
24616 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24617 *** to be unable to reliably create shared libraries on AIX.
24618 *** Therefore, libtool is disabling shared libraries support.  If you
24619 *** really care for shared libraries, you may want to modify your PATH
24620 *** so that a non-GNU linker is found, and then restart.
24621
24622 EOF
24623       fi
24624       ;;
24625
24626     amigaos*)
24627       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)'
24628       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24629       hardcode_minus_L_GCJ=yes
24630
24631       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24632       # that the semantics of dynamic libraries on AmigaOS, at least up
24633       # to version 4, is to share data among multiple programs linked
24634       # with the same dynamic library.  Since this doesn't match the
24635       # behavior of shared libraries on other platforms, we can't use
24636       # them.
24637       ld_shlibs_GCJ=no
24638       ;;
24639
24640     beos*)
24641       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24642         allow_undefined_flag_GCJ=unsupported
24643         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24644         # support --undefined.  This deserves some investigation.  FIXME
24645         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24646       else
24647         ld_shlibs_GCJ=no
24648       fi
24649       ;;
24650
24651     cygwin* | mingw* | pw32*)
24652       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24653       # as there is no search path for DLLs.
24654       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24655       allow_undefined_flag_GCJ=unsupported
24656       always_export_symbols_GCJ=no
24657       enable_shared_with_static_runtimes_GCJ=yes
24658       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24659
24660       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24661         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24662         # If the export-symbols file already is a .def file (1st line
24663         # is EXPORTS), use it as is; otherwise, prepend...
24664         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24665           cp $export_symbols $output_objdir/$soname.def;
24666         else
24667           echo EXPORTS > $output_objdir/$soname.def;
24668           cat $export_symbols >> $output_objdir/$soname.def;
24669         fi~
24670         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24671       else
24672         ld_shlibs_GCJ=no
24673       fi
24674       ;;
24675
24676     interix[3-9]*)
24677       hardcode_direct_GCJ=no
24678       hardcode_shlibpath_var_GCJ=no
24679       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24680       export_dynamic_flag_spec_GCJ='${wl}-E'
24681       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24682       # Instead, shared libraries are loaded at an image base (0x10000000 by
24683       # default) and relocated if they conflict, which is a slow very memory
24684       # consuming and fragmenting process.  To avoid this, we pick a random,
24685       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24686       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24687       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24688       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24689       ;;
24690
24691     gnu* | linux* | k*bsd*-gnu)
24692       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24693         tmp_addflag=
24694         case $cc_basename,$host_cpu in
24695         pgcc*)                          # Portland Group C compiler
24696           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'
24697           tmp_addflag=' $pic_flag'
24698           ;;
24699         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24700           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'
24701           tmp_addflag=' $pic_flag -Mnomain' ;;
24702         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24703           tmp_addflag=' -i_dynamic' ;;
24704         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24705           tmp_addflag=' -i_dynamic -nofor_main' ;;
24706         ifc* | ifort*)                  # Intel Fortran compiler
24707           tmp_addflag=' -nofor_main' ;;
24708         esac
24709         case `$CC -V 2>&1 | sed 5q` in
24710         *Sun\ C*)                       # Sun C 5.9
24711           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24712           tmp_sharedflag='-G' ;;
24713         *Sun\ F*)                       # Sun Fortran 8.3
24714           tmp_sharedflag='-G' ;;
24715         *)
24716           tmp_sharedflag='-shared' ;;
24717         esac
24718         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24719
24720         if test $supports_anon_versioning = yes; then
24721           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24722   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24723   $echo "local: *; };" >> $output_objdir/$libname.ver~
24724           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24725         fi
24726         link_all_deplibs_GCJ=no
24727       else
24728         ld_shlibs_GCJ=no
24729       fi
24730       ;;
24731
24732     netbsd* | netbsdelf*-gnu)
24733       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24734         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24735         wlarc=
24736       else
24737         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24738         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24739       fi
24740       ;;
24741
24742     solaris*)
24743       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24744         ld_shlibs_GCJ=no
24745         cat <<EOF 1>&2
24746
24747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24748 *** create shared libraries on Solaris systems.  Therefore, libtool
24749 *** is disabling shared libraries support.  We urge you to upgrade GNU
24750 *** binutils to release 2.9.1 or newer.  Another option is to modify
24751 *** your PATH or compiler configuration so that the native linker is
24752 *** used, and then restart.
24753
24754 EOF
24755       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24756         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24757         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24758       else
24759         ld_shlibs_GCJ=no
24760       fi
24761       ;;
24762
24763     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24764       case `$LD -v 2>&1` in
24765         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24766         ld_shlibs_GCJ=no
24767         cat <<_LT_EOF 1>&2
24768
24769 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24770 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24771 *** is disabling shared libraries support.  We urge you to upgrade GNU
24772 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24773 *** your PATH or compiler configuration so that the native linker is
24774 *** used, and then restart.
24775
24776 _LT_EOF
24777         ;;
24778         *)
24779           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24780             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24781             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24782             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24783           else
24784             ld_shlibs_GCJ=no
24785           fi
24786         ;;
24787       esac
24788       ;;
24789
24790     sunos4*)
24791       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24792       wlarc=
24793       hardcode_direct_GCJ=yes
24794       hardcode_shlibpath_var_GCJ=no
24795       ;;
24796
24797     *)
24798       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24799         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24800         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24801       else
24802         ld_shlibs_GCJ=no
24803       fi
24804       ;;
24805     esac
24806
24807     if test "$ld_shlibs_GCJ" = no; then
24808       runpath_var=
24809       hardcode_libdir_flag_spec_GCJ=
24810       export_dynamic_flag_spec_GCJ=
24811       whole_archive_flag_spec_GCJ=
24812     fi
24813   else
24814     # PORTME fill in a description of your system's linker (not GNU ld)
24815     case $host_os in
24816     aix3*)
24817       allow_undefined_flag_GCJ=unsupported
24818       always_export_symbols_GCJ=yes
24819       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'
24820       # Note: this linker hardcodes the directories in LIBPATH if there
24821       # are no directories specified by -L.
24822       hardcode_minus_L_GCJ=yes
24823       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24824         # Neither direct hardcoding nor static linking is supported with a
24825         # broken collect2.
24826         hardcode_direct_GCJ=unsupported
24827       fi
24828       ;;
24829
24830     aix[4-9]*)
24831       if test "$host_cpu" = ia64; then
24832         # On IA64, the linker does run time linking by default, so we don't
24833         # have to do anything special.
24834         aix_use_runtimelinking=no
24835         exp_sym_flag='-Bexport'
24836         no_entry_flag=""
24837       else
24838         # If we're using GNU nm, then we don't want the "-C" option.
24839         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24840         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24841           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'
24842         else
24843           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'
24844         fi
24845         aix_use_runtimelinking=no
24846
24847         # Test if we are trying to use run time linking or normal
24848         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24849         # need to do runtime linking.
24850         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24851           for ld_flag in $LDFLAGS; do
24852           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24853             aix_use_runtimelinking=yes
24854             break
24855           fi
24856           done
24857           ;;
24858         esac
24859
24860         exp_sym_flag='-bexport'
24861         no_entry_flag='-bnoentry'
24862       fi
24863
24864       # When large executables or shared objects are built, AIX ld can
24865       # have problems creating the table of contents.  If linking a library
24866       # or program results in "error TOC overflow" add -mminimal-toc to
24867       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24868       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24869
24870       archive_cmds_GCJ=''
24871       hardcode_direct_GCJ=yes
24872       hardcode_libdir_separator_GCJ=':'
24873       link_all_deplibs_GCJ=yes
24874
24875       if test "$GCC" = yes; then
24876         case $host_os in aix4.[012]|aix4.[012].*)
24877         # We only want to do this on AIX 4.2 and lower, the check
24878         # below for broken collect2 doesn't work under 4.3+
24879           collect2name=`${CC} -print-prog-name=collect2`
24880           if test -f "$collect2name" && \
24881            strings "$collect2name" | grep resolve_lib_name >/dev/null
24882           then
24883           # We have reworked collect2
24884           :
24885           else
24886           # We have old collect2
24887           hardcode_direct_GCJ=unsupported
24888           # It fails to find uninstalled libraries when the uninstalled
24889           # path is not listed in the libpath.  Setting hardcode_minus_L
24890           # to unsupported forces relinking
24891           hardcode_minus_L_GCJ=yes
24892           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24893           hardcode_libdir_separator_GCJ=
24894           fi
24895           ;;
24896         esac
24897         shared_flag='-shared'
24898         if test "$aix_use_runtimelinking" = yes; then
24899           shared_flag="$shared_flag "'${wl}-G'
24900         fi
24901       else
24902         # not using gcc
24903         if test "$host_cpu" = ia64; then
24904         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24905         # chokes on -Wl,-G. The following line is correct:
24906           shared_flag='-G'
24907         else
24908           if test "$aix_use_runtimelinking" = yes; then
24909             shared_flag='${wl}-G'
24910           else
24911             shared_flag='${wl}-bM:SRE'
24912           fi
24913         fi
24914       fi
24915
24916       # It seems that -bexpall does not export symbols beginning with
24917       # underscore (_), so it is better to generate a list of symbols to export.
24918       always_export_symbols_GCJ=yes
24919       if test "$aix_use_runtimelinking" = yes; then
24920         # Warning - without using the other runtime loading flags (-brtl),
24921         # -berok will link without error, but may produce a broken library.
24922         allow_undefined_flag_GCJ='-berok'
24923        # Determine the default libpath from the value encoded in an empty executable.
24924        cat >conftest.$ac_ext <<_ACEOF
24925 /* confdefs.h.  */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h.  */
24930
24931 int
24932 main ()
24933 {
24934
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (ac_try="$ac_link"
24941 case "(($ac_try" in
24942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943   *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946   (eval "$ac_link") 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } && {
24953          test -z "$ac_c_werror_flag" ||
24954          test ! -s conftest.err
24955        } && test -s conftest$ac_exeext &&
24956        $as_test_x conftest$ac_exeext; then
24957
24958 lt_aix_libpath_sed='
24959     /Import File Strings/,/^$/ {
24960         /^0/ {
24961             s/^0  *\(.*\)$/\1/
24962             p
24963         }
24964     }'
24965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24966 # Check for a 64-bit object if we didn't find anything.
24967 if test -z "$aix_libpath"; then
24968   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24969 fi
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974
24975 fi
24976
24977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24978       conftest$ac_exeext conftest.$ac_ext
24979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24980
24981        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24982         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24983        else
24984         if test "$host_cpu" = ia64; then
24985           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24986           allow_undefined_flag_GCJ="-z nodefs"
24987           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24988         else
24989          # Determine the default libpath from the value encoded in an empty executable.
24990          cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996
24997 int
24998 main ()
24999 {
25000
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest.$ac_objext conftest$ac_exeext
25006 if { (ac_try="$ac_link"
25007 case "(($ac_try" in
25008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009   *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012   (eval "$ac_link") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && {
25019          test -z "$ac_c_werror_flag" ||
25020          test ! -s conftest.err
25021        } && test -s conftest$ac_exeext &&
25022        $as_test_x conftest$ac_exeext; then
25023
25024 lt_aix_libpath_sed='
25025     /Import File Strings/,/^$/ {
25026         /^0/ {
25027             s/^0  *\(.*\)$/\1/
25028             p
25029         }
25030     }'
25031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25032 # Check for a 64-bit object if we didn't find anything.
25033 if test -z "$aix_libpath"; then
25034   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25035 fi
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044       conftest$ac_exeext conftest.$ac_ext
25045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25046
25047          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25048           # Warning - without using the other run time loading flags,
25049           # -berok will link without error, but may produce a broken library.
25050           no_undefined_flag_GCJ=' ${wl}-bernotok'
25051           allow_undefined_flag_GCJ=' ${wl}-berok'
25052           # Exported symbols can be pulled into shared objects from archives
25053           whole_archive_flag_spec_GCJ='$convenience'
25054           archive_cmds_need_lc_GCJ=yes
25055           # This is similar to how AIX traditionally builds its shared libraries.
25056           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
25057         fi
25058       fi
25059       ;;
25060
25061     amigaos*)
25062       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)'
25063       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25064       hardcode_minus_L_GCJ=yes
25065       # see comment about different semantics on the GNU ld section
25066       ld_shlibs_GCJ=no
25067       ;;
25068
25069     bsdi[45]*)
25070       export_dynamic_flag_spec_GCJ=-rdynamic
25071       ;;
25072
25073     cygwin* | mingw* | pw32*)
25074       # When not using gcc, we currently assume that we are using
25075       # Microsoft Visual C++.
25076       # hardcode_libdir_flag_spec is actually meaningless, as there is
25077       # no search path for DLLs.
25078       hardcode_libdir_flag_spec_GCJ=' '
25079       allow_undefined_flag_GCJ=unsupported
25080       # Tell ltmain to make .lib files, not .a files.
25081       libext=lib
25082       # Tell ltmain to make .dll files, not .so files.
25083       shrext_cmds=".dll"
25084       # FIXME: Setting linknames here is a bad hack.
25085       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25086       # The linker will automatically build a .lib file if we build a DLL.
25087       old_archive_From_new_cmds_GCJ='true'
25088       # FIXME: Should let the user specify the lib program.
25089       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25090       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25091       enable_shared_with_static_runtimes_GCJ=yes
25092       ;;
25093
25094     darwin* | rhapsody*)
25095       case $host_os in
25096         rhapsody* | darwin1.[012])
25097          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25098          ;;
25099        *) # Darwin 1.3 on
25100          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25101            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25102          else
25103            case ${MACOSX_DEPLOYMENT_TARGET} in
25104              10.[012])
25105                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25106                ;;
25107              10.*)
25108                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25109                ;;
25110            esac
25111          fi
25112          ;;
25113       esac
25114       archive_cmds_need_lc_GCJ=no
25115       hardcode_direct_GCJ=no
25116       hardcode_automatic_GCJ=yes
25117       hardcode_shlibpath_var_GCJ=unsupported
25118       whole_archive_flag_spec_GCJ=''
25119       link_all_deplibs_GCJ=yes
25120     if test "$GCC" = yes ; then
25121         output_verbose_link_cmd='echo'
25122         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
25123         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
25124         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
25125         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
25126     else
25127       case $cc_basename in
25128         xlc*)
25129          output_verbose_link_cmd='echo'
25130          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25131          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25132           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25133          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25134           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}'
25135           ;;
25136        *)
25137          ld_shlibs_GCJ=no
25138           ;;
25139       esac
25140     fi
25141       ;;
25142
25143     dgux*)
25144       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146       hardcode_shlibpath_var_GCJ=no
25147       ;;
25148
25149     freebsd1*)
25150       ld_shlibs_GCJ=no
25151       ;;
25152
25153     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25154     # support.  Future versions do this automatically, but an explicit c++rt0.o
25155     # does not break anything, and helps significantly (at the cost of a little
25156     # extra space).
25157     freebsd2.2*)
25158       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25159       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25160       hardcode_direct_GCJ=yes
25161       hardcode_shlibpath_var_GCJ=no
25162       ;;
25163
25164     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25165     freebsd2*)
25166       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25167       hardcode_direct_GCJ=yes
25168       hardcode_minus_L_GCJ=yes
25169       hardcode_shlibpath_var_GCJ=no
25170       ;;
25171
25172     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25173     freebsd* | dragonfly*)
25174       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25175       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25176       hardcode_direct_GCJ=yes
25177       hardcode_shlibpath_var_GCJ=no
25178       ;;
25179
25180     hpux9*)
25181       if test "$GCC" = yes; then
25182         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'
25183       else
25184         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'
25185       fi
25186       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25187       hardcode_libdir_separator_GCJ=:
25188       hardcode_direct_GCJ=yes
25189
25190       # hardcode_minus_L: Not really in the search PATH,
25191       # but as the default location of the library.
25192       hardcode_minus_L_GCJ=yes
25193       export_dynamic_flag_spec_GCJ='${wl}-E'
25194       ;;
25195
25196     hpux10*)
25197       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25198         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25199       else
25200         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25201       fi
25202       if test "$with_gnu_ld" = no; then
25203         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25204         hardcode_libdir_separator_GCJ=:
25205
25206         hardcode_direct_GCJ=yes
25207         export_dynamic_flag_spec_GCJ='${wl}-E'
25208
25209         # hardcode_minus_L: Not really in the search PATH,
25210         # but as the default location of the library.
25211         hardcode_minus_L_GCJ=yes
25212       fi
25213       ;;
25214
25215     hpux11*)
25216       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25217         case $host_cpu in
25218         hppa*64*)
25219           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25220           ;;
25221         ia64*)
25222           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25223           ;;
25224         *)
25225           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25226           ;;
25227         esac
25228       else
25229         case $host_cpu in
25230         hppa*64*)
25231           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25232           ;;
25233         ia64*)
25234           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25235           ;;
25236         *)
25237           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25238           ;;
25239         esac
25240       fi
25241       if test "$with_gnu_ld" = no; then
25242         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25243         hardcode_libdir_separator_GCJ=:
25244
25245         case $host_cpu in
25246         hppa*64*|ia64*)
25247           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25248           hardcode_direct_GCJ=no
25249           hardcode_shlibpath_var_GCJ=no
25250           ;;
25251         *)
25252           hardcode_direct_GCJ=yes
25253           export_dynamic_flag_spec_GCJ='${wl}-E'
25254
25255           # hardcode_minus_L: Not really in the search PATH,
25256           # but as the default location of the library.
25257           hardcode_minus_L_GCJ=yes
25258           ;;
25259         esac
25260       fi
25261       ;;
25262
25263     irix5* | irix6* | nonstopux*)
25264       if test "$GCC" = yes; then
25265         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'
25266       else
25267         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'
25268         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25269       fi
25270       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25271       hardcode_libdir_separator_GCJ=:
25272       link_all_deplibs_GCJ=yes
25273       ;;
25274
25275     netbsd* | netbsdelf*-gnu)
25276       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25277         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25278       else
25279         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25280       fi
25281       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25282       hardcode_direct_GCJ=yes
25283       hardcode_shlibpath_var_GCJ=no
25284       ;;
25285
25286     newsos6)
25287       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25288       hardcode_direct_GCJ=yes
25289       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25290       hardcode_libdir_separator_GCJ=:
25291       hardcode_shlibpath_var_GCJ=no
25292       ;;
25293
25294     openbsd*)
25295       if test -f /usr/libexec/ld.so; then
25296         hardcode_direct_GCJ=yes
25297         hardcode_shlibpath_var_GCJ=no
25298         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25299           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25300           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25301           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25302           export_dynamic_flag_spec_GCJ='${wl}-E'
25303         else
25304           case $host_os in
25305            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25306              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25307              hardcode_libdir_flag_spec_GCJ='-R$libdir'
25308              ;;
25309            *)
25310              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25311              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25312              ;;
25313           esac
25314         fi
25315       else
25316         ld_shlibs_GCJ=no
25317       fi
25318       ;;
25319
25320     os2*)
25321       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25322       hardcode_minus_L_GCJ=yes
25323       allow_undefined_flag_GCJ=unsupported
25324       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'
25325       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25326       ;;
25327
25328     osf3*)
25329       if test "$GCC" = yes; then
25330         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25331         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'
25332       else
25333         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25334         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'
25335       fi
25336       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25337       hardcode_libdir_separator_GCJ=:
25338       ;;
25339
25340     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25341       if test "$GCC" = yes; then
25342         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25343         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'
25344         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25345       else
25346         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25347         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'
25348         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~
25349         $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'
25350
25351         # Both c and cxx compiler support -rpath directly
25352         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25353       fi
25354       hardcode_libdir_separator_GCJ=:
25355       ;;
25356
25357     solaris*)
25358       no_undefined_flag_GCJ=' -z text'
25359       if test "$GCC" = yes; then
25360         wlarc='${wl}'
25361         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25362         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25363           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25364       else
25365         wlarc=''
25366         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25367         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25368         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25369       fi
25370       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25371       hardcode_shlibpath_var_GCJ=no
25372       case $host_os in
25373       solaris2.[0-5] | solaris2.[0-5].*) ;;
25374       *)
25375         # The compiler driver will combine and reorder linker options,
25376         # but understands `-z linker_flag'.  GCC discards it without `$wl',
25377         # but is careful enough not to reorder.
25378         # Supported since Solaris 2.6 (maybe 2.5.1?)
25379         if test "$GCC" = yes; then
25380           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25381         else
25382           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25383         fi
25384         ;;
25385       esac
25386       link_all_deplibs_GCJ=yes
25387       ;;
25388
25389     sunos4*)
25390       if test "x$host_vendor" = xsequent; then
25391         # Use $CC to link under sequent, because it throws in some extra .o
25392         # files that make .init and .fini sections work.
25393         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25394       else
25395         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25396       fi
25397       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25398       hardcode_direct_GCJ=yes
25399       hardcode_minus_L_GCJ=yes
25400       hardcode_shlibpath_var_GCJ=no
25401       ;;
25402
25403     sysv4)
25404       case $host_vendor in
25405         sni)
25406           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25407           hardcode_direct_GCJ=yes # is this really true???
25408         ;;
25409         siemens)
25410           ## LD is ld it makes a PLAMLIB
25411           ## CC just makes a GrossModule.
25412           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25413           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25414           hardcode_direct_GCJ=no
25415         ;;
25416         motorola)
25417           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25418           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25419         ;;
25420       esac
25421       runpath_var='LD_RUN_PATH'
25422       hardcode_shlibpath_var_GCJ=no
25423       ;;
25424
25425     sysv4.3*)
25426       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25427       hardcode_shlibpath_var_GCJ=no
25428       export_dynamic_flag_spec_GCJ='-Bexport'
25429       ;;
25430
25431     sysv4*MP*)
25432       if test -d /usr/nec; then
25433         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25434         hardcode_shlibpath_var_GCJ=no
25435         runpath_var=LD_RUN_PATH
25436         hardcode_runpath_var=yes
25437         ld_shlibs_GCJ=yes
25438       fi
25439       ;;
25440
25441     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25442       no_undefined_flag_GCJ='${wl}-z,text'
25443       archive_cmds_need_lc_GCJ=no
25444       hardcode_shlibpath_var_GCJ=no
25445       runpath_var='LD_RUN_PATH'
25446
25447       if test "$GCC" = yes; then
25448         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25449         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25450       else
25451         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25452         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25453       fi
25454       ;;
25455
25456     sysv5* | sco3.2v5* | sco5v6*)
25457       # Note: We can NOT use -z defs as we might desire, because we do not
25458       # link with -lc, and that would cause any symbols used from libc to
25459       # always be unresolved, which means just about no library would
25460       # ever link correctly.  If we're not using GNU ld we use -z text
25461       # though, which does catch some bad symbols but isn't as heavy-handed
25462       # as -z defs.
25463       no_undefined_flag_GCJ='${wl}-z,text'
25464       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25465       archive_cmds_need_lc_GCJ=no
25466       hardcode_shlibpath_var_GCJ=no
25467       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25468       hardcode_libdir_separator_GCJ=':'
25469       link_all_deplibs_GCJ=yes
25470       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25471       runpath_var='LD_RUN_PATH'
25472
25473       if test "$GCC" = yes; then
25474         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25475         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25476       else
25477         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25478         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25479       fi
25480       ;;
25481
25482     uts4*)
25483       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25484       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25485       hardcode_shlibpath_var_GCJ=no
25486       ;;
25487
25488     *)
25489       ld_shlibs_GCJ=no
25490       ;;
25491     esac
25492   fi
25493
25494 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25495 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25496 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25497
25498 #
25499 # Do we need to explicitly link libc?
25500 #
25501 case "x$archive_cmds_need_lc_GCJ" in
25502 x|xyes)
25503   # Assume -lc should be added
25504   archive_cmds_need_lc_GCJ=yes
25505
25506   if test "$enable_shared" = yes && test "$GCC" = yes; then
25507     case $archive_cmds_GCJ in
25508     *'~'*)
25509       # FIXME: we may have to deal with multi-command sequences.
25510       ;;
25511     '$CC '*)
25512       # Test whether the compiler implicitly links with -lc since on some
25513       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25514       # to ld, don't add -lc before -lgcc.
25515       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25516 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25517       $rm conftest*
25518       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25519
25520       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25521   (eval $ac_compile) 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } 2>conftest.err; then
25525         soname=conftest
25526         lib=conftest
25527         libobjs=conftest.$ac_objext
25528         deplibs=
25529         wl=$lt_prog_compiler_wl_GCJ
25530         pic_flag=$lt_prog_compiler_pic_GCJ
25531         compiler_flags=-v
25532         linker_flags=-v
25533         verstring=
25534         output_objdir=.
25535         libname=conftest
25536         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25537         allow_undefined_flag_GCJ=
25538         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25539   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25540   ac_status=$?
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); }
25543         then
25544           archive_cmds_need_lc_GCJ=no
25545         else
25546           archive_cmds_need_lc_GCJ=yes
25547         fi
25548         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25549       else
25550         cat conftest.err 1>&5
25551       fi
25552       $rm conftest*
25553       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25554 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25555       ;;
25556     esac
25557   fi
25558   ;;
25559 esac
25560
25561 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25562 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25563 library_names_spec=
25564 libname_spec='lib$name'
25565 soname_spec=
25566 shrext_cmds=".so"
25567 postinstall_cmds=
25568 postuninstall_cmds=
25569 finish_cmds=
25570 finish_eval=
25571 shlibpath_var=
25572 shlibpath_overrides_runpath=unknown
25573 version_type=none
25574 dynamic_linker="$host_os ld.so"
25575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25576
25577 need_lib_prefix=unknown
25578 hardcode_into_libs=no
25579
25580 # when you set need_version to no, make sure it does not cause -set_version
25581 # flags to be left without arguments
25582 need_version=unknown
25583
25584 case $host_os in
25585 aix3*)
25586   version_type=linux
25587   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25588   shlibpath_var=LIBPATH
25589
25590   # AIX 3 has no versioning support, so we append a major version to the name.
25591   soname_spec='${libname}${release}${shared_ext}$major'
25592   ;;
25593
25594 aix[4-9]*)
25595   version_type=linux
25596   need_lib_prefix=no
25597   need_version=no
25598   hardcode_into_libs=yes
25599   if test "$host_cpu" = ia64; then
25600     # AIX 5 supports IA64
25601     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25602     shlibpath_var=LD_LIBRARY_PATH
25603   else
25604     # With GCC up to 2.95.x, collect2 would create an import file
25605     # for dependence libraries.  The import file would start with
25606     # the line `#! .'.  This would cause the generated library to
25607     # depend on `.', always an invalid library.  This was fixed in
25608     # development snapshots of GCC prior to 3.0.
25609     case $host_os in
25610       aix4 | aix4.[01] | aix4.[01].*)
25611       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25612            echo ' yes '
25613            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25614         :
25615       else
25616         can_build_shared=no
25617       fi
25618       ;;
25619     esac
25620     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25621     # soname into executable. Probably we can add versioning support to
25622     # collect2, so additional links can be useful in future.
25623     if test "$aix_use_runtimelinking" = yes; then
25624       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25625       # instead of lib<name>.a to let people know that these are not
25626       # typical AIX shared libraries.
25627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25628     else
25629       # We preserve .a as extension for shared libraries through AIX4.2
25630       # and later when we are not doing run time linking.
25631       library_names_spec='${libname}${release}.a $libname.a'
25632       soname_spec='${libname}${release}${shared_ext}$major'
25633     fi
25634     shlibpath_var=LIBPATH
25635   fi
25636   ;;
25637
25638 amigaos*)
25639   library_names_spec='$libname.ixlibrary $libname.a'
25640   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25641   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'
25642   ;;
25643
25644 beos*)
25645   library_names_spec='${libname}${shared_ext}'
25646   dynamic_linker="$host_os ld.so"
25647   shlibpath_var=LIBRARY_PATH
25648   ;;
25649
25650 bsdi[45]*)
25651   version_type=linux
25652   need_version=no
25653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25654   soname_spec='${libname}${release}${shared_ext}$major'
25655   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25656   shlibpath_var=LD_LIBRARY_PATH
25657   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25658   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25659   # the default ld.so.conf also contains /usr/contrib/lib and
25660   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25661   # libtool to hard-code these into programs
25662   ;;
25663
25664 cygwin* | mingw* | pw32*)
25665   version_type=windows
25666   shrext_cmds=".dll"
25667   need_version=no
25668   need_lib_prefix=no
25669
25670   case $GCC,$host_os in
25671   yes,cygwin* | yes,mingw* | yes,pw32*)
25672     library_names_spec='$libname.dll.a'
25673     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25674     postinstall_cmds='base_file=`basename \${file}`~
25675       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25676       dldir=$destdir/`dirname \$dlpath`~
25677       test -d \$dldir || mkdir -p \$dldir~
25678       $install_prog $dir/$dlname \$dldir/$dlname~
25679       chmod a+x \$dldir/$dlname'
25680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25681       dlpath=$dir/\$dldll~
25682        $rm \$dlpath'
25683     shlibpath_overrides_runpath=yes
25684
25685     case $host_os in
25686     cygwin*)
25687       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25688       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25689       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25690       ;;
25691     mingw*)
25692       # MinGW DLLs use traditional 'lib' prefix
25693       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25694       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25695       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25696         # It is most probably a Windows format PATH printed by
25697         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25698         # path with ; separators, and with drive letters. We can handle the
25699         # drive letters (cygwin fileutils understands them), so leave them,
25700         # especially as we might pass files found there to a mingw objdump,
25701         # which wouldn't understand a cygwinified path. Ahh.
25702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25703       else
25704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25705       fi
25706       ;;
25707     pw32*)
25708       # pw32 DLLs use 'pw' prefix rather than 'lib'
25709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25710       ;;
25711     esac
25712     ;;
25713
25714   *)
25715     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25716     ;;
25717   esac
25718   dynamic_linker='Win32 ld.exe'
25719   # FIXME: first we should search . and the directory the executable is in
25720   shlibpath_var=PATH
25721   ;;
25722
25723 darwin* | rhapsody*)
25724   dynamic_linker="$host_os dyld"
25725   version_type=darwin
25726   need_lib_prefix=no
25727   need_version=no
25728   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25729   soname_spec='${libname}${release}${major}$shared_ext'
25730   shlibpath_overrides_runpath=yes
25731   shlibpath_var=DYLD_LIBRARY_PATH
25732   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25733
25734   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25735   ;;
25736
25737 dgux*)
25738   version_type=linux
25739   need_lib_prefix=no
25740   need_version=no
25741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25742   soname_spec='${libname}${release}${shared_ext}$major'
25743   shlibpath_var=LD_LIBRARY_PATH
25744   ;;
25745
25746 freebsd1*)
25747   dynamic_linker=no
25748   ;;
25749
25750 freebsd* | dragonfly*)
25751   # DragonFly does not have aout.  When/if they implement a new
25752   # versioning mechanism, adjust this.
25753   if test -x /usr/bin/objformat; then
25754     objformat=`/usr/bin/objformat`
25755   else
25756     case $host_os in
25757     freebsd[123]*) objformat=aout ;;
25758     *) objformat=elf ;;
25759     esac
25760   fi
25761   version_type=freebsd-$objformat
25762   case $version_type in
25763     freebsd-elf*)
25764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25765       need_version=no
25766       need_lib_prefix=no
25767       ;;
25768     freebsd-*)
25769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25770       need_version=yes
25771       ;;
25772   esac
25773   shlibpath_var=LD_LIBRARY_PATH
25774   case $host_os in
25775   freebsd2*)
25776     shlibpath_overrides_runpath=yes
25777     ;;
25778   freebsd3.[01]* | freebsdelf3.[01]*)
25779     shlibpath_overrides_runpath=yes
25780     hardcode_into_libs=yes
25781     ;;
25782   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25783   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25784     shlibpath_overrides_runpath=no
25785     hardcode_into_libs=yes
25786     ;;
25787   *) # from 4.6 on, and DragonFly
25788     shlibpath_overrides_runpath=yes
25789     hardcode_into_libs=yes
25790     ;;
25791   esac
25792   ;;
25793
25794 gnu*)
25795   version_type=linux
25796   need_lib_prefix=no
25797   need_version=no
25798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25799   soname_spec='${libname}${release}${shared_ext}$major'
25800   shlibpath_var=LD_LIBRARY_PATH
25801   hardcode_into_libs=yes
25802   ;;
25803
25804 hpux9* | hpux10* | hpux11*)
25805   # Give a soname corresponding to the major version so that dld.sl refuses to
25806   # link against other versions.
25807   version_type=sunos
25808   need_lib_prefix=no
25809   need_version=no
25810   case $host_cpu in
25811   ia64*)
25812     shrext_cmds='.so'
25813     hardcode_into_libs=yes
25814     dynamic_linker="$host_os dld.so"
25815     shlibpath_var=LD_LIBRARY_PATH
25816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25818     soname_spec='${libname}${release}${shared_ext}$major'
25819     if test "X$HPUX_IA64_MODE" = X32; then
25820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25821     else
25822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25823     fi
25824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25825     ;;
25826    hppa*64*)
25827      shrext_cmds='.sl'
25828      hardcode_into_libs=yes
25829      dynamic_linker="$host_os dld.sl"
25830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25833      soname_spec='${libname}${release}${shared_ext}$major'
25834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25836      ;;
25837    *)
25838     shrext_cmds='.sl'
25839     dynamic_linker="$host_os dld.sl"
25840     shlibpath_var=SHLIB_PATH
25841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25843     soname_spec='${libname}${release}${shared_ext}$major'
25844     ;;
25845   esac
25846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25847   postinstall_cmds='chmod 555 $lib'
25848   ;;
25849
25850 interix[3-9]*)
25851   version_type=linux
25852   need_lib_prefix=no
25853   need_version=no
25854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25855   soname_spec='${libname}${release}${shared_ext}$major'
25856   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25857   shlibpath_var=LD_LIBRARY_PATH
25858   shlibpath_overrides_runpath=no
25859   hardcode_into_libs=yes
25860   ;;
25861
25862 irix5* | irix6* | nonstopux*)
25863   case $host_os in
25864     nonstopux*) version_type=nonstopux ;;
25865     *)
25866         if test "$lt_cv_prog_gnu_ld" = yes; then
25867                 version_type=linux
25868         else
25869                 version_type=irix
25870         fi ;;
25871   esac
25872   need_lib_prefix=no
25873   need_version=no
25874   soname_spec='${libname}${release}${shared_ext}$major'
25875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25876   case $host_os in
25877   irix5* | nonstopux*)
25878     libsuff= shlibsuff=
25879     ;;
25880   *)
25881     case $LD in # libtool.m4 will add one of these switches to LD
25882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25883       libsuff= shlibsuff= libmagic=32-bit;;
25884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25885       libsuff=32 shlibsuff=N32 libmagic=N32;;
25886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25888     *) libsuff= shlibsuff= libmagic=never-match;;
25889     esac
25890     ;;
25891   esac
25892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25893   shlibpath_overrides_runpath=no
25894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25896   hardcode_into_libs=yes
25897   ;;
25898
25899 # No shared lib support for Linux oldld, aout, or coff.
25900 linux*oldld* | linux*aout* | linux*coff*)
25901   dynamic_linker=no
25902   ;;
25903
25904 # This must be Linux ELF.
25905 linux* | k*bsd*-gnu)
25906   version_type=linux
25907   need_lib_prefix=no
25908   need_version=no
25909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910   soname_spec='${libname}${release}${shared_ext}$major'
25911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25912   shlibpath_var=LD_LIBRARY_PATH
25913   shlibpath_overrides_runpath=no
25914   # This implies no fast_install, which is unacceptable.
25915   # Some rework will be needed to allow for fast_install
25916   # before this can be enabled.
25917   hardcode_into_libs=yes
25918
25919   # Append ld.so.conf contents to the search path
25920   if test -f /etc/ld.so.conf; then
25921     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25922     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25923   fi
25924
25925   # We used to test for /lib/ld.so.1 and disable shared libraries on
25926   # powerpc, because MkLinux only supported shared libraries with the
25927   # GNU dynamic linker.  Since this was broken with cross compilers,
25928   # most powerpc-linux boxes support dynamic linking these days and
25929   # people can always --disable-shared, the test was removed, and we
25930   # assume the GNU/Linux dynamic linker is in use.
25931   dynamic_linker='GNU/Linux ld.so'
25932   ;;
25933
25934 netbsdelf*-gnu)
25935   version_type=linux
25936   need_lib_prefix=no
25937   need_version=no
25938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25939   soname_spec='${libname}${release}${shared_ext}$major'
25940   shlibpath_var=LD_LIBRARY_PATH
25941   shlibpath_overrides_runpath=no
25942   hardcode_into_libs=yes
25943   dynamic_linker='NetBSD ld.elf_so'
25944   ;;
25945
25946 netbsd*)
25947   version_type=sunos
25948   need_lib_prefix=no
25949   need_version=no
25950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25953     dynamic_linker='NetBSD (a.out) ld.so'
25954   else
25955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25956     soname_spec='${libname}${release}${shared_ext}$major'
25957     dynamic_linker='NetBSD ld.elf_so'
25958   fi
25959   shlibpath_var=LD_LIBRARY_PATH
25960   shlibpath_overrides_runpath=yes
25961   hardcode_into_libs=yes
25962   ;;
25963
25964 newsos6)
25965   version_type=linux
25966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25967   shlibpath_var=LD_LIBRARY_PATH
25968   shlibpath_overrides_runpath=yes
25969   ;;
25970
25971 nto-qnx*)
25972   version_type=linux
25973   need_lib_prefix=no
25974   need_version=no
25975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25976   soname_spec='${libname}${release}${shared_ext}$major'
25977   shlibpath_var=LD_LIBRARY_PATH
25978   shlibpath_overrides_runpath=yes
25979   ;;
25980
25981 openbsd*)
25982   version_type=sunos
25983   sys_lib_dlsearch_path_spec="/usr/lib"
25984   need_lib_prefix=no
25985   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25986   case $host_os in
25987     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25988     *)                         need_version=no  ;;
25989   esac
25990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25991   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25992   shlibpath_var=LD_LIBRARY_PATH
25993   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25994     case $host_os in
25995       openbsd2.[89] | openbsd2.[89].*)
25996         shlibpath_overrides_runpath=no
25997         ;;
25998       *)
25999         shlibpath_overrides_runpath=yes
26000         ;;
26001       esac
26002   else
26003     shlibpath_overrides_runpath=yes
26004   fi
26005   ;;
26006
26007 os2*)
26008   libname_spec='$name'
26009   shrext_cmds=".dll"
26010   need_lib_prefix=no
26011   library_names_spec='$libname${shared_ext} $libname.a'
26012   dynamic_linker='OS/2 ld.exe'
26013   shlibpath_var=LIBPATH
26014   ;;
26015
26016 osf3* | osf4* | osf5*)
26017   version_type=osf
26018   need_lib_prefix=no
26019   need_version=no
26020   soname_spec='${libname}${release}${shared_ext}$major'
26021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26022   shlibpath_var=LD_LIBRARY_PATH
26023   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26024   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26025   ;;
26026
26027 rdos*)
26028   dynamic_linker=no
26029   ;;
26030
26031 solaris*)
26032   version_type=linux
26033   need_lib_prefix=no
26034   need_version=no
26035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26036   soname_spec='${libname}${release}${shared_ext}$major'
26037   shlibpath_var=LD_LIBRARY_PATH
26038   shlibpath_overrides_runpath=yes
26039   hardcode_into_libs=yes
26040   # ldd complains unless libraries are executable
26041   postinstall_cmds='chmod +x $lib'
26042   ;;
26043
26044 sunos4*)
26045   version_type=sunos
26046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26047   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26048   shlibpath_var=LD_LIBRARY_PATH
26049   shlibpath_overrides_runpath=yes
26050   if test "$with_gnu_ld" = yes; then
26051     need_lib_prefix=no
26052   fi
26053   need_version=yes
26054   ;;
26055
26056 sysv4 | sysv4.3*)
26057   version_type=linux
26058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059   soname_spec='${libname}${release}${shared_ext}$major'
26060   shlibpath_var=LD_LIBRARY_PATH
26061   case $host_vendor in
26062     sni)
26063       shlibpath_overrides_runpath=no
26064       need_lib_prefix=no
26065       export_dynamic_flag_spec='${wl}-Blargedynsym'
26066       runpath_var=LD_RUN_PATH
26067       ;;
26068     siemens)
26069       need_lib_prefix=no
26070       ;;
26071     motorola)
26072       need_lib_prefix=no
26073       need_version=no
26074       shlibpath_overrides_runpath=no
26075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26076       ;;
26077   esac
26078   ;;
26079
26080 sysv4*MP*)
26081   if test -d /usr/nec ;then
26082     version_type=linux
26083     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26084     soname_spec='$libname${shared_ext}.$major'
26085     shlibpath_var=LD_LIBRARY_PATH
26086   fi
26087   ;;
26088
26089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26090   version_type=freebsd-elf
26091   need_lib_prefix=no
26092   need_version=no
26093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26094   soname_spec='${libname}${release}${shared_ext}$major'
26095   shlibpath_var=LD_LIBRARY_PATH
26096   hardcode_into_libs=yes
26097   if test "$with_gnu_ld" = yes; then
26098     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26099     shlibpath_overrides_runpath=no
26100   else
26101     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26102     shlibpath_overrides_runpath=yes
26103     case $host_os in
26104       sco3.2v5*)
26105         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26106         ;;
26107     esac
26108   fi
26109   sys_lib_dlsearch_path_spec='/usr/lib'
26110   ;;
26111
26112 uts4*)
26113   version_type=linux
26114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26115   soname_spec='${libname}${release}${shared_ext}$major'
26116   shlibpath_var=LD_LIBRARY_PATH
26117   ;;
26118
26119 *)
26120   dynamic_linker=no
26121   ;;
26122 esac
26123 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26124 echo "${ECHO_T}$dynamic_linker" >&6; }
26125 test "$dynamic_linker" = no && can_build_shared=no
26126
26127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26128   echo $ECHO_N "(cached) $ECHO_C" >&6
26129 else
26130   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26131 fi
26132
26133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26134 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26135   echo $ECHO_N "(cached) $ECHO_C" >&6
26136 else
26137   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26138 fi
26139
26140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26141
26142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26143 if test "$GCC" = yes; then
26144   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26145 fi
26146
26147 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26149 hardcode_action_GCJ=
26150 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26151    test -n "$runpath_var_GCJ" || \
26152    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26153
26154   # We can hardcode non-existant directories.
26155   if test "$hardcode_direct_GCJ" != no &&
26156      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26157      # have to relink, otherwise we might link with an installed library
26158      # when we should be linking with a yet-to-be-installed one
26159      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26160      test "$hardcode_minus_L_GCJ" != no; then
26161     # Linking always hardcodes the temporary library directory.
26162     hardcode_action_GCJ=relink
26163   else
26164     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26165     hardcode_action_GCJ=immediate
26166   fi
26167 else
26168   # We cannot hardcode anything, or else we can only hardcode existing
26169   # directories.
26170   hardcode_action_GCJ=unsupported
26171 fi
26172 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26173 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26174
26175 if test "$hardcode_action_GCJ" = relink; then
26176   # Fast installation is not supported
26177   enable_fast_install=no
26178 elif test "$shlibpath_overrides_runpath" = yes ||
26179      test "$enable_shared" = no; then
26180   # Fast installation is not necessary
26181   enable_fast_install=needless
26182 fi
26183
26184
26185 # The else clause should only fire when bootstrapping the
26186 # libtool distribution, otherwise you forgot to ship ltmain.sh
26187 # with your package, and you will get complaints that there are
26188 # no rules to generate ltmain.sh.
26189 if test -f "$ltmain"; then
26190   # See if we are running on zsh, and set the options which allow our commands through
26191   # without removal of \ escapes.
26192   if test -n "${ZSH_VERSION+set}" ; then
26193     setopt NO_GLOB_SUBST
26194   fi
26195   # Now quote all the things that may contain metacharacters while being
26196   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26197   # variables and quote the copies for generation of the libtool script.
26198   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26199     SED SHELL STRIP \
26200     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26201     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26202     deplibs_check_method reload_flag reload_cmds need_locks \
26203     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26204     lt_cv_sys_global_symbol_to_c_name_address \
26205     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26206     old_postinstall_cmds old_postuninstall_cmds \
26207     compiler_GCJ \
26208     CC_GCJ \
26209     LD_GCJ \
26210     lt_prog_compiler_wl_GCJ \
26211     lt_prog_compiler_pic_GCJ \
26212     lt_prog_compiler_static_GCJ \
26213     lt_prog_compiler_no_builtin_flag_GCJ \
26214     export_dynamic_flag_spec_GCJ \
26215     thread_safe_flag_spec_GCJ \
26216     whole_archive_flag_spec_GCJ \
26217     enable_shared_with_static_runtimes_GCJ \
26218     old_archive_cmds_GCJ \
26219     old_archive_from_new_cmds_GCJ \
26220     predep_objects_GCJ \
26221     postdep_objects_GCJ \
26222     predeps_GCJ \
26223     postdeps_GCJ \
26224     compiler_lib_search_path_GCJ \
26225     compiler_lib_search_dirs_GCJ \
26226     archive_cmds_GCJ \
26227     archive_expsym_cmds_GCJ \
26228     postinstall_cmds_GCJ \
26229     postuninstall_cmds_GCJ \
26230     old_archive_from_expsyms_cmds_GCJ \
26231     allow_undefined_flag_GCJ \
26232     no_undefined_flag_GCJ \
26233     export_symbols_cmds_GCJ \
26234     hardcode_libdir_flag_spec_GCJ \
26235     hardcode_libdir_flag_spec_ld_GCJ \
26236     hardcode_libdir_separator_GCJ \
26237     hardcode_automatic_GCJ \
26238     module_cmds_GCJ \
26239     module_expsym_cmds_GCJ \
26240     lt_cv_prog_compiler_c_o_GCJ \
26241     fix_srcfile_path_GCJ \
26242     exclude_expsyms_GCJ \
26243     include_expsyms_GCJ; do
26244
26245     case $var in
26246     old_archive_cmds_GCJ | \
26247     old_archive_from_new_cmds_GCJ | \
26248     archive_cmds_GCJ | \
26249     archive_expsym_cmds_GCJ | \
26250     module_cmds_GCJ | \
26251     module_expsym_cmds_GCJ | \
26252     old_archive_from_expsyms_cmds_GCJ | \
26253     export_symbols_cmds_GCJ | \
26254     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26255     postinstall_cmds | postuninstall_cmds | \
26256     old_postinstall_cmds | old_postuninstall_cmds | \
26257     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26258       # Double-quote double-evaled strings.
26259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26260       ;;
26261     *)
26262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26263       ;;
26264     esac
26265   done
26266
26267   case $lt_echo in
26268   *'\$0 --fallback-echo"')
26269     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26270     ;;
26271   esac
26272
26273 cfgfile="$ofile"
26274
26275   cat <<__EOF__ >> "$cfgfile"
26276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26277
26278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26279
26280 # Shell to use when invoking shell scripts.
26281 SHELL=$lt_SHELL
26282
26283 # Whether or not to build shared libraries.
26284 build_libtool_libs=$enable_shared
26285
26286 # Whether or not to build static libraries.
26287 build_old_libs=$enable_static
26288
26289 # Whether or not to add -lc for building shared libraries.
26290 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26291
26292 # Whether or not to disallow shared libs when runtime libs are static
26293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26294
26295 # Whether or not to optimize for fast installation.
26296 fast_install=$enable_fast_install
26297
26298 # The host system.
26299 host_alias=$host_alias
26300 host=$host
26301 host_os=$host_os
26302
26303 # The build system.
26304 build_alias=$build_alias
26305 build=$build
26306 build_os=$build_os
26307
26308 # An echo program that does not interpret backslashes.
26309 echo=$lt_echo
26310
26311 # The archiver.
26312 AR=$lt_AR
26313 AR_FLAGS=$lt_AR_FLAGS
26314
26315 # A C compiler.
26316 LTCC=$lt_LTCC
26317
26318 # LTCC compiler flags.
26319 LTCFLAGS=$lt_LTCFLAGS
26320
26321 # A language-specific compiler.
26322 CC=$lt_compiler_GCJ
26323
26324 # Is the compiler the GNU C compiler?
26325 with_gcc=$GCC_GCJ
26326
26327 # An ERE matcher.
26328 EGREP=$lt_EGREP
26329
26330 # The linker used to build libraries.
26331 LD=$lt_LD_GCJ
26332
26333 # Whether we need hard or soft links.
26334 LN_S=$lt_LN_S
26335
26336 # A BSD-compatible nm program.
26337 NM=$lt_NM
26338
26339 # A symbol stripping program
26340 STRIP=$lt_STRIP
26341
26342 # Used to examine libraries when file_magic_cmd begins "file"
26343 MAGIC_CMD=$MAGIC_CMD
26344
26345 # Used on cygwin: DLL creation program.
26346 DLLTOOL="$DLLTOOL"
26347
26348 # Used on cygwin: object dumper.
26349 OBJDUMP="$OBJDUMP"
26350
26351 # Used on cygwin: assembler.
26352 AS="$AS"
26353
26354 # The name of the directory that contains temporary libtool files.
26355 objdir=$objdir
26356
26357 # How to create reloadable object files.
26358 reload_flag=$lt_reload_flag
26359 reload_cmds=$lt_reload_cmds
26360
26361 # How to pass a linker flag through the compiler.
26362 wl=$lt_lt_prog_compiler_wl_GCJ
26363
26364 # Object file suffix (normally "o").
26365 objext="$ac_objext"
26366
26367 # Old archive suffix (normally "a").
26368 libext="$libext"
26369
26370 # Shared library suffix (normally ".so").
26371 shrext_cmds='$shrext_cmds'
26372
26373 # Executable file suffix (normally "").
26374 exeext="$exeext"
26375
26376 # Additional compiler flags for building library objects.
26377 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26378 pic_mode=$pic_mode
26379
26380 # What is the maximum length of a command?
26381 max_cmd_len=$lt_cv_sys_max_cmd_len
26382
26383 # Does compiler simultaneously support -c and -o options?
26384 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26385
26386 # Must we lock files when doing compilation?
26387 need_locks=$lt_need_locks
26388
26389 # Do we need the lib prefix for modules?
26390 need_lib_prefix=$need_lib_prefix
26391
26392 # Do we need a version for libraries?
26393 need_version=$need_version
26394
26395 # Whether dlopen is supported.
26396 dlopen_support=$enable_dlopen
26397
26398 # Whether dlopen of programs is supported.
26399 dlopen_self=$enable_dlopen_self
26400
26401 # Whether dlopen of statically linked programs is supported.
26402 dlopen_self_static=$enable_dlopen_self_static
26403
26404 # Compiler flag to prevent dynamic linking.
26405 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26406
26407 # Compiler flag to turn off builtin functions.
26408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26409
26410 # Compiler flag to allow reflexive dlopens.
26411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26412
26413 # Compiler flag to generate shared objects directly from archives.
26414 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26415
26416 # Compiler flag to generate thread-safe objects.
26417 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26418
26419 # Library versioning type.
26420 version_type=$version_type
26421
26422 # Format of library name prefix.
26423 libname_spec=$lt_libname_spec
26424
26425 # List of archive names.  First name is the real one, the rest are links.
26426 # The last name is the one that the linker finds with -lNAME.
26427 library_names_spec=$lt_library_names_spec
26428
26429 # The coded name of the library, if different from the real name.
26430 soname_spec=$lt_soname_spec
26431
26432 # Commands used to build and install an old-style archive.
26433 RANLIB=$lt_RANLIB
26434 old_archive_cmds=$lt_old_archive_cmds_GCJ
26435 old_postinstall_cmds=$lt_old_postinstall_cmds
26436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26437
26438 # Create an old-style archive from a shared archive.
26439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26440
26441 # Create a temporary old-style archive to link instead of a shared archive.
26442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26443
26444 # Commands used to build and install a shared archive.
26445 archive_cmds=$lt_archive_cmds_GCJ
26446 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26447 postinstall_cmds=$lt_postinstall_cmds
26448 postuninstall_cmds=$lt_postuninstall_cmds
26449
26450 # Commands used to build a loadable module (assumed same as above if empty)
26451 module_cmds=$lt_module_cmds_GCJ
26452 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26453
26454 # Commands to strip libraries.
26455 old_striplib=$lt_old_striplib
26456 striplib=$lt_striplib
26457
26458 # Dependencies to place before the objects being linked to create a
26459 # shared library.
26460 predep_objects=$lt_predep_objects_GCJ
26461
26462 # Dependencies to place after the objects being linked to create a
26463 # shared library.
26464 postdep_objects=$lt_postdep_objects_GCJ
26465
26466 # Dependencies to place before the objects being linked to create a
26467 # shared library.
26468 predeps=$lt_predeps_GCJ
26469
26470 # Dependencies to place after the objects being linked to create a
26471 # shared library.
26472 postdeps=$lt_postdeps_GCJ
26473
26474 # The directories searched by this compiler when creating a shared
26475 # library
26476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26477
26478 # The library search path used internally by the compiler when linking
26479 # a shared library.
26480 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26481
26482 # Method to check whether dependent libraries are shared objects.
26483 deplibs_check_method=$lt_deplibs_check_method
26484
26485 # Command to use when deplibs_check_method == file_magic.
26486 file_magic_cmd=$lt_file_magic_cmd
26487
26488 # Flag that allows shared libraries with undefined symbols to be built.
26489 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26490
26491 # Flag that forces no undefined symbols.
26492 no_undefined_flag=$lt_no_undefined_flag_GCJ
26493
26494 # Commands used to finish a libtool library installation in a directory.
26495 finish_cmds=$lt_finish_cmds
26496
26497 # Same as above, but a single script fragment to be evaled but not shown.
26498 finish_eval=$lt_finish_eval
26499
26500 # Take the output of nm and produce a listing of raw symbols and C names.
26501 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26502
26503 # Transform the output of nm in a proper C declaration
26504 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26505
26506 # Transform the output of nm in a C name address pair
26507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26508
26509 # This is the shared library runtime path variable.
26510 runpath_var=$runpath_var
26511
26512 # This is the shared library path variable.
26513 shlibpath_var=$shlibpath_var
26514
26515 # Is shlibpath searched before the hard-coded library search path?
26516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26517
26518 # How to hardcode a shared library path into an executable.
26519 hardcode_action=$hardcode_action_GCJ
26520
26521 # Whether we should hardcode library paths into libraries.
26522 hardcode_into_libs=$hardcode_into_libs
26523
26524 # Flag to hardcode \$libdir into a binary during linking.
26525 # This must work even if \$libdir does not exist.
26526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26527
26528 # If ld is used when linking, flag to hardcode \$libdir into
26529 # a binary during linking. This must work even if \$libdir does
26530 # not exist.
26531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26532
26533 # Whether we need a single -rpath flag with a separated argument.
26534 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26535
26536 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26537 # resulting binary.
26538 hardcode_direct=$hardcode_direct_GCJ
26539
26540 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26541 # resulting binary.
26542 hardcode_minus_L=$hardcode_minus_L_GCJ
26543
26544 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26545 # the resulting binary.
26546 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26547
26548 # Set to yes if building a shared library automatically hardcodes DIR into the library
26549 # and all subsequent libraries and executables linked against it.
26550 hardcode_automatic=$hardcode_automatic_GCJ
26551
26552 # Variables whose values should be saved in libtool wrapper scripts and
26553 # restored at relink time.
26554 variables_saved_for_relink="$variables_saved_for_relink"
26555
26556 # Whether libtool must link a program against all its dependency libraries.
26557 link_all_deplibs=$link_all_deplibs_GCJ
26558
26559 # Compile-time system search path for libraries
26560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26561
26562 # Run-time system search path for libraries
26563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26564
26565 # Fix the shell variable \$srcfile for the compiler.
26566 fix_srcfile_path=$lt_fix_srcfile_path
26567
26568 # Set to yes if exported symbols are required.
26569 always_export_symbols=$always_export_symbols_GCJ
26570
26571 # The commands to list exported symbols.
26572 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26573
26574 # The commands to extract the exported symbol list from a shared archive.
26575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26576
26577 # Symbols that should not be listed in the preloaded symbols.
26578 exclude_expsyms=$lt_exclude_expsyms_GCJ
26579
26580 # Symbols that must always be exported.
26581 include_expsyms=$lt_include_expsyms_GCJ
26582
26583 # ### END LIBTOOL TAG CONFIG: $tagname
26584
26585 __EOF__
26586
26587
26588 else
26589   # If there is no Makefile yet, we rely on a make rule to execute
26590   # `config.status --recheck' to rerun these tests and create the
26591   # libtool script then.
26592   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26593   if test -f "$ltmain_in"; then
26594     test -f Makefile && make "$ltmain"
26595   fi
26596 fi
26597
26598
26599 ac_ext=c
26600 ac_cpp='$CPP $CPPFLAGS'
26601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26604
26605 CC="$lt_save_CC"
26606
26607         else
26608           tagname=""
26609         fi
26610         ;;
26611
26612       RC)
26613
26614
26615 # Source file extension for RC test sources.
26616 ac_ext=rc
26617
26618 # Object file extension for compiled RC test sources.
26619 objext=o
26620 objext_RC=$objext
26621
26622 # Code to be used in simple compile tests
26623 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26624
26625 # Code to be used in simple link tests
26626 lt_simple_link_test_code="$lt_simple_compile_test_code"
26627
26628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26629
26630 # If no C compiler was specified, use CC.
26631 LTCC=${LTCC-"$CC"}
26632
26633 # If no C compiler flags were specified, use CFLAGS.
26634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26635
26636 # Allow CC to be a program name with arguments.
26637 compiler=$CC
26638
26639
26640 # save warnings/boilerplate of simple test code
26641 ac_outfile=conftest.$ac_objext
26642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26644 _lt_compiler_boilerplate=`cat conftest.err`
26645 $rm conftest*
26646
26647 ac_outfile=conftest.$ac_objext
26648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
26649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26650 _lt_linker_boilerplate=`cat conftest.err`
26651 $rm -r conftest*
26652
26653
26654 # Allow CC to be a program name with arguments.
26655 lt_save_CC="$CC"
26656 CC=${RC-"windres"}
26657 compiler=$CC
26658 compiler_RC=$CC
26659 for cc_temp in $compiler""; do
26660   case $cc_temp in
26661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26663     \-*) ;;
26664     *) break;;
26665   esac
26666 done
26667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26668
26669 lt_cv_prog_compiler_c_o_RC=yes
26670
26671 # The else clause should only fire when bootstrapping the
26672 # libtool distribution, otherwise you forgot to ship ltmain.sh
26673 # with your package, and you will get complaints that there are
26674 # no rules to generate ltmain.sh.
26675 if test -f "$ltmain"; then
26676   # See if we are running on zsh, and set the options which allow our commands through
26677   # without removal of \ escapes.
26678   if test -n "${ZSH_VERSION+set}" ; then
26679     setopt NO_GLOB_SUBST
26680   fi
26681   # Now quote all the things that may contain metacharacters while being
26682   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26683   # variables and quote the copies for generation of the libtool script.
26684   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26685     SED SHELL STRIP \
26686     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26687     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26688     deplibs_check_method reload_flag reload_cmds need_locks \
26689     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26690     lt_cv_sys_global_symbol_to_c_name_address \
26691     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26692     old_postinstall_cmds old_postuninstall_cmds \
26693     compiler_RC \
26694     CC_RC \
26695     LD_RC \
26696     lt_prog_compiler_wl_RC \
26697     lt_prog_compiler_pic_RC \
26698     lt_prog_compiler_static_RC \
26699     lt_prog_compiler_no_builtin_flag_RC \
26700     export_dynamic_flag_spec_RC \
26701     thread_safe_flag_spec_RC \
26702     whole_archive_flag_spec_RC \
26703     enable_shared_with_static_runtimes_RC \
26704     old_archive_cmds_RC \
26705     old_archive_from_new_cmds_RC \
26706     predep_objects_RC \
26707     postdep_objects_RC \
26708     predeps_RC \
26709     postdeps_RC \
26710     compiler_lib_search_path_RC \
26711     compiler_lib_search_dirs_RC \
26712     archive_cmds_RC \
26713     archive_expsym_cmds_RC \
26714     postinstall_cmds_RC \
26715     postuninstall_cmds_RC \
26716     old_archive_from_expsyms_cmds_RC \
26717     allow_undefined_flag_RC \
26718     no_undefined_flag_RC \
26719     export_symbols_cmds_RC \
26720     hardcode_libdir_flag_spec_RC \
26721     hardcode_libdir_flag_spec_ld_RC \
26722     hardcode_libdir_separator_RC \
26723     hardcode_automatic_RC \
26724     module_cmds_RC \
26725     module_expsym_cmds_RC \
26726     lt_cv_prog_compiler_c_o_RC \
26727     fix_srcfile_path_RC \
26728     exclude_expsyms_RC \
26729     include_expsyms_RC; do
26730
26731     case $var in
26732     old_archive_cmds_RC | \
26733     old_archive_from_new_cmds_RC | \
26734     archive_cmds_RC | \
26735     archive_expsym_cmds_RC | \
26736     module_cmds_RC | \
26737     module_expsym_cmds_RC | \
26738     old_archive_from_expsyms_cmds_RC | \
26739     export_symbols_cmds_RC | \
26740     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26741     postinstall_cmds | postuninstall_cmds | \
26742     old_postinstall_cmds | old_postuninstall_cmds | \
26743     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26744       # Double-quote double-evaled strings.
26745       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26746       ;;
26747     *)
26748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26749       ;;
26750     esac
26751   done
26752
26753   case $lt_echo in
26754   *'\$0 --fallback-echo"')
26755     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26756     ;;
26757   esac
26758
26759 cfgfile="$ofile"
26760
26761   cat <<__EOF__ >> "$cfgfile"
26762 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26763
26764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26765
26766 # Shell to use when invoking shell scripts.
26767 SHELL=$lt_SHELL
26768
26769 # Whether or not to build shared libraries.
26770 build_libtool_libs=$enable_shared
26771
26772 # Whether or not to build static libraries.
26773 build_old_libs=$enable_static
26774
26775 # Whether or not to add -lc for building shared libraries.
26776 build_libtool_need_lc=$archive_cmds_need_lc_RC
26777
26778 # Whether or not to disallow shared libs when runtime libs are static
26779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26780
26781 # Whether or not to optimize for fast installation.
26782 fast_install=$enable_fast_install
26783
26784 # The host system.
26785 host_alias=$host_alias
26786 host=$host
26787 host_os=$host_os
26788
26789 # The build system.
26790 build_alias=$build_alias
26791 build=$build
26792 build_os=$build_os
26793
26794 # An echo program that does not interpret backslashes.
26795 echo=$lt_echo
26796
26797 # The archiver.
26798 AR=$lt_AR
26799 AR_FLAGS=$lt_AR_FLAGS
26800
26801 # A C compiler.
26802 LTCC=$lt_LTCC
26803
26804 # LTCC compiler flags.
26805 LTCFLAGS=$lt_LTCFLAGS
26806
26807 # A language-specific compiler.
26808 CC=$lt_compiler_RC
26809
26810 # Is the compiler the GNU C compiler?
26811 with_gcc=$GCC_RC
26812
26813 # An ERE matcher.
26814 EGREP=$lt_EGREP
26815
26816 # The linker used to build libraries.
26817 LD=$lt_LD_RC
26818
26819 # Whether we need hard or soft links.
26820 LN_S=$lt_LN_S
26821
26822 # A BSD-compatible nm program.
26823 NM=$lt_NM
26824
26825 # A symbol stripping program
26826 STRIP=$lt_STRIP
26827
26828 # Used to examine libraries when file_magic_cmd begins "file"
26829 MAGIC_CMD=$MAGIC_CMD
26830
26831 # Used on cygwin: DLL creation program.
26832 DLLTOOL="$DLLTOOL"
26833
26834 # Used on cygwin: object dumper.
26835 OBJDUMP="$OBJDUMP"
26836
26837 # Used on cygwin: assembler.
26838 AS="$AS"
26839
26840 # The name of the directory that contains temporary libtool files.
26841 objdir=$objdir
26842
26843 # How to create reloadable object files.
26844 reload_flag=$lt_reload_flag
26845 reload_cmds=$lt_reload_cmds
26846
26847 # How to pass a linker flag through the compiler.
26848 wl=$lt_lt_prog_compiler_wl_RC
26849
26850 # Object file suffix (normally "o").
26851 objext="$ac_objext"
26852
26853 # Old archive suffix (normally "a").
26854 libext="$libext"
26855
26856 # Shared library suffix (normally ".so").
26857 shrext_cmds='$shrext_cmds'
26858
26859 # Executable file suffix (normally "").
26860 exeext="$exeext"
26861
26862 # Additional compiler flags for building library objects.
26863 pic_flag=$lt_lt_prog_compiler_pic_RC
26864 pic_mode=$pic_mode
26865
26866 # What is the maximum length of a command?
26867 max_cmd_len=$lt_cv_sys_max_cmd_len
26868
26869 # Does compiler simultaneously support -c and -o options?
26870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26871
26872 # Must we lock files when doing compilation?
26873 need_locks=$lt_need_locks
26874
26875 # Do we need the lib prefix for modules?
26876 need_lib_prefix=$need_lib_prefix
26877
26878 # Do we need a version for libraries?
26879 need_version=$need_version
26880
26881 # Whether dlopen is supported.
26882 dlopen_support=$enable_dlopen
26883
26884 # Whether dlopen of programs is supported.
26885 dlopen_self=$enable_dlopen_self
26886
26887 # Whether dlopen of statically linked programs is supported.
26888 dlopen_self_static=$enable_dlopen_self_static
26889
26890 # Compiler flag to prevent dynamic linking.
26891 link_static_flag=$lt_lt_prog_compiler_static_RC
26892
26893 # Compiler flag to turn off builtin functions.
26894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26895
26896 # Compiler flag to allow reflexive dlopens.
26897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26898
26899 # Compiler flag to generate shared objects directly from archives.
26900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26901
26902 # Compiler flag to generate thread-safe objects.
26903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26904
26905 # Library versioning type.
26906 version_type=$version_type
26907
26908 # Format of library name prefix.
26909 libname_spec=$lt_libname_spec
26910
26911 # List of archive names.  First name is the real one, the rest are links.
26912 # The last name is the one that the linker finds with -lNAME.
26913 library_names_spec=$lt_library_names_spec
26914
26915 # The coded name of the library, if different from the real name.
26916 soname_spec=$lt_soname_spec
26917
26918 # Commands used to build and install an old-style archive.
26919 RANLIB=$lt_RANLIB
26920 old_archive_cmds=$lt_old_archive_cmds_RC
26921 old_postinstall_cmds=$lt_old_postinstall_cmds
26922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26923
26924 # Create an old-style archive from a shared archive.
26925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26926
26927 # Create a temporary old-style archive to link instead of a shared archive.
26928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26929
26930 # Commands used to build and install a shared archive.
26931 archive_cmds=$lt_archive_cmds_RC
26932 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26933 postinstall_cmds=$lt_postinstall_cmds
26934 postuninstall_cmds=$lt_postuninstall_cmds
26935
26936 # Commands used to build a loadable module (assumed same as above if empty)
26937 module_cmds=$lt_module_cmds_RC
26938 module_expsym_cmds=$lt_module_expsym_cmds_RC
26939
26940 # Commands to strip libraries.
26941 old_striplib=$lt_old_striplib
26942 striplib=$lt_striplib
26943
26944 # Dependencies to place before the objects being linked to create a
26945 # shared library.
26946 predep_objects=$lt_predep_objects_RC
26947
26948 # Dependencies to place after the objects being linked to create a
26949 # shared library.
26950 postdep_objects=$lt_postdep_objects_RC
26951
26952 # Dependencies to place before the objects being linked to create a
26953 # shared library.
26954 predeps=$lt_predeps_RC
26955
26956 # Dependencies to place after the objects being linked to create a
26957 # shared library.
26958 postdeps=$lt_postdeps_RC
26959
26960 # The directories searched by this compiler when creating a shared
26961 # library
26962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26963
26964 # The library search path used internally by the compiler when linking
26965 # a shared library.
26966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26967
26968 # Method to check whether dependent libraries are shared objects.
26969 deplibs_check_method=$lt_deplibs_check_method
26970
26971 # Command to use when deplibs_check_method == file_magic.
26972 file_magic_cmd=$lt_file_magic_cmd
26973
26974 # Flag that allows shared libraries with undefined symbols to be built.
26975 allow_undefined_flag=$lt_allow_undefined_flag_RC
26976
26977 # Flag that forces no undefined symbols.
26978 no_undefined_flag=$lt_no_undefined_flag_RC
26979
26980 # Commands used to finish a libtool library installation in a directory.
26981 finish_cmds=$lt_finish_cmds
26982
26983 # Same as above, but a single script fragment to be evaled but not shown.
26984 finish_eval=$lt_finish_eval
26985
26986 # Take the output of nm and produce a listing of raw symbols and C names.
26987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26988
26989 # Transform the output of nm in a proper C declaration
26990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26991
26992 # Transform the output of nm in a C name address pair
26993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26994
26995 # This is the shared library runtime path variable.
26996 runpath_var=$runpath_var
26997
26998 # This is the shared library path variable.
26999 shlibpath_var=$shlibpath_var
27000
27001 # Is shlibpath searched before the hard-coded library search path?
27002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27003
27004 # How to hardcode a shared library path into an executable.
27005 hardcode_action=$hardcode_action_RC
27006
27007 # Whether we should hardcode library paths into libraries.
27008 hardcode_into_libs=$hardcode_into_libs
27009
27010 # Flag to hardcode \$libdir into a binary during linking.
27011 # This must work even if \$libdir does not exist.
27012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27013
27014 # If ld is used when linking, flag to hardcode \$libdir into
27015 # a binary during linking. This must work even if \$libdir does
27016 # not exist.
27017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27018
27019 # Whether we need a single -rpath flag with a separated argument.
27020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27021
27022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27023 # resulting binary.
27024 hardcode_direct=$hardcode_direct_RC
27025
27026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27027 # resulting binary.
27028 hardcode_minus_L=$hardcode_minus_L_RC
27029
27030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27031 # the resulting binary.
27032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27033
27034 # Set to yes if building a shared library automatically hardcodes DIR into the library
27035 # and all subsequent libraries and executables linked against it.
27036 hardcode_automatic=$hardcode_automatic_RC
27037
27038 # Variables whose values should be saved in libtool wrapper scripts and
27039 # restored at relink time.
27040 variables_saved_for_relink="$variables_saved_for_relink"
27041
27042 # Whether libtool must link a program against all its dependency libraries.
27043 link_all_deplibs=$link_all_deplibs_RC
27044
27045 # Compile-time system search path for libraries
27046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27047
27048 # Run-time system search path for libraries
27049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27050
27051 # Fix the shell variable \$srcfile for the compiler.
27052 fix_srcfile_path=$lt_fix_srcfile_path
27053
27054 # Set to yes if exported symbols are required.
27055 always_export_symbols=$always_export_symbols_RC
27056
27057 # The commands to list exported symbols.
27058 export_symbols_cmds=$lt_export_symbols_cmds_RC
27059
27060 # The commands to extract the exported symbol list from a shared archive.
27061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27062
27063 # Symbols that should not be listed in the preloaded symbols.
27064 exclude_expsyms=$lt_exclude_expsyms_RC
27065
27066 # Symbols that must always be exported.
27067 include_expsyms=$lt_include_expsyms_RC
27068
27069 # ### END LIBTOOL TAG CONFIG: $tagname
27070
27071 __EOF__
27072
27073
27074 else
27075   # If there is no Makefile yet, we rely on a make rule to execute
27076   # `config.status --recheck' to rerun these tests and create the
27077   # libtool script then.
27078   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27079   if test -f "$ltmain_in"; then
27080     test -f Makefile && make "$ltmain"
27081   fi
27082 fi
27083
27084
27085 ac_ext=c
27086 ac_cpp='$CPP $CPPFLAGS'
27087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27090
27091 CC="$lt_save_CC"
27092
27093         ;;
27094
27095       *)
27096         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27098    { (exit 1); exit 1; }; }
27099         ;;
27100       esac
27101
27102       # Append the new tag name to the list of available tags.
27103       if test -n "$tagname" ; then
27104       available_tags="$available_tags $tagname"
27105     fi
27106     fi
27107   done
27108   IFS="$lt_save_ifs"
27109
27110   # Now substitute the updated list of available tags.
27111   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27112     mv "${ofile}T" "$ofile"
27113     chmod +x "$ofile"
27114   else
27115     rm -f "${ofile}T"
27116     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27118    { (exit 1); exit 1; }; }
27119   fi
27120 fi
27121
27122
27123
27124 # This can be used to rebuild libtool when needed
27125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27126
27127 # Always use our own libtool.
27128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27129
27130 # Prevent multiple expansion
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27152 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
27153 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27154 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27155   echo $ECHO_N "(cached) $ECHO_C" >&6
27156 else
27157   cat >conftest.make <<\_ACEOF
27158 SHELL = /bin/sh
27159 all:
27160         @echo '@@@%%%=$(MAKE)=@@@%%%'
27161 _ACEOF
27162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
27164   *@@@%%%=?*=@@@%%%*)
27165     eval ac_cv_prog_make_${ac_make}_set=yes;;
27166   *)
27167     eval ac_cv_prog_make_${ac_make}_set=no;;
27168 esac
27169 rm -f conftest.make
27170 fi
27171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27172   { echo "$as_me:$LINENO: result: yes" >&5
27173 echo "${ECHO_T}yes" >&6; }
27174   SET_MAKE=
27175 else
27176   { echo "$as_me:$LINENO: result: no" >&5
27177 echo "${ECHO_T}no" >&6; }
27178   SET_MAKE="MAKE=${MAKE-make}"
27179 fi
27180
27181
27182 if test "$need_glib" = "yes"; then
27183         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
27184         # three GNOME libs. Assume we have all three unless one of
27185         # the checks fails.
27186         GLIBFOUND=yes
27187
27188
27189 pkg_failed=no
27190 { echo "$as_me:$LINENO: checking for GLIB" >&5
27191 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
27192
27193 if test -n "$PKG_CONFIG"; then
27194     if test -n "$GLIB_CFLAGS"; then
27195         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
27196     else
27197         if test -n "$PKG_CONFIG" && \
27198     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27199   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; then
27203   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
27204 else
27205   pkg_failed=yes
27206 fi
27207     fi
27208 else
27209         pkg_failed=untried
27210 fi
27211 if test -n "$PKG_CONFIG"; then
27212     if test -n "$GLIB_LIBS"; then
27213         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
27214     else
27215         if test -n "$PKG_CONFIG" && \
27216     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27217   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; then
27221   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
27222 else
27223   pkg_failed=yes
27224 fi
27225     fi
27226 else
27227         pkg_failed=untried
27228 fi
27229
27230
27231
27232 if test $pkg_failed = yes; then
27233
27234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27235         _pkg_short_errors_supported=yes
27236 else
27237         _pkg_short_errors_supported=no
27238 fi
27239         if test $_pkg_short_errors_supported = yes; then
27240                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
27241         else
27242                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
27243         fi
27244         # Put the nasty error message in config.log where it belongs
27245         echo "$GLIB_PKG_ERRORS" >&5
27246
27247         { echo "$as_me:$LINENO: result: no" >&5
27248 echo "${ECHO_T}no" >&6; }
27249                 GLIBFOUND=no
27250 elif test $pkg_failed = untried; then
27251         GLIBFOUND=no
27252 else
27253         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
27254         GLIB_LIBS=$pkg_cv_GLIB_LIBS
27255         { echo "$as_me:$LINENO: result: yes" >&5
27256 echo "${ECHO_T}yes" >&6; }
27257         :
27258 fi
27259         # This check here is broken on Ubuntu 8.04: it calls glib-config,
27260         # which isn't found, but the error is not detected by configure.
27261         #if test "x${GLIBFOUND}" = "xno"; then
27262         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
27263         #fi
27264
27265
27266 pkg_failed=no
27267 { echo "$as_me:$LINENO: checking for GTHREAD" >&5
27268 echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6; }
27269
27270 if test -n "$PKG_CONFIG"; then
27271     if test -n "$GTHREAD_CFLAGS"; then
27272         pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
27273     else
27274         if test -n "$PKG_CONFIG" && \
27275     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27276   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27277   ac_status=$?
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); }; then
27280   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
27281 else
27282   pkg_failed=yes
27283 fi
27284     fi
27285 else
27286         pkg_failed=untried
27287 fi
27288 if test -n "$PKG_CONFIG"; then
27289     if test -n "$GTHREAD_LIBS"; then
27290         pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
27291     else
27292         if test -n "$PKG_CONFIG" && \
27293     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27294   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27295   ac_status=$?
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); }; then
27298   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
27299 else
27300   pkg_failed=yes
27301 fi
27302     fi
27303 else
27304         pkg_failed=untried
27305 fi
27306
27307
27308
27309 if test $pkg_failed = yes; then
27310
27311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27312         _pkg_short_errors_supported=yes
27313 else
27314         _pkg_short_errors_supported=no
27315 fi
27316         if test $_pkg_short_errors_supported = yes; then
27317                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gthread-2.0""`
27318         else
27319                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
27320         fi
27321         # Put the nasty error message in config.log where it belongs
27322         echo "$GTHREAD_PKG_ERRORS" >&5
27323
27324         { echo "$as_me:$LINENO: result: no" >&5
27325 echo "${ECHO_T}no" >&6; }
27326                 GLIBFOUND=no
27327 elif test $pkg_failed = untried; then
27328         GLIBFOUND=no
27329 else
27330         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
27331         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
27332         { echo "$as_me:$LINENO: result: yes" >&5
27333 echo "${ECHO_T}yes" >&6; }
27334         :
27335 fi
27336
27337 pkg_failed=no
27338 { echo "$as_me:$LINENO: checking for GOBJECT" >&5
27339 echo $ECHO_N "checking for GOBJECT... $ECHO_C" >&6; }
27340
27341 if test -n "$PKG_CONFIG"; then
27342     if test -n "$GOBJECT_CFLAGS"; then
27343         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
27344     else
27345         if test -n "$PKG_CONFIG" && \
27346     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27347   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; then
27351   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
27352 else
27353   pkg_failed=yes
27354 fi
27355     fi
27356 else
27357         pkg_failed=untried
27358 fi
27359 if test -n "$PKG_CONFIG"; then
27360     if test -n "$GOBJECT_LIBS"; then
27361         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
27362     else
27363         if test -n "$PKG_CONFIG" && \
27364     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27365   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); }; then
27369   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
27370 else
27371   pkg_failed=yes
27372 fi
27373     fi
27374 else
27375         pkg_failed=untried
27376 fi
27377
27378
27379
27380 if test $pkg_failed = yes; then
27381
27382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27383         _pkg_short_errors_supported=yes
27384 else
27385         _pkg_short_errors_supported=no
27386 fi
27387         if test $_pkg_short_errors_supported = yes; then
27388                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gobject-2.0""`
27389         else
27390                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gobject-2.0""`
27391         fi
27392         # Put the nasty error message in config.log where it belongs
27393         echo "$GOBJECT_PKG_ERRORS" >&5
27394
27395         { echo "$as_me:$LINENO: result: no" >&5
27396 echo "${ECHO_T}no" >&6; }
27397                 GLIBFOUND=no
27398 elif test $pkg_failed = untried; then
27399         GLIBFOUND=no
27400 else
27401         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
27402         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
27403         { echo "$as_me:$LINENO: result: yes" >&5
27404 echo "${ECHO_T}yes" >&6; }
27405         :
27406 fi
27407
27408         if  test "x${GLIBFOUND}" = "xyes"; then
27409
27410 cat >>confdefs.h <<\_ACEOF
27411 #define HAVE_GLIB 1
27412 _ACEOF
27413
27414         else
27415             { { echo "$as_me:$LINENO: error: not all GNOME libraries found" >&5
27416 echo "$as_me: error: not all GNOME libraries found" >&2;}
27417    { (exit 1); exit 1; }; }
27418         fi
27419         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
27420 fi
27421
27422 # determine from where we can get a SHA-256 implementation
27423 have_sha="no"
27424 if test "$GLIBFOUND" = "yes"; then
27425    # only use glib if we need it anyway, also has to be at lease 2.16
27426
27427 pkg_failed=no
27428 { echo "$as_me:$LINENO: checking for GLIB216" >&5
27429 echo $ECHO_N "checking for GLIB216... $ECHO_C" >&6; }
27430
27431 if test -n "$PKG_CONFIG"; then
27432     if test -n "$GLIB216_CFLAGS"; then
27433         pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
27434     else
27435         if test -n "$PKG_CONFIG" && \
27436     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
27437   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
27438   ac_status=$?
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); }; then
27441   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
27442 else
27443   pkg_failed=yes
27444 fi
27445     fi
27446 else
27447         pkg_failed=untried
27448 fi
27449 if test -n "$PKG_CONFIG"; then
27450     if test -n "$GLIB216_LIBS"; then
27451         pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
27452     else
27453         if test -n "$PKG_CONFIG" && \
27454     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
27455   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
27456   ac_status=$?
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); }; then
27459   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
27460 else
27461   pkg_failed=yes
27462 fi
27463     fi
27464 else
27465         pkg_failed=untried
27466 fi
27467
27468
27469
27470 if test $pkg_failed = yes; then
27471
27472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27473         _pkg_short_errors_supported=yes
27474 else
27475         _pkg_short_errors_supported=no
27476 fi
27477         if test $_pkg_short_errors_supported = yes; then
27478                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
27479         else
27480                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
27481         fi
27482         # Put the nasty error message in config.log where it belongs
27483         echo "$GLIB216_PKG_ERRORS" >&5
27484
27485         { echo "$as_me:$LINENO: result: no" >&5
27486 echo "${ECHO_T}no" >&6; }
27487                 true
27488 elif test $pkg_failed = untried; then
27489         true
27490 else
27491         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
27492         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
27493         { echo "$as_me:$LINENO: result: yes" >&5
27494 echo "${ECHO_T}yes" >&6; }
27495
27496 cat >>confdefs.h <<\_ACEOF
27497 #define USE_SHA256 1
27498 _ACEOF
27499
27500                       have_sha="glib"
27501 fi
27502 fi
27503 if test "$have_sha" = "no"; then
27504    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
27505    # file and a simple API.
27506
27507 pkg_failed=no
27508 { echo "$as_me:$LINENO: checking for NSS" >&5
27509 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
27510
27511 if test -n "$PKG_CONFIG"; then
27512     if test -n "$NSS_CFLAGS"; then
27513         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
27514     else
27515         if test -n "$PKG_CONFIG" && \
27516     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
27517   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; then
27521   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
27522 else
27523   pkg_failed=yes
27524 fi
27525     fi
27526 else
27527         pkg_failed=untried
27528 fi
27529 if test -n "$PKG_CONFIG"; then
27530     if test -n "$NSS_LIBS"; then
27531         pkg_cv_NSS_LIBS="$NSS_LIBS"
27532     else
27533         if test -n "$PKG_CONFIG" && \
27534     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
27535   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); }; then
27539   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
27540 else
27541   pkg_failed=yes
27542 fi
27543     fi
27544 else
27545         pkg_failed=untried
27546 fi
27547
27548
27549
27550 if test $pkg_failed = yes; then
27551
27552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27553         _pkg_short_errors_supported=yes
27554 else
27555         _pkg_short_errors_supported=no
27556 fi
27557         if test $_pkg_short_errors_supported = yes; then
27558                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""nss""`
27559         else
27560                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""nss""`
27561         fi
27562         # Put the nasty error message in config.log where it belongs
27563         echo "$NSS_PKG_ERRORS" >&5
27564
27565         { echo "$as_me:$LINENO: result: no" >&5
27566 echo "${ECHO_T}no" >&6; }
27567                 true
27568 elif test $pkg_failed = untried; then
27569         true
27570 else
27571         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
27572         NSS_LIBS=$pkg_cv_NSS_LIBS
27573         { echo "$as_me:$LINENO: result: yes" >&5
27574 echo "${ECHO_T}yes" >&6; }
27575
27576 cat >>confdefs.h <<\_ACEOF
27577 #define USE_SHA256 2
27578 _ACEOF
27579
27580                       have_sha="nss"
27581 fi
27582 fi
27583
27584  if test "$enable_shared" == "yes"; then
27585   ENABLE_MODULES_TRUE=
27586   ENABLE_MODULES_FALSE='#'
27587 else
27588   ENABLE_MODULES_TRUE='#'
27589   ENABLE_MODULES_FALSE=
27590 fi
27591
27592 if test "$enable_shared" == "yes"; then
27593
27594 cat >>confdefs.h <<\_ACEOF
27595 #define ENABLE_MODULES 1
27596 _ACEOF
27597
27598 fi
27599
27600
27601
27602
27603 if test "$host" == "arm-apple-darwin"; then
27604
27605 cat >>confdefs.h <<\_ACEOF
27606 #define IPHONE 1
27607 _ACEOF
27608
27609    DEVICE_TYPE=iPhone
27610 fi
27611
27612 if test "$enable_evolution_compatibility" == "yes"; then
27613
27614 cat >>confdefs.h <<\_ACEOF
27615 #define EVOLUTION_COMPATIBILITY 1
27616 _ACEOF
27617
27618 fi
27619  if test "$enable_evolution_compatibility" == "yes"; then
27620   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
27621   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
27622 else
27623   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
27624   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
27625 fi
27626
27627
27628 if test "$enable_developer_mode" == "yes"; then
27629 backendsearchdir="`pwd`/src/backends/"
27630 else
27631 backendsearchdir='$(libdir)'/syncevolution/backends/
27632 fi
27633
27634 backenddir='$(libdir)'/syncevolution/backends
27635
27636
27637
27638
27639 cat >>confdefs.h <<_ACEOF
27640 #define DEVICE_TYPE "$DEVICE_TYPE"
27641 _ACEOF
27642
27643
27644
27645
27646
27647 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
27648 do
27649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27651   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 fi
27656 ac_res=`eval echo '${'$as_ac_Header'}'`
27657                { echo "$as_me:$LINENO: result: $ac_res" >&5
27658 echo "${ECHO_T}$ac_res" >&6; }
27659 else
27660   # Is the header compilable?
27661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27663 cat >conftest.$ac_ext <<_ACEOF
27664 /* confdefs.h.  */
27665 _ACEOF
27666 cat confdefs.h >>conftest.$ac_ext
27667 cat >>conftest.$ac_ext <<_ACEOF
27668 /* end confdefs.h.  */
27669 $ac_includes_default
27670 #include <$ac_header>
27671 _ACEOF
27672 rm -f conftest.$ac_objext
27673 if { (ac_try="$ac_compile"
27674 case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_compile") 2>conftest.er1
27680   ac_status=$?
27681   grep -v '^ *+' conftest.er1 >conftest.err
27682   rm -f conftest.er1
27683   cat conftest.err >&5
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); } && {
27686          test -z "$ac_c_werror_flag" ||
27687          test ! -s conftest.err
27688        } && test -s conftest.$ac_objext; then
27689   ac_header_compiler=yes
27690 else
27691   echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694         ac_header_compiler=no
27695 fi
27696
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27699 echo "${ECHO_T}$ac_header_compiler" >&6; }
27700
27701 # Is the header present?
27702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27704 cat >conftest.$ac_ext <<_ACEOF
27705 /* confdefs.h.  */
27706 _ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h.  */
27710 #include <$ac_header>
27711 _ACEOF
27712 if { (ac_try="$ac_cpp conftest.$ac_ext"
27713 case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } >/dev/null && {
27725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27726          test ! -s conftest.err
27727        }; then
27728   ac_header_preproc=yes
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733   ac_header_preproc=no
27734 fi
27735
27736 rm -f conftest.err conftest.$ac_ext
27737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27738 echo "${ECHO_T}$ac_header_preproc" >&6; }
27739
27740 # So?  What about this header?
27741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27742   yes:no: )
27743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27747     ac_header_preproc=yes
27748     ;;
27749   no:yes:* )
27750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27762
27763     ;;
27764 esac
27765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27768   echo $ECHO_N "(cached) $ECHO_C" >&6
27769 else
27770   eval "$as_ac_Header=\$ac_header_preproc"
27771 fi
27772 ac_res=`eval echo '${'$as_ac_Header'}'`
27773                { echo "$as_me:$LINENO: result: $ac_res" >&5
27774 echo "${ECHO_T}$ac_res" >&6; }
27775
27776 fi
27777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27778   cat >>confdefs.h <<_ACEOF
27779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27780 _ACEOF
27781
27782 fi
27783
27784 done
27785
27786
27787
27788 cat >>confdefs.h <<\_ACEOF
27789 #define SYNTHESIS 1
27790 _ACEOF
27791
27792
27793 # fallback for lack of --with-docdir support in older automake
27794 if test ! "$docdir"; then
27795    docdir = ${datadir}/doc/syncevolution
27796
27797 fi
27798
27799 ac_config_files="$ac_config_files Makefile src/dbus/interfaces/Makefile src/gdbus/Makefile src/dbus/Makefile src/Makefile src/syncevo/Makefile src/syncevo/syncevolution.pc src/syncevo/configs/Makefile src/synthesis-includes/Makefile src/gtk-ui/Makefile po/Makefile.in test/Makefile src/dbus/syncevo-dbus.pc"
27800
27801 cat >confcache <<\_ACEOF
27802 # This file is a shell script that caches the results of configure
27803 # tests run on this system so they can be shared between configure
27804 # scripts and configure runs, see configure's option --config-cache.
27805 # It is not useful on other systems.  If it contains results you don't
27806 # want to keep, you may remove or edit it.
27807 #
27808 # config.status only pays attention to the cache file if you give it
27809 # the --recheck option to rerun configure.
27810 #
27811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27813 # following values.
27814
27815 _ACEOF
27816
27817 # The following way of writing the cache mishandles newlines in values,
27818 # but we know of no workaround that is simple, portable, and efficient.
27819 # So, we kill variables containing newlines.
27820 # Ultrix sh set writes to stderr and can't be redirected directly,
27821 # and sets the high bit in the cache file unless we assign to the vars.
27822 (
27823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27824     eval ac_val=\$$ac_var
27825     case $ac_val in #(
27826     *${as_nl}*)
27827       case $ac_var in #(
27828       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27829 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27830       esac
27831       case $ac_var in #(
27832       _ | IFS | as_nl) ;; #(
27833       *) $as_unset $ac_var ;;
27834       esac ;;
27835     esac
27836   done
27837
27838   (set) 2>&1 |
27839     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27840     *${as_nl}ac_space=\ *)
27841       # `set' does not quote correctly, so add quotes (double-quote
27842       # substitution turns \\\\ into \\, and sed turns \\ into \).
27843       sed -n \
27844         "s/'/'\\\\''/g;
27845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27846       ;; #(
27847     *)
27848       # `set' quotes correctly as required by POSIX, so do not add quotes.
27849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27850       ;;
27851     esac |
27852     sort
27853 ) |
27854   sed '
27855      /^ac_cv_env_/b end
27856      t clear
27857      :clear
27858      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27859      t end
27860      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27861      :end' >>confcache
27862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27863   if test -w "$cache_file"; then
27864     test "x$cache_file" != "x/dev/null" &&
27865       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27866 echo "$as_me: updating cache $cache_file" >&6;}
27867     cat confcache >$cache_file
27868   else
27869     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27870 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27871   fi
27872 fi
27873 rm -f confcache
27874
27875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27876 # Let make expand exec_prefix.
27877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27878
27879 DEFS=-DHAVE_CONFIG_H
27880
27881 ac_libobjs=
27882 ac_ltlibobjs=
27883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27884   # 1. Remove the extension, and $U if already installed.
27885   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27886   ac_i=`echo "$ac_i" | sed "$ac_script"`
27887   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27888   #    will be set to the directory where LIBOBJS objects are built.
27889   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27890   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27891 done
27892 LIBOBJS=$ac_libobjs
27893
27894 LTLIBOBJS=$ac_ltlibobjs
27895
27896
27897 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27898   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27899 Usually this means the macro was only invoked conditionally." >&5
27900 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27901 Usually this means the macro was only invoked conditionally." >&2;}
27902    { (exit 1); exit 1; }; }
27903 fi
27904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27905   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27906 Usually this means the macro was only invoked conditionally." >&5
27907 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27908 Usually this means the macro was only invoked conditionally." >&2;}
27909    { (exit 1); exit 1; }; }
27910 fi
27911 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
27912   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
27913 Usually this means the macro was only invoked conditionally." >&5
27914 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
27915 Usually this means the macro was only invoked conditionally." >&2;}
27916    { (exit 1); exit 1; }; }
27917 fi
27918 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
27919   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTING\" was never defined.
27920 Usually this means the macro was only invoked conditionally." >&5
27921 echo "$as_me: error: conditional \"ENABLE_TESTING\" was never defined.
27922 Usually this means the macro was only invoked conditionally." >&2;}
27923    { (exit 1); exit 1; }; }
27924 fi
27925 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
27926   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OBEX\" was never defined.
27927 Usually this means the macro was only invoked conditionally." >&5
27928 echo "$as_me: error: conditional \"ENABLE_OBEX\" was never defined.
27929 Usually this means the macro was only invoked conditionally." >&2;}
27930    { (exit 1); exit 1; }; }
27931 fi
27932 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
27933   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
27934 Usually this means the macro was only invoked conditionally." >&5
27935 echo "$as_me: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
27936 Usually this means the macro was only invoked conditionally." >&2;}
27937    { (exit 1); exit 1; }; }
27938 fi
27939 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
27940   { { echo "$as_me:$LINENO: error: conditional \"COND_GUI\" was never defined.
27941 Usually this means the macro was only invoked conditionally." >&5
27942 echo "$as_me: error: conditional \"COND_GUI\" was never defined.
27943 Usually this means the macro was only invoked conditionally." >&2;}
27944    { (exit 1); exit 1; }; }
27945 fi
27946 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
27947   { { echo "$as_me:$LINENO: error: conditional \"COND_CORE\" was never defined.
27948 Usually this means the macro was only invoked conditionally." >&5
27949 echo "$as_me: error: conditional \"COND_CORE\" was never defined.
27950 Usually this means the macro was only invoked conditionally." >&2;}
27951    { (exit 1); exit 1; }; }
27952 fi
27953 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
27954   { { echo "$as_me:$LINENO: error: conditional \"COND_DBUS\" was never defined.
27955 Usually this means the macro was only invoked conditionally." >&5
27956 echo "$as_me: error: conditional \"COND_DBUS\" was never defined.
27957 Usually this means the macro was only invoked conditionally." >&2;}
27958    { (exit 1); exit 1; }; }
27959 fi
27960
27961   ac_config_commands="$ac_config_commands po/stamp-it"
27962
27963
27964 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27965   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27966 Usually this means the macro was only invoked conditionally." >&5
27967 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27968 Usually this means the macro was only invoked conditionally." >&2;}
27969    { (exit 1); exit 1; }; }
27970 fi
27971 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
27972   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
27973 Usually this means the macro was only invoked conditionally." >&5
27974 echo "$as_me: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
27975 Usually this means the macro was only invoked conditionally." >&2;}
27976    { (exit 1); exit 1; }; }
27977 fi
27978 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
27979   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
27980 Usually this means the macro was only invoked conditionally." >&5
27981 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
27982 Usually this means the macro was only invoked conditionally." >&2;}
27983    { (exit 1); exit 1; }; }
27984 fi
27985 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27986   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27987 Usually this means the macro was only invoked conditionally." >&5
27988 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27989 Usually this means the macro was only invoked conditionally." >&2;}
27990    { (exit 1); exit 1; }; }
27991 fi
27992 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
27993   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
27994 Usually this means the macro was only invoked conditionally." >&5
27995 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
27996 Usually this means the macro was only invoked conditionally." >&2;}
27997    { (exit 1); exit 1; }; }
27998 fi
27999 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
28000   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
28001 Usually this means the macro was only invoked conditionally." >&5
28002 echo "$as_me: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
28003 Usually this means the macro was only invoked conditionally." >&2;}
28004    { (exit 1); exit 1; }; }
28005 fi
28006
28007 : ${CONFIG_STATUS=./config.status}
28008 ac_clean_files_save=$ac_clean_files
28009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28010 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28012 cat >$CONFIG_STATUS <<_ACEOF
28013 #! $SHELL
28014 # Generated by $as_me.
28015 # Run this file to recreate the current configuration.
28016 # Compiler output produced by configure, useful for debugging
28017 # configure, is in config.log if it exists.
28018
28019 debug=false
28020 ac_cs_recheck=false
28021 ac_cs_silent=false
28022 SHELL=\${CONFIG_SHELL-$SHELL}
28023 _ACEOF
28024
28025 cat >>$CONFIG_STATUS <<\_ACEOF
28026 ## --------------------- ##
28027 ## M4sh Initialization.  ##
28028 ## --------------------- ##
28029
28030 # Be more Bourne compatible
28031 DUALCASE=1; export DUALCASE # for MKS sh
28032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28033   emulate sh
28034   NULLCMD=:
28035   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28036   # is contrary to our usage.  Disable this feature.
28037   alias -g '${1+"$@"}'='"$@"'
28038   setopt NO_GLOB_SUBST
28039 else
28040   case `(set -o) 2>/dev/null` in
28041   *posix*) set -o posix ;;
28042 esac
28043
28044 fi
28045
28046
28047
28048
28049 # PATH needs CR
28050 # Avoid depending upon Character Ranges.
28051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28054 as_cr_digits='0123456789'
28055 as_cr_alnum=$as_cr_Letters$as_cr_digits
28056
28057 # The user is always right.
28058 if test "${PATH_SEPARATOR+set}" != set; then
28059   echo "#! /bin/sh" >conf$$.sh
28060   echo  "exit 0"   >>conf$$.sh
28061   chmod +x conf$$.sh
28062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28063     PATH_SEPARATOR=';'
28064   else
28065     PATH_SEPARATOR=:
28066   fi
28067   rm -f conf$$.sh
28068 fi
28069
28070 # Support unset when possible.
28071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28072   as_unset=unset
28073 else
28074   as_unset=false
28075 fi
28076
28077
28078 # IFS
28079 # We need space, tab and new line, in precisely that order.  Quoting is
28080 # there to prevent editors from complaining about space-tab.
28081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28082 # splitting by setting IFS to empty value.)
28083 as_nl='
28084 '
28085 IFS=" ""        $as_nl"
28086
28087 # Find who we are.  Look in the path if we contain no directory separator.
28088 case $0 in
28089   *[\\/]* ) as_myself=$0 ;;
28090   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28091 for as_dir in $PATH
28092 do
28093   IFS=$as_save_IFS
28094   test -z "$as_dir" && as_dir=.
28095   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28096 done
28097 IFS=$as_save_IFS
28098
28099      ;;
28100 esac
28101 # We did not find ourselves, most probably we were run as `sh COMMAND'
28102 # in which case we are not to be found in the path.
28103 if test "x$as_myself" = x; then
28104   as_myself=$0
28105 fi
28106 if test ! -f "$as_myself"; then
28107   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28108   { (exit 1); exit 1; }
28109 fi
28110
28111 # Work around bugs in pre-3.0 UWIN ksh.
28112 for as_var in ENV MAIL MAILPATH
28113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28114 done
28115 PS1='$ '
28116 PS2='> '
28117 PS4='+ '
28118
28119 # NLS nuisances.
28120 for as_var in \
28121   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28122   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28123   LC_TELEPHONE LC_TIME
28124 do
28125   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28126     eval $as_var=C; export $as_var
28127   else
28128     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28129   fi
28130 done
28131
28132 # Required to use basename.
28133 if expr a : '\(a\)' >/dev/null 2>&1 &&
28134    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28135   as_expr=expr
28136 else
28137   as_expr=false
28138 fi
28139
28140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28141   as_basename=basename
28142 else
28143   as_basename=false
28144 fi
28145
28146
28147 # Name of the executable.
28148 as_me=`$as_basename -- "$0" ||
28149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28150          X"$0" : 'X\(//\)$' \| \
28151          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28152 echo X/"$0" |
28153     sed '/^.*\/\([^/][^/]*\)\/*$/{
28154             s//\1/
28155             q
28156           }
28157           /^X\/\(\/\/\)$/{
28158             s//\1/
28159             q
28160           }
28161           /^X\/\(\/\).*/{
28162             s//\1/
28163             q
28164           }
28165           s/.*/./; q'`
28166
28167 # CDPATH.
28168 $as_unset CDPATH
28169
28170
28171
28172   as_lineno_1=$LINENO
28173   as_lineno_2=$LINENO
28174   test "x$as_lineno_1" != "x$as_lineno_2" &&
28175   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28176
28177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28178   # uniformly replaced by the line number.  The first 'sed' inserts a
28179   # line-number line after each line using $LINENO; the second 'sed'
28180   # does the real work.  The second script uses 'N' to pair each
28181   # line-number line with the line containing $LINENO, and appends
28182   # trailing '-' during substitution so that $LINENO is not a special
28183   # case at line end.
28184   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28185   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28186   # E. McMahon (1931-1989) for sed's syntax.  :-)
28187   sed -n '
28188     p
28189     /[$]LINENO/=
28190   ' <$as_myself |
28191     sed '
28192       s/[$]LINENO.*/&-/
28193       t lineno
28194       b
28195       :lineno
28196       N
28197       :loop
28198       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28199       t loop
28200       s/-\n.*//
28201     ' >$as_me.lineno &&
28202   chmod +x "$as_me.lineno" ||
28203     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28204    { (exit 1); exit 1; }; }
28205
28206   # Don't try to exec as it changes $[0], causing all sort of problems
28207   # (the dirname of $[0] is not the place where we might find the
28208   # original and so on.  Autoconf is especially sensitive to this).
28209   . "./$as_me.lineno"
28210   # Exit status is that of the last command.
28211   exit
28212 }
28213
28214
28215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28216   as_dirname=dirname
28217 else
28218   as_dirname=false
28219 fi
28220
28221 ECHO_C= ECHO_N= ECHO_T=
28222 case `echo -n x` in
28223 -n*)
28224   case `echo 'x\c'` in
28225   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28226   *)   ECHO_C='\c';;
28227   esac;;
28228 *)
28229   ECHO_N='-n';;
28230 esac
28231
28232 if expr a : '\(a\)' >/dev/null 2>&1 &&
28233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28234   as_expr=expr
28235 else
28236   as_expr=false
28237 fi
28238
28239 rm -f conf$$ conf$$.exe conf$$.file
28240 if test -d conf$$.dir; then
28241   rm -f conf$$.dir/conf$$.file
28242 else
28243   rm -f conf$$.dir
28244   mkdir conf$$.dir
28245 fi
28246 echo >conf$$.file
28247 if ln -s conf$$.file conf$$ 2>/dev/null; then
28248   as_ln_s='ln -s'
28249   # ... but there are two gotchas:
28250   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28251   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28252   # In both cases, we have to default to `cp -p'.
28253   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28254     as_ln_s='cp -p'
28255 elif ln conf$$.file conf$$ 2>/dev/null; then
28256   as_ln_s=ln
28257 else
28258   as_ln_s='cp -p'
28259 fi
28260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28261 rmdir conf$$.dir 2>/dev/null
28262
28263 if mkdir -p . 2>/dev/null; then
28264   as_mkdir_p=:
28265 else
28266   test -d ./-p && rmdir ./-p
28267   as_mkdir_p=false
28268 fi
28269
28270 if test -x / >/dev/null 2>&1; then
28271   as_test_x='test -x'
28272 else
28273   if ls -dL / >/dev/null 2>&1; then
28274     as_ls_L_option=L
28275   else
28276     as_ls_L_option=
28277   fi
28278   as_test_x='
28279     eval sh -c '\''
28280       if test -d "$1"; then
28281         test -d "$1/.";
28282       else
28283         case $1 in
28284         -*)set "./$1";;
28285         esac;
28286         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28287         ???[sx]*):;;*)false;;esac;fi
28288     '\'' sh
28289   '
28290 fi
28291 as_executable_p=$as_test_x
28292
28293 # Sed expression to map a string onto a valid CPP name.
28294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28295
28296 # Sed expression to map a string onto a valid variable name.
28297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28298
28299
28300 exec 6>&1
28301
28302 # Save the log message, to keep $[0] and so on meaningful, and to
28303 # report actual input values of CONFIG_FILES etc. instead of their
28304 # values after options handling.
28305 ac_log="
28306 This file was extended by syncevolution $as_me 1.0beta3, which was
28307 generated by GNU Autoconf 2.61.  Invocation command line was
28308
28309   CONFIG_FILES    = $CONFIG_FILES
28310   CONFIG_HEADERS  = $CONFIG_HEADERS
28311   CONFIG_LINKS    = $CONFIG_LINKS
28312   CONFIG_COMMANDS = $CONFIG_COMMANDS
28313   $ $0 $@
28314
28315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28316 "
28317
28318 _ACEOF
28319
28320 cat >>$CONFIG_STATUS <<_ACEOF
28321 # Files that config.status was made for.
28322 config_files="$ac_config_files"
28323 config_headers="$ac_config_headers"
28324 config_commands="$ac_config_commands"
28325
28326 _ACEOF
28327
28328 cat >>$CONFIG_STATUS <<\_ACEOF
28329 ac_cs_usage="\
28330 \`$as_me' instantiates files from templates according to the
28331 current configuration.
28332
28333 Usage: $0 [OPTIONS] [FILE]...
28334
28335   -h, --help       print this help, then exit
28336   -V, --version    print version number and configuration settings, then exit
28337   -q, --quiet      do not print progress messages
28338   -d, --debug      don't remove temporary files
28339       --recheck    update $as_me by reconfiguring in the same conditions
28340   --file=FILE[:TEMPLATE]
28341                    instantiate the configuration file FILE
28342   --header=FILE[:TEMPLATE]
28343                    instantiate the configuration header FILE
28344
28345 Configuration files:
28346 $config_files
28347
28348 Configuration headers:
28349 $config_headers
28350
28351 Configuration commands:
28352 $config_commands
28353
28354 Report bugs to <bug-autoconf@gnu.org>."
28355
28356 _ACEOF
28357 cat >>$CONFIG_STATUS <<_ACEOF
28358 ac_cs_version="\\
28359 syncevolution config.status 1.0beta3
28360 configured by $0, generated by GNU Autoconf 2.61,
28361   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28362
28363 Copyright (C) 2006 Free Software Foundation, Inc.
28364 This config.status script is free software; the Free Software Foundation
28365 gives unlimited permission to copy, distribute and modify it."
28366
28367 ac_pwd='$ac_pwd'
28368 srcdir='$srcdir'
28369 INSTALL='$INSTALL'
28370 MKDIR_P='$MKDIR_P'
28371 _ACEOF
28372
28373 cat >>$CONFIG_STATUS <<\_ACEOF
28374 # If no file are specified by the user, then we need to provide default
28375 # value.  By we need to know if files were specified by the user.
28376 ac_need_defaults=:
28377 while test $# != 0
28378 do
28379   case $1 in
28380   --*=*)
28381     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28382     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28383     ac_shift=:
28384     ;;
28385   *)
28386     ac_option=$1
28387     ac_optarg=$2
28388     ac_shift=shift
28389     ;;
28390   esac
28391
28392   case $ac_option in
28393   # Handling of the options.
28394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28395     ac_cs_recheck=: ;;
28396   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28397     echo "$ac_cs_version"; exit ;;
28398   --debug | --debu | --deb | --de | --d | -d )
28399     debug=: ;;
28400   --file | --fil | --fi | --f )
28401     $ac_shift
28402     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28403     ac_need_defaults=false;;
28404   --header | --heade | --head | --hea )
28405     $ac_shift
28406     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28407     ac_need_defaults=false;;
28408   --he | --h)
28409     # Conflict between --help and --header
28410     { echo "$as_me: error: ambiguous option: $1
28411 Try \`$0 --help' for more information." >&2
28412    { (exit 1); exit 1; }; };;
28413   --help | --hel | -h )
28414     echo "$ac_cs_usage"; exit ;;
28415   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28416   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28417     ac_cs_silent=: ;;
28418
28419   # This is an error.
28420   -*) { echo "$as_me: error: unrecognized option: $1
28421 Try \`$0 --help' for more information." >&2
28422    { (exit 1); exit 1; }; } ;;
28423
28424   *) ac_config_targets="$ac_config_targets $1"
28425      ac_need_defaults=false ;;
28426
28427   esac
28428   shift
28429 done
28430
28431 ac_configure_extra_args=
28432
28433 if $ac_cs_silent; then
28434   exec 6>/dev/null
28435   ac_configure_extra_args="$ac_configure_extra_args --silent"
28436 fi
28437
28438 _ACEOF
28439 cat >>$CONFIG_STATUS <<_ACEOF
28440 if \$ac_cs_recheck; then
28441   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28442   CONFIG_SHELL=$SHELL
28443   export CONFIG_SHELL
28444   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28445 fi
28446
28447 _ACEOF
28448 cat >>$CONFIG_STATUS <<\_ACEOF
28449 exec 5>>config.log
28450 {
28451   echo
28452   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28453 ## Running $as_me. ##
28454 _ASBOX
28455   echo "$ac_log"
28456 } >&5
28457
28458 _ACEOF
28459 cat >>$CONFIG_STATUS <<_ACEOF
28460 #
28461 # INIT-COMMANDS
28462 #
28463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28464
28465
28466 _ACEOF
28467
28468 cat >>$CONFIG_STATUS <<\_ACEOF
28469
28470 # Handling of arguments.
28471 for ac_config_target in $ac_config_targets
28472 do
28473   case $ac_config_target in
28474     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28475     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28476     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28477     "src/gnome-bluetooth/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome-bluetooth/Makefile" ;;
28478     "src/backends/addressbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
28479     "src/backends/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
28480     "src/backends/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
28481     "src/backends/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/maemo/Makefile" ;;
28482     "src/backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
28483     "src/backends/xmlrpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/xmlrpc/Makefile" ;;
28484     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28485     "src/dbus/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/interfaces/Makefile" ;;
28486     "src/gdbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdbus/Makefile" ;;
28487     "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
28488     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28489     "src/syncevo/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/Makefile" ;;
28490     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
28491     "src/syncevo/configs/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/configs/Makefile" ;;
28492     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
28493     "src/gtk-ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-ui/Makefile" ;;
28494     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28495     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
28496     "src/dbus/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/syncevo-dbus.pc" ;;
28497     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
28498
28499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28501    { (exit 1); exit 1; }; };;
28502   esac
28503 done
28504
28505
28506 # If the user did not use the arguments to specify the items to instantiate,
28507 # then the envvar interface is used.  Set only those that are not.
28508 # We use the long form for the default assignment because of an extremely
28509 # bizarre bug on SunOS 4.1.3.
28510 if $ac_need_defaults; then
28511   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28512   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28514 fi
28515
28516 # Have a temporary directory for convenience.  Make it in the build tree
28517 # simply because there is no reason against having it here, and in addition,
28518 # creating and moving files from /tmp can sometimes cause problems.
28519 # Hook for its removal unless debugging.
28520 # Note that there is a small window in which the directory will not be cleaned:
28521 # after its creation but before its name has been assigned to `$tmp'.
28522 $debug ||
28523 {
28524   tmp=
28525   trap 'exit_status=$?
28526   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28527 ' 0
28528   trap '{ (exit 1); exit 1; }' 1 2 13 15
28529 }
28530 # Create a (secure) tmp directory for tmp files.
28531
28532 {
28533   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28534   test -n "$tmp" && test -d "$tmp"
28535 }  ||
28536 {
28537   tmp=./conf$$-$RANDOM
28538   (umask 077 && mkdir "$tmp")
28539 } ||
28540 {
28541    echo "$me: cannot create a temporary directory in ." >&2
28542    { (exit 1); exit 1; }
28543 }
28544
28545 #
28546 # Set up the sed scripts for CONFIG_FILES section.
28547 #
28548
28549 # No need to generate the scripts if there are no CONFIG_FILES.
28550 # This happens for instance when ./config.status config.h
28551 if test -n "$CONFIG_FILES"; then
28552
28553 _ACEOF
28554
28555
28556
28557 ac_delim='%!_!# '
28558 for ac_last_try in false false false false false :; do
28559   cat >conf$$subs.sed <<_ACEOF
28560 SHELL!$SHELL$ac_delim
28561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28567 exec_prefix!$exec_prefix$ac_delim
28568 prefix!$prefix$ac_delim
28569 program_transform_name!$program_transform_name$ac_delim
28570 bindir!$bindir$ac_delim
28571 sbindir!$sbindir$ac_delim
28572 libexecdir!$libexecdir$ac_delim
28573 datarootdir!$datarootdir$ac_delim
28574 datadir!$datadir$ac_delim
28575 sysconfdir!$sysconfdir$ac_delim
28576 sharedstatedir!$sharedstatedir$ac_delim
28577 localstatedir!$localstatedir$ac_delim
28578 includedir!$includedir$ac_delim
28579 oldincludedir!$oldincludedir$ac_delim
28580 docdir!$docdir$ac_delim
28581 infodir!$infodir$ac_delim
28582 htmldir!$htmldir$ac_delim
28583 dvidir!$dvidir$ac_delim
28584 pdfdir!$pdfdir$ac_delim
28585 psdir!$psdir$ac_delim
28586 libdir!$libdir$ac_delim
28587 localedir!$localedir$ac_delim
28588 mandir!$mandir$ac_delim
28589 DEFS!$DEFS$ac_delim
28590 ECHO_C!$ECHO_C$ac_delim
28591 ECHO_N!$ECHO_N$ac_delim
28592 ECHO_T!$ECHO_T$ac_delim
28593 LIBS!$LIBS$ac_delim
28594 build_alias!$build_alias$ac_delim
28595 host_alias!$host_alias$ac_delim
28596 target_alias!$target_alias$ac_delim
28597 STABLE_VERSION!$STABLE_VERSION$ac_delim
28598 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28599 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28600 INSTALL_DATA!$INSTALL_DATA$ac_delim
28601 am__isrc!$am__isrc$ac_delim
28602 CYGPATH_W!$CYGPATH_W$ac_delim
28603 PACKAGE!$PACKAGE$ac_delim
28604 VERSION!$VERSION$ac_delim
28605 ACLOCAL!$ACLOCAL$ac_delim
28606 AUTOCONF!$AUTOCONF$ac_delim
28607 AUTOMAKE!$AUTOMAKE$ac_delim
28608 AUTOHEADER!$AUTOHEADER$ac_delim
28609 MAKEINFO!$MAKEINFO$ac_delim
28610 install_sh!$install_sh$ac_delim
28611 STRIP!$STRIP$ac_delim
28612 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28613 mkdir_p!$mkdir_p$ac_delim
28614 AWK!$AWK$ac_delim
28615 SET_MAKE!$SET_MAKE$ac_delim
28616 am__leading_dot!$am__leading_dot$ac_delim
28617 AMTAR!$AMTAR$ac_delim
28618 am__tar!$am__tar$ac_delim
28619 am__untar!$am__untar$ac_delim
28620 MODIFY_SYNCCOMPARE!$MODIFY_SYNCCOMPARE$ac_delim
28621 CC!$CC$ac_delim
28622 CFLAGS!$CFLAGS$ac_delim
28623 LDFLAGS!$LDFLAGS$ac_delim
28624 CPPFLAGS!$CPPFLAGS$ac_delim
28625 ac_ct_CC!$ac_ct_CC$ac_delim
28626 EXEEXT!$EXEEXT$ac_delim
28627 OBJEXT!$OBJEXT$ac_delim
28628 DEPDIR!$DEPDIR$ac_delim
28629 am__include!$am__include$ac_delim
28630 am__quote!$am__quote$ac_delim
28631 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28632 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28633 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28634 CCDEPMODE!$CCDEPMODE$ac_delim
28635 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28636 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28637 CPP!$CPP$ac_delim
28638 GREP!$GREP$ac_delim
28639 EGREP!$EGREP$ac_delim
28640 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
28641 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
28642 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
28643 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
28644 ENABLE_TESTING_TRUE!$ENABLE_TESTING_TRUE$ac_delim
28645 ENABLE_TESTING_FALSE!$ENABLE_TESTING_FALSE$ac_delim
28646 CORE_LDADD_DEP!$CORE_LDADD_DEP$ac_delim
28647 PKG_CONFIG!$PKG_CONFIG$ac_delim
28648 LIBSOUP_CFLAGS!$LIBSOUP_CFLAGS$ac_delim
28649 LIBSOUP_LIBS!$LIBSOUP_LIBS$ac_delim
28650 LIBOPENOBEX_CFLAGS!$LIBOPENOBEX_CFLAGS$ac_delim
28651 LIBOPENOBEX_LIBS!$LIBOPENOBEX_LIBS$ac_delim
28652 BLUEZ_CFLAGS!$BLUEZ_CFLAGS$ac_delim
28653 BLUEZ_LIBS!$BLUEZ_LIBS$ac_delim
28654 ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_delim
28655 ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim
28656 ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim
28657 _ACEOF
28658
28659   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28660     break
28661   elif $ac_last_try; then
28662     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28664    { (exit 1); exit 1; }; }
28665   else
28666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28667   fi
28668 done
28669
28670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28671 if test -n "$ac_eof"; then
28672   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28673   ac_eof=`expr $ac_eof + 1`
28674 fi
28675
28676 cat >>$CONFIG_STATUS <<_ACEOF
28677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28679 _ACEOF
28680 sed '
28681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28682 s/^/s,@/; s/!/@,|#_!!_#|/
28683 :n
28684 t n
28685 s/'"$ac_delim"'$/,g/; t
28686 s/$/\\/; p
28687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28688 ' >>$CONFIG_STATUS <conf$$subs.sed
28689 rm -f conf$$subs.sed
28690 cat >>$CONFIG_STATUS <<_ACEOF
28691 CEOF$ac_eof
28692 _ACEOF
28693
28694
28695 ac_delim='%!_!# '
28696 for ac_last_try in false false false false false :; do
28697   cat >conf$$subs.sed <<_ACEOF
28698 ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim
28699 TRANSPORT_LIBS!$TRANSPORT_LIBS$ac_delim
28700 TRANSPORT_CFLAGS!$TRANSPORT_CFLAGS$ac_delim
28701 XSLT!$XSLT$ac_delim
28702 COND_GUI_TRUE!$COND_GUI_TRUE$ac_delim
28703 COND_GUI_FALSE!$COND_GUI_FALSE$ac_delim
28704 COND_CORE_TRUE!$COND_CORE_TRUE$ac_delim
28705 COND_CORE_FALSE!$COND_CORE_FALSE$ac_delim
28706 COND_DBUS_TRUE!$COND_DBUS_TRUE$ac_delim
28707 COND_DBUS_FALSE!$COND_DBUS_FALSE$ac_delim
28708 KEYRING_CFLAGS!$KEYRING_CFLAGS$ac_delim
28709 KEYRING_LIBS!$KEYRING_LIBS$ac_delim
28710 KEYRING_2_20_CFLAGS!$KEYRING_2_20_CFLAGS$ac_delim
28711 KEYRING_2_20_LIBS!$KEYRING_2_20_LIBS$ac_delim
28712 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
28713 DBUS_LIBS!$DBUS_LIBS$ac_delim
28714 LIBNOTIFY_CFLAGS!$LIBNOTIFY_CFLAGS$ac_delim
28715 LIBNOTIFY_LIBS!$LIBNOTIFY_LIBS$ac_delim
28716 DBUS_GLIB_CFLAGS!$DBUS_GLIB_CFLAGS$ac_delim
28717 DBUS_GLIB_LIBS!$DBUS_GLIB_LIBS$ac_delim
28718 LIBEXECDIR!$LIBEXECDIR$ac_delim
28719 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
28720 USE_NLS!$USE_NLS$ac_delim
28721 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
28722 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
28723 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
28724 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
28725 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
28726 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
28727 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
28728 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
28729 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
28730 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
28731 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
28732 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
28733 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
28734 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
28735 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
28736 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
28737 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
28738 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
28739 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
28740 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
28741 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
28742 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
28743 XGETTEXT!$XGETTEXT$ac_delim
28744 MSGMERGE!$MSGMERGE$ac_delim
28745 MSGFMT!$MSGFMT$ac_delim
28746 GMSGFMT!$GMSGFMT$ac_delim
28747 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
28748 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
28749 DATADIRNAME!$DATADIRNAME$ac_delim
28750 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
28751 CATALOGS!$CATALOGS$ac_delim
28752 CATOBJEXT!$CATOBJEXT$ac_delim
28753 GMOFILES!$GMOFILES$ac_delim
28754 INSTOBJEXT!$INSTOBJEXT$ac_delim
28755 INTLLIBS!$INTLLIBS$ac_delim
28756 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
28757 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
28758 POFILES!$POFILES$ac_delim
28759 POSUB!$POSUB$ac_delim
28760 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
28761 DBUS_BINDING_TOOL!$DBUS_BINDING_TOOL$ac_delim
28762 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
28763 MX_GTK_0_99_1_CFLAGS!$MX_GTK_0_99_1_CFLAGS$ac_delim
28764 MX_GTK_0_99_1_LIBS!$MX_GTK_0_99_1_LIBS$ac_delim
28765 UNIQUE_CFLAGS!$UNIQUE_CFLAGS$ac_delim
28766 UNIQUE_LIBS!$UNIQUE_LIBS$ac_delim
28767 GTK_2_18_CFLAGS!$GTK_2_18_CFLAGS$ac_delim
28768 GTK_2_18_LIBS!$GTK_2_18_LIBS$ac_delim
28769 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
28770 GUI_LIBS!$GUI_LIBS$ac_delim
28771 GTK_BUILDER_CONV!$GTK_BUILDER_CONV$ac_delim
28772 SYNCEVOLUTION_LOCALEDIR!$SYNCEVOLUTION_LOCALEDIR$ac_delim
28773 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
28774 GUI_PROGRAMS!$GUI_PROGRAMS$ac_delim
28775 GUI_DESKTOP_FILES!$GUI_DESKTOP_FILES$ac_delim
28776 CXX!$CXX$ac_delim
28777 CXXFLAGS!$CXXFLAGS$ac_delim
28778 ac_ct_CXX!$ac_ct_CXX$ac_delim
28779 CXXDEPMODE!$CXXDEPMODE$ac_delim
28780 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28781 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28782 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
28783 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
28784 SYNTHESIS_SRC!$SYNTHESIS_SRC$ac_delim
28785 SYNTHESIS_CFLAGS!$SYNTHESIS_CFLAGS$ac_delim
28786 SYNTHESIS_LIBS!$SYNTHESIS_LIBS$ac_delim
28787 SYNTHESIS!$SYNTHESIS$ac_delim
28788 SYNTHESIS_SUBDIR!$SYNTHESIS_SUBDIR$ac_delim
28789 SYNTHESIS_SUBDIR_INCLUDES!$SYNTHESIS_SUBDIR_INCLUDES$ac_delim
28790 SYNTHESIS_DEP!$SYNTHESIS_DEP$ac_delim
28791 SYNTHESIS_ENGINE!$SYNTHESIS_ENGINE$ac_delim
28792 SYNTHESIS_LIB!$SYNTHESIS_LIB$ac_delim
28793 SYNTHESISSRC!$SYNTHESISSRC$ac_delim
28794 SYNCSOURCES!$SYNCSOURCES$ac_delim
28795 _ACEOF
28796
28797   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28798     break
28799   elif $ac_last_try; then
28800     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28802    { (exit 1); exit 1; }; }
28803   else
28804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28805   fi
28806 done
28807
28808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28809 if test -n "$ac_eof"; then
28810   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28811   ac_eof=`expr $ac_eof + 1`
28812 fi
28813
28814 cat >>$CONFIG_STATUS <<_ACEOF
28815 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28817 _ACEOF
28818 sed '
28819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28820 s/^/s,@/; s/!/@,|#_!!_#|/
28821 :n
28822 t n
28823 s/'"$ac_delim"'$/,g/; t
28824 s/$/\\/; p
28825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28826 ' >>$CONFIG_STATUS <conf$$subs.sed
28827 rm -f conf$$subs.sed
28828 cat >>$CONFIG_STATUS <<_ACEOF
28829 CEOF$ac_eof
28830 _ACEOF
28831
28832
28833 ac_delim='%!_!# '
28834 for ac_last_try in false false false false false :; do
28835   cat >conf$$subs.sed <<_ACEOF
28836 BACKEND_DEFINES!$BACKEND_DEFINES$ac_delim
28837 BACKEND_CPPFLAGS!$BACKEND_CPPFLAGS$ac_delim
28838 GNOMEBLUETOOTH_CFLAGS!$GNOMEBLUETOOTH_CFLAGS$ac_delim
28839 GNOMEBLUETOOTH_LIBS!$GNOMEBLUETOOTH_LIBS$ac_delim
28840 GNOMEBLUETOOTH_DIR!$GNOMEBLUETOOTH_DIR$ac_delim
28841 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE!$ENABLE_GNOME_BLUETOOTH_PANEL_TRUE$ac_delim
28842 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE!$ENABLE_GNOME_BLUETOOTH_PANEL_FALSE$ac_delim
28843 ADDRESSBOOK_CFLAGS!$ADDRESSBOOK_CFLAGS$ac_delim
28844 ADDRESSBOOK_LIBS!$ADDRESSBOOK_LIBS$ac_delim
28845 EPACKAGE_CFLAGS!$EPACKAGE_CFLAGS$ac_delim
28846 EPACKAGE_LIBS!$EPACKAGE_LIBS$ac_delim
28847 ECAL_CFLAGS!$ECAL_CFLAGS$ac_delim
28848 ECAL_LIBS!$ECAL_LIBS$ac_delim
28849 EBOOK_CFLAGS!$EBOOK_CFLAGS$ac_delim
28850 EBOOK_LIBS!$EBOOK_LIBS$ac_delim
28851 ENABLE_ECAL_TRUE!$ENABLE_ECAL_TRUE$ac_delim
28852 ENABLE_ECAL_FALSE!$ENABLE_ECAL_FALSE$ac_delim
28853 LIBICAL_AVAILABLE_CFLAGS!$LIBICAL_AVAILABLE_CFLAGS$ac_delim
28854 LIBICAL_AVAILABLE_LIBS!$LIBICAL_AVAILABLE_LIBS$ac_delim
28855 FILE_CFLAGS!$FILE_CFLAGS$ac_delim
28856 FILE_LIBS!$FILE_LIBS$ac_delim
28857 MCALB_CFLAGS!$MCALB_CFLAGS$ac_delim
28858 MCALB_LIBS!$MCALB_LIBS$ac_delim
28859 SQLITE_CFLAGS!$SQLITE_CFLAGS$ac_delim
28860 SQLITE_LIBS!$SQLITE_LIBS$ac_delim
28861 XMLRPC_CFLAGS!$XMLRPC_CFLAGS$ac_delim
28862 XMLRPC_LIBS!$XMLRPC_LIBS$ac_delim
28863 build!$build$ac_delim
28864 build_cpu!$build_cpu$ac_delim
28865 build_vendor!$build_vendor$ac_delim
28866 build_os!$build_os$ac_delim
28867 host!$host$ac_delim
28868 host_cpu!$host_cpu$ac_delim
28869 host_vendor!$host_vendor$ac_delim
28870 host_os!$host_os$ac_delim
28871 SED!$SED$ac_delim
28872 LN_S!$LN_S$ac_delim
28873 ECHO!$ECHO$ac_delim
28874 AR!$AR$ac_delim
28875 RANLIB!$RANLIB$ac_delim
28876 DSYMUTIL!$DSYMUTIL$ac_delim
28877 NMEDIT!$NMEDIT$ac_delim
28878 CXXCPP!$CXXCPP$ac_delim
28879 F77!$F77$ac_delim
28880 FFLAGS!$FFLAGS$ac_delim
28881 ac_ct_F77!$ac_ct_F77$ac_delim
28882 LIBTOOL!$LIBTOOL$ac_delim
28883 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
28884 GLIB_LIBS!$GLIB_LIBS$ac_delim
28885 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
28886 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
28887 GOBJECT_CFLAGS!$GOBJECT_CFLAGS$ac_delim
28888 GOBJECT_LIBS!$GOBJECT_LIBS$ac_delim
28889 GLIB216_CFLAGS!$GLIB216_CFLAGS$ac_delim
28890 GLIB216_LIBS!$GLIB216_LIBS$ac_delim
28891 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
28892 NSS_LIBS!$NSS_LIBS$ac_delim
28893 ENABLE_MODULES_TRUE!$ENABLE_MODULES_TRUE$ac_delim
28894 ENABLE_MODULES_FALSE!$ENABLE_MODULES_FALSE$ac_delim
28895 SYNCEVOLUTION_LDADD!$SYNCEVOLUTION_LDADD$ac_delim
28896 SYNCEVOLUTION_CXXFLAGS!$SYNCEVOLUTION_CXXFLAGS$ac_delim
28897 ENABLE_EVOLUTION_COMPATIBILITY_TRUE!$ENABLE_EVOLUTION_COMPATIBILITY_TRUE$ac_delim
28898 ENABLE_EVOLUTION_COMPATIBILITY_FALSE!$ENABLE_EVOLUTION_COMPATIBILITY_FALSE$ac_delim
28899 backenddir!$backenddir$ac_delim
28900 backendsearchdir!$backendsearchdir$ac_delim
28901 LIBOBJS!$LIBOBJS$ac_delim
28902 LTLIBOBJS!$LTLIBOBJS$ac_delim
28903 _ACEOF
28904
28905   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
28906     break
28907   elif $ac_last_try; then
28908     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28910    { (exit 1); exit 1; }; }
28911   else
28912     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28913   fi
28914 done
28915
28916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28917 if test -n "$ac_eof"; then
28918   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28919   ac_eof=`expr $ac_eof + 1`
28920 fi
28921
28922 cat >>$CONFIG_STATUS <<_ACEOF
28923 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28925 _ACEOF
28926 sed '
28927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28928 s/^/s,@/; s/!/@,|#_!!_#|/
28929 :n
28930 t n
28931 s/'"$ac_delim"'$/,g/; t
28932 s/$/\\/; p
28933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28934 ' >>$CONFIG_STATUS <conf$$subs.sed
28935 rm -f conf$$subs.sed
28936 cat >>$CONFIG_STATUS <<_ACEOF
28937 :end
28938 s/|#_!!_#|//g
28939 CEOF$ac_eof
28940 _ACEOF
28941
28942
28943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28945 # trailing colons and then remove the whole line if VPATH becomes empty
28946 # (actually we leave an empty line to preserve line numbers).
28947 if test "x$srcdir" = x.; then
28948   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28949 s/:*\$(srcdir):*/:/
28950 s/:*\${srcdir}:*/:/
28951 s/:*@srcdir@:*/:/
28952 s/^\([^=]*=[     ]*\):*/\1/
28953 s/:*$//
28954 s/^[^=]*=[       ]*$//
28955 }'
28956 fi
28957
28958 cat >>$CONFIG_STATUS <<\_ACEOF
28959 fi # test -n "$CONFIG_FILES"
28960
28961
28962 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28963 do
28964   case $ac_tag in
28965   :[FHLC]) ac_mode=$ac_tag; continue;;
28966   esac
28967   case $ac_mode$ac_tag in
28968   :[FHL]*:*);;
28969   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28970 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28971    { (exit 1); exit 1; }; };;
28972   :[FH]-) ac_tag=-:-;;
28973   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28974   esac
28975   ac_save_IFS=$IFS
28976   IFS=:
28977   set x $ac_tag
28978   IFS=$ac_save_IFS
28979   shift
28980   ac_file=$1
28981   shift
28982
28983   case $ac_mode in
28984   :L) ac_source=$1;;
28985   :[FH])
28986     ac_file_inputs=
28987     for ac_f
28988     do
28989       case $ac_f in
28990       -) ac_f="$tmp/stdin";;
28991       *) # Look for the file first in the build tree, then in the source tree
28992          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28993          # because $ac_f cannot contain `:'.
28994          test -f "$ac_f" ||
28995            case $ac_f in
28996            [\\/$]*) false;;
28997            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28998            esac ||
28999            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29000 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29001    { (exit 1); exit 1; }; };;
29002       esac
29003       ac_file_inputs="$ac_file_inputs $ac_f"
29004     done
29005
29006     # Let's still pretend it is `configure' which instantiates (i.e., don't
29007     # use $as_me), people would be surprised to read:
29008     #    /* config.h.  Generated by config.status.  */
29009     configure_input="Generated from "`IFS=:
29010           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29011     if test x"$ac_file" != x-; then
29012       configure_input="$ac_file.  $configure_input"
29013       { echo "$as_me:$LINENO: creating $ac_file" >&5
29014 echo "$as_me: creating $ac_file" >&6;}
29015     fi
29016
29017     case $ac_tag in
29018     *:-:* | *:-) cat >"$tmp/stdin";;
29019     esac
29020     ;;
29021   esac
29022
29023   ac_dir=`$as_dirname -- "$ac_file" ||
29024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29025          X"$ac_file" : 'X\(//\)[^/]' \| \
29026          X"$ac_file" : 'X\(//\)$' \| \
29027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29028 echo X"$ac_file" |
29029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29030             s//\1/
29031             q
29032           }
29033           /^X\(\/\/\)[^/].*/{
29034             s//\1/
29035             q
29036           }
29037           /^X\(\/\/\)$/{
29038             s//\1/
29039             q
29040           }
29041           /^X\(\/\).*/{
29042             s//\1/
29043             q
29044           }
29045           s/.*/./; q'`
29046   { as_dir="$ac_dir"
29047   case $as_dir in #(
29048   -*) as_dir=./$as_dir;;
29049   esac
29050   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29051     as_dirs=
29052     while :; do
29053       case $as_dir in #(
29054       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29055       *) as_qdir=$as_dir;;
29056       esac
29057       as_dirs="'$as_qdir' $as_dirs"
29058       as_dir=`$as_dirname -- "$as_dir" ||
29059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29060          X"$as_dir" : 'X\(//\)[^/]' \| \
29061          X"$as_dir" : 'X\(//\)$' \| \
29062          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29063 echo X"$as_dir" |
29064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29065             s//\1/
29066             q
29067           }
29068           /^X\(\/\/\)[^/].*/{
29069             s//\1/
29070             q
29071           }
29072           /^X\(\/\/\)$/{
29073             s//\1/
29074             q
29075           }
29076           /^X\(\/\).*/{
29077             s//\1/
29078             q
29079           }
29080           s/.*/./; q'`
29081       test -d "$as_dir" && break
29082     done
29083     test -z "$as_dirs" || eval "mkdir $as_dirs"
29084   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29086    { (exit 1); exit 1; }; }; }
29087   ac_builddir=.
29088
29089 case "$ac_dir" in
29090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29091 *)
29092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29093   # A ".." for each directory in $ac_dir_suffix.
29094   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29095   case $ac_top_builddir_sub in
29096   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29097   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29098   esac ;;
29099 esac
29100 ac_abs_top_builddir=$ac_pwd
29101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29102 # for backward compatibility:
29103 ac_top_builddir=$ac_top_build_prefix
29104
29105 case $srcdir in
29106   .)  # We are building in place.
29107     ac_srcdir=.
29108     ac_top_srcdir=$ac_top_builddir_sub
29109     ac_abs_top_srcdir=$ac_pwd ;;
29110   [\\/]* | ?:[\\/]* )  # Absolute name.
29111     ac_srcdir=$srcdir$ac_dir_suffix;
29112     ac_top_srcdir=$srcdir
29113     ac_abs_top_srcdir=$srcdir ;;
29114   *) # Relative name.
29115     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29116     ac_top_srcdir=$ac_top_build_prefix$srcdir
29117     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29118 esac
29119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29120
29121
29122   case $ac_mode in
29123   :F)
29124   #
29125   # CONFIG_FILE
29126   #
29127
29128   case $INSTALL in
29129   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29130   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29131   esac
29132   ac_MKDIR_P=$MKDIR_P
29133   case $MKDIR_P in
29134   [\\/$]* | ?:[\\/]* ) ;;
29135   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29136   esac
29137 _ACEOF
29138
29139 cat >>$CONFIG_STATUS <<\_ACEOF
29140 # If the template does not know about datarootdir, expand it.
29141 # FIXME: This hack should be removed a few years after 2.60.
29142 ac_datarootdir_hack=; ac_datarootdir_seen=
29143
29144 case `sed -n '/datarootdir/ {
29145   p
29146   q
29147 }
29148 /@datadir@/p
29149 /@docdir@/p
29150 /@infodir@/p
29151 /@localedir@/p
29152 /@mandir@/p
29153 ' $ac_file_inputs` in
29154 *datarootdir*) ac_datarootdir_seen=yes;;
29155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29156   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29157 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29158 _ACEOF
29159 cat >>$CONFIG_STATUS <<_ACEOF
29160   ac_datarootdir_hack='
29161   s&@datadir@&$datadir&g
29162   s&@docdir@&$docdir&g
29163   s&@infodir@&$infodir&g
29164   s&@localedir@&$localedir&g
29165   s&@mandir@&$mandir&g
29166     s&\\\${datarootdir}&$datarootdir&g' ;;
29167 esac
29168 _ACEOF
29169
29170 # Neutralize VPATH when `$srcdir' = `.'.
29171 # Shell code in configure.ac might set extrasub.
29172 # FIXME: do we really want to maintain this feature?
29173 cat >>$CONFIG_STATUS <<_ACEOF
29174   sed "$ac_vpsub
29175 $extrasub
29176 _ACEOF
29177 cat >>$CONFIG_STATUS <<\_ACEOF
29178 :t
29179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29180 s&@configure_input@&$configure_input&;t t
29181 s&@top_builddir@&$ac_top_builddir_sub&;t t
29182 s&@srcdir@&$ac_srcdir&;t t
29183 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29184 s&@top_srcdir@&$ac_top_srcdir&;t t
29185 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29186 s&@builddir@&$ac_builddir&;t t
29187 s&@abs_builddir@&$ac_abs_builddir&;t t
29188 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29189 s&@INSTALL@&$ac_INSTALL&;t t
29190 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29191 $ac_datarootdir_hack
29192 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
29193
29194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29195   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29196   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29197   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29198 which seems to be undefined.  Please make sure it is defined." >&5
29199 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29200 which seems to be undefined.  Please make sure it is defined." >&2;}
29201
29202   rm -f "$tmp/stdin"
29203   case $ac_file in
29204   -) cat "$tmp/out"; rm -f "$tmp/out";;
29205   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29206   esac
29207  ;;
29208   :H)
29209   #
29210   # CONFIG_HEADER
29211   #
29212 _ACEOF
29213
29214 # Transform confdefs.h into a sed script `conftest.defines', that
29215 # substitutes the proper values into config.h.in to produce config.h.
29216 rm -f conftest.defines conftest.tail
29217 # First, append a space to every undef/define line, to ease matching.
29218 echo 's/$/ /' >conftest.defines
29219 # Then, protect against being on the right side of a sed subst, or in
29220 # an unquoted here document, in config.status.  If some macros were
29221 # called several times there might be several #defines for the same
29222 # symbol, which is useless.  But do not sort them, since the last
29223 # AC_DEFINE must be honored.
29224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29225 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29226 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29227 # PARAMS is the parameter list in the macro definition--in most cases, it's
29228 # just an empty string.
29229 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29230 ac_dB='\\)[      (].*,\\1define\\2'
29231 ac_dC=' '
29232 ac_dD=' ,'
29233
29234 uniq confdefs.h |
29235   sed -n '
29236         t rset
29237         :rset
29238         s/^[     ]*#[    ]*define[       ][      ]*//
29239         t ok
29240         d
29241         :ok
29242         s/[\\&,]/\\&/g
29243         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29244         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29245   ' >>conftest.defines
29246
29247 # Remove the space that was appended to ease matching.
29248 # Then replace #undef with comments.  This is necessary, for
29249 # example, in the case of _POSIX_SOURCE, which is predefined and required
29250 # on some systems where configure will not decide to define it.
29251 # (The regexp can be short, since the line contains either #define or #undef.)
29252 echo 's/ $//
29253 s,^[     #]*u.*,/* & */,' >>conftest.defines
29254
29255 # Break up conftest.defines:
29256 ac_max_sed_lines=50
29257
29258 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29259 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29260 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29261 # et cetera.
29262 ac_in='$ac_file_inputs'
29263 ac_out='"$tmp/out1"'
29264 ac_nxt='"$tmp/out2"'
29265
29266 while :
29267 do
29268   # Write a here document:
29269     cat >>$CONFIG_STATUS <<_ACEOF
29270     # First, check the format of the line:
29271     cat >"\$tmp/defines.sed" <<\\CEOF
29272 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
29273 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
29274 b
29275 :def
29276 _ACEOF
29277   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29278   echo 'CEOF
29279     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29280   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29281   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29282   grep . conftest.tail >/dev/null || break
29283   rm -f conftest.defines
29284   mv conftest.tail conftest.defines
29285 done
29286 rm -f conftest.defines conftest.tail
29287
29288 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29289 cat >>$CONFIG_STATUS <<\_ACEOF
29290   if test x"$ac_file" != x-; then
29291     echo "/* $configure_input  */" >"$tmp/config.h"
29292     cat "$ac_result" >>"$tmp/config.h"
29293     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29294       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29295 echo "$as_me: $ac_file is unchanged" >&6;}
29296     else
29297       rm -f $ac_file
29298       mv "$tmp/config.h" $ac_file
29299     fi
29300   else
29301     echo "/* $configure_input  */"
29302     cat "$ac_result"
29303   fi
29304   rm -f "$tmp/out12"
29305 # Compute $ac_file's index in $config_headers.
29306 _am_arg=$ac_file
29307 _am_stamp_count=1
29308 for _am_header in $config_headers :; do
29309   case $_am_header in
29310     $_am_arg | $_am_arg:* )
29311       break ;;
29312     * )
29313       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29314   esac
29315 done
29316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29318          X"$_am_arg" : 'X\(//\)[^/]' \| \
29319          X"$_am_arg" : 'X\(//\)$' \| \
29320          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29321 echo X"$_am_arg" |
29322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29323             s//\1/
29324             q
29325           }
29326           /^X\(\/\/\)[^/].*/{
29327             s//\1/
29328             q
29329           }
29330           /^X\(\/\/\)$/{
29331             s//\1/
29332             q
29333           }
29334           /^X\(\/\).*/{
29335             s//\1/
29336             q
29337           }
29338           s/.*/./; q'`/stamp-h$_am_stamp_count
29339  ;;
29340
29341   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29342 echo "$as_me: executing $ac_file commands" >&6;}
29343  ;;
29344   esac
29345
29346
29347   case $ac_file$ac_mode in
29348     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29349   # Strip MF so we end up with the name of the file.
29350   mf=`echo "$mf" | sed -e 's/:.*$//'`
29351   # Check whether this is an Automake generated Makefile or not.
29352   # We used to match only the files named `Makefile.in', but
29353   # some people rename them; so instead we look at the file content.
29354   # Grep'ing the first line is not enough: some people post-process
29355   # each Makefile.in and add a new line on top of each file to say so.
29356   # Grep'ing the whole file is not good either: AIX grep has a line
29357   # limit of 2048, but all sed's we know have understand at least 4000.
29358   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29359     dirpart=`$as_dirname -- "$mf" ||
29360 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29361          X"$mf" : 'X\(//\)[^/]' \| \
29362          X"$mf" : 'X\(//\)$' \| \
29363          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29364 echo X"$mf" |
29365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29366             s//\1/
29367             q
29368           }
29369           /^X\(\/\/\)[^/].*/{
29370             s//\1/
29371             q
29372           }
29373           /^X\(\/\/\)$/{
29374             s//\1/
29375             q
29376           }
29377           /^X\(\/\).*/{
29378             s//\1/
29379             q
29380           }
29381           s/.*/./; q'`
29382   else
29383     continue
29384   fi
29385   # Extract the definition of DEPDIR, am__include, and am__quote
29386   # from the Makefile without running `make'.
29387   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29388   test -z "$DEPDIR" && continue
29389   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29390   test -z "am__include" && continue
29391   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29392   # When using ansi2knr, U may be empty or an underscore; expand it
29393   U=`sed -n 's/^U = //p' < "$mf"`
29394   # Find all dependency output files, they are included files with
29395   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29396   # simplest approach to changing $(DEPDIR) to its actual value in the
29397   # expansion.
29398   for file in `sed -n "
29399     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29400        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29401     # Make sure the directory exists.
29402     test -f "$dirpart/$file" && continue
29403     fdir=`$as_dirname -- "$file" ||
29404 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29405          X"$file" : 'X\(//\)[^/]' \| \
29406          X"$file" : 'X\(//\)$' \| \
29407          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29408 echo X"$file" |
29409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29410             s//\1/
29411             q
29412           }
29413           /^X\(\/\/\)[^/].*/{
29414             s//\1/
29415             q
29416           }
29417           /^X\(\/\/\)$/{
29418             s//\1/
29419             q
29420           }
29421           /^X\(\/\).*/{
29422             s//\1/
29423             q
29424           }
29425           s/.*/./; q'`
29426     { as_dir=$dirpart/$fdir
29427   case $as_dir in #(
29428   -*) as_dir=./$as_dir;;
29429   esac
29430   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29431     as_dirs=
29432     while :; do
29433       case $as_dir in #(
29434       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29435       *) as_qdir=$as_dir;;
29436       esac
29437       as_dirs="'$as_qdir' $as_dirs"
29438       as_dir=`$as_dirname -- "$as_dir" ||
29439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29440          X"$as_dir" : 'X\(//\)[^/]' \| \
29441          X"$as_dir" : 'X\(//\)$' \| \
29442          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29443 echo X"$as_dir" |
29444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29445             s//\1/
29446             q
29447           }
29448           /^X\(\/\/\)[^/].*/{
29449             s//\1/
29450             q
29451           }
29452           /^X\(\/\/\)$/{
29453             s//\1/
29454             q
29455           }
29456           /^X\(\/\).*/{
29457             s//\1/
29458             q
29459           }
29460           s/.*/./; q'`
29461       test -d "$as_dir" && break
29462     done
29463     test -z "$as_dirs" || eval "mkdir $as_dirs"
29464   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29465 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29466    { (exit 1); exit 1; }; }; }
29467     # echo "creating $dirpart/$file"
29468     echo '# dummy' > "$dirpart/$file"
29469   done
29470 done
29471  ;;
29472     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
29473         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
29474       esac ;;
29475     "po/stamp-it":C)
29476     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
29477        { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
29478 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
29479    { (exit 1); exit 1; }; }
29480     fi
29481     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
29482     >"po/stamp-it.tmp"
29483     sed '/^#/d
29484          s/^[[].*] *//
29485          /^[    ]*$/d
29486         '"s|^|  $ac_top_srcdir/|" \
29487       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
29488
29489     sed '/^POTFILES =/,/[^\\]$/ {
29490                 /^POTFILES =/!d
29491                 r po/POTFILES
29492           }
29493          ' "po/Makefile.in" >"po/Makefile"
29494     rm -f "po/Makefile.tmp"
29495     mv "po/stamp-it.tmp" "po/stamp-it"
29496    ;;
29497
29498   esac
29499 done # for ac_tag
29500
29501
29502 { (exit 0); exit 0; }
29503 _ACEOF
29504 chmod +x $CONFIG_STATUS
29505 ac_clean_files=$ac_clean_files_save
29506
29507
29508 # configure is writing to config.log, and then calls config.status.
29509 # config.status does its own redirection, appending to config.log.
29510 # Unfortunately, on DOS this fails, as config.log is still kept open
29511 # by configure, so config.status won't be able to write to it; its
29512 # output is simply discarded.  So we exec the FD to /dev/null,
29513 # effectively closing config.log, so it can be properly (re)opened and
29514 # appended to by config.status.  When coming back to configure, we
29515 # need to make the FD available again.
29516 if test "$no_create" != yes; then
29517   ac_cs_success=:
29518   ac_config_status_args=
29519   test "$silent" = yes &&
29520     ac_config_status_args="$ac_config_status_args --quiet"
29521   exec 5>/dev/null
29522   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29523   exec 5>>config.log
29524   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29525   # would make configure fail if this is the last instruction.
29526   $ac_cs_success || { (exit 1); exit 1; }
29527 fi
29528
29529
29530 echo
29531 echo CONFIGURATION SUMMARY
29532 echo "Core SyncEvolution: $enable_core"
29533 for backend in $BACKENDS; do
29534     eval echo $backend: \${enable_${backend}}
29535 done
29536 echo "DBus service: $enable_dbus_service"
29537 echo "UI (DBus client): $enable_gui"
29538 echo "Bluetooth transport: $have_bluetooth"
29539 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
29540 echo "SHA-256: $have_sha"
29541 echo