Imported Upstream version 1.1
[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.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='syncevolution'
728 PACKAGE_TARNAME='syncevolution'
729 PACKAGE_VERSION='1.1'
730 PACKAGE_STRING='syncevolution 1.1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 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 RST2MAN
953 COND_MAN_PAGES_TRUE
954 COND_MAN_PAGES_FALSE
955 RST2HTML
956 COND_HTML_README_TRUE
957 COND_HTML_README_FALSE
958 SYNTHESIS_SRC
959 SYNTHESIS_CFLAGS
960 SYNTHESIS_LIBS
961 SYNTHESIS
962 SYNTHESIS_SUBDIR
963 SYNTHESIS_SUBDIR_INCLUDES
964 SYNTHESIS_DEP
965 SYNTHESIS_ENGINE
966 SYNTHESIS_LIB
967 SYNTHESISSRC
968 SYNCSOURCES
969 BACKEND_DEFINES
970 BACKEND_CPPFLAGS
971 GNOMEBLUETOOTH_CFLAGS
972 GNOMEBLUETOOTH_LIBS
973 GNOMEBLUETOOTH_DIR
974 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE
975 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE
976 COND_DOC_TRUE
977 COND_DOC_FALSE
978 ADDRESSBOOK_CFLAGS
979 ADDRESSBOOK_LIBS
980 EPACKAGE_CFLAGS
981 EPACKAGE_LIBS
982 ECAL_CFLAGS
983 ECAL_LIBS
984 EBOOK_CFLAGS
985 EBOOK_LIBS
986 ENABLE_ECAL_TRUE
987 ENABLE_ECAL_FALSE
988 LIBICAL_AVAILABLE_CFLAGS
989 LIBICAL_AVAILABLE_LIBS
990 FILE_CFLAGS
991 FILE_LIBS
992 KCALEXTENDED_CFLAGS
993 KCALEXTENDED_LIBS
994 MCALB_CFLAGS
995 MCALB_LIBS
996 QT_CONTACTS_LIBS
997 SQLITE_CFLAGS
998 SQLITE_LIBS
999 XMLRPC_CFLAGS
1000 XMLRPC_LIBS
1001 build
1002 build_cpu
1003 build_vendor
1004 build_os
1005 host
1006 host_cpu
1007 host_vendor
1008 host_os
1009 SED
1010 LN_S
1011 ECHO
1012 AR
1013 RANLIB
1014 DSYMUTIL
1015 NMEDIT
1016 CXXCPP
1017 F77
1018 FFLAGS
1019 ac_ct_F77
1020 LIBTOOL
1021 GLIB_CFLAGS
1022 GLIB_LIBS
1023 GTHREAD_CFLAGS
1024 GTHREAD_LIBS
1025 GOBJECT_CFLAGS
1026 GOBJECT_LIBS
1027 QT_PATH
1028 QMAKE
1029 MOC
1030 UIC
1031 RCC
1032 QT_VERSION_MAJOR
1033 QT_DEFINES
1034 QT_CFLAGS
1035 QT_CXXFLAGS
1036 QT_INCPATH
1037 QT_CPPFLAGS
1038 QT_LFLAGS
1039 QT_LDFLAGS
1040 QT_LIBS
1041 GLIB216_CFLAGS
1042 GLIB216_LIBS
1043 NSS_CFLAGS
1044 NSS_LIBS
1045 ENABLE_MODULES_TRUE
1046 ENABLE_MODULES_FALSE
1047 SYNCEVOLUTION_LDADD
1048 SYNCEVOLUTION_CXXFLAGS
1049 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
1050 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
1051 backenddir
1052 backendsearchdir
1053 LIBOBJS
1054 LTLIBOBJS'
1055 ac_subst_files=''
1056       ac_precious_vars='build_alias
1057 host_alias
1058 target_alias
1059 CC
1060 CFLAGS
1061 LDFLAGS
1062 LIBS
1063 CPPFLAGS
1064 CPP
1065 PKG_CONFIG
1066 LIBSOUP_CFLAGS
1067 LIBSOUP_LIBS
1068 LIBOPENOBEX_CFLAGS
1069 LIBOPENOBEX_LIBS
1070 BLUEZ_CFLAGS
1071 BLUEZ_LIBS
1072 KEYRING_CFLAGS
1073 KEYRING_LIBS
1074 KEYRING_2_20_CFLAGS
1075 KEYRING_2_20_LIBS
1076 DBUS_CFLAGS
1077 DBUS_LIBS
1078 LIBNOTIFY_CFLAGS
1079 LIBNOTIFY_LIBS
1080 DBUS_GLIB_CFLAGS
1081 DBUS_GLIB_LIBS
1082 MX_GTK_0_99_1_CFLAGS
1083 MX_GTK_0_99_1_LIBS
1084 UNIQUE_CFLAGS
1085 UNIQUE_LIBS
1086 GTK_2_18_CFLAGS
1087 GTK_2_18_LIBS
1088 GUI_CFLAGS
1089 GUI_LIBS
1090 CXX
1091 CXXFLAGS
1092 CCC
1093 SYNTHESIS_CFLAGS
1094 SYNTHESIS_LIBS
1095 GNOMEBLUETOOTH_CFLAGS
1096 GNOMEBLUETOOTH_LIBS
1097 EPACKAGE_CFLAGS
1098 EPACKAGE_LIBS
1099 ECAL_CFLAGS
1100 ECAL_LIBS
1101 EBOOK_CFLAGS
1102 EBOOK_LIBS
1103 LIBICAL_AVAILABLE_CFLAGS
1104 LIBICAL_AVAILABLE_LIBS
1105 KCALEXTENDED_CFLAGS
1106 KCALEXTENDED_LIBS
1107 MCALB_CFLAGS
1108 MCALB_LIBS
1109 SQLITE_CFLAGS
1110 SQLITE_LIBS
1111 CXXCPP
1112 F77
1113 FFLAGS
1114 GLIB_CFLAGS
1115 GLIB_LIBS
1116 GTHREAD_CFLAGS
1117 GTHREAD_LIBS
1118 GOBJECT_CFLAGS
1119 GOBJECT_LIBS
1120 QT_PATH
1121 QMAKE
1122 MOC
1123 UIC
1124 RCC
1125 GLIB216_CFLAGS
1126 GLIB216_LIBS
1127 NSS_CFLAGS
1128 NSS_LIBS'
1129
1130
1131 # Initialize some variables set by options.
1132 ac_init_help=
1133 ac_init_version=false
1134 # The variables have the same names as the options, with
1135 # dashes changed to underlines.
1136 cache_file=/dev/null
1137 exec_prefix=NONE
1138 no_create=
1139 no_recursion=
1140 prefix=NONE
1141 program_prefix=NONE
1142 program_suffix=NONE
1143 program_transform_name=s,x,x,
1144 silent=
1145 site=
1146 srcdir=
1147 verbose=
1148 x_includes=NONE
1149 x_libraries=NONE
1150
1151 # Installation directory options.
1152 # These are left unexpanded so users can "make install exec_prefix=/foo"
1153 # and all the variables that are supposed to be based on exec_prefix
1154 # by default will actually change.
1155 # Use braces instead of parens because sh, perl, etc. also accept them.
1156 # (The list follows the same order as the GNU Coding Standards.)
1157 bindir='${exec_prefix}/bin'
1158 sbindir='${exec_prefix}/sbin'
1159 libexecdir='${exec_prefix}/libexec'
1160 datarootdir='${prefix}/share'
1161 datadir='${datarootdir}'
1162 sysconfdir='${prefix}/etc'
1163 sharedstatedir='${prefix}/com'
1164 localstatedir='${prefix}/var'
1165 includedir='${prefix}/include'
1166 oldincludedir='/usr/include'
1167 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1168 infodir='${datarootdir}/info'
1169 htmldir='${docdir}'
1170 dvidir='${docdir}'
1171 pdfdir='${docdir}'
1172 psdir='${docdir}'
1173 libdir='${exec_prefix}/lib'
1174 localedir='${datarootdir}/locale'
1175 mandir='${datarootdir}/man'
1176
1177 ac_prev=
1178 ac_dashdash=
1179 for ac_option
1180 do
1181   # If the previous option needs an argument, assign it.
1182   if test -n "$ac_prev"; then
1183     eval $ac_prev=\$ac_option
1184     ac_prev=
1185     continue
1186   fi
1187
1188   case $ac_option in
1189   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1190   *)    ac_optarg=yes ;;
1191   esac
1192
1193   # Accept the important Cygnus configure options, so we can diagnose typos.
1194
1195   case $ac_dashdash$ac_option in
1196   --)
1197     ac_dashdash=yes ;;
1198
1199   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1200     ac_prev=bindir ;;
1201   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1202     bindir=$ac_optarg ;;
1203
1204   -build | --build | --buil | --bui | --bu)
1205     ac_prev=build_alias ;;
1206   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1207     build_alias=$ac_optarg ;;
1208
1209   -cache-file | --cache-file | --cache-fil | --cache-fi \
1210   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1211     ac_prev=cache_file ;;
1212   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1213   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1214     cache_file=$ac_optarg ;;
1215
1216   --config-cache | -C)
1217     cache_file=config.cache ;;
1218
1219   -datadir | --datadir | --datadi | --datad)
1220     ac_prev=datadir ;;
1221   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1222     datadir=$ac_optarg ;;
1223
1224   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1225   | --dataroo | --dataro | --datar)
1226     ac_prev=datarootdir ;;
1227   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1228   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1229     datarootdir=$ac_optarg ;;
1230
1231   -disable-* | --disable-*)
1232     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1236    { (exit 1); exit 1; }; }
1237     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1238     eval enable_$ac_feature=no ;;
1239
1240   -docdir | --docdir | --docdi | --doc | --do)
1241     ac_prev=docdir ;;
1242   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1243     docdir=$ac_optarg ;;
1244
1245   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1246     ac_prev=dvidir ;;
1247   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1248     dvidir=$ac_optarg ;;
1249
1250   -enable-* | --enable-*)
1251     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1255    { (exit 1); exit 1; }; }
1256     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1257     eval enable_$ac_feature=\$ac_optarg ;;
1258
1259   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261   | --exec | --exe | --ex)
1262     ac_prev=exec_prefix ;;
1263   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265   | --exec=* | --exe=* | --ex=*)
1266     exec_prefix=$ac_optarg ;;
1267
1268   -gas | --gas | --ga | --g)
1269     # Obsolete; use --with-gas.
1270     with_gas=yes ;;
1271
1272   -help | --help | --hel | --he | -h)
1273     ac_init_help=long ;;
1274   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275     ac_init_help=recursive ;;
1276   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277     ac_init_help=short ;;
1278
1279   -host | --host | --hos | --ho)
1280     ac_prev=host_alias ;;
1281   -host=* | --host=* | --hos=* | --ho=*)
1282     host_alias=$ac_optarg ;;
1283
1284   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1285     ac_prev=htmldir ;;
1286   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1287   | --ht=*)
1288     htmldir=$ac_optarg ;;
1289
1290   -includedir | --includedir | --includedi | --included | --include \
1291   | --includ | --inclu | --incl | --inc)
1292     ac_prev=includedir ;;
1293   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294   | --includ=* | --inclu=* | --incl=* | --inc=*)
1295     includedir=$ac_optarg ;;
1296
1297   -infodir | --infodir | --infodi | --infod | --info | --inf)
1298     ac_prev=infodir ;;
1299   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300     infodir=$ac_optarg ;;
1301
1302   -libdir | --libdir | --libdi | --libd)
1303     ac_prev=libdir ;;
1304   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305     libdir=$ac_optarg ;;
1306
1307   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308   | --libexe | --libex | --libe)
1309     ac_prev=libexecdir ;;
1310   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311   | --libexe=* | --libex=* | --libe=*)
1312     libexecdir=$ac_optarg ;;
1313
1314   -localedir | --localedir | --localedi | --localed | --locale)
1315     ac_prev=localedir ;;
1316   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317     localedir=$ac_optarg ;;
1318
1319   -localstatedir | --localstatedir | --localstatedi | --localstated \
1320   | --localstate | --localstat | --localsta | --localst | --locals)
1321     ac_prev=localstatedir ;;
1322   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324     localstatedir=$ac_optarg ;;
1325
1326   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1327     ac_prev=mandir ;;
1328   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329     mandir=$ac_optarg ;;
1330
1331   -nfp | --nfp | --nf)
1332     # Obsolete; use --without-fp.
1333     with_fp=no ;;
1334
1335   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336   | --no-cr | --no-c | -n)
1337     no_create=yes ;;
1338
1339   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1341     no_recursion=yes ;;
1342
1343   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345   | --oldin | --oldi | --old | --ol | --o)
1346     ac_prev=oldincludedir ;;
1347   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350     oldincludedir=$ac_optarg ;;
1351
1352   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1353     ac_prev=prefix ;;
1354   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355     prefix=$ac_optarg ;;
1356
1357   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358   | --program-pre | --program-pr | --program-p)
1359     ac_prev=program_prefix ;;
1360   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362     program_prefix=$ac_optarg ;;
1363
1364   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365   | --program-suf | --program-su | --program-s)
1366     ac_prev=program_suffix ;;
1367   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369     program_suffix=$ac_optarg ;;
1370
1371   -program-transform-name | --program-transform-name \
1372   | --program-transform-nam | --program-transform-na \
1373   | --program-transform-n | --program-transform- \
1374   | --program-transform | --program-transfor \
1375   | --program-transfo | --program-transf \
1376   | --program-trans | --program-tran \
1377   | --progr-tra | --program-tr | --program-t)
1378     ac_prev=program_transform_name ;;
1379   -program-transform-name=* | --program-transform-name=* \
1380   | --program-transform-nam=* | --program-transform-na=* \
1381   | --program-transform-n=* | --program-transform-=* \
1382   | --program-transform=* | --program-transfor=* \
1383   | --program-transfo=* | --program-transf=* \
1384   | --program-trans=* | --program-tran=* \
1385   | --progr-tra=* | --program-tr=* | --program-t=*)
1386     program_transform_name=$ac_optarg ;;
1387
1388   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1389     ac_prev=pdfdir ;;
1390   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391     pdfdir=$ac_optarg ;;
1392
1393   -psdir | --psdir | --psdi | --psd | --ps)
1394     ac_prev=psdir ;;
1395   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1396     psdir=$ac_optarg ;;
1397
1398   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399   | -silent | --silent | --silen | --sile | --sil)
1400     silent=yes ;;
1401
1402   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1403     ac_prev=sbindir ;;
1404   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1405   | --sbi=* | --sb=*)
1406     sbindir=$ac_optarg ;;
1407
1408   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410   | --sharedst | --shareds | --shared | --share | --shar \
1411   | --sha | --sh)
1412     ac_prev=sharedstatedir ;;
1413   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1416   | --sha=* | --sh=*)
1417     sharedstatedir=$ac_optarg ;;
1418
1419   -site | --site | --sit)
1420     ac_prev=site ;;
1421   -site=* | --site=* | --sit=*)
1422     site=$ac_optarg ;;
1423
1424   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1425     ac_prev=srcdir ;;
1426   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427     srcdir=$ac_optarg ;;
1428
1429   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430   | --syscon | --sysco | --sysc | --sys | --sy)
1431     ac_prev=sysconfdir ;;
1432   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434     sysconfdir=$ac_optarg ;;
1435
1436   -target | --target | --targe | --targ | --tar | --ta | --t)
1437     ac_prev=target_alias ;;
1438   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439     target_alias=$ac_optarg ;;
1440
1441   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1442     verbose=yes ;;
1443
1444   -version | --version | --versio | --versi | --vers | -V)
1445     ac_init_version=: ;;
1446
1447   -with-* | --with-*)
1448     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449     # Reject names that are not valid shell variable names.
1450     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451       { echo "$as_me: error: invalid package name: $ac_package" >&2
1452    { (exit 1); exit 1; }; }
1453     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1454     eval with_$ac_package=\$ac_optarg ;;
1455
1456   -without-* | --without-*)
1457     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1460       { echo "$as_me: error: invalid package name: $ac_package" >&2
1461    { (exit 1); exit 1; }; }
1462     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1463     eval with_$ac_package=no ;;
1464
1465   --x)
1466     # Obsolete; use --with-x.
1467     with_x=yes ;;
1468
1469   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1470   | --x-incl | --x-inc | --x-in | --x-i)
1471     ac_prev=x_includes ;;
1472   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1473   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1474     x_includes=$ac_optarg ;;
1475
1476   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1477   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1478     ac_prev=x_libraries ;;
1479   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1480   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1481     x_libraries=$ac_optarg ;;
1482
1483   -*) { echo "$as_me: error: unrecognized option: $ac_option
1484 Try \`$0 --help' for more information." >&2
1485    { (exit 1); exit 1; }; }
1486     ;;
1487
1488   *=*)
1489     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1490     # Reject names that are not valid shell variable names.
1491     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1492       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1493    { (exit 1); exit 1; }; }
1494     eval $ac_envvar=\$ac_optarg
1495     export $ac_envvar ;;
1496
1497   *)
1498     # FIXME: should be removed in autoconf 3.0.
1499     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1500     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1501       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1502     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1503     ;;
1504
1505   esac
1506 done
1507
1508 if test -n "$ac_prev"; then
1509   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1510   { echo "$as_me: error: missing argument to $ac_option" >&2
1511    { (exit 1); exit 1; }; }
1512 fi
1513
1514 # Be sure to have absolute directory names.
1515 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1516                 datadir sysconfdir sharedstatedir localstatedir includedir \
1517                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1518                 libdir localedir mandir
1519 do
1520   eval ac_val=\$$ac_var
1521   case $ac_val in
1522     [\\/$]* | ?:[\\/]* )  continue;;
1523     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1524   esac
1525   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1526    { (exit 1); exit 1; }; }
1527 done
1528
1529 # There might be people who depend on the old broken behavior: `$host'
1530 # used to hold the argument of --host etc.
1531 # FIXME: To remove some day.
1532 build=$build_alias
1533 host=$host_alias
1534 target=$target_alias
1535
1536 # FIXME: To remove some day.
1537 if test "x$host_alias" != x; then
1538   if test "x$build_alias" = x; then
1539     cross_compiling=maybe
1540     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1541     If a cross compiler is detected then cross compile mode will be used." >&2
1542   elif test "x$build_alias" != "x$host_alias"; then
1543     cross_compiling=yes
1544   fi
1545 fi
1546
1547 ac_tool_prefix=
1548 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1549
1550 test "$silent" = yes && exec 6>/dev/null
1551
1552
1553 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1554 ac_ls_di=`ls -di .` &&
1555 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1556   { echo "$as_me: error: Working directory cannot be determined" >&2
1557    { (exit 1); exit 1; }; }
1558 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1559   { echo "$as_me: error: pwd does not report name of working directory" >&2
1560    { (exit 1); exit 1; }; }
1561
1562
1563 # Find the source files, if location was not specified.
1564 if test -z "$srcdir"; then
1565   ac_srcdir_defaulted=yes
1566   # Try the directory containing this script, then the parent directory.
1567   ac_confdir=`$as_dirname -- "$0" ||
1568 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1569          X"$0" : 'X\(//\)[^/]' \| \
1570          X"$0" : 'X\(//\)$' \| \
1571          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1572 echo X"$0" |
1573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1574             s//\1/
1575             q
1576           }
1577           /^X\(\/\/\)[^/].*/{
1578             s//\1/
1579             q
1580           }
1581           /^X\(\/\/\)$/{
1582             s//\1/
1583             q
1584           }
1585           /^X\(\/\).*/{
1586             s//\1/
1587             q
1588           }
1589           s/.*/./; q'`
1590   srcdir=$ac_confdir
1591   if test ! -r "$srcdir/$ac_unique_file"; then
1592     srcdir=..
1593   fi
1594 else
1595   ac_srcdir_defaulted=no
1596 fi
1597 if test ! -r "$srcdir/$ac_unique_file"; then
1598   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1599   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1600    { (exit 1); exit 1; }; }
1601 fi
1602 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1603 ac_abs_confdir=`(
1604         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1605    { (exit 1); exit 1; }; }
1606         pwd)`
1607 # When building in place, set srcdir=.
1608 if test "$ac_abs_confdir" = "$ac_pwd"; then
1609   srcdir=.
1610 fi
1611 # Remove unnecessary trailing slashes from srcdir.
1612 # Double slashes in file names in object file debugging info
1613 # mess up M-x gdb in Emacs.
1614 case $srcdir in
1615 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1616 esac
1617 for ac_var in $ac_precious_vars; do
1618   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1619   eval ac_env_${ac_var}_value=\$${ac_var}
1620   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1621   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1622 done
1623
1624 #
1625 # Report the --help message.
1626 #
1627 if test "$ac_init_help" = "long"; then
1628   # Omit some internal or obsolete options to make the list less imposing.
1629   # This message is too long to be a string in the A/UX 3.1 sh.
1630   cat <<_ACEOF
1631 \`configure' configures syncevolution 1.1 to adapt to many kinds of systems.
1632
1633 Usage: $0 [OPTION]... [VAR=VALUE]...
1634
1635 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1636 VAR=VALUE.  See below for descriptions of some of the useful variables.
1637
1638 Defaults for the options are specified in brackets.
1639
1640 Configuration:
1641   -h, --help              display this help and exit
1642       --help=short        display options specific to this package
1643       --help=recursive    display the short help of all the included packages
1644   -V, --version           display version information and exit
1645   -q, --quiet, --silent   do not print \`checking...' messages
1646       --cache-file=FILE   cache test results in FILE [disabled]
1647   -C, --config-cache      alias for \`--cache-file=config.cache'
1648   -n, --no-create         do not create output files
1649       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1650
1651 Installation directories:
1652   --prefix=PREFIX         install architecture-independent files in PREFIX
1653                           [$ac_default_prefix]
1654   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1655                           [PREFIX]
1656
1657 By default, \`make install' will install all the files in
1658 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1659 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1660 for instance \`--prefix=\$HOME'.
1661
1662 For better control, use the options below.
1663
1664 Fine tuning of the installation directories:
1665   --bindir=DIR           user executables [EPREFIX/bin]
1666   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1667   --libexecdir=DIR       program executables [EPREFIX/libexec]
1668   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1669   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1670   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1671   --libdir=DIR           object code libraries [EPREFIX/lib]
1672   --includedir=DIR       C header files [PREFIX/include]
1673   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1674   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1675   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1676   --infodir=DIR          info documentation [DATAROOTDIR/info]
1677   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1678   --mandir=DIR           man documentation [DATAROOTDIR/man]
1679   --docdir=DIR           documentation root [DATAROOTDIR/doc/syncevolution]
1680   --htmldir=DIR          html documentation [DOCDIR]
1681   --dvidir=DIR           dvi documentation [DOCDIR]
1682   --pdfdir=DIR           pdf documentation [DOCDIR]
1683   --psdir=DIR            ps documentation [DOCDIR]
1684 _ACEOF
1685
1686   cat <<\_ACEOF
1687
1688 Program names:
1689   --program-prefix=PREFIX            prepend PREFIX to installed program names
1690   --program-suffix=SUFFIX            append SUFFIX to installed program names
1691   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1692
1693 System types:
1694   --build=BUILD     configure for building on BUILD [guessed]
1695   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1696 _ACEOF
1697 fi
1698
1699 if test -n "$ac_init_help"; then
1700   case $ac_init_help in
1701      short | recursive ) echo "Configuration of syncevolution 1.1:";;
1702    esac
1703   cat <<\_ACEOF
1704
1705 Optional Features:
1706   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1707   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1708   --enable-shared         build backends as dynamically loadable modules
1709   --enable-static         build backends also as static libraries
1710   --enable-unit-tests     enables tests embedded in the source code of the
1711                           library (changes content of executable)
1712   --enable-integration-tests
1713                           enables tests outside of the library (can be used
1714                           together with normal builds of the library)
1715   --enable-static-cxx     build executables which contain libstdc++ instead of
1716                           requiring suitable libstdc++.so to run
1717   --enable-evolution-compatibility
1718                           build executables which only call Evolution via
1719                           dlopen/dlsym: this avoids all hard dependencies on
1720                           EDS shared objects, but might lead to crashes when
1721                           their ABI changes
1722   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1723                           current build directory instead of the standard
1724                           library path
1725   --enable-maemo          enables some hacks which work around problems with
1726                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1727   --disable-dependency-tracking  speeds up one-time build
1728   --enable-dependency-tracking   do not reject slow dependency extractors
1729   --enable-libcurl        enable libcurl as transport layer
1730   --enable-libsoup        enable libsoup as transport layer
1731   --enable-bluetooth      enable bluetooth transport support
1732   --disable-ssl-certificate-check
1733                           Disable SSL certificate checking in all server
1734                           *templates*. Users can still choose to enable or
1735                           disable it in their configuration. This is necessary
1736                           on platforms where the transport library has
1737                           problems verifying the server's certificate (libsoup
1738                           + Google,
1739                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1740   --enable-gui=gui type   enables building the GTK+ UI that uses the
1741                           SyncEvolution DBus API. Options: gtk, moblin, all
1742                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1743                           default for --enable-gui without type. No GUI is
1744                           built when --enable-gui is not used.
1745   --enable-core           enables building the core SyncEvolution (library,
1746                           backends)
1747   --enable-dbus-service   enables building the dbus service executable and all
1748                           related features (the DBus wrapper library, command
1749                           line usage of server, etc).
1750   --enable-gnome-keyring  enables or disables support for the GNOME keyring;
1751                           default is on if development files are available
1752   --enable-notify         send notifications for automatic sync events
1753   --disable-nls           do not use Native Language Support
1754   --enable-gnome-bluetooth-panel-plugin
1755                           GNOME Bluetooth panel plugin adding a "sync" button
1756                           for paired devices (off by default)
1757   --enable-doc            generate backend and DBus API documentation
1758 --enable-addressbook    enable access to Mac OS X address book (default off)
1759 --disable-ebook         disable access to Evolution addressbooks (must be
1760                           used to compile without it)
1761 --disable-ecal          disable access to Evolution calendars and tasks
1762                           (must be used to compile without it)
1763 --disable-file          disable file-based backend which stores items in
1764                           separate files in a fixed directory (default on)
1765 --enable-kcalextended   enable support for Maemo's KCalExtended storage
1766 --enable-maemo-calendar enable access to PIM data stored in Maemo 5 calendar
1767                           application (default off)
1768 --enable-qtcontacts     enable support for QtMobility's QtContacts storage
1769 --enable-sqlite         enable access to PIM data stored in SQLite files
1770                           (experimental, default off)
1771 --enable-xmlrpc         enable XMLRPC-based backend which stores items on a
1772                           central web service (default off)
1773   --enable-shared[=PKGS]  build shared libraries [default=yes]
1774   --enable-static[=PKGS]  build static libraries [default=yes]
1775   --enable-fast-install[=PKGS]
1776                           optimize for fast installation [default=yes]
1777   --disable-libtool-lock  avoid locking (might break parallel builds)
1778   --enable-dbus-timeout-hack
1779                           Enables code which overrides the default timeout in
1780                           dbus_connection_send_with_reply() so that the method
1781                           call never times out. Needed for libecal/ebook >=
1782                           2.30, so enabled by default if either of these is
1783                           enabled.
1784
1785 Optional Packages:
1786   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1787   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1788   --with-synthesis-src=<base directory|svn URL|git URL>
1789                           Specifies location of the Synthesis root directory.
1790                           Use this when the Synthesis library is to be
1791                           compiled as part of the SyncEvolution compilation.
1792                           In release versions of SyncEvolution, a copy of the
1793                           Synthesis code is bundled under 'src/synthesis' and
1794                           compiled unless something else is specified.
1795                           --with-synthesis-src can be given a path to sources
1796                           checked out already, a Subversion repository URL or
1797                           a git repository URL. When given a repository URL,
1798                           then the configure script will checkout the sources
1799                           into 'src/synthesis-workdir' or update that working
1800                           copy if the directory already exists. Default:
1801                           bundled source in src/synthesis (in released
1802                           SyncEvolution sources),  otherwise.
1803   --with-syncml-engines=client|server|both
1804                           Determines which kind of support for SyncML is
1805                           compiled and linked into SyncEvolution. Default is
1806                           both. Currently has no effect.
1807   --with-synthesis-username=<svn username>
1808                           username to use when checking out
1809                           --with-synthesis-src sources from Subversion,
1810                           default 'guest'
1811   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1812                           Identifies which source revision to use from
1813                           --with-synthesis-src repository, empty string stands
1814                           for latest. Default for default --synthesis-src:
1815                           syncevolution-0.9
1816   --with-ca-certificates=<colon separated list of files>
1817                           Specifies location of one or more CA certificate
1818                           files. This sets the default value for the
1819                           SSLServerCertificates option. Default: empty when
1820                           using libcurl (because it has its own default), a
1821                           list of paths known to work for Debian and Red Hat
1822                           otherwise.
1823   --with-boost[=DIR]      use boost (default is yes) - it is possible to
1824                           specify the root directory for boost (optional)
1825   --with-boost-libdir=LIB_DIR
1826                           Force given directory for boost libraries. Note that
1827                           this will overwrite library path detection, so use
1828                           this parameter only if default library detection
1829                           fails and you know exactly where your boost
1830                           libraries are located.
1831   --with-rst2man=<path to reStructuredText to man converter>
1832                           Specifies an explicit path to the utility if not
1833                           found in PATH. An explicit --without-rst2man or not
1834                           having it installed turn off building of man pages.
1835   --with-rst2html=<path to reStructuredText to HTML converter>
1836                           Specifies an explicit path to the utility if not
1837                           found in PATH. An explicit --without-rst2html or not
1838                           having it installed turn off building of README in
1839                           HTML format.
1840   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1841   --with-pic              try to use only PIC/non-PIC objects [default=use
1842                           both]
1843   --with-tags[=TAGS]      include additional configurations [automatic]
1844   --with-qt               Path to Qt [Look in PATH and /usr/local/Trolltech]
1845
1846 Some influential environment variables:
1847   CC          C compiler command
1848   CFLAGS      C compiler flags
1849   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1850               nonstandard directory <lib dir>
1851   LIBS        libraries to pass to the linker, e.g. -l<library>
1852   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1853               you have headers in a nonstandard directory <include dir>
1854   CPP         C preprocessor
1855   PKG_CONFIG  path to pkg-config utility
1856   LIBSOUP_CFLAGS
1857               C compiler flags for LIBSOUP, overriding pkg-config
1858   LIBSOUP_LIBS
1859               linker flags for LIBSOUP, overriding pkg-config
1860   LIBOPENOBEX_CFLAGS
1861               C compiler flags for LIBOPENOBEX, overriding pkg-config
1862   LIBOPENOBEX_LIBS
1863               linker flags for LIBOPENOBEX, overriding pkg-config
1864   BLUEZ_CFLAGS
1865               C compiler flags for BLUEZ, overriding pkg-config
1866   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1867   KEYRING_CFLAGS
1868               C compiler flags for KEYRING, overriding pkg-config
1869   KEYRING_LIBS
1870               linker flags for KEYRING, overriding pkg-config
1871   KEYRING_2_20_CFLAGS
1872               C compiler flags for KEYRING_2_20, overriding pkg-config
1873   KEYRING_2_20_LIBS
1874               linker flags for KEYRING_2_20, overriding pkg-config
1875   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1876   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1877   LIBNOTIFY_CFLAGS
1878               C compiler flags for LIBNOTIFY, overriding pkg-config
1879   LIBNOTIFY_LIBS
1880               linker flags for LIBNOTIFY, overriding pkg-config
1881   DBUS_GLIB_CFLAGS
1882               C compiler flags for DBUS_GLIB, overriding pkg-config
1883   DBUS_GLIB_LIBS
1884               linker flags for DBUS_GLIB, overriding pkg-config
1885   MX_GTK_0_99_1_CFLAGS
1886               C compiler flags for MX_GTK_0_99_1, overriding pkg-config
1887   MX_GTK_0_99_1_LIBS
1888               linker flags for MX_GTK_0_99_1, overriding pkg-config
1889   UNIQUE_CFLAGS
1890               C compiler flags for UNIQUE, overriding pkg-config
1891   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
1892   GTK_2_18_CFLAGS
1893               C compiler flags for GTK_2_18, overriding pkg-config
1894   GTK_2_18_LIBS
1895               linker flags for GTK_2_18, overriding pkg-config
1896   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
1897   GUI_LIBS    linker flags for GUI, overriding pkg-config
1898   CXX         C++ compiler command
1899   CXXFLAGS    C++ compiler flags
1900   SYNTHESIS_CFLAGS
1901               C compiler flags for SYNTHESIS, overriding pkg-config
1902   SYNTHESIS_LIBS
1903               linker flags for SYNTHESIS, overriding pkg-config
1904   GNOMEBLUETOOTH_CFLAGS
1905               C compiler flags for GNOMEBLUETOOTH, overriding pkg-config
1906   GNOMEBLUETOOTH_LIBS
1907               linker flags for GNOMEBLUETOOTH, overriding pkg-config
1908   EPACKAGE_CFLAGS
1909               C compiler flags for EPACKAGE, overriding pkg-config
1910   EPACKAGE_LIBS
1911               linker flags for EPACKAGE, overriding pkg-config
1912   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1913   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
1914   EBOOK_CFLAGS
1915               C compiler flags for EBOOK, overriding pkg-config
1916   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
1917   LIBICAL_AVAILABLE_CFLAGS
1918               C compiler flags for LIBICAL_AVAILABLE, overriding pkg-config
1919   LIBICAL_AVAILABLE_LIBS
1920               linker flags for LIBICAL_AVAILABLE, overriding pkg-config
1921   KCALEXTENDED_CFLAGS
1922               C compiler flags for KCALEXTENDED, overriding pkg-config
1923   KCALEXTENDED_LIBS
1924               linker flags for KCALEXTENDED, overriding pkg-config
1925   MCALB_CFLAGS
1926               C compiler flags for MCALB, overriding pkg-config
1927   MCALB_LIBS  linker flags for MCALB, overriding pkg-config
1928   SQLITE_CFLAGS
1929               C compiler flags for SQLITE, overriding pkg-config
1930   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1931   CXXCPP      C++ preprocessor
1932   F77         Fortran 77 compiler command
1933   FFLAGS      Fortran 77 compiler flags
1934   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1935   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1936   GTHREAD_CFLAGS
1937               C compiler flags for GTHREAD, overriding pkg-config
1938   GTHREAD_LIBS
1939               linker flags for GTHREAD, overriding pkg-config
1940   GOBJECT_CFLAGS
1941               C compiler flags for GOBJECT, overriding pkg-config
1942   GOBJECT_LIBS
1943               linker flags for GOBJECT, overriding pkg-config
1944   QT_PATH     Path to the Qt installation
1945   QMAKE       Qt Makefile generator command
1946   MOC         Qt Meta Object Compiler command
1947   UIC         Qt User Interface Compiler command
1948   RCC         Qt Resource Compiler command
1949   GLIB216_CFLAGS
1950               C compiler flags for GLIB216, overriding pkg-config
1951   GLIB216_LIBS
1952               linker flags for GLIB216, overriding pkg-config
1953   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1954   NSS_LIBS    linker flags for NSS, overriding pkg-config
1955
1956 Use these variables to override the choices made by `configure' or to help
1957 it to find libraries and programs with nonstandard names/locations.
1958
1959 _ACEOF
1960 ac_status=$?
1961 fi
1962
1963 if test "$ac_init_help" = "recursive"; then
1964   # If there are subdirs, report their specific --help.
1965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966     test -d "$ac_dir" || continue
1967     ac_builddir=.
1968
1969 case "$ac_dir" in
1970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *)
1972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1973   # A ".." for each directory in $ac_dir_suffix.
1974   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1975   case $ac_top_builddir_sub in
1976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1978   esac ;;
1979 esac
1980 ac_abs_top_builddir=$ac_pwd
1981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982 # for backward compatibility:
1983 ac_top_builddir=$ac_top_build_prefix
1984
1985 case $srcdir in
1986   .)  # We are building in place.
1987     ac_srcdir=.
1988     ac_top_srcdir=$ac_top_builddir_sub
1989     ac_abs_top_srcdir=$ac_pwd ;;
1990   [\\/]* | ?:[\\/]* )  # Absolute name.
1991     ac_srcdir=$srcdir$ac_dir_suffix;
1992     ac_top_srcdir=$srcdir
1993     ac_abs_top_srcdir=$srcdir ;;
1994   *) # Relative name.
1995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996     ac_top_srcdir=$ac_top_build_prefix$srcdir
1997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1998 esac
1999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000
2001     cd "$ac_dir" || { ac_status=$?; continue; }
2002     # Check for guested configure.
2003     if test -f "$ac_srcdir/configure.gnu"; then
2004       echo &&
2005       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006     elif test -f "$ac_srcdir/configure"; then
2007       echo &&
2008       $SHELL "$ac_srcdir/configure" --help=recursive
2009     else
2010       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011     fi || ac_status=$?
2012     cd "$ac_pwd" || { ac_status=$?; break; }
2013   done
2014 fi
2015
2016 test -n "$ac_init_help" && exit $ac_status
2017 if $ac_init_version; then
2018   cat <<\_ACEOF
2019 syncevolution configure 1.1
2020 generated by GNU Autoconf 2.61
2021
2022 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2024 This configure script is free software; the Free Software Foundation
2025 gives unlimited permission to copy, distribute and modify it.
2026 _ACEOF
2027   exit
2028 fi
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2032
2033 It was created by syncevolution $as_me 1.1, which was
2034 generated by GNU Autoconf 2.61.  Invocation command line was
2035
2036   $ $0 $@
2037
2038 _ACEOF
2039 exec 5>>config.log
2040 {
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2045
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2054
2055 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2056 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2059 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2060 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2061 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2062
2063 _ASUNAME
2064
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097   for ac_arg
2098   do
2099     case $ac_arg in
2100     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102     | -silent | --silent | --silen | --sile | --sil)
2103       continue ;;
2104     *\'*)
2105       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106     esac
2107     case $ac_pass in
2108     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2109     2)
2110       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111       if test $ac_must_keep_next = true; then
2112         ac_must_keep_next=false # Got value, back to normal.
2113       else
2114         case $ac_arg in
2115           *=* | --config-cache | -C | -disable-* | --disable-* \
2116           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118           | -with-* | --with-* | -without-* | --without-* | --x)
2119             case "$ac_configure_args0 " in
2120               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121             esac
2122             ;;
2123           -* ) ac_must_keep_next=true ;;
2124         esac
2125       fi
2126       ac_configure_args="$ac_configure_args '$ac_arg'"
2127       ;;
2128     esac
2129   done
2130 done
2131 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log.  We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140   # Save into config.log some information that might help in debugging.
2141   {
2142     echo
2143
2144     cat <<\_ASBOX
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2148 _ASBOX
2149     echo
2150     # The following way of writing the cache mishandles newlines in values,
2151 (
2152   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153     eval ac_val=\$$ac_var
2154     case $ac_val in #(
2155     *${as_nl}*)
2156       case $ac_var in #(
2157       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2158 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2159       esac
2160       case $ac_var in #(
2161       _ | IFS | as_nl) ;; #(
2162       *) $as_unset $ac_var ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186     echo
2187     for ac_var in $ac_subst_vars
2188     do
2189       eval ac_val=\$$ac_var
2190       case $ac_val in
2191       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192       esac
2193       echo "$ac_var='\''$ac_val'\''"
2194     done | sort
2195     echo
2196
2197     if test -n "$ac_subst_files"; then
2198       cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       echo "$as_me: caught signal $ac_signal"
2227     echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271   set x "$CONFIG_SITE"
2272 elif test "x$prefix" != xNONE; then
2273   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2274 else
2275   set x "$ac_default_prefix/share/config.site" \
2276         "$ac_default_prefix/etc/config.site"
2277 fi
2278 shift
2279 for ac_site_file
2280 do
2281   if test -r "$ac_site_file"; then
2282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2283 echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file"
2286   fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special
2291   # files actually), so we avoid doing that.
2292   if test -f "$cache_file"; then
2293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2294 echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2302 echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2329 echo "$as_me:   former value:  $ac_old_val" >&2;}
2330         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2331 echo "$as_me:   current value: $ac_new_val" >&2;}
2332         ac_cache_corrupted=:
2333       fi;;
2334   esac
2335   # Pass precious variables to config.status.
2336   if test "$ac_new_set" = set; then
2337     case $ac_new_val in
2338     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     *) ac_arg=$ac_var=$ac_new_val ;;
2340     esac
2341     case " $ac_configure_args " in
2342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2344     esac
2345   fi
2346 done
2347 if $ac_cache_corrupted; then
2348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386 # STABLE_VERSION=1.0.1+
2387
2388
2389 am__api_version='1.10'
2390
2391 ac_aux_dir=
2392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2393   if test -f "$ac_dir/install-sh"; then
2394     ac_aux_dir=$ac_dir
2395     ac_install_sh="$ac_aux_dir/install-sh -c"
2396     break
2397   elif test -f "$ac_dir/install.sh"; then
2398     ac_aux_dir=$ac_dir
2399     ac_install_sh="$ac_aux_dir/install.sh -c"
2400     break
2401   elif test -f "$ac_dir/shtool"; then
2402     ac_aux_dir=$ac_dir
2403     ac_install_sh="$ac_aux_dir/shtool install -c"
2404     break
2405   fi
2406 done
2407 if test -z "$ac_aux_dir"; then
2408   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2409 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
2421
2422 # Find a good install program.  We prefer a C program (faster),
2423 # so one script is as good as another.  But avoid the broken or
2424 # incompatible versions:
2425 # SysV /etc/install, /usr/sbin/install
2426 # SunOS /usr/etc/install
2427 # IRIX /sbin/install
2428 # AIX /bin/install
2429 # AmigaOS /C/install, which installs bootblocks on floppy discs
2430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433 # OS/2's system install, which has a completely different semantic
2434 # ./install, which can be erroneously created by make from ./install.sh.
2435 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2436 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2437 if test -z "$INSTALL"; then
2438 if test "${ac_cv_path_install+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446   # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in
2448   ./ | .// | /cC/* | \
2449   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2451   /usr/ucb/* ) ;;
2452   *)
2453     # OSF1 and SCO ODT 3.0 have their own names for install.
2454     # Don't use installbsd from OSF since it installs stuff as root
2455     # by default.
2456     for ac_prog in ginstall scoinst install; do
2457       for ac_exec_ext in '' $ac_executable_extensions; do
2458         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459           if test $ac_prog = install &&
2460             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461             # AIX install.  It has an incompatible calling convention.
2462             :
2463           elif test $ac_prog = install &&
2464             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # program-specific install script used by HP pwplus--don't use.
2466             :
2467           else
2468             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469             break 3
2470           fi
2471         fi
2472       done
2473     done
2474     ;;
2475 esac
2476 done
2477 IFS=$as_save_IFS
2478
2479
2480 fi
2481   if test "${ac_cv_path_install+set}" = set; then
2482     INSTALL=$ac_cv_path_install
2483   else
2484     # As a last resort, use the slow shell script.  Don't cache a
2485     # value for INSTALL within a source directory, because that will
2486     # break other packages using the cache if that directory is
2487     # removed, or if the value is a relative name.
2488     INSTALL=$ac_install_sh
2489   fi
2490 fi
2491 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2492 echo "${ECHO_T}$INSTALL" >&6; }
2493
2494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2495 # It thinks the first close brace ends the variable substitution.
2496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497
2498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499
2500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2501
2502 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2503 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2504 # Just in case
2505 sleep 1
2506 echo timestamp > conftest.file
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments.  Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2511 # directory).
2512 if (
2513    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2514    if test "$*" = "X"; then
2515       # -L didn't work.
2516       set X `ls -t $srcdir/configure conftest.file`
2517    fi
2518    rm -f conftest.file
2519    if test "$*" != "X $srcdir/configure conftest.file" \
2520       && test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522       # If neither matched, then we have a broken ls.  This can happen
2523       # if, for instance, CONFIG_SHELL is bash and it inherits a
2524       # broken ls alias from the environment.  This has actually
2525       # happened.  Such a system could not be considered "sane".
2526       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2527 alias in your environment" >&5
2528 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2529 alias in your environment" >&2;}
2530    { (exit 1); exit 1; }; }
2531    fi
2532
2533    test "$2" = conftest.file
2534    )
2535 then
2536    # Ok.
2537    :
2538 else
2539    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2540 Check your system clock" >&5
2541 echo "$as_me: error: newly created file is older than distributed files!
2542 Check your system clock" >&2;}
2543    { (exit 1); exit 1; }; }
2544 fi
2545 { echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6; }
2547 test "$program_prefix" != NONE &&
2548   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2549 # Use a double $ so make ignores it.
2550 test "$program_suffix" != NONE &&
2551   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2552 # Double any \ or $.  echo might interpret backslashes.
2553 # By default was `s,x,x', remove it if useless.
2554 cat <<\_ACEOF >conftest.sed
2555 s/[\\$]/&&/g;s/;s,x,x,$//
2556 _ACEOF
2557 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2558 rm -f conftest.sed
2559
2560 # expand $ac_aux_dir to an absolute path
2561 am_aux_dir=`cd $ac_aux_dir && pwd`
2562
2563 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --run true"; then
2566   am_missing_run="$MISSING --run "
2567 else
2568   am_missing_run=
2569   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2570 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2571 fi
2572
2573 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2575 if test -z "$MKDIR_P"; then
2576   if test "${ac_cv_path_mkdir+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_prog in mkdir gmkdir; do
2585          for ac_exec_ext in '' $ac_executable_extensions; do
2586            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588              'mkdir (GNU coreutils) '* | \
2589              'mkdir (coreutils) '* | \
2590              'mkdir (fileutils) '4.1*)
2591                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2592                break 3;;
2593            esac
2594          done
2595        done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600
2601   if test "${ac_cv_path_mkdir+set}" = set; then
2602     MKDIR_P="$ac_cv_path_mkdir -p"
2603   else
2604     # As a last resort, use the slow shell script.  Don't cache a
2605     # value for MKDIR_P within a source directory, because that will
2606     # break other packages using the cache if that directory is
2607     # removed, or if the value is a relative name.
2608     test -d ./--version && rmdir ./--version
2609     MKDIR_P="$ac_install_sh -d"
2610   fi
2611 fi
2612 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 echo "${ECHO_T}$MKDIR_P" >&6; }
2614
2615 mkdir_p="$MKDIR_P"
2616 case $mkdir_p in
2617   [\\/$]* | ?:[\\/]*) ;;
2618   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 esac
2620
2621 for ac_prog in gawk mawk nawk awk
2622 do
2623   # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$AWK"; then
2631   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_AWK="$ac_prog"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 AWK=$ac_cv_prog_AWK
2651 if test -n "$AWK"; then
2652   { echo "$as_me:$LINENO: result: $AWK" >&5
2653 echo "${ECHO_T}$AWK" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659
2660   test -n "$AWK" && break
2661 done
2662
2663 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2665 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2666 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   cat >conftest.make <<\_ACEOF
2670 SHELL = /bin/sh
2671 all:
2672         @echo '@@@%%%=$(MAKE)=@@@%%%'
2673 _ACEOF
2674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2676   *@@@%%%=?*=@@@%%%*)
2677     eval ac_cv_prog_make_${ac_make}_set=yes;;
2678   *)
2679     eval ac_cv_prog_make_${ac_make}_set=no;;
2680 esac
2681 rm -f conftest.make
2682 fi
2683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2684   { echo "$as_me:$LINENO: result: yes" >&5
2685 echo "${ECHO_T}yes" >&6; }
2686   SET_MAKE=
2687 else
2688   { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2690   SET_MAKE="MAKE=${MAKE-make}"
2691 fi
2692
2693 rm -rf .tst 2>/dev/null
2694 mkdir .tst 2>/dev/null
2695 if test -d .tst; then
2696   am__leading_dot=.
2697 else
2698   am__leading_dot=_
2699 fi
2700 rmdir .tst 2>/dev/null
2701
2702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2703   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2704   # is not polluted with repeated "-I."
2705   am__isrc=' -I$(srcdir)'
2706   # test to see if srcdir already configured
2707   if test -f $srcdir/config.status; then
2708     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2710    { (exit 1); exit 1; }; }
2711   fi
2712 fi
2713
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716   if (cygpath --version) >/dev/null 2>/dev/null; then
2717     CYGPATH_W='cygpath -w'
2718   else
2719     CYGPATH_W=echo
2720   fi
2721 fi
2722
2723
2724 # Define the identity of the package.
2725  PACKAGE='syncevolution'
2726  VERSION='1.1'
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2731 _ACEOF
2732
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2736 _ACEOF
2737
2738 # Some tools Automake needs.
2739
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2741
2742
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2744
2745
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2747
2748
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2750
2751
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753
2754 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2755
2756 # Installed binaries are usually stripped using `strip' when the user
2757 # run `make install-strip'.  However `strip' might not be the right
2758 # tool to use in cross-compilation environments, therefore Automake
2759 # will honor the `STRIP' environment variable to overrule this program.
2760 if test "$cross_compiling" != no; then
2761   if test -n "$ac_tool_prefix"; then
2762   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}strip; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_STRIP+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   if test -n "$STRIP"; then
2770   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 STRIP=$ac_cv_prog_STRIP
2790 if test -n "$STRIP"; then
2791   { echo "$as_me:$LINENO: result: $STRIP" >&5
2792 echo "${ECHO_T}$STRIP" >&6; }
2793 else
2794   { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$ac_cv_prog_STRIP"; then
2801   ac_ct_STRIP=$STRIP
2802   # Extract the first word of "strip", so it can be a program name with args.
2803 set dummy strip; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   if test -n "$ac_ct_STRIP"; then
2810   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817   for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_ac_ct_STRIP="strip"
2820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2830 if test -n "$ac_ct_STRIP"; then
2831   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2832 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2833 else
2834   { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2836 fi
2837
2838   if test "x$ac_ct_STRIP" = x; then
2839     STRIP=":"
2840   else
2841     case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet.  If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&5
2846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet.  If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     STRIP=$ac_ct_STRIP
2852   fi
2853 else
2854   STRIP="$ac_cv_prog_STRIP"
2855 fi
2856
2857 fi
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859
2860 # We need awk for the "check" target.  The system "awk" is bad on
2861 # some platforms.
2862 # Always define AMTAR for backward compatibility.
2863
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2865
2866
2867 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2868 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2869 # Loop over all known methods to create a tar archive until one works.
2870 _am_tools='gnutar plaintar pax cpio none'
2871 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2872 # Do not fold the above two line into one, because Tru64 sh and
2873 # Solaris sh will not grok spaces in the rhs of `-'.
2874 for _am_tool in $_am_tools
2875 do
2876   case $_am_tool in
2877   gnutar)
2878     for _am_tar in tar gnutar gtar;
2879     do
2880       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2881    ($_am_tar --version) >&5 2>&5
2882    ac_status=$?
2883    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884    (exit $ac_status); } && break
2885     done
2886     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2887     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2888     am__untar="$_am_tar -xf -"
2889     ;;
2890   plaintar)
2891     # Must skip GNU tar: if it does not support --format= it doesn't create
2892     # ustar tarball either.
2893     (tar --version) >/dev/null 2>&1 && continue
2894     am__tar='tar chf - "$$tardir"'
2895     am__tar_='tar chf - "$tardir"'
2896     am__untar='tar xf -'
2897     ;;
2898   pax)
2899     am__tar='pax -L -x ustar -w "$$tardir"'
2900     am__tar_='pax -L -x ustar -w "$tardir"'
2901     am__untar='pax -r'
2902     ;;
2903   cpio)
2904     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2905     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2906     am__untar='cpio -i -H ustar -d'
2907     ;;
2908   none)
2909     am__tar=false
2910     am__tar_=false
2911     am__untar=false
2912     ;;
2913   esac
2914
2915   # If the value was cached, stop now.  We just wanted to have am__tar
2916   # and am__untar set.
2917   test -n "${am_cv_prog_tar_ustar}" && break
2918
2919   # tar/untar a dummy directory, and stop if the command works
2920   rm -rf conftest.dir
2921   mkdir conftest.dir
2922   echo GrepMe > conftest.dir/file
2923   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2924    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2925    ac_status=$?
2926    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927    (exit $ac_status); }
2928   rm -rf conftest.dir
2929   if test -s conftest.tar; then
2930     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2931    ($am__untar <conftest.tar) >&5 2>&5
2932    ac_status=$?
2933    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934    (exit $ac_status); }
2935     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2936   fi
2937 done
2938 rm -rf conftest.dir
2939
2940 if test "${am_cv_prog_tar_ustar+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   am_cv_prog_tar_ustar=$_am_tool
2944 fi
2945
2946 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2947 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2948
2949
2950
2951
2952
2953
2954
2955
2956 ac_config_headers="$ac_config_headers config.h"
2957
2958
2959
2960
2961 DEVICE_TYPE=workstation
2962
2963
2964 # Check whether --with-synthesis-src was given.
2965 if test "${with_synthesis_src+set}" = set; then
2966   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
2967              test "$SYNTHESISSRC" != "yes" || { { echo "$as_me:$LINENO: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&5
2968 echo "$as_me: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&2;}
2969    { (exit 1); exit 1; }; }
2970 else
2971   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
2972 fi
2973
2974
2975
2976 # Check whether --with-syncml-engines was given.
2977 if test "${with_syncml_engines+set}" = set; then
2978   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
2979 else
2980   SYNCML_ENGINES=both
2981 fi
2982
2983
2984 case $SYNCML_ENGINES in both|client)
2985 cat >>confdefs.h <<\_ACEOF
2986 #define ENABLE_SYNCML_CLIENT 1
2987 _ACEOF
2988 ;; esac
2989 case $SYNCML_ENGINES in both|server)
2990 cat >>confdefs.h <<\_ACEOF
2991 #define ENABLE_SYNCML_SERVER 1
2992 _ACEOF
2993 ;; esac
2994 case $SYNCML_ENGINES in both|server|client) true;; *) { { echo "$as_me:$LINENO: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&5
2995 echo "$as_me: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&2;}
2996    { (exit 1); exit 1; }; };; esac
2997
2998
2999 # Check whether --with-synthesis-username was given.
3000 if test "${with_synthesis_username+set}" = set; then
3001   withval=$with_synthesis_username; USERNAME="$withval"
3002 else
3003   USERNAME="guest"
3004 fi
3005
3006
3007
3008 # Check whether --with-synthesis-revision was given.
3009 if test "${with_synthesis_revision+set}" = set; then
3010   withval=$with_synthesis_revision; REVISION="$withval"
3011 fi
3012
3013
3014 # Check whether --enable-shared was given.
3015 if test "${enable_shared+set}" = set; then
3016   enableval=$enable_shared; enable_shared="$enableval"
3017 else
3018   enable_shared="no"
3019 fi
3020
3021
3022 # Check whether --enable-static was given.
3023 if test "${enable_static+set}" = set; then
3024   enableval=$enable_static; enable_static="$enableval"
3025 else
3026   enable_static="no"
3027 fi
3028
3029
3030 # Check whether --enable-unit-tests was given.
3031 if test "${enable_unit_tests+set}" = set; then
3032   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
3033 else
3034   enable_unit_tests="no"
3035 fi
3036
3037 # Check whether --enable-integration-tests was given.
3038 if test "${enable_integration_tests+set}" = set; then
3039   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
3040 else
3041   enable_integration_tests="no"
3042 fi
3043
3044
3045 # Check whether --enable-static-cxx was given.
3046 if test "${enable_static_cxx+set}" = set; then
3047   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
3048 else
3049   enable_static_cxx="no"
3050 fi
3051
3052
3053 # Check whether --enable-evolution-compatibility was given.
3054 if test "${enable_evolution_compatibility+set}" = set; then
3055   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
3056 else
3057   enable_evolution_compatibility="no"
3058 fi
3059
3060
3061 # Check whether --enable-developer-mode was given.
3062 if test "${enable_developer_mode+set}" = set; then
3063   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
3064 else
3065   enable_developer_mode="no"
3066 fi
3067
3068
3069 # Maemo hacks:
3070 # - wrap e_book_from_string() to fix invalid parameter
3071 # - don't use UTF-8 encoding in Perl script
3072 # Check whether --enable-maemo was given.
3073 if test "${enable_maemo+set}" = set; then
3074   enableval=$enable_maemo;
3075 cat >>confdefs.h <<\_ACEOF
3076 #define ENABLE_MAEMO 1
3077 _ACEOF
3078
3079                DEVICE_TYPE=Maemo
3080                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
3081 fi
3082
3083
3084
3085 DEPDIR="${am__leading_dot}deps"
3086
3087 ac_config_commands="$ac_config_commands depfiles"
3088
3089
3090 am_make=${MAKE-make}
3091 cat > confinc << 'END'
3092 am__doit:
3093         @echo done
3094 .PHONY: am__doit
3095 END
3096 # If we don't find an include directive, just comment out the code.
3097 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3098 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3099 am__include="#"
3100 am__quote=
3101 _am_result=none
3102 # First try GNU make style include.
3103 echo "include confinc" > confmf
3104 # We grep out `Entering directory' and `Leaving directory'
3105 # messages which can occur if `w' ends up in MAKEFLAGS.
3106 # In particular we don't look at `^make:' because GNU make might
3107 # be invoked under some other name (usually "gmake"), in which
3108 # case it prints its new name instead of `make'.
3109 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3110    am__include=include
3111    am__quote=
3112    _am_result=GNU
3113 fi
3114 # Now try BSD make style include.
3115 if test "$am__include" = "#"; then
3116    echo '.include "confinc"' > confmf
3117    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3118       am__include=.include
3119       am__quote="\""
3120       _am_result=BSD
3121    fi
3122 fi
3123
3124
3125 { echo "$as_me:$LINENO: result: $_am_result" >&5
3126 echo "${ECHO_T}$_am_result" >&6; }
3127 rm -f confinc confmf
3128
3129 # Check whether --enable-dependency-tracking was given.
3130 if test "${enable_dependency_tracking+set}" = set; then
3131   enableval=$enable_dependency_tracking;
3132 fi
3133
3134 if test "x$enable_dependency_tracking" != xno; then
3135   am_depcomp="$ac_aux_dir/depcomp"
3136   AMDEPBACKSLASH='\'
3137 fi
3138  if test "x$enable_dependency_tracking" != xno; then
3139   AMDEP_TRUE=
3140   AMDEP_FALSE='#'
3141 else
3142   AMDEP_TRUE='#'
3143   AMDEP_FALSE=
3144 fi
3145
3146
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 if test -n "$ac_tool_prefix"; then
3153   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   if test -n "$CC"; then
3161   ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168   for ac_exec_ext in '' $ac_executable_extensions; do
3169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172     break 2
3173   fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 fi
3179 fi
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182   { echo "$as_me:$LINENO: result: $CC" >&5
3183 echo "${ECHO_T}$CC" >&6; }
3184 else
3185   { echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6; }
3187 fi
3188
3189
3190 fi
3191 if test -z "$ac_cv_prog_CC"; then
3192   ac_ct_CC=$CC
3193   # Extract the first word of "gcc", so it can be a program name with args.
3194 set dummy gcc; ac_word=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if test -n "$ac_ct_CC"; then
3201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_ac_ct_CC="gcc"
3211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223 echo "${ECHO_T}$ac_ct_CC" >&6; }
3224 else
3225   { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3227 fi
3228
3229   if test "x$ac_ct_CC" = x; then
3230     CC=""
3231   else
3232     case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet.  If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet.  If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242     CC=$ac_ct_CC
3243   fi
3244 else
3245   CC="$ac_cv_prog_CC"
3246 fi
3247
3248 if test -z "$CC"; then
3249           if test -n "$ac_tool_prefix"; then
3250     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}cc; ac_word=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267     ac_cv_prog_CC="${ac_tool_prefix}cc"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279   { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3281 else
3282   { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3284 fi
3285
3286
3287   fi
3288 fi
3289 if test -z "$CC"; then
3290   # Extract the first word of "cc", so it can be a program name with args.
3291 set dummy cc; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_CC+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   if test -n "$CC"; then
3298   ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300   ac_prog_rejected=no
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_exec_ext in '' $ac_executable_extensions; do
3307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3309        ac_prog_rejected=yes
3310        continue
3311      fi
3312     ac_cv_prog_CC="cc"
3313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 if test $ac_prog_rejected = yes; then
3321   # We found a bogon in the path, so make sure we never use it.
3322   set dummy $ac_cv_prog_CC
3323   shift
3324   if test $# != 0; then
3325     # We chose a different compiler from the bogus one.
3326     # However, it has the same basename, so the bogon will be chosen
3327     # first if we set CC to just the basename; use the full file name.
3328     shift
3329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3330   fi
3331 fi
3332 fi
3333 fi
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336   { echo "$as_me:$LINENO: result: $CC" >&5
3337 echo "${ECHO_T}$CC" >&6; }
3338 else
3339   { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3341 fi
3342
3343
3344 fi
3345 if test -z "$CC"; then
3346   if test -n "$ac_tool_prefix"; then
3347   for ac_prog in cl.exe
3348   do
3349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364   for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378   { echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6; }
3380 else
3381   { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3383 fi
3384
3385
3386     test -n "$CC" && break
3387   done
3388 fi
3389 if test -z "$CC"; then
3390   ac_ct_CC=$CC
3391   for ac_prog in cl.exe
3392 do
3393   # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   if test -n "$ac_ct_CC"; then
3401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408   for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_ac_ct_CC="$ac_prog"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6; }
3424 else
3425   { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3427 fi
3428
3429
3430   test -n "$ac_ct_CC" && break
3431 done
3432
3433   if test "x$ac_ct_CC" = x; then
3434     CC=""
3435   else
3436     case $cross_compiling:$ac_tool_warned in
3437 yes:)
3438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3439 whose name does not start with the host triplet.  If you think this
3440 configuration is useful to you, please write to autoconf@gnu.org." >&5
3441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3442 whose name does not start with the host triplet.  If you think this
3443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446     CC=$ac_ct_CC
3447   fi
3448 fi
3449
3450 fi
3451
3452
3453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details." >&2;}
3457    { (exit 1); exit 1; }; }
3458
3459 # Provide some information about the compiler.
3460 echo "$as_me:$LINENO: checking for C compiler version" >&5
3461 ac_compiler=`set X $ac_compile; echo $2`
3462 { (ac_try="$ac_compiler --version >&5"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468   (eval "$ac_compiler --version >&5") 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }
3472 { (ac_try="$ac_compiler -v >&5"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_compiler -v >&5") 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }
3482 { (ac_try="$ac_compiler -V >&5"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compiler -V >&5") 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }
3492
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files_save=$ac_clean_files
3509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3510 # Try to create an executable without -o first, disregard a.out.
3511 # It will help us diagnose broken compilers, and finding out an intuition
3512 # of exeext.
3513 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516 #
3517 # List of possible output files, starting from the most likely.
3518 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3519 # only as a last resort.  b.out is created by i960 compilers.
3520 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3521 #
3522 # The IRIX 6 linker writes into existing files which may not be
3523 # executable, retaining their permissions.  Remove them first so a
3524 # subsequent execution test works.
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528   case $ac_file in
3529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3530     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531   esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { (ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_link_default") 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; then
3545   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3548 # so that the user can short-circuit this test for compilers unknown to
3549 # Autoconf.
3550 for ac_file in $ac_files ''
3551 do
3552   test -f "$ac_file" || continue
3553   case $ac_file in
3554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3555         ;;
3556     [ab].out )
3557         # We found the default executable, but exeext='' is most
3558         # certainly right.
3559         break;;
3560     *.* )
3561         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3562         then :; else
3563            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564         fi
3565         # We set ac_cv_exeext here because the later test for it is not
3566         # safe: cross compilers may not add the suffix if given an `-o'
3567         # argument, so we may need to know it at that point already.
3568         # Even if this section looks crufty: it has the advantage of
3569         # actually working.
3570         break;;
3571     * )
3572         break;;
3573   esac
3574 done
3575 test "$ac_cv_exeext" = no && ac_cv_exeext=
3576
3577 else
3578   ac_file=''
3579 fi
3580
3581 { echo "$as_me:$LINENO: result: $ac_file" >&5
3582 echo "${ECHO_T}$ac_file" >&6; }
3583 if test -z "$ac_file"; then
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3588 See \`config.log' for more details." >&5
3589 echo "$as_me: error: C compiler cannot create executables
3590 See \`config.log' for more details." >&2;}
3591    { (exit 77); exit 77; }; }
3592 fi
3593
3594 ac_exeext=$ac_cv_exeext
3595
3596 # Check that the compiler produces executables we can run.  If not, either
3597 # the compiler is broken, or we cross compile.
3598 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3601 # If not cross compiling, check that we can run a simple program.
3602 if test "$cross_compiling" != yes; then
3603   if { ac_try='./$ac_file'
3604   { (case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609   (eval "$ac_try") 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613     cross_compiling=no
3614   else
3615     if test "$cross_compiling" = maybe; then
3616         cross_compiling=yes
3617     else
3618         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3619 If you meant to cross compile, use \`--host'.
3620 See \`config.log' for more details." >&5
3621 echo "$as_me: error: cannot run C compiled programs.
3622 If you meant to cross compile, use \`--host'.
3623 See \`config.log' for more details." >&2;}
3624    { (exit 1); exit 1; }; }
3625     fi
3626   fi
3627 fi
3628 { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3630
3631 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3632 ac_clean_files=$ac_clean_files_save
3633 # Check that the compiler produces executables we can run.  If not, either
3634 # the compiler is broken, or we cross compile.
3635 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3638 echo "${ECHO_T}$cross_compiling" >&6; }
3639
3640 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3642 if { (ac_try="$ac_link"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648   (eval "$ac_link") 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; then
3652   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3655 # `rm'.
3656 for ac_file in conftest.exe conftest conftest.*; do
3657   test -f "$ac_file" || continue
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3660     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661           break;;
3662     * ) break;;
3663   esac
3664 done
3665 else
3666   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details." >&2;}
3670    { (exit 1); exit 1; }; }
3671 fi
3672
3673 rm -f conftest$ac_cv_exeext
3674 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3675 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3676
3677 rm -f conftest.$ac_ext
3678 EXEEXT=$ac_cv_exeext
3679 ac_exeext=$EXEEXT
3680 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3681 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3682 if test "${ac_cv_objext+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h.  */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.o conftest.obj
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_compile") 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; then
3711   for ac_file in conftest.o conftest.obj conftest.*; do
3712   test -f "$ac_file" || continue;
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716        break;;
3717   esac
3718 done
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727    { (exit 1); exit 1; }; }
3728 fi
3729
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 echo "${ECHO_T}$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3735 ac_objext=$OBJEXT
3736 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
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 #ifndef __GNUC__
3752        choke me
3753 #endif
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766   (eval "$ac_compile") 2>conftest.er1
3767   ac_status=$?
3768   grep -v '^ *+' conftest.er1 >conftest.err
3769   rm -f conftest.er1
3770   cat conftest.err >&5
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); } && {
3773          test -z "$ac_c_werror_flag" ||
3774          test ! -s conftest.err
3775        } && test -s conftest.$ac_objext; then
3776   ac_compiler_gnu=yes
3777 else
3778   echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781         ac_compiler_gnu=no
3782 fi
3783
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3786
3787 fi
3788 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3790 GCC=`test $ac_compiler_gnu = yes && echo yes`
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3795 if test "${ac_cv_prog_cc_g+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   ac_save_c_werror_flag=$ac_c_werror_flag
3799    ac_c_werror_flag=yes
3800    ac_cv_prog_cc_g=no
3801    CFLAGS="-g"
3802    cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808
3809 int
3810 main ()
3811 {
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_g=yes
3835 else
3836   echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839         CFLAGS=""
3840       cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_compile") 2>conftest.er1
3863   ac_status=$?
3864   grep -v '^ *+' conftest.er1 >conftest.err
3865   rm -f conftest.er1
3866   cat conftest.err >&5
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } && {
3869          test -z "$ac_c_werror_flag" ||
3870          test ! -s conftest.err
3871        } && test -s conftest.$ac_objext; then
3872   :
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         ac_c_werror_flag=$ac_save_c_werror_flag
3878          CFLAGS="-g"
3879          cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compile") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && {
3908          test -z "$ac_c_werror_flag" ||
3909          test ! -s conftest.err
3910        } && test -s conftest.$ac_objext; then
3911   ac_cv_prog_cc_g=yes
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926    ac_c_werror_flag=$ac_save_c_werror_flag
3927 fi
3928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3929 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931   CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933   if test "$GCC" = yes; then
3934     CFLAGS="-g -O2"
3935   else
3936     CFLAGS="-g"
3937   fi
3938 else
3939   if test "$GCC" = yes; then
3940     CFLAGS="-O2"
3941   else
3942     CFLAGS=
3943   fi
3944 fi
3945 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3946 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3947 if test "${ac_cv_prog_cc_c89+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   ac_cv_prog_cc_c89=no
3951 ac_save_CC=$CC
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958 #include <stdarg.h>
3959 #include <stdio.h>
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966      char **p;
3967      int i;
3968 {
3969   return p[i];
3970 }
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3972 {
3973   char *s;
3974   va_list v;
3975   va_start (v,p);
3976   s = g (p, va_arg (v,int));
3977   va_end (v);
3978   return s;
3979 }
3980
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3982    function prototypes and stuff, but not '\xHH' hex character constants.
3983    These don't provoke an error unfortunately, instead are silently treated
3984    as 'x'.  The following induces an error, until -std is added to get
3985    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3986    array size at least.  It's necessary to write '\x00'==0 to get something
3987    that's true only with -std.  */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991    inside strings and character constants.  */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4001 int
4002 main ()
4003 {
4004 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011 do
4012   CC="$ac_save_CC $ac_arg"
4013   rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020   (eval "$ac_compile") 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && {
4027          test -z "$ac_c_werror_flag" ||
4028          test ! -s conftest.err
4029        } && test -s conftest.$ac_objext; then
4030   ac_cv_prog_cc_c89=$ac_arg
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext
4039   test "x$ac_cv_prog_cc_c89" != "xno" && break
4040 done
4041 rm -f conftest.$ac_ext
4042 CC=$ac_save_CC
4043
4044 fi
4045 # AC_CACHE_VAL
4046 case "x$ac_cv_prog_cc_c89" in
4047   x)
4048     { echo "$as_me:$LINENO: result: none needed" >&5
4049 echo "${ECHO_T}none needed" >&6; } ;;
4050   xno)
4051     { echo "$as_me:$LINENO: result: unsupported" >&5
4052 echo "${ECHO_T}unsupported" >&6; } ;;
4053   *)
4054     CC="$CC $ac_cv_prog_cc_c89"
4055     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4056 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4057 esac
4058
4059
4060 ac_ext=c
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
4066 depcc="$CC"   am_compiler_list=
4067
4068 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4070 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074   # We make a subdir and do the tests there.  Otherwise we can end up
4075   # making bogus files that we don't know about and never remove.  For
4076   # instance it was reported that on HP-UX the gcc test will end up
4077   # making a dummy file named `D' -- because `-MD' means `put the output
4078   # in D'.
4079   mkdir conftest.dir
4080   # Copy depcomp to subdir because otherwise we won't find it if we're
4081   # using a relative directory.
4082   cp "$am_depcomp" conftest.dir
4083   cd conftest.dir
4084   # We will build objects and dependencies in a subdirectory because
4085   # it helps to detect inapplicable dependency modes.  For instance
4086   # both Tru64's cc and ICC support -MD to output dependencies as a
4087   # side effect of compilation, but ICC will put the dependencies in
4088   # the current directory while Tru64 will put them in the object
4089   # directory.
4090   mkdir sub
4091
4092   am_cv_CC_dependencies_compiler_type=none
4093   if test "$am_compiler_list" = ""; then
4094      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4095   fi
4096   for depmode in $am_compiler_list; do
4097     # Setup a source with many dependencies, because some compilers
4098     # like to wrap large dependency lists on column 80 (with \), and
4099     # we should not choose a depcomp mode which is confused by this.
4100     #
4101     # We need to recreate these files for each test, as the compiler may
4102     # overwrite some of them when testing with obscure command lines.
4103     # This happens at least with the AIX C compiler.
4104     : > sub/conftest.c
4105     for i in 1 2 3 4 5 6; do
4106       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4107       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4108       # Solaris 8's {/usr,}/bin/sh.
4109       touch sub/conftst$i.h
4110     done
4111     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4112
4113     case $depmode in
4114     nosideeffect)
4115       # after this tag, mechanisms are not by side-effect, so they'll
4116       # only be used when explicitly requested
4117       if test "x$enable_dependency_tracking" = xyes; then
4118         continue
4119       else
4120         break
4121       fi
4122       ;;
4123     none) break ;;
4124     esac
4125     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4126     # mode.  It turns out that the SunPro C++ compiler does not properly
4127     # handle `-M -o', and we need to detect this.
4128     if depmode=$depmode \
4129        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4130        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4132          >/dev/null 2>conftest.err &&
4133        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4134        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4135        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4136        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4137       # icc doesn't choke on unknown options, it will just issue warnings
4138       # or remarks (even with -Werror).  So we grep stderr for any message
4139       # that says an option was ignored or not supported.
4140       # When given -MP, icc 7.0 and 7.1 complain thusly:
4141       #   icc: Command line warning: ignoring option '-M'; no argument required
4142       # The diagnosis changed in icc 8.0:
4143       #   icc: Command line remark: option '-MP' not supported
4144       if (grep 'ignoring option' conftest.err ||
4145           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4146         am_cv_CC_dependencies_compiler_type=$depmode
4147         break
4148       fi
4149     fi
4150   done
4151
4152   cd ..
4153   rm -rf conftest.dir
4154 else
4155   am_cv_CC_dependencies_compiler_type=none
4156 fi
4157
4158 fi
4159 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4160 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4162
4163  if
4164   test "x$enable_dependency_tracking" != xno \
4165   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4166   am__fastdepCC_TRUE=
4167   am__fastdepCC_FALSE='#'
4168 else
4169   am__fastdepCC_TRUE='#'
4170   am__fastdepCC_FALSE=
4171 fi
4172
4173
4174
4175 ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4181 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4184   CPP=
4185 fi
4186 if test -z "$CPP"; then
4187   if test "${ac_cv_prog_CPP+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190       # Double quotes because CPP needs to be expanded
4191     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192     do
4193       ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4195 do
4196   # Use a header file that comes with gcc, so configuring glibc
4197   # with a fresh cross-compiler works.
4198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199   # <limits.h> exists even on freestanding compilers.
4200   # On the NeXT, cc -E runs the code through the compiler's parser,
4201   # not just through cpp. "Syntax error" is here to catch this case.
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213                      Syntax error
4214 _ACEOF
4215 if { (ac_try="$ac_cpp conftest.$ac_ext"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } >/dev/null && {
4228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229          test ! -s conftest.err
4230        }; then
4231   :
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236   # Broken: fails on valid input.
4237 continue
4238 fi
4239
4240 rm -f conftest.err conftest.$ac_ext
4241
4242   # OK, works on sane cases.  Now check whether nonexistent headers
4243   # can be detected and how.
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if { (ac_try="$ac_cpp conftest.$ac_ext"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } >/dev/null && {
4265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4266          test ! -s conftest.err
4267        }; then
4268   # Broken: success on invalid input.
4269 continue
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274   # Passes both tests.
4275 ac_preproc_ok=:
4276 break
4277 fi
4278
4279 rm -f conftest.err conftest.$ac_ext
4280
4281 done
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then
4285   break
4286 fi
4287
4288     done
4289     ac_cv_prog_CPP=$CPP
4290
4291 fi
4292   CPP=$ac_cv_prog_CPP
4293 else
4294   ac_cv_prog_CPP=$CPP
4295 fi
4296 { echo "$as_me:$LINENO: result: $CPP" >&5
4297 echo "${ECHO_T}$CPP" >&6; }
4298 ac_preproc_ok=false
4299 for ac_c_preproc_warn_flag in '' yes
4300 do
4301   # Use a header file that comes with gcc, so configuring glibc
4302   # with a fresh cross-compiler works.
4303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304   # <limits.h> exists even on freestanding compilers.
4305   # On the NeXT, cc -E runs the code through the compiler's parser,
4306   # not just through cpp. "Syntax error" is here to catch this case.
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318                      Syntax error
4319 _ACEOF
4320 if { (ac_try="$ac_cpp conftest.$ac_ext"
4321 case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } >/dev/null && {
4333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334          test ! -s conftest.err
4335        }; then
4336   :
4337 else
4338   echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341   # Broken: fails on valid input.
4342 continue
4343 fi
4344
4345 rm -f conftest.err conftest.$ac_ext
4346
4347   # OK, works on sane cases.  Now check whether nonexistent headers
4348   # can be detected and how.
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if { (ac_try="$ac_cpp conftest.$ac_ext"
4358 case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4364   ac_status=$?
4365   grep -v '^ *+' conftest.er1 >conftest.err
4366   rm -f conftest.er1
4367   cat conftest.err >&5
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); } >/dev/null && {
4370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4371          test ! -s conftest.err
4372        }; then
4373   # Broken: success on invalid input.
4374 continue
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379   # Passes both tests.
4380 ac_preproc_ok=:
4381 break
4382 fi
4383
4384 rm -f conftest.err conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4390   :
4391 else
4392   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&2;}
4396    { (exit 1); exit 1; }; }
4397 fi
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405
4406 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4407 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4408 if test "${ac_cv_path_GREP+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   # Extract the first word of "grep ggrep" to use in msg output
4412 if test -z "$GREP"; then
4413 set dummy grep ggrep; ac_prog_name=$2
4414 if test "${ac_cv_path_GREP+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   ac_path_GREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_prog in grep ggrep; do
4425   for ac_exec_ext in '' $ac_executable_extensions; do
4426     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4428     # Check for GNU ac_path_GREP and select it if it is found.
4429   # Check for GNU $ac_path_GREP
4430 case `"$ac_path_GREP" --version 2>&1` in
4431 *GNU*)
4432   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433 *)
4434   ac_count=0
4435   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4436   while :
4437   do
4438     cat "conftest.in" "conftest.in" >"conftest.tmp"
4439     mv "conftest.tmp" "conftest.in"
4440     cp "conftest.in" "conftest.nl"
4441     echo 'GREP' >> "conftest.nl"
4442     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444     ac_count=`expr $ac_count + 1`
4445     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446       # Best one so far, save it but keep looking for a better one
4447       ac_cv_path_GREP="$ac_path_GREP"
4448       ac_path_GREP_max=$ac_count
4449     fi
4450     # 10*(2^10) chars as input seems more than enough
4451     test $ac_count -gt 10 && break
4452   done
4453   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456
4457     $ac_path_GREP_found && break 3
4458   done
4459 done
4460
4461 done
4462 IFS=$as_save_IFS
4463
4464
4465 fi
4466
4467 GREP="$ac_cv_path_GREP"
4468 if test -z "$GREP"; then
4469   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4470 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4471    { (exit 1); exit 1; }; }
4472 fi
4473
4474 else
4475   ac_cv_path_GREP=$GREP
4476 fi
4477
4478
4479 fi
4480 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4481 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4482  GREP="$ac_cv_path_GREP"
4483
4484
4485 { echo "$as_me:$LINENO: checking for egrep" >&5
4486 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4487 if test "${ac_cv_path_EGREP+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491    then ac_cv_path_EGREP="$GREP -E"
4492    else
4493      # Extract the first word of "egrep" to use in msg output
4494 if test -z "$EGREP"; then
4495 set dummy egrep; ac_prog_name=$2
4496 if test "${ac_cv_path_EGREP+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   ac_path_EGREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_prog in egrep; do
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4509     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4510     # Check for GNU ac_path_EGREP and select it if it is found.
4511   # Check for GNU $ac_path_EGREP
4512 case `"$ac_path_EGREP" --version 2>&1` in
4513 *GNU*)
4514   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4515 *)
4516   ac_count=0
4517   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4518   while :
4519   do
4520     cat "conftest.in" "conftest.in" >"conftest.tmp"
4521     mv "conftest.tmp" "conftest.in"
4522     cp "conftest.in" "conftest.nl"
4523     echo 'EGREP' >> "conftest.nl"
4524     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526     ac_count=`expr $ac_count + 1`
4527     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4528       # Best one so far, save it but keep looking for a better one
4529       ac_cv_path_EGREP="$ac_path_EGREP"
4530       ac_path_EGREP_max=$ac_count
4531     fi
4532     # 10*(2^10) chars as input seems more than enough
4533     test $ac_count -gt 10 && break
4534   done
4535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 esac
4537
4538
4539     $ac_path_EGREP_found && break 3
4540   done
4541 done
4542
4543 done
4544 IFS=$as_save_IFS
4545
4546
4547 fi
4548
4549 EGREP="$ac_cv_path_EGREP"
4550 if test -z "$EGREP"; then
4551   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4552 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4553    { (exit 1); exit 1; }; }
4554 fi
4555
4556 else
4557   ac_cv_path_EGREP=$EGREP
4558 fi
4559
4560
4561    fi
4562 fi
4563 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4564 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4565  EGREP="$ac_cv_path_EGREP"
4566
4567
4568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4570 if test "${ac_cv_header_stdc+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 #include <stdlib.h>
4580 #include <stdarg.h>
4581 #include <string.h>
4582 #include <float.h>
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_compile") 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } && {
4606          test -z "$ac_c_werror_flag" ||
4607          test ! -s conftest.err
4608        } && test -s conftest.$ac_objext; then
4609   ac_cv_header_stdc=yes
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614         ac_cv_header_stdc=no
4615 fi
4616
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618
4619 if test $ac_cv_header_stdc = yes; then
4620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 #include <string.h>
4628
4629 _ACEOF
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631   $EGREP "memchr" >/dev/null 2>&1; then
4632   :
4633 else
4634   ac_cv_header_stdc=no
4635 fi
4636 rm -f conftest*
4637
4638 fi
4639
4640 if test $ac_cv_header_stdc = yes; then
4641   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 #include <stdlib.h>
4649
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652   $EGREP "free" >/dev/null 2>&1; then
4653   :
4654 else
4655   ac_cv_header_stdc=no
4656 fi
4657 rm -f conftest*
4658
4659 fi
4660
4661 if test $ac_cv_header_stdc = yes; then
4662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663   if test "$cross_compiling" = yes; then
4664   :
4665 else
4666   cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h.  */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h.  */
4672 #include <ctype.h>
4673 #include <stdlib.h>
4674 #if ((' ' & 0x0FF) == 0x020)
4675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4677 #else
4678 # define ISLOWER(c) \
4679                    (('a' <= (c) && (c) <= 'i') \
4680                      || ('j' <= (c) && (c) <= 'r') \
4681                      || ('s' <= (c) && (c) <= 'z'))
4682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4683 #endif
4684
4685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4686 int
4687 main ()
4688 {
4689   int i;
4690   for (i = 0; i < 256; i++)
4691     if (XOR (islower (i), ISLOWER (i))
4692         || toupper (i) != TOUPPER (i))
4693       return 2;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4699 case "(($ac_try" in
4700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701   *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704   (eval "$ac_link") 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708   { (case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713   (eval "$ac_try") 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   :
4718 else
4719   echo "$as_me: program exited with status $ac_status" >&5
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ( exit $ac_status )
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4727 fi
4728
4729
4730 fi
4731 fi
4732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4734 if test $ac_cv_header_stdc = yes; then
4735
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4738 _ACEOF
4739
4740 fi
4741
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753                   inttypes.h stdint.h unistd.h
4754 do
4755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 else
4761   cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767 $ac_includes_default
4768
4769 #include <$ac_header>
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (ac_try="$ac_compile"
4773 case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778   (eval "$ac_compile") 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } && {
4785          test -z "$ac_c_werror_flag" ||
4786          test ! -s conftest.err
4787        } && test -s conftest.$ac_objext; then
4788   eval "$as_ac_Header=yes"
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793         eval "$as_ac_Header=no"
4794 fi
4795
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 ac_res=`eval echo '${'$as_ac_Header'}'`
4799                { echo "$as_me:$LINENO: result: $ac_res" >&5
4800 echo "${ECHO_T}$ac_res" >&6; }
4801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4802   cat >>confdefs.h <<_ACEOF
4803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 _ACEOF
4805
4806 fi
4807
4808 done
4809
4810
4811
4812
4813 for ac_header in signal.h dlfcn.h
4814 do
4815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 fi
4822 ac_res=`eval echo '${'$as_ac_Header'}'`
4823                { echo "$as_me:$LINENO: result: $ac_res" >&5
4824 echo "${ECHO_T}$ac_res" >&6; }
4825 else
4826   # Is the header compilable?
4827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835 $ac_includes_default
4836 #include <$ac_header>
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_header_compiler=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860         ac_header_compiler=no
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4865 echo "${ECHO_T}$ac_header_compiler" >&6; }
4866
4867 # Is the header present?
4868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #include <$ac_header>
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } >/dev/null && {
4891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892          test ! -s conftest.err
4893        }; then
4894   ac_header_preproc=yes
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899   ac_header_preproc=no
4900 fi
4901
4902 rm -f conftest.err conftest.$ac_ext
4903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4904 echo "${ECHO_T}$ac_header_preproc" >&6; }
4905
4906 # So?  What about this header?
4907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4908   yes:no: )
4909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4913     ac_header_preproc=yes
4914     ;;
4915   no:yes:* )
4916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4928
4929     ;;
4930 esac
4931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   eval "$as_ac_Header=\$ac_header_preproc"
4937 fi
4938 ac_res=`eval echo '${'$as_ac_Header'}'`
4939                { echo "$as_me:$LINENO: result: $ac_res" >&5
4940 echo "${ECHO_T}$ac_res" >&6; }
4941
4942 fi
4943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944   cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946 _ACEOF
4947
4948 fi
4949
4950 done
4951
4952
4953 # cppunit needed?
4954 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
4955         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
4956 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
4957    { (exit 1); exit 1; }; }
4958         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
4959 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
4960    { (exit 1); exit 1; }; }
4961 fi
4962
4963
4964
4965 if test "$enable_unit_tests" = "yes"; then
4966
4967 cat >>confdefs.h <<\_ACEOF
4968 #define ENABLE_UNIT_TESTS 1
4969 _ACEOF
4970
4971 fi
4972 if test "$enable_integration_tests" = "yes"; then
4973
4974 cat >>confdefs.h <<\_ACEOF
4975 #define ENABLE_INTEGRATION_TESTS 1
4976 _ACEOF
4977
4978 fi
4979  if test "$enable_unit_tests" = "yes"; then
4980   ENABLE_UNIT_TESTS_TRUE=
4981   ENABLE_UNIT_TESTS_FALSE='#'
4982 else
4983   ENABLE_UNIT_TESTS_TRUE='#'
4984   ENABLE_UNIT_TESTS_FALSE=
4985 fi
4986
4987  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
4988   ENABLE_TESTING_TRUE=
4989   ENABLE_TESTING_FALSE='#'
4990 else
4991   ENABLE_TESTING_TRUE='#'
4992   ENABLE_TESTING_FALSE=
4993 fi
4994
4995
4996 if test $enable_static_cxx == "yes"; then
4997         LIBS="$LIBS -L."
4998         CORE_LDADD_DEP=libstdc++.a
4999 fi
5000
5001
5002 # Check for transport layer.
5003 # Both curl and libsoup can be enabled and disabled explicitly.
5004 # The default is to use libsoup if available, otherwise curl.
5005
5006 { echo "$as_me:$LINENO: checking for libcurl" >&5
5007 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
5008 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
5009     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
5010     { echo "$as_me:$LINENO: result: yes" >&5
5011 echo "${ECHO_T}yes" >&6; }
5012     have_libcurl="yes"
5013 else
5014     { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5016     have_libcurl="no"
5017 fi
5018
5019
5020
5021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5022         if test -n "$ac_tool_prefix"; then
5023   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   case $PKG_CONFIG in
5031   [\\/]* | ?:[\\/]*)
5032   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5033   ;;
5034   *)
5035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040   for ac_exec_ext in '' $ac_executable_extensions; do
5041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044     break 2
5045   fi
5046 done
5047 done
5048 IFS=$as_save_IFS
5049
5050   ;;
5051 esac
5052 fi
5053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054 if test -n "$PKG_CONFIG"; then
5055   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5057 else
5058   { echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6; }
5060 fi
5061
5062
5063 fi
5064 if test -z "$ac_cv_path_PKG_CONFIG"; then
5065   ac_pt_PKG_CONFIG=$PKG_CONFIG
5066   # Extract the first word of "pkg-config", so it can be a program name with args.
5067 set dummy pkg-config; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   case $ac_pt_PKG_CONFIG in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093   ;;
5094 esac
5095 fi
5096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5097 if test -n "$ac_pt_PKG_CONFIG"; then
5098   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5099 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5100 else
5101   { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105   if test "x$ac_pt_PKG_CONFIG" = x; then
5106     PKG_CONFIG=""
5107   else
5108     case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet.  If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet.  If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118     PKG_CONFIG=$ac_pt_PKG_CONFIG
5119   fi
5120 else
5121   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5122 fi
5123
5124 fi
5125 if test -n "$PKG_CONFIG"; then
5126         _pkg_min_version=0.9.0
5127         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5128 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5129         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5130                 { echo "$as_me:$LINENO: result: yes" >&5
5131 echo "${ECHO_T}yes" >&6; }
5132         else
5133                 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5135                 PKG_CONFIG=""
5136         fi
5137
5138 fi
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-gnome-2.4\"") >&5
5150   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-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-gnome-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-gnome-2.4\"") >&5
5168   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-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-gnome-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-gnome-2.4"`
5192         else
5193                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-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
5201 pkg_failed=no
5202 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5203 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5204
5205 if test -n "$PKG_CONFIG"; then
5206     if test -n "$LIBSOUP_CFLAGS"; then
5207         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5208     else
5209         if test -n "$PKG_CONFIG" && \
5210     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5211   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; then
5215   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5216 else
5217   pkg_failed=yes
5218 fi
5219     fi
5220 else
5221         pkg_failed=untried
5222 fi
5223 if test -n "$PKG_CONFIG"; then
5224     if test -n "$LIBSOUP_LIBS"; then
5225         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5226     else
5227         if test -n "$PKG_CONFIG" && \
5228     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5229   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; then
5233   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5234 else
5235   pkg_failed=yes
5236 fi
5237     fi
5238 else
5239         pkg_failed=untried
5240 fi
5241
5242
5243
5244 if test $pkg_failed = yes; then
5245
5246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5247         _pkg_short_errors_supported=yes
5248 else
5249         _pkg_short_errors_supported=no
5250 fi
5251         if test $_pkg_short_errors_supported = yes; then
5252                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5253         else
5254                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5255         fi
5256         # Put the nasty error message in config.log where it belongs
5257         echo "$LIBSOUP_PKG_ERRORS" >&5
5258
5259         { echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6; }
5261                 have_libsoup="no"
5262 elif test $pkg_failed = untried; then
5263         have_libsoup="no"
5264 else
5265         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5266         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5267         { echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6; }
5269         have_libsoup="yes"
5270 fi
5271 elif test $pkg_failed = untried; then
5272
5273 pkg_failed=no
5274 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5275 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5276
5277 if test -n "$PKG_CONFIG"; then
5278     if test -n "$LIBSOUP_CFLAGS"; then
5279         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5280     else
5281         if test -n "$PKG_CONFIG" && \
5282     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5283   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; then
5287   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5288 else
5289   pkg_failed=yes
5290 fi
5291     fi
5292 else
5293         pkg_failed=untried
5294 fi
5295 if test -n "$PKG_CONFIG"; then
5296     if test -n "$LIBSOUP_LIBS"; then
5297         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5298     else
5299         if test -n "$PKG_CONFIG" && \
5300     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5301   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; then
5305   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5306 else
5307   pkg_failed=yes
5308 fi
5309     fi
5310 else
5311         pkg_failed=untried
5312 fi
5313
5314
5315
5316 if test $pkg_failed = yes; then
5317
5318 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5319         _pkg_short_errors_supported=yes
5320 else
5321         _pkg_short_errors_supported=no
5322 fi
5323         if test $_pkg_short_errors_supported = yes; then
5324                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5325         else
5326                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5327         fi
5328         # Put the nasty error message in config.log where it belongs
5329         echo "$LIBSOUP_PKG_ERRORS" >&5
5330
5331         { echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6; }
5333                 have_libsoup="no"
5334 elif test $pkg_failed = untried; then
5335         have_libsoup="no"
5336 else
5337         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5338         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5339         { echo "$as_me:$LINENO: result: yes" >&5
5340 echo "${ECHO_T}yes" >&6; }
5341         have_libsoup="yes"
5342 fi
5343 else
5344         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5345         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5346         { echo "$as_me:$LINENO: result: yes" >&5
5347 echo "${ECHO_T}yes" >&6; }
5348         have_libsoup="yes"
5349
5350 cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1
5352 _ACEOF
5353
5354 fi
5355
5356
5357 pkg_failed=no
5358 { echo "$as_me:$LINENO: checking for LIBOPENOBEX" >&5
5359 echo $ECHO_N "checking for LIBOPENOBEX... $ECHO_C" >&6; }
5360
5361 if test -n "$PKG_CONFIG"; then
5362     if test -n "$LIBOPENOBEX_CFLAGS"; then
5363         pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
5364     else
5365         if test -n "$PKG_CONFIG" && \
5366     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5367   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; then
5371   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
5372 else
5373   pkg_failed=yes
5374 fi
5375     fi
5376 else
5377         pkg_failed=untried
5378 fi
5379 if test -n "$PKG_CONFIG"; then
5380     if test -n "$LIBOPENOBEX_LIBS"; then
5381         pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
5382     else
5383         if test -n "$PKG_CONFIG" && \
5384     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5385   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; then
5389   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
5390 else
5391   pkg_failed=yes
5392 fi
5393     fi
5394 else
5395         pkg_failed=untried
5396 fi
5397
5398
5399
5400 if test $pkg_failed = yes; then
5401
5402 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5403         _pkg_short_errors_supported=yes
5404 else
5405         _pkg_short_errors_supported=no
5406 fi
5407         if test $_pkg_short_errors_supported = yes; then
5408                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
5409         else
5410                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
5411         fi
5412         # Put the nasty error message in config.log where it belongs
5413         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
5414
5415         { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5417                 have_obex="no"
5418 elif test $pkg_failed = untried; then
5419         have_obex="no"
5420 else
5421         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
5422         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
5423         { echo "$as_me:$LINENO: result: yes" >&5
5424 echo "${ECHO_T}yes" >&6; }
5425         have_obex="yes"
5426 fi
5427 have_bluetooth="no"
5428 if test $have_obex = "yes"; then
5429
5430 pkg_failed=no
5431 { echo "$as_me:$LINENO: checking for BLUEZ" >&5
5432 echo $ECHO_N "checking for BLUEZ... $ECHO_C" >&6; }
5433
5434 if test -n "$PKG_CONFIG"; then
5435     if test -n "$BLUEZ_CFLAGS"; then
5436         pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
5437     else
5438         if test -n "$PKG_CONFIG" && \
5439     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5440   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; then
5444   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
5445 else
5446   pkg_failed=yes
5447 fi
5448     fi
5449 else
5450         pkg_failed=untried
5451 fi
5452 if test -n "$PKG_CONFIG"; then
5453     if test -n "$BLUEZ_LIBS"; then
5454         pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
5455     else
5456         if test -n "$PKG_CONFIG" && \
5457     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5458   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; then
5462   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
5463 else
5464   pkg_failed=yes
5465 fi
5466     fi
5467 else
5468         pkg_failed=untried
5469 fi
5470
5471
5472
5473 if test $pkg_failed = yes; then
5474
5475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5476         _pkg_short_errors_supported=yes
5477 else
5478         _pkg_short_errors_supported=no
5479 fi
5480         if test $_pkg_short_errors_supported = yes; then
5481                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
5482         else
5483                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
5484         fi
5485         # Put the nasty error message in config.log where it belongs
5486         echo "$BLUEZ_PKG_ERRORS" >&5
5487
5488         { echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6; }
5490                 have_bluez="no"
5491 elif test $pkg_failed = untried; then
5492         have_bluez="no"
5493 else
5494         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
5495         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
5496         { echo "$as_me:$LINENO: result: yes" >&5
5497 echo "${ECHO_T}yes" >&6; }
5498         have_bluez="yes"
5499 fi
5500     if test $have_bluez = "yes"; then
5501         have_bluetooth="yes"
5502     fi
5503 fi
5504
5505
5506
5507
5508
5509 TRANSPORT=
5510 TRANSPORT_LIBS=
5511 TRANSPORT_CFLAGS=
5512
5513
5514 # Check whether --with-ca-certificates was given.
5515 if test "${with_ca_certificates+set}" = set; then
5516   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
5517 fi
5518
5519
5520
5521 # choose default http transport (mirrors code in EvolutionSyncClient::createTransportAgent())
5522 if test "$have_libsoup" = "yes"; then
5523    default_http_transport="libsoup"
5524 elif test "$have_libcurl" = "yes"; then
5525    default_http_transport="libcurl"
5526 fi
5527
5528 # Check whether --enable-libcurl was given.
5529 if test "${enable_libcurl+set}" = set; then
5530   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
5531                    test "$have_libcurl" = "yes" || { { echo "$as_me:$LINENO: error: libcurl not found" >&5
5532 echo "$as_me: error: libcurl not found" >&2;}
5533    { (exit 1); exit 1; }; }
5534                    TRANSPORT="$TRANSPORT libcurl"
5535                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5536                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5537
5538 cat >>confdefs.h <<\_ACEOF
5539 #define ENABLE_LIBCURL 1
5540 _ACEOF
5541
5542                 else
5543                    libcurl_disabled="yes"
5544                 fi
5545 else
5546    if test "$have_libcurl" = "yes" && test "$default_http_transport" = "libcurl" ; then
5547                    TRANSPORT="$TRANSPORT libcurl"
5548                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5549                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define ENABLE_LIBCURL 1
5553 _ACEOF
5554
5555                 fi
5556 fi
5557
5558
5559 # Check whether --enable-libsoup was given.
5560 if test "${enable_libsoup+set}" = set; then
5561   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
5562                    test "$have_libsoup" = "yes" || { { echo "$as_me:$LINENO: error: libsoup not found" >&5
5563 echo "$as_me: error: libsoup not found" >&2;}
5564    { (exit 1); exit 1; }; }
5565                    TRANSPORT="$TRANSPORT libsoup"
5566                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5567                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5568
5569 cat >>confdefs.h <<\_ACEOF
5570 #define ENABLE_LIBSOUP 1
5571 _ACEOF
5572
5573                 else
5574                    libsoup_disabled="yes"
5575                 fi
5576 else
5577    if test "$have_libsoup" = "yes" && test "$default_http_transport" = "libsoup"; then
5578                    TRANSPORT="$TRANSPORT libsoup"
5579                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5580                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5581
5582 cat >>confdefs.h <<\_ACEOF
5583 #define ENABLE_LIBSOUP 1
5584 _ACEOF
5585
5586                 fi
5587 fi
5588
5589
5590 # SoupTransportAgent depends on glib
5591 case "$TRANSPORT" in *libsoup*) need_glib=yes;; esac
5592
5593 bluetooth_disabled=no
5594 # Check whether --enable-bluetooth was given.
5595 if test "${enable_bluetooth+set}" = set; then
5596   enableval=$enable_bluetooth;  enable_bluetooth="$enableval"
5597                 if test "$enableval" = "no"; then
5598                     bluetooth_disabled=yes
5599                 fi
5600
5601 else
5602    enable_bluetooth="$have_bluetooth"
5603 fi
5604
5605
5606 if test "$enable_bluetooth" = "yes"; then
5607    # currently we need Bluetooth and OBEX support
5608    test "$have_bluetooth" = "yes" || { { echo "$as_me:$LINENO: error: openobex or bluez not found" >&5
5609 echo "$as_me: error: openobex or bluez not found" >&2;}
5610    { (exit 1); exit 1; }; }
5611
5612    ac_ext=c
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617
5618    CFLAGS_old="$CFLAGS"
5619    CFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"
5620    # test in this order:
5621    # - recent libbluetooth (no _safe variant, base function has bufsize)
5622    # - intermediate with _safe
5623    # - else assume old-style (no bufsize, no _safe)
5624    #
5625    # The source code checks the signature both by via pointer assignment and calling
5626    # it (better safe than sorry). One these should fail if the signature is not right.
5627    cat >conftest.$ac_ext <<_ACEOF
5628 #include <bluetooth/sdp.h>
5629                       #include <bluetooth/sdp_lib.h>
5630                       sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5631                            sdp_extract_pdu;
5632                       void foo(void) {
5633                           uint8_t *pdata = NULL;
5634                           int scanned;
5635                           sdp_extract_pdu(pdata, 100, &scanned);
5636                       }
5637
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compile") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } && {
5653          test -z "$ac_c_werror_flag" ||
5654          test ! -s conftest.err
5655        } && test -s conftest.$ac_objext; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_BLUEZ_BUFSIZE 1
5659 _ACEOF
5660
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665         cat >conftest.$ac_ext <<_ACEOF
5666 #include <bluetooth/sdp.h>
5667                                         #include <bluetooth/sdp_lib.h>
5668                                         sdp_record_t *(*extract_pdu)(const uint8_t *pdata, int bufsize, int *scanned) =
5669                                                sdp_extract_pdu_safe;
5670                                         void foo(void) {
5671                                             uint8_t *pdata = NULL;
5672                                             int scanned;
5673                                             sdp_extract_pdu_safe(pdata, 100, &scanned);
5674                                         }
5675
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_compile") 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } && {
5691          test -z "$ac_c_werror_flag" ||
5692          test ! -s conftest.err
5693        } && test -s conftest.$ac_objext; then
5694
5695 cat >>confdefs.h <<\_ACEOF
5696 #define HAVE_BLUEZ_SAFE 1
5697 _ACEOF
5698
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703
5704 fi
5705
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 fi
5708
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710    CFLAGS="$CFLAGS_old"
5711
5712    if test "$have_obex" = "yes"; then
5713
5714 cat >>confdefs.h <<\_ACEOF
5715 #define ENABLE_OBEX 1
5716 _ACEOF
5717
5718    fi
5719    if test "$have_bluez" = "yes"; then
5720
5721 cat >>confdefs.h <<\_ACEOF
5722 #define ENABLE_BLUETOOTH 1
5723 _ACEOF
5724
5725    fi
5726 fi
5727  if test "$have_obex" = "yes" && test "$enable_bluetooth" = "yes"; then
5728   ENABLE_OBEX_TRUE=
5729   ENABLE_OBEX_FALSE='#'
5730 else
5731   ENABLE_OBEX_TRUE='#'
5732   ENABLE_OBEX_FALSE=
5733 fi
5734
5735  if test "$have_bluetooth" = "yes" && test "$enable_bluetooth" = "yes"; then
5736   ENABLE_BLUETOOTH_TRUE=
5737   ENABLE_BLUETOOTH_FALSE='#'
5738 else
5739   ENABLE_BLUETOOTH_TRUE='#'
5740   ENABLE_BLUETOOTH_FALSE=
5741 fi
5742
5743
5744 if test ! "$TRANSPORT" &&
5745    test "$libsoup_disabled" != "yes" &&
5746    test "$libcurl_disabled" != "yes" &&
5747    test "$bluetooth_disabled" != "yes" &&
5748    test "$have_bluetooth" != "yes" ; then
5749    { { 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
5750 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;}
5751    { (exit 1); exit 1; }; }
5752 fi
5753
5754 # for libsoup we must specify the SSL certificate file outself
5755 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
5756    # Debian and Red Hat paths
5757    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
5758 fi
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
5762 _ACEOF
5763
5764
5765
5766
5767
5768 # Check whether --enable-ssl-certificate-check was given.
5769 if test "${enable_ssl_certificate_check+set}" = set; then
5770   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
5771 else
5772   enable_ssl_certificate_check="yes"
5773 fi
5774
5775 if test "$enable_ssl_certificate_check" = "yes"; then
5776
5777 cat >>confdefs.h <<\_ACEOF
5778 #define ENABLE_SSL_CERTIFICATE_CHECK 1
5779 _ACEOF
5780
5781 fi
5782
5783 # for dbus interface file mangling
5784 # Extract the first word of "xsltproc", so it can be a program name with args.
5785 set dummy xsltproc; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_XSLT+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   case $XSLT in
5792   [\\/]* | ?:[\\/]*)
5793   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
5794   ;;
5795   *)
5796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801   for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811   ;;
5812 esac
5813 fi
5814 XSLT=$ac_cv_path_XSLT
5815 if test -n "$XSLT"; then
5816   { echo "$as_me:$LINENO: result: $XSLT" >&5
5817 echo "${ECHO_T}$XSLT" >&6; }
5818 else
5819   { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5821 fi
5822
5823
5824
5825 # Check whether --enable-gui was given.
5826 if test "${enable_gui+set}" = set; then
5827   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
5828                     enable_gui=gtk
5829                 elif test "$enableval" = "yes" ; then
5830                     enable_gui=gtk
5831                 elif test "$enableval" = "moblin" ; then
5832                     enable_gui=moblin
5833                 elif test "$enableval" = "no" ; then
5834                     enable_gui=no
5835                 elif test "$enableval" = "all" ; then
5836                     enable_gui=all
5837                 else
5838                     { { echo "$as_me:$LINENO: error: Unknown gui type: '$enableval'" >&5
5839 echo "$as_me: error: Unknown gui type: '$enableval'" >&2;}
5840    { (exit 1); exit 1; }; }
5841                 fi
5842
5843 else
5844    enable_gui=no
5845 fi
5846
5847
5848  if test "$enable_gui" != "no"; then
5849   COND_GUI_TRUE=
5850   COND_GUI_FALSE='#'
5851 else
5852   COND_GUI_TRUE='#'
5853   COND_GUI_FALSE=
5854 fi
5855
5856
5857 # Check whether --enable-core was given.
5858 if test "${enable_core+set}" = set; then
5859   enableval=$enable_core; enable_core="$enableval"
5860 else
5861   enable_core="yes"
5862 fi
5863
5864  if test "$enable_core" = "yes"; then
5865   COND_CORE_TRUE=
5866   COND_CORE_FALSE='#'
5867 else
5868   COND_CORE_TRUE='#'
5869   COND_CORE_FALSE=
5870 fi
5871
5872
5873 # Check whether --enable-dbus-service was given.
5874 if test "${enable_dbus_service+set}" = set; then
5875   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
5876 else
5877   if test $enable_gui == "no"; then
5878                   enable_dbus_service="no"
5879                else
5880                   enable_dbus_service="yes"
5881                fi
5882 fi
5883
5884  if test "$enable_dbus_service" = "yes"; then
5885   COND_DBUS_TRUE=
5886   COND_DBUS_FALSE='#'
5887 else
5888   COND_DBUS_TRUE='#'
5889   COND_DBUS_FALSE=
5890 fi
5891
5892
5893
5894 pkg_failed=no
5895 { echo "$as_me:$LINENO: checking for KEYRING" >&5
5896 echo $ECHO_N "checking for KEYRING... $ECHO_C" >&6; }
5897
5898 if test -n "$PKG_CONFIG"; then
5899     if test -n "$KEYRING_CFLAGS"; then
5900         pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
5901     else
5902         if test -n "$PKG_CONFIG" && \
5903     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5904   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; then
5908   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
5909 else
5910   pkg_failed=yes
5911 fi
5912     fi
5913 else
5914         pkg_failed=untried
5915 fi
5916 if test -n "$PKG_CONFIG"; then
5917     if test -n "$KEYRING_LIBS"; then
5918         pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
5919     else
5920         if test -n "$PKG_CONFIG" && \
5921     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5922   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; then
5926   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
5927 else
5928   pkg_failed=yes
5929 fi
5930     fi
5931 else
5932         pkg_failed=untried
5933 fi
5934
5935
5936
5937 if test $pkg_failed = yes; then
5938
5939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5940         _pkg_short_errors_supported=yes
5941 else
5942         _pkg_short_errors_supported=no
5943 fi
5944         if test $_pkg_short_errors_supported = yes; then
5945                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
5946         else
5947                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
5948         fi
5949         # Put the nasty error message in config.log where it belongs
5950         echo "$KEYRING_PKG_ERRORS" >&5
5951
5952         { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954                 HAVE_KEYRING=no
5955 elif test $pkg_failed = untried; then
5956         HAVE_KEYRING=no
5957 else
5958         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
5959         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
5960         { echo "$as_me:$LINENO: result: yes" >&5
5961 echo "${ECHO_T}yes" >&6; }
5962         HAVE_KEYRING=yes
5963 fi
5964 # Check whether --enable-gnome-keyring was given.
5965 if test "${enable_gnome_keyring+set}" = set; then
5966   enableval=$enable_gnome_keyring; enable_gnome_keyring="$enableval"
5967                test "$enable_gnome_keyring" = "yes" || test "$enable_gnome_keyring" = "no" || { { echo "$as_me:$LINENO: error: invalid value for --enable-gnome-keyring: $enable_gnome_keyring" >&5
5968 echo "$as_me: error: invalid value for --enable-gnome-keyring: $enable_gnome_keyring" >&2;}
5969    { (exit 1); exit 1; }; }
5970                test "$enable_gnome_keyring" = "no" || test "$HAVE_KEYRING" = "yes" || { { echo "$as_me:$LINENO: error: gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" >&5
5971 echo "$as_me: error: gnome-keyring-1 pkg not found, needed for --enable-gnome-keyring" >&2;}
5972    { (exit 1); exit 1; }; }
5973 else
5974   enable_gnome_keyring="$HAVE_KEYRING"
5975 fi
5976
5977 if test $enable_gnome_keyring == "yes"; then
5978
5979 cat >>confdefs.h <<\_ACEOF
5980 #define USE_GNOME_KEYRING 1
5981 _ACEOF
5982
5983
5984 pkg_failed=no
5985 { echo "$as_me:$LINENO: checking for KEYRING_2_20" >&5
5986 echo $ECHO_N "checking for KEYRING_2_20... $ECHO_C" >&6; }
5987
5988 if test -n "$PKG_CONFIG"; then
5989     if test -n "$KEYRING_2_20_CFLAGS"; then
5990         pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
5991     else
5992         if test -n "$PKG_CONFIG" && \
5993     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5994   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; then
5998   pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5999 else
6000   pkg_failed=yes
6001 fi
6002     fi
6003 else
6004         pkg_failed=untried
6005 fi
6006 if test -n "$PKG_CONFIG"; then
6007     if test -n "$KEYRING_2_20_LIBS"; then
6008         pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
6009     else
6010         if test -n "$PKG_CONFIG" && \
6011     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
6012   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; then
6016   pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
6017 else
6018   pkg_failed=yes
6019 fi
6020     fi
6021 else
6022         pkg_failed=untried
6023 fi
6024
6025
6026
6027 if test $pkg_failed = yes; then
6028
6029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6030         _pkg_short_errors_supported=yes
6031 else
6032         _pkg_short_errors_supported=no
6033 fi
6034         if test $_pkg_short_errors_supported = yes; then
6035                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
6036         else
6037                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
6038         fi
6039         # Put the nasty error message in config.log where it belongs
6040         echo "$KEYRING_2_20_PKG_ERRORS" >&5
6041
6042         { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6044                 KEYRING220=no
6045 elif test $pkg_failed = untried; then
6046         KEYRING220=no
6047 else
6048         KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
6049         KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
6050         { echo "$as_me:$LINENO: result: yes" >&5
6051 echo "${ECHO_T}yes" >&6; }
6052         KEYRING220=yes
6053 fi
6054     if test $KEYRING220 == "yes"; then
6055
6056 cat >>confdefs.h <<\_ACEOF
6057 #define GNOME_KEYRING_220 1
6058 _ACEOF
6059
6060     fi
6061 fi
6062
6063 if test $enable_dbus_service == "yes"; then
6064     if test -z "$XSLT"; then
6065        { { echo "$as_me:$LINENO: error: xsltproc not found, is required for D-Bus service" >&5
6066 echo "$as_me: error: xsltproc not found, is required for D-Bus service" >&2;}
6067    { (exit 1); exit 1; }; }
6068     fi
6069
6070 pkg_failed=no
6071 { echo "$as_me:$LINENO: checking for DBUS" >&5
6072 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
6073
6074 if test -n "$PKG_CONFIG"; then
6075     if test -n "$DBUS_CFLAGS"; then
6076         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
6077     else
6078         if test -n "$PKG_CONFIG" && \
6079     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6080   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }; then
6084   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
6085 else
6086   pkg_failed=yes
6087 fi
6088     fi
6089 else
6090         pkg_failed=untried
6091 fi
6092 if test -n "$PKG_CONFIG"; then
6093     if test -n "$DBUS_LIBS"; then
6094         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
6095     else
6096         if test -n "$PKG_CONFIG" && \
6097     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
6098   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; then
6102   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
6103 else
6104   pkg_failed=yes
6105 fi
6106     fi
6107 else
6108         pkg_failed=untried
6109 fi
6110
6111
6112
6113 if test $pkg_failed = yes; then
6114
6115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6116         _pkg_short_errors_supported=yes
6117 else
6118         _pkg_short_errors_supported=no
6119 fi
6120         if test $_pkg_short_errors_supported = yes; then
6121                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
6122         else
6123                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
6124         fi
6125         # Put the nasty error message in config.log where it belongs
6126         echo "$DBUS_PKG_ERRORS" >&5
6127
6128         { echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6; }
6130                 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6131 echo "$as_me: error: libdbus-1 is required" >&2;}
6132    { (exit 1); exit 1; }; }
6133 elif test $pkg_failed = untried; then
6134         { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6135 echo "$as_me: error: libdbus-1 is required" >&2;}
6136    { (exit 1); exit 1; }; }
6137 else
6138         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
6139         DBUS_LIBS=$pkg_cv_DBUS_LIBS
6140         { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6142         dummy=yes
6143 fi
6144     { echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
6145 echo $ECHO_N "checking for dbus_watch_get_unix_fd in -ldbus-1... $ECHO_C" >&6; }
6146 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   ac_check_lib_save_LIBS=$LIBS
6150 LIBS="-ldbus-1  $LIBS"
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157
6158 /* Override any GCC internal prototype to avoid an error.
6159    Use char because int might match the return type of a GCC
6160    builtin and then its argument prototype would still apply.  */
6161 #ifdef __cplusplus
6162 extern "C"
6163 #endif
6164 char dbus_watch_get_unix_fd ();
6165 int
6166 main ()
6167 {
6168 return dbus_watch_get_unix_fd ();
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6175 case "(($ac_try" in
6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177   *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180   (eval "$ac_link") 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } && {
6187          test -z "$ac_c_werror_flag" ||
6188          test ! -s conftest.err
6189        } && test -s conftest$ac_exeext &&
6190        $as_test_x conftest$ac_exeext; then
6191   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196         ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200       conftest$ac_exeext conftest.$ac_ext
6201 LIBS=$ac_check_lib_save_LIBS
6202 fi
6203 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
6204 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
6205 if test $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd = yes; then
6206   dummy=yes
6207 else
6208
6209 cat >>confdefs.h <<\_ACEOF
6210 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
6211 _ACEOF
6212
6213 fi
6214
6215     need_glib=yes
6216     # Recent libnotify releases work with gtk+-2.0 and gtk+-3.0. We
6217     # pick gtk+-2.0 here, to be compatible with old libnotify releases
6218     # which had that hard-cored and because sync-ui also depends on
6219     # gtk+-2.0.
6220
6221 pkg_failed=no
6222 { echo "$as_me:$LINENO: checking for LIBNOTIFY" >&5
6223 echo $ECHO_N "checking for LIBNOTIFY... $ECHO_C" >&6; }
6224
6225 if test -n "$PKG_CONFIG"; then
6226     if test -n "$LIBNOTIFY_CFLAGS"; then
6227         pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
6228     else
6229         if test -n "$PKG_CONFIG" && \
6230     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify gtk+-2.0\"") >&5
6231   ($PKG_CONFIG --exists --print-errors "libnotify gtk+-2.0") 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; then
6235   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify gtk+-2.0" 2>/dev/null`
6236 else
6237   pkg_failed=yes
6238 fi
6239     fi
6240 else
6241         pkg_failed=untried
6242 fi
6243 if test -n "$PKG_CONFIG"; then
6244     if test -n "$LIBNOTIFY_LIBS"; then
6245         pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
6246     else
6247         if test -n "$PKG_CONFIG" && \
6248     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify gtk+-2.0\"") >&5
6249   ($PKG_CONFIG --exists --print-errors "libnotify gtk+-2.0") 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; then
6253   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify gtk+-2.0" 2>/dev/null`
6254 else
6255   pkg_failed=yes
6256 fi
6257     fi
6258 else
6259         pkg_failed=untried
6260 fi
6261
6262
6263
6264 if test $pkg_failed = yes; then
6265
6266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6267         _pkg_short_errors_supported=yes
6268 else
6269         _pkg_short_errors_supported=no
6270 fi
6271         if test $_pkg_short_errors_supported = yes; then
6272                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify gtk+-2.0"`
6273         else
6274                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify gtk+-2.0"`
6275         fi
6276         # Put the nasty error message in config.log where it belongs
6277         echo "$LIBNOTIFY_PKG_ERRORS" >&5
6278
6279         { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6281                 HAVE_LIBNOTIFY=no
6282 elif test $pkg_failed = untried; then
6283         HAVE_LIBNOTIFY=no
6284 else
6285         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
6286         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
6287         { echo "$as_me:$LINENO: result: yes" >&5
6288 echo "${ECHO_T}yes" >&6; }
6289         HAVE_LIBNOTIFY=yes
6290 fi
6291     # Check whether --enable-notify was given.
6292 if test "${enable_notify+set}" = set; then
6293   enableval=$enable_notify;  test "$enableval" = "no" || test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found" >&5
6294 echo "$as_me: error: required libnotify package not found" >&2;}
6295    { (exit 1); exit 1; }; }
6296 else
6297    test $HAVE_LIBNOTIFY = "yes" || { { echo "$as_me:$LINENO: error: required libnotify package not found, use --disable-notify to compile without notifications" >&5
6298 echo "$as_me: error: required libnotify package not found, use --disable-notify to compile without notifications" >&2;}
6299    { (exit 1); exit 1; }; }
6300 fi
6301
6302     if test $HAVE_LIBNOTIFY == "yes"; then
6303
6304 cat >>confdefs.h <<\_ACEOF
6305 #define HAS_NOTIFY 1
6306 _ACEOF
6307
6308     fi
6309
6310 cat >>confdefs.h <<\_ACEOF
6311 #define DBUS_SERVICE 1
6312 _ACEOF
6313
6314 fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
6326
6327
6328 cat >>confdefs.h <<_ACEOF
6329 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
6330 _ACEOF
6331
6332
6333 if test $enable_gui != "no" || test $enable_dbus_service == "yes"; then
6334
6335   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6336 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6337     # Check whether --enable-nls was given.
6338 if test "${enable_nls+set}" = set; then
6339   enableval=$enable_nls; USE_NLS=$enableval
6340 else
6341   USE_NLS=yes
6342 fi
6343
6344   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6345 echo "${ECHO_T}$USE_NLS" >&6; }
6346
6347
6348
6349
6350 case "$am__api_version" in
6351     1.01234)
6352         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
6353 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
6354    { (exit 1); exit 1; }; }
6355     ;;
6356     *)
6357     ;;
6358 esac
6359
6360 if test -n "0.37.1"; then
6361     { echo "$as_me:$LINENO: checking for intltool >= 0.37.1" >&5
6362 echo $ECHO_N "checking for intltool >= 0.37.1... $ECHO_C" >&6; }
6363
6364     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6365     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6366     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6367
6368     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6369 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
6370     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6371         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&5
6372 echo "$as_me: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&2;}
6373    { (exit 1); exit 1; }; }
6374 fi
6375
6376 # Extract the first word of "intltool-update", so it can be a program name with args.
6377 set dummy intltool-update; ac_word=$2
6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   case $INTLTOOL_UPDATE in
6384   [\\/]* | ?:[\\/]*)
6385   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6386   ;;
6387   *)
6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393   for ac_exec_ext in '' $ac_executable_extensions; do
6394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403   ;;
6404 esac
6405 fi
6406 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6407 if test -n "$INTLTOOL_UPDATE"; then
6408   { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
6409 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
6410 else
6411   { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6413 fi
6414
6415
6416 # Extract the first word of "intltool-merge", so it can be a program name with args.
6417 set dummy intltool-merge; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   case $INTLTOOL_MERGE in
6424   [\\/]* | ?:[\\/]*)
6425   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6426   ;;
6427   *)
6428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433   for ac_exec_ext in '' $ac_executable_extensions; do
6434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443   ;;
6444 esac
6445 fi
6446 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6447 if test -n "$INTLTOOL_MERGE"; then
6448   { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
6449 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455
6456 # Extract the first word of "intltool-extract", so it can be a program name with args.
6457 set dummy intltool-extract; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   case $INTLTOOL_EXTRACT in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483   ;;
6484 esac
6485 fi
6486 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6487 if test -n "$INTLTOOL_EXTRACT"; then
6488   { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
6489 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
6490 else
6491   { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6493 fi
6494
6495
6496 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6497     { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
6498 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
6499    { (exit 1); exit 1; }; }
6500 fi
6501
6502   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 $< $@'
6503 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 $< $@'
6504      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 $< $@'
6505      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 $< $@'
6506       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6507      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 $< $@'
6508    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 $< $@'
6509     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 $< $@'
6510 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 $< $@'
6511        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 $< $@'
6512       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 $< $@'
6513       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6514       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 $< $@'
6515       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 $< $@'
6516     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 $< $@'
6517   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 $< $@'
6518     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 $< $@'
6519     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 $< $@'
6520    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 $< $@'
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 # Check the gettext tools to make sure they are GNU
6619 # Extract the first word of "xgettext", so it can be a program name with args.
6620 set dummy xgettext; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $XGETTEXT in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646   ;;
6647 esac
6648 fi
6649 XGETTEXT=$ac_cv_path_XGETTEXT
6650 if test -n "$XGETTEXT"; then
6651   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6652 echo "${ECHO_T}$XGETTEXT" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 # Extract the first word of "msgmerge", so it can be a program name with args.
6660 set dummy msgmerge; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   case $MSGMERGE in
6667   [\\/]* | ?:[\\/]*)
6668   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6669   ;;
6670   *)
6671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686   ;;
6687 esac
6688 fi
6689 MSGMERGE=$ac_cv_path_MSGMERGE
6690 if test -n "$MSGMERGE"; then
6691   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6692 echo "${ECHO_T}$MSGMERGE" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699 # Extract the first word of "msgfmt", so it can be a program name with args.
6700 set dummy msgfmt; ac_word=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_path_MSGFMT+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   case $MSGFMT in
6707   [\\/]* | ?:[\\/]*)
6708   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6709   ;;
6710   *)
6711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726   ;;
6727 esac
6728 fi
6729 MSGFMT=$ac_cv_path_MSGFMT
6730 if test -n "$MSGFMT"; then
6731   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6732 echo "${ECHO_T}$MSGFMT" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6740 set dummy gmsgfmt; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   case $GMSGFMT in
6747   [\\/]* | ?:[\\/]*)
6748   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6749   ;;
6750   *)
6751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6767   ;;
6768 esac
6769 fi
6770 GMSGFMT=$ac_cv_path_GMSGFMT
6771 if test -n "$GMSGFMT"; then
6772   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6773 echo "${ECHO_T}$GMSGFMT" >&6; }
6774 else
6775   { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779
6780 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6781     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6782 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6783    { (exit 1); exit 1; }; }
6784 fi
6785 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6786 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6787 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6788 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6789     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6790 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6791    { (exit 1); exit 1; }; }
6792 fi
6793
6794 # Extract the first word of "perl", so it can be a program name with args.
6795 set dummy perl; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   case $INTLTOOL_PERL in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821   ;;
6822 esac
6823 fi
6824 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6825 if test -n "$INTLTOOL_PERL"; then
6826   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6827 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833
6834 if test -z "$INTLTOOL_PERL"; then
6835    { { echo "$as_me:$LINENO: error: perl not found" >&5
6836 echo "$as_me: error: perl not found" >&2;}
6837    { (exit 1); exit 1; }; }
6838 fi
6839 { echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
6840 echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
6841 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6842 if test $? -ne 0; then
6843    { { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
6844 echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
6845    { (exit 1); exit 1; }; }
6846 else
6847    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6848    { echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
6849 echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
6850 fi
6851 if test "x" != "xno-xml"; then
6852    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
6853 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
6854    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6855        { echo "$as_me:$LINENO: result: ok" >&5
6856 echo "${ECHO_T}ok" >&6; }
6857    else
6858        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6859 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6860    { (exit 1); exit 1; }; }
6861    fi
6862 fi
6863
6864 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6865
6866
6867 # Set DATADIRNAME correctly if it is not set yet
6868 # (copied from glib-gettext.m4)
6869 if test -z "$DATADIRNAME"; then
6870   cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876
6877 int
6878 main ()
6879 {
6880 extern int _nl_msg_cat_cntr;
6881                        return _nl_msg_cat_cntr
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890   *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893   (eval "$ac_link") 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } && {
6900          test -z "$ac_c_werror_flag" ||
6901          test ! -s conftest.err
6902        } && test -s conftest$ac_exeext &&
6903        $as_test_x conftest$ac_exeext; then
6904   DATADIRNAME=share
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909         case $host in
6910     *-*-solaris*)
6911                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6912 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6913 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6924 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6925
6926 /* System header to define __stub macros and hopefully few prototypes,
6927     which can conflict with char bind_textdomain_codeset (); below.
6928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929     <limits.h> exists even on freestanding compilers.  */
6930
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6936
6937 #undef bind_textdomain_codeset
6938
6939 /* Override any GCC internal prototype to avoid an error.
6940    Use char because int might match the return type of a GCC
6941    builtin and then its argument prototype would still apply.  */
6942 #ifdef __cplusplus
6943 extern "C"
6944 #endif
6945 char bind_textdomain_codeset ();
6946 /* The GNU C library defines this for functions which it implements
6947     to always fail with ENOSYS.  Some functions are actually named
6948     something starting with __ and the normal name is an alias.  */
6949 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6950 choke me
6951 #endif
6952
6953 int
6954 main ()
6955 {
6956 return bind_textdomain_codeset ();
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6963 case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_link") 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && {
6975          test -z "$ac_c_werror_flag" ||
6976          test ! -s conftest.err
6977        } && test -s conftest$ac_exeext &&
6978        $as_test_x conftest$ac_exeext; then
6979   ac_cv_func_bind_textdomain_codeset=yes
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984         ac_cv_func_bind_textdomain_codeset=no
6985 fi
6986
6987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6988       conftest$ac_exeext conftest.$ac_ext
6989 fi
6990 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6991 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
6992 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6993   DATADIRNAME=share
6994 else
6995   DATADIRNAME=lib
6996 fi
6997
6998     ;;
6999     *)
7000     DATADIRNAME=lib
7001     ;;
7002     esac
7003 fi
7004
7005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7006       conftest$ac_exeext conftest.$ac_ext
7007 fi
7008
7009
7010
7011
7012
7013     GETTEXT_PACKAGE=syncevolution
7014
7015 cat >>confdefs.h <<_ACEOF
7016 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7017 _ACEOF
7018
7019
7020
7021 for ac_header in locale.h
7022 do
7023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 fi
7030 ac_res=`eval echo '${'$as_ac_Header'}'`
7031                { echo "$as_me:$LINENO: result: $ac_res" >&5
7032 echo "${ECHO_T}$ac_res" >&6; }
7033 else
7034   # Is the header compilable?
7035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 $ac_includes_default
7044 #include <$ac_header>
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053   (eval "$ac_compile") 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } && {
7060          test -z "$ac_c_werror_flag" ||
7061          test ! -s conftest.err
7062        } && test -s conftest.$ac_objext; then
7063   ac_header_compiler=yes
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068         ac_header_compiler=no
7069 fi
7070
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7073 echo "${ECHO_T}$ac_header_compiler" >&6; }
7074
7075 # Is the header present?
7076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084 #include <$ac_header>
7085 _ACEOF
7086 if { (ac_try="$ac_cpp conftest.$ac_ext"
7087 case "(($ac_try" in
7088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089   *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7093   ac_status=$?
7094   grep -v '^ *+' conftest.er1 >conftest.err
7095   rm -f conftest.er1
7096   cat conftest.err >&5
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } >/dev/null && {
7099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7100          test ! -s conftest.err
7101        }; then
7102   ac_header_preproc=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107   ac_header_preproc=no
7108 fi
7109
7110 rm -f conftest.err conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7112 echo "${ECHO_T}$ac_header_preproc" >&6; }
7113
7114 # So?  What about this header?
7115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7116   yes:no: )
7117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7121     ac_header_preproc=yes
7122     ;;
7123   no:yes:* )
7124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7136
7137     ;;
7138 esac
7139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   eval "$as_ac_Header=\$ac_header_preproc"
7145 fi
7146 ac_res=`eval echo '${'$as_ac_Header'}'`
7147                { echo "$as_me:$LINENO: result: $ac_res" >&5
7148 echo "${ECHO_T}$ac_res" >&6; }
7149
7150 fi
7151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7152   cat >>confdefs.h <<_ACEOF
7153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7154 _ACEOF
7155
7156 fi
7157
7158 done
7159
7160     if test $ac_cv_header_locale_h = yes; then
7161     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7162 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7163 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 #include <locale.h>
7173 int
7174 main ()
7175 {
7176 return LC_MESSAGES
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (ac_try="$ac_link"
7183 case "(($ac_try" in
7184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185   *) ac_try_echo=$ac_try;;
7186 esac
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188   (eval "$ac_link") 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } && {
7195          test -z "$ac_c_werror_flag" ||
7196          test ! -s conftest.err
7197        } && test -s conftest$ac_exeext &&
7198        $as_test_x conftest$ac_exeext; then
7199   am_cv_val_LC_MESSAGES=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204         am_cv_val_LC_MESSAGES=no
7205 fi
7206
7207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7208       conftest$ac_exeext conftest.$ac_ext
7209 fi
7210 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7211 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7212     if test $am_cv_val_LC_MESSAGES = yes; then
7213
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_LC_MESSAGES 1
7216 _ACEOF
7217
7218     fi
7219   fi
7220      USE_NLS=yes
7221
7222
7223     gt_cv_have_gettext=no
7224
7225     CATOBJEXT=NONE
7226     XGETTEXT=:
7227     INTLLIBS=
7228
7229     if test "${ac_cv_header_libintl_h+set}" = set; then
7230   { echo "$as_me:$LINENO: checking for libintl.h" >&5
7231 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7232 if test "${ac_cv_header_libintl_h+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 fi
7235 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7236 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7237 else
7238   # Is the header compilable?
7239 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
7240 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247 $ac_includes_default
7248 #include <libintl.h>
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254   *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257   (eval "$ac_compile") 2>conftest.er1
7258   ac_status=$?
7259   grep -v '^ *+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } && {
7264          test -z "$ac_c_werror_flag" ||
7265          test ! -s conftest.err
7266        } && test -s conftest.$ac_objext; then
7267   ac_header_compiler=yes
7268 else
7269   echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272         ac_header_compiler=no
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7277 echo "${ECHO_T}$ac_header_compiler" >&6; }
7278
7279 # Is the header present?
7280 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
7281 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 #include <libintl.h>
7289 _ACEOF
7290 if { (ac_try="$ac_cpp conftest.$ac_ext"
7291 case "(($ac_try" in
7292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293   *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } >/dev/null && {
7303          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7304          test ! -s conftest.err
7305        }; then
7306   ac_header_preproc=yes
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311   ac_header_preproc=no
7312 fi
7313
7314 rm -f conftest.err conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7316 echo "${ECHO_T}$ac_header_preproc" >&6; }
7317
7318 # So?  What about this header?
7319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7320   yes:no: )
7321     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7322 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7323     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7324 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7325     ac_header_preproc=yes
7326     ;;
7327   no:yes:* )
7328     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7329 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7330     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7331 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7332     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7333 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7334     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7335 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7336     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7337 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7338     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7339 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7340
7341     ;;
7342 esac
7343 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7344 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7345 if test "${ac_cv_header_libintl_h+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   ac_cv_header_libintl_h=$ac_header_preproc
7349 fi
7350 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7351 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7352
7353 fi
7354 if test $ac_cv_header_libintl_h = yes; then
7355   gt_cv_func_dgettext_libintl="no"
7356       libintl_extra_libs=""
7357
7358       #
7359       # First check in libc
7360       #
7361       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
7362 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
7363 if test "${gt_cv_func_ngettext_libc+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h.  */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h.  */
7372
7373 #include <libintl.h>
7374
7375 int
7376 main ()
7377 {
7378 return !ngettext ("","", 1)
7379   ;
7380   return 0;
7381 }
7382 _ACEOF
7383 rm -f conftest.$ac_objext conftest$ac_exeext
7384 if { (ac_try="$ac_link"
7385 case "(($ac_try" in
7386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387   *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390   (eval "$ac_link") 2>conftest.er1
7391   ac_status=$?
7392   grep -v '^ *+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } && {
7397          test -z "$ac_c_werror_flag" ||
7398          test ! -s conftest.err
7399        } && test -s conftest$ac_exeext &&
7400        $as_test_x conftest$ac_exeext; then
7401   gt_cv_func_ngettext_libc=yes
7402 else
7403   echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7405
7406         gt_cv_func_ngettext_libc=no
7407 fi
7408
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410       conftest$ac_exeext conftest.$ac_ext
7411
7412 fi
7413 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
7414 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
7415
7416       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7417               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7418 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
7419 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428
7429 #include <libintl.h>
7430
7431 int
7432 main ()
7433 {
7434 return !dgettext ("","")
7435   ;
7436   return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446   (eval "$ac_link") 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } && {
7453          test -z "$ac_c_werror_flag" ||
7454          test ! -s conftest.err
7455        } && test -s conftest$ac_exeext &&
7456        $as_test_x conftest$ac_exeext; then
7457   gt_cv_func_dgettext_libc=yes
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462         gt_cv_func_dgettext_libc=no
7463 fi
7464
7465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7466       conftest$ac_exeext conftest.$ac_ext
7467
7468 fi
7469 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7470 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
7471       fi
7472
7473       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7474
7475 for ac_func in bind_textdomain_codeset
7476 do
7477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7491 #define $ac_func innocuous_$ac_func
7492
7493 /* System header to define __stub macros and hopefully few prototypes,
7494     which can conflict with char $ac_func (); below.
7495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496     <limits.h> exists even on freestanding compilers.  */
7497
7498 #ifdef __STDC__
7499 # include <limits.h>
7500 #else
7501 # include <assert.h>
7502 #endif
7503
7504 #undef $ac_func
7505
7506 /* Override any GCC internal prototype to avoid an error.
7507    Use char because int might match the return type of a GCC
7508    builtin and then its argument prototype would still apply.  */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 char $ac_func ();
7513 /* The GNU C library defines this for functions which it implements
7514     to always fail with ENOSYS.  Some functions are actually named
7515     something starting with __ and the normal name is an alias.  */
7516 #if defined __stub_$ac_func || defined __stub___$ac_func
7517 choke me
7518 #endif
7519
7520 int
7521 main ()
7522 {
7523 return $ac_func ();
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7530 case "(($ac_try" in
7531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532   *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535   (eval "$ac_link") 2>conftest.er1
7536   ac_status=$?
7537   grep -v '^ *+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } && {
7542          test -z "$ac_c_werror_flag" ||
7543          test ! -s conftest.err
7544        } && test -s conftest$ac_exeext &&
7545        $as_test_x conftest$ac_exeext; then
7546   eval "$as_ac_var=yes"
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551         eval "$as_ac_var=no"
7552 fi
7553
7554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7555       conftest$ac_exeext conftest.$ac_ext
7556 fi
7557 ac_res=`eval echo '${'$as_ac_var'}'`
7558                { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7560 if test `eval echo '${'$as_ac_var'}'` = yes; then
7561   cat >>confdefs.h <<_ACEOF
7562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7563 _ACEOF
7564
7565 fi
7566 done
7567
7568       fi
7569
7570       #
7571       # If we don't have everything we want, check in libintl
7572       #
7573       if test "$gt_cv_func_dgettext_libc" != "yes" \
7574          || test "$gt_cv_func_ngettext_libc" != "yes" \
7575          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7576
7577         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7578 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
7579 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   ac_check_lib_save_LIBS=$LIBS
7583 LIBS="-lintl  $LIBS"
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h.  */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h.  */
7590
7591 /* Override any GCC internal prototype to avoid an error.
7592    Use char because int might match the return type of a GCC
7593    builtin and then its argument prototype would still apply.  */
7594 #ifdef __cplusplus
7595 extern "C"
7596 #endif
7597 char bindtextdomain ();
7598 int
7599 main ()
7600 {
7601 return bindtextdomain ();
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (ac_try="$ac_link"
7608 case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_link") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } && {
7620          test -z "$ac_c_werror_flag" ||
7621          test ! -s conftest.err
7622        } && test -s conftest$ac_exeext &&
7623        $as_test_x conftest$ac_exeext; then
7624   ac_cv_lib_intl_bindtextdomain=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629         ac_cv_lib_intl_bindtextdomain=no
7630 fi
7631
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633       conftest$ac_exeext conftest.$ac_ext
7634 LIBS=$ac_check_lib_save_LIBS
7635 fi
7636 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7637 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7638 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7639   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7640 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7641 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lintl  $LIBS"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h.  */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h.  */
7652
7653 /* Override any GCC internal prototype to avoid an error.
7654    Use char because int might match the return type of a GCC
7655    builtin and then its argument prototype would still apply.  */
7656 #ifdef __cplusplus
7657 extern "C"
7658 #endif
7659 char ngettext ();
7660 int
7661 main ()
7662 {
7663 return ngettext ();
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7670 case "(($ac_try" in
7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672   *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675   (eval "$ac_link") 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } && {
7682          test -z "$ac_c_werror_flag" ||
7683          test ! -s conftest.err
7684        } && test -s conftest$ac_exeext &&
7685        $as_test_x conftest$ac_exeext; then
7686   ac_cv_lib_intl_ngettext=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691         ac_cv_lib_intl_ngettext=no
7692 fi
7693
7694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7695       conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_check_lib_save_LIBS
7697 fi
7698 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7699 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7700 if test $ac_cv_lib_intl_ngettext = yes; then
7701   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7702 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7703 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lintl  $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any GCC internal prototype to avoid an error.
7716    Use char because int might match the return type of a GCC
7717    builtin and then its argument prototype would still apply.  */
7718 #ifdef __cplusplus
7719 extern "C"
7720 #endif
7721 char dgettext ();
7722 int
7723 main ()
7724 {
7725 return dgettext ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7732 case "(($ac_try" in
7733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734   *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } && {
7744          test -z "$ac_c_werror_flag" ||
7745          test ! -s conftest.err
7746        } && test -s conftest$ac_exeext &&
7747        $as_test_x conftest$ac_exeext; then
7748   ac_cv_lib_intl_dgettext=yes
7749 else
7750   echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753         ac_cv_lib_intl_dgettext=no
7754 fi
7755
7756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7757       conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7759 fi
7760 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7761 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7762 if test $ac_cv_lib_intl_dgettext = yes; then
7763   gt_cv_func_dgettext_libintl=yes
7764 fi
7765
7766 fi
7767
7768 fi
7769
7770
7771         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7772           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7773 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7774           { echo "$as_me:$LINENO: result: " >&5
7775 echo "${ECHO_T}" >&6; }
7776           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7777 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7778 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lintl -liconv $LIBS"
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789
7790 /* Override any GCC internal prototype to avoid an error.
7791    Use char because int might match the return type of a GCC
7792    builtin and then its argument prototype would still apply.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 char ngettext ();
7797 int
7798 main ()
7799 {
7800 return ngettext ();
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7807 case "(($ac_try" in
7808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809   *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812   (eval "$ac_link") 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } && {
7819          test -z "$ac_c_werror_flag" ||
7820          test ! -s conftest.err
7821        } && test -s conftest$ac_exeext &&
7822        $as_test_x conftest$ac_exeext; then
7823   ac_cv_lib_intl_ngettext=yes
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828         ac_cv_lib_intl_ngettext=no
7829 fi
7830
7831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7832       conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7834 fi
7835 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7836 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7837 if test $ac_cv_lib_intl_ngettext = yes; then
7838   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7839 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7840 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lintl -liconv $LIBS"
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851
7852 /* Override any GCC internal prototype to avoid an error.
7853    Use char because int might match the return type of a GCC
7854    builtin and then its argument prototype would still apply.  */
7855 #ifdef __cplusplus
7856 extern "C"
7857 #endif
7858 char dcgettext ();
7859 int
7860 main ()
7861 {
7862 return dcgettext ();
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_link") 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } && {
7881          test -z "$ac_c_werror_flag" ||
7882          test ! -s conftest.err
7883        } && test -s conftest$ac_exeext &&
7884        $as_test_x conftest$ac_exeext; then
7885   ac_cv_lib_intl_dcgettext=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890         ac_cv_lib_intl_dcgettext=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894       conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7896 fi
7897 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7898 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7899 if test $ac_cv_lib_intl_dcgettext = yes; then
7900   gt_cv_func_dgettext_libintl=yes
7901                         libintl_extra_libs=-liconv
7902 else
7903   :
7904 fi
7905
7906 else
7907   :
7908 fi
7909
7910         fi
7911
7912         #
7913         # If we found libintl, then check in it for bind_textdomain_codeset();
7914         # we'll prefer libc if neither have bind_textdomain_codeset(),
7915         # and both have dgettext and ngettext
7916         #
7917         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7918           glib_save_LIBS="$LIBS"
7919           LIBS="$LIBS -lintl $libintl_extra_libs"
7920           unset ac_cv_func_bind_textdomain_codeset
7921
7922 for ac_func in bind_textdomain_codeset
7923 do
7924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7938 #define $ac_func innocuous_$ac_func
7939
7940 /* System header to define __stub macros and hopefully few prototypes,
7941     which can conflict with char $ac_func (); below.
7942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7943     <limits.h> exists even on freestanding compilers.  */
7944
7945 #ifdef __STDC__
7946 # include <limits.h>
7947 #else
7948 # include <assert.h>
7949 #endif
7950
7951 #undef $ac_func
7952
7953 /* Override any GCC internal prototype to avoid an error.
7954    Use char because int might match the return type of a GCC
7955    builtin and then its argument prototype would still apply.  */
7956 #ifdef __cplusplus
7957 extern "C"
7958 #endif
7959 char $ac_func ();
7960 /* The GNU C library defines this for functions which it implements
7961     to always fail with ENOSYS.  Some functions are actually named
7962     something starting with __ and the normal name is an alias.  */
7963 #if defined __stub_$ac_func || defined __stub___$ac_func
7964 choke me
7965 #endif
7966
7967 int
7968 main ()
7969 {
7970 return $ac_func ();
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_link") 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } && {
7989          test -z "$ac_c_werror_flag" ||
7990          test ! -s conftest.err
7991        } && test -s conftest$ac_exeext &&
7992        $as_test_x conftest$ac_exeext; then
7993   eval "$as_ac_var=yes"
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998         eval "$as_ac_var=no"
7999 fi
8000
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002       conftest$ac_exeext conftest.$ac_ext
8003 fi
8004 ac_res=`eval echo '${'$as_ac_var'}'`
8005                { echo "$as_me:$LINENO: result: $ac_res" >&5
8006 echo "${ECHO_T}$ac_res" >&6; }
8007 if test `eval echo '${'$as_ac_var'}'` = yes; then
8008   cat >>confdefs.h <<_ACEOF
8009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8010 _ACEOF
8011
8012 fi
8013 done
8014
8015           LIBS="$glib_save_LIBS"
8016
8017           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8018             gt_cv_func_dgettext_libc=no
8019           else
8020             if test "$gt_cv_func_dgettext_libc" = "yes" \
8021                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8022               gt_cv_func_dgettext_libintl=no
8023             fi
8024           fi
8025         fi
8026       fi
8027
8028       if test "$gt_cv_func_dgettext_libc" = "yes" \
8029         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8030         gt_cv_have_gettext=yes
8031       fi
8032
8033       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8034         INTLLIBS="-lintl $libintl_extra_libs"
8035       fi
8036
8037       if test "$gt_cv_have_gettext" = "yes"; then
8038
8039 cat >>confdefs.h <<\_ACEOF
8040 #define HAVE_GETTEXT 1
8041 _ACEOF
8042
8043         # Extract the first word of "msgfmt", so it can be a program name with args.
8044 set dummy msgfmt; ac_word=$2
8045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8047 if test "${ac_cv_path_MSGFMT+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   case "$MSGFMT" in
8051   /*)
8052   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8053   ;;
8054   *)
8055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8056   for ac_dir in $PATH; do
8057     test -z "$ac_dir" && ac_dir=.
8058     if test -f $ac_dir/$ac_word; then
8059       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8060         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8061         break
8062       fi
8063     fi
8064   done
8065   IFS="$ac_save_ifs"
8066   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8067   ;;
8068 esac
8069 fi
8070 MSGFMT="$ac_cv_path_MSGFMT"
8071 if test "$MSGFMT" != "no"; then
8072   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8073 echo "${ECHO_T}$MSGFMT" >&6; }
8074 else
8075   { echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6; }
8077 fi
8078         if test "$MSGFMT" != "no"; then
8079           glib_save_LIBS="$LIBS"
8080           LIBS="$LIBS $INTLLIBS"
8081
8082 for ac_func in dcgettext
8083 do
8084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8098 #define $ac_func innocuous_$ac_func
8099
8100 /* System header to define __stub macros and hopefully few prototypes,
8101     which can conflict with char $ac_func (); below.
8102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103     <limits.h> exists even on freestanding compilers.  */
8104
8105 #ifdef __STDC__
8106 # include <limits.h>
8107 #else
8108 # include <assert.h>
8109 #endif
8110
8111 #undef $ac_func
8112
8113 /* Override any GCC internal prototype to avoid an error.
8114    Use char because int might match the return type of a GCC
8115    builtin and then its argument prototype would still apply.  */
8116 #ifdef __cplusplus
8117 extern "C"
8118 #endif
8119 char $ac_func ();
8120 /* The GNU C library defines this for functions which it implements
8121     to always fail with ENOSYS.  Some functions are actually named
8122     something starting with __ and the normal name is an alias.  */
8123 #if defined __stub_$ac_func || defined __stub___$ac_func
8124 choke me
8125 #endif
8126
8127 int
8128 main ()
8129 {
8130 return $ac_func ();
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_link") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest$ac_exeext &&
8152        $as_test_x conftest$ac_exeext; then
8153   eval "$as_ac_var=yes"
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158         eval "$as_ac_var=no"
8159 fi
8160
8161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8162       conftest$ac_exeext conftest.$ac_ext
8163 fi
8164 ac_res=`eval echo '${'$as_ac_var'}'`
8165                { echo "$as_me:$LINENO: result: $ac_res" >&5
8166 echo "${ECHO_T}$ac_res" >&6; }
8167 if test `eval echo '${'$as_ac_var'}'` = yes; then
8168   cat >>confdefs.h <<_ACEOF
8169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8170 _ACEOF
8171
8172 fi
8173 done
8174
8175           MSGFMT_OPTS=
8176           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
8177 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
8178           cat >conftest.foo <<_ACEOF
8179
8180 msgid ""
8181 msgstr ""
8182 "Content-Type: text/plain; charset=UTF-8\n"
8183 "Project-Id-Version: test 1.0\n"
8184 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8185 "Last-Translator: test <foo@bar.xx>\n"
8186 "Language-Team: C <LL@li.org>\n"
8187 "MIME-Version: 1.0\n"
8188 "Content-Transfer-Encoding: 8bit\n"
8189
8190 _ACEOF
8191 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
8192   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; then
8196   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6; }
8198 else { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8200 echo "$as_me: failed input was:" >&5
8201 sed 's/^/| /' conftest.foo >&5
8202 fi
8203
8204           # Extract the first word of "gmsgfmt", so it can be a program name with args.
8205 set dummy gmsgfmt; ac_word=$2
8206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8208 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   case $GMSGFMT in
8212   [\\/]* | ?:[\\/]*)
8213   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8214   ;;
8215   *)
8216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221   for ac_exec_ext in '' $ac_executable_extensions; do
8222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228 done
8229 IFS=$as_save_IFS
8230
8231   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8232   ;;
8233 esac
8234 fi
8235 GMSGFMT=$ac_cv_path_GMSGFMT
8236 if test -n "$GMSGFMT"; then
8237   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8238 echo "${ECHO_T}$GMSGFMT" >&6; }
8239 else
8240   { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8242 fi
8243
8244
8245           # Extract the first word of "xgettext", so it can be a program name with args.
8246 set dummy xgettext; ac_word=$2
8247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   case "$XGETTEXT" in
8253   /*)
8254   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8255   ;;
8256   *)
8257   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8258   for ac_dir in $PATH; do
8259     test -z "$ac_dir" && ac_dir=.
8260     if test -f $ac_dir/$ac_word; then
8261       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8262         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8263         break
8264       fi
8265     fi
8266   done
8267   IFS="$ac_save_ifs"
8268   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8269   ;;
8270 esac
8271 fi
8272 XGETTEXT="$ac_cv_path_XGETTEXT"
8273 if test "$XGETTEXT" != ":"; then
8274   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8275 echo "${ECHO_T}$XGETTEXT" >&6; }
8276 else
8277   { echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6; }
8279 fi
8280
8281           cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 int
8289 main ()
8290 {
8291 extern int _nl_msg_cat_cntr;
8292                          return _nl_msg_cat_cntr
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_link") 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && {
8311          test -z "$ac_c_werror_flag" ||
8312          test ! -s conftest.err
8313        } && test -s conftest$ac_exeext &&
8314        $as_test_x conftest$ac_exeext; then
8315   CATOBJEXT=.gmo
8316              DATADIRNAME=share
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321         case $host in
8322             *-*-solaris*)
8323                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8324 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8325 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8336 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8337
8338 /* System header to define __stub macros and hopefully few prototypes,
8339     which can conflict with char bind_textdomain_codeset (); below.
8340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8341     <limits.h> exists even on freestanding compilers.  */
8342
8343 #ifdef __STDC__
8344 # include <limits.h>
8345 #else
8346 # include <assert.h>
8347 #endif
8348
8349 #undef bind_textdomain_codeset
8350
8351 /* Override any GCC internal prototype to avoid an error.
8352    Use char because int might match the return type of a GCC
8353    builtin and then its argument prototype would still apply.  */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 char bind_textdomain_codeset ();
8358 /* The GNU C library defines this for functions which it implements
8359     to always fail with ENOSYS.  Some functions are actually named
8360     something starting with __ and the normal name is an alias.  */
8361 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8362 choke me
8363 #endif
8364
8365 int
8366 main ()
8367 {
8368 return bind_textdomain_codeset ();
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (ac_try="$ac_link"
8375 case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_link") 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } && {
8387          test -z "$ac_c_werror_flag" ||
8388          test ! -s conftest.err
8389        } && test -s conftest$ac_exeext &&
8390        $as_test_x conftest$ac_exeext; then
8391   ac_cv_func_bind_textdomain_codeset=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396         ac_cv_func_bind_textdomain_codeset=no
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8400       conftest$ac_exeext conftest.$ac_ext
8401 fi
8402 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8403 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8404 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8405   CATOBJEXT=.gmo
8406                DATADIRNAME=share
8407 else
8408   CATOBJEXT=.mo
8409                DATADIRNAME=lib
8410 fi
8411
8412             ;;
8413             *)
8414             CATOBJEXT=.mo
8415             DATADIRNAME=lib
8416             ;;
8417             esac
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8421       conftest$ac_exeext conftest.$ac_ext
8422           LIBS="$glib_save_LIBS"
8423           INSTOBJEXT=.mo
8424         else
8425           gt_cv_have_gettext=no
8426         fi
8427       fi
8428
8429 fi
8430
8431
8432
8433     if test "$gt_cv_have_gettext" = "yes" ; then
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define ENABLE_NLS 1
8437 _ACEOF
8438
8439     fi
8440
8441         if test "$XGETTEXT" != ":"; then
8442                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8443         : ;
8444       else
8445         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8446 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8447         XGETTEXT=":"
8448       fi
8449     fi
8450
8451     # We need to process the po/ directory.
8452     POSUB=po
8453
8454     ac_config_commands="$ac_config_commands default-1"
8455
8456
8457                 for lang in $ALL_LINGUAS; do
8458       GMOFILES="$GMOFILES $lang.gmo"
8459       POFILES="$POFILES $lang.po"
8460     done
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474    if test "$gt_cv_have_gettext" = "yes"; then
8475      if test "x$ALL_LINGUAS" = "x"; then
8476        LINGUAS=
8477      else
8478        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8479 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8480        NEW_LINGUAS=
8481        for presentlang in $ALL_LINGUAS; do
8482          useit=no
8483          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8484            desiredlanguages="$LINGUAS"
8485          else
8486            desiredlanguages="$ALL_LINGUAS"
8487          fi
8488          for desiredlang in $desiredlanguages; do
8489            # Use the presentlang catalog if desiredlang is
8490            #   a. equal to presentlang, or
8491            #   b. a variant of presentlang (because in this case,
8492            #      presentlang can be used as a fallback for messages
8493            #      which are not translated in the desiredlang catalog).
8494            case "$desiredlang" in
8495              "$presentlang"*) useit=yes;;
8496            esac
8497          done
8498          if test $useit = yes; then
8499            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8500          fi
8501        done
8502        LINGUAS=$NEW_LINGUAS
8503        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8504 echo "${ECHO_T}$LINGUAS" >&6; }
8505      fi
8506
8507           if test -n "$LINGUAS"; then
8508        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8509      fi
8510    fi
8511
8512             MKINSTALLDIRS=
8513    if test -n "$ac_aux_dir"; then
8514      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8515    fi
8516    if test -z "$MKINSTALLDIRS"; then
8517      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8518    fi
8519
8520
8521          test -d po || mkdir po
8522    if test "x$srcdir" != "x."; then
8523      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8524        posrcprefix="$srcdir/"
8525      else
8526        posrcprefix="../$srcdir/"
8527      fi
8528    else
8529      posrcprefix="../"
8530    fi
8531    rm -f po/POTFILES
8532    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8533         < $srcdir/po/POTFILES.in > po/POTFILES
8534
8535     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
8536 fi
8537
8538 # decide which sync-ui(s) we are building:
8539 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
8540 case $enable_gui in
8541      all) GUI_PROGRAMS='sync-ui-gtk${EXEEXT} sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="sync-gtk.desktop sync-moblin.desktop";;
8542      gtk|moblin) GUI_PROGRAMS='sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="sync.desktop";;
8543      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
8544      *) { { echo "$as_me:$LINENO: error: Unknown enable_gui type: '$enable_gui'" >&5
8545 echo "$as_me: error: Unknown enable_gui type: '$enable_gui'" >&2;}
8546    { (exit 1); exit 1; }; }
8547 esac
8548
8549 if test $enable_gui != "no"; then
8550
8551 pkg_failed=no
8552 { echo "$as_me:$LINENO: checking for DBUS_GLIB" >&5
8553 echo $ECHO_N "checking for DBUS_GLIB... $ECHO_C" >&6; }
8554
8555 if test -n "$PKG_CONFIG"; then
8556     if test -n "$DBUS_GLIB_CFLAGS"; then
8557         pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
8558     else
8559         if test -n "$PKG_CONFIG" && \
8560     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8561   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; then
8565   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
8566 else
8567   pkg_failed=yes
8568 fi
8569     fi
8570 else
8571         pkg_failed=untried
8572 fi
8573 if test -n "$PKG_CONFIG"; then
8574     if test -n "$DBUS_GLIB_LIBS"; then
8575         pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
8576     else
8577         if test -n "$PKG_CONFIG" && \
8578     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
8579   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; then
8583   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
8584 else
8585   pkg_failed=yes
8586 fi
8587     fi
8588 else
8589         pkg_failed=untried
8590 fi
8591
8592
8593
8594 if test $pkg_failed = yes; then
8595
8596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8597         _pkg_short_errors_supported=yes
8598 else
8599         _pkg_short_errors_supported=no
8600 fi
8601         if test $_pkg_short_errors_supported = yes; then
8602                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8603         else
8604                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
8605         fi
8606         # Put the nasty error message in config.log where it belongs
8607         echo "$DBUS_GLIB_PKG_ERRORS" >&5
8608
8609         { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8610
8611 $DBUS_GLIB_PKG_ERRORS
8612
8613 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8614 installed software in a non-standard prefix.
8615
8616 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8617 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8618 See the pkg-config man page for more details.
8619 " >&5
8620 echo "$as_me: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
8621
8622 $DBUS_GLIB_PKG_ERRORS
8623
8624 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8625 installed software in a non-standard prefix.
8626
8627 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8628 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8629 See the pkg-config man page for more details.
8630 " >&2;}
8631    { (exit 1); exit 1; }; }
8632 elif test $pkg_failed = untried; then
8633         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
8634 is in your PATH or set the PKG_CONFIG environment variable to the full
8635 path to pkg-config.
8636
8637 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8638 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8639 See the pkg-config man page for more details.
8640
8641 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
8644 is in your PATH or set the PKG_CONFIG environment variable to the full
8645 path to pkg-config.
8646
8647 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
8648 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
8649 See the pkg-config man page for more details.
8650
8651 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8652 See \`config.log' for more details." >&2;}
8653    { (exit 1); exit 1; }; }
8654 else
8655         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
8656         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
8657         { echo "$as_me:$LINENO: result: yes" >&5
8658 echo "${ECHO_T}yes" >&6; }
8659         :
8660 fi
8661     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
8662 set dummy dbus-binding-tool; ac_word=$2
8663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8665 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   case $DBUS_BINDING_TOOL in
8669   [\\/]* | ?:[\\/]*)
8670   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
8671   ;;
8672   *)
8673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676   IFS=$as_save_IFS
8677   test -z "$as_dir" && as_dir=.
8678   for ac_exec_ext in '' $ac_executable_extensions; do
8679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
8681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8682     break 2
8683   fi
8684 done
8685 done
8686 IFS=$as_save_IFS
8687
8688   ;;
8689 esac
8690 fi
8691 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
8692 if test -n "$DBUS_BINDING_TOOL"; then
8693   { echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
8694 echo "${ECHO_T}$DBUS_BINDING_TOOL" >&6; }
8695 else
8696   { echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6; }
8698 fi
8699
8700
8701     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
8702 set dummy glib-genmarshal; ac_word=$2
8703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8705 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   case $GLIB_GENMARSHAL in
8709   [\\/]* | ?:[\\/]*)
8710   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
8711   ;;
8712   *)
8713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716   IFS=$as_save_IFS
8717   test -z "$as_dir" && as_dir=.
8718   for ac_exec_ext in '' $ac_executable_extensions; do
8719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
8721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8722     break 2
8723   fi
8724 done
8725 done
8726 IFS=$as_save_IFS
8727
8728   ;;
8729 esac
8730 fi
8731 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
8732 if test -n "$GLIB_GENMARSHAL"; then
8733   { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
8734 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
8735 else
8736   { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8738 fi
8739
8740
8741
8742     gui_modules="glib-2.0 dbus-glib-1 >= 0.60 gtk+-2.0 libglade-2.0 gio-2.0"
8743     if test $enable_gui == "moblin"; then
8744
8745 cat >>confdefs.h <<\_ACEOF
8746 #define USE_MOBLIN_UX 1
8747 _ACEOF
8748
8749     fi
8750     if test $enable_gui == "moblin" -o $enable_gui == "all"; then
8751         gui_modules="$guimodules mx-gtk-1.0"
8752
8753
8754 pkg_failed=no
8755 { echo "$as_me:$LINENO: checking for MX_GTK_0_99_1" >&5
8756 echo $ECHO_N "checking for MX_GTK_0_99_1... $ECHO_C" >&6; }
8757
8758 if test -n "$PKG_CONFIG"; then
8759     if test -n "$MX_GTK_0_99_1_CFLAGS"; then
8760         pkg_cv_MX_GTK_0_99_1_CFLAGS="$MX_GTK_0_99_1_CFLAGS"
8761     else
8762         if test -n "$PKG_CONFIG" && \
8763     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8764   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; then
8768   pkg_cv_MX_GTK_0_99_1_CFLAGS=`$PKG_CONFIG --cflags "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8769 else
8770   pkg_failed=yes
8771 fi
8772     fi
8773 else
8774         pkg_failed=untried
8775 fi
8776 if test -n "$PKG_CONFIG"; then
8777     if test -n "$MX_GTK_0_99_1_LIBS"; then
8778         pkg_cv_MX_GTK_0_99_1_LIBS="$MX_GTK_0_99_1_LIBS"
8779     else
8780         if test -n "$PKG_CONFIG" && \
8781     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mx-gtk-1.0 >= 0.99.1\"") >&5
8782   ($PKG_CONFIG --exists --print-errors "mx-gtk-1.0 >= 0.99.1") 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; then
8786   pkg_cv_MX_GTK_0_99_1_LIBS=`$PKG_CONFIG --libs "mx-gtk-1.0 >= 0.99.1" 2>/dev/null`
8787 else
8788   pkg_failed=yes
8789 fi
8790     fi
8791 else
8792         pkg_failed=untried
8793 fi
8794
8795
8796
8797 if test $pkg_failed = yes; then
8798
8799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8800         _pkg_short_errors_supported=yes
8801 else
8802         _pkg_short_errors_supported=no
8803 fi
8804         if test $_pkg_short_errors_supported = yes; then
8805                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8806         else
8807                 MX_GTK_0_99_1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mx-gtk-1.0 >= 0.99.1"`
8808         fi
8809         # Put the nasty error message in config.log where it belongs
8810         echo "$MX_GTK_0_99_1_PKG_ERRORS" >&5
8811
8812         { echo "$as_me:$LINENO: result: no" >&5
8813 echo "${ECHO_T}no" >&6; }
8814                 have_mx_gtk_0_99_1="no"
8815 elif test $pkg_failed = untried; then
8816         have_mx_gtk_0_99_1="no"
8817 else
8818         MX_GTK_0_99_1_CFLAGS=$pkg_cv_MX_GTK_0_99_1_CFLAGS
8819         MX_GTK_0_99_1_LIBS=$pkg_cv_MX_GTK_0_99_1_LIBS
8820         { echo "$as_me:$LINENO: result: yes" >&5
8821 echo "${ECHO_T}yes" >&6; }
8822         have_mx_gtk_0_99_1="yes"
8823 fi
8824         if test $have_mx_gtk_0_99_1 == "yes"; then
8825
8826 cat >>confdefs.h <<\_ACEOF
8827 #define MX_GTK_0_99_1 1
8828 _ACEOF
8829
8830         fi
8831     fi
8832
8833
8834 pkg_failed=no
8835 { echo "$as_me:$LINENO: checking for UNIQUE" >&5
8836 echo $ECHO_N "checking for UNIQUE... $ECHO_C" >&6; }
8837
8838 if test -n "$PKG_CONFIG"; then
8839     if test -n "$UNIQUE_CFLAGS"; then
8840         pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
8841     else
8842         if test -n "$PKG_CONFIG" && \
8843     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8844   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; then
8848   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
8849 else
8850   pkg_failed=yes
8851 fi
8852     fi
8853 else
8854         pkg_failed=untried
8855 fi
8856 if test -n "$PKG_CONFIG"; then
8857     if test -n "$UNIQUE_LIBS"; then
8858         pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
8859     else
8860         if test -n "$PKG_CONFIG" && \
8861     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
8862   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; then
8866   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
8867 else
8868   pkg_failed=yes
8869 fi
8870     fi
8871 else
8872         pkg_failed=untried
8873 fi
8874
8875
8876
8877 if test $pkg_failed = yes; then
8878
8879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8880         _pkg_short_errors_supported=yes
8881 else
8882         _pkg_short_errors_supported=no
8883 fi
8884         if test $_pkg_short_errors_supported = yes; then
8885                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
8886         else
8887                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
8888         fi
8889         # Put the nasty error message in config.log where it belongs
8890         echo "$UNIQUE_PKG_ERRORS" >&5
8891
8892         { echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6; }
8894                 have_unique="no"
8895 elif test $pkg_failed = untried; then
8896         have_unique="no"
8897 else
8898         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
8899         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
8900         { echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6; }
8902         have_unique="yes"
8903 fi
8904     if test $have_unique == "yes"; then
8905         gui_modules="$gui_modules unique-1.0"
8906
8907 cat >>confdefs.h <<\_ACEOF
8908 #define ENABLE_UNIQUE 1
8909 _ACEOF
8910
8911     fi
8912
8913
8914 pkg_failed=no
8915 { echo "$as_me:$LINENO: checking for GTK_2_18" >&5
8916 echo $ECHO_N "checking for GTK_2_18... $ECHO_C" >&6; }
8917
8918 if test -n "$PKG_CONFIG"; then
8919     if test -n "$GTK_2_18_CFLAGS"; then
8920         pkg_cv_GTK_2_18_CFLAGS="$GTK_2_18_CFLAGS"
8921     else
8922         if test -n "$PKG_CONFIG" && \
8923     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8924   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; then
8928   pkg_cv_GTK_2_18_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
8929 else
8930   pkg_failed=yes
8931 fi
8932     fi
8933 else
8934         pkg_failed=untried
8935 fi
8936 if test -n "$PKG_CONFIG"; then
8937     if test -n "$GTK_2_18_LIBS"; then
8938         pkg_cv_GTK_2_18_LIBS="$GTK_2_18_LIBS"
8939     else
8940         if test -n "$PKG_CONFIG" && \
8941     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\"") >&5
8942   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; then
8946   pkg_cv_GTK_2_18_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
8947 else
8948   pkg_failed=yes
8949 fi
8950     fi
8951 else
8952         pkg_failed=untried
8953 fi
8954
8955
8956
8957 if test $pkg_failed = yes; then
8958
8959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8960         _pkg_short_errors_supported=yes
8961 else
8962         _pkg_short_errors_supported=no
8963 fi
8964         if test $_pkg_short_errors_supported = yes; then
8965                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8966         else
8967                 GTK_2_18_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.18"`
8968         fi
8969         # Put the nasty error message in config.log where it belongs
8970         echo "$GTK_2_18_PKG_ERRORS" >&5
8971
8972         { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8974                 have_gtk_2_18="no"
8975 elif test $pkg_failed = untried; then
8976         have_gtk_2_18="no"
8977 else
8978         GTK_2_18_CFLAGS=$pkg_cv_GTK_2_18_CFLAGS
8979         GTK_2_18_LIBS=$pkg_cv_GTK_2_18_LIBS
8980         { echo "$as_me:$LINENO: result: yes" >&5
8981 echo "${ECHO_T}yes" >&6; }
8982         have_gtk_2_18="yes"
8983 fi
8984     if test $have_gtk_2_18 == "yes"; then
8985
8986 cat >>confdefs.h <<\_ACEOF
8987 #define GTK_2_18 1
8988 _ACEOF
8989
8990     fi
8991
8992
8993 pkg_failed=no
8994 { echo "$as_me:$LINENO: checking for GUI" >&5
8995 echo $ECHO_N "checking for GUI... $ECHO_C" >&6; }
8996
8997 if test -n "$PKG_CONFIG"; then
8998     if test -n "$GUI_CFLAGS"; then
8999         pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
9000     else
9001         if test -n "$PKG_CONFIG" && \
9002     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
9003   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; then
9007   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
9008 else
9009   pkg_failed=yes
9010 fi
9011     fi
9012 else
9013         pkg_failed=untried
9014 fi
9015 if test -n "$PKG_CONFIG"; then
9016     if test -n "$GUI_LIBS"; then
9017         pkg_cv_GUI_LIBS="$GUI_LIBS"
9018     else
9019         if test -n "$PKG_CONFIG" && \
9020     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
9021   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; then
9025   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
9026 else
9027   pkg_failed=yes
9028 fi
9029     fi
9030 else
9031         pkg_failed=untried
9032 fi
9033
9034
9035
9036 if test $pkg_failed = yes; then
9037
9038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9039         _pkg_short_errors_supported=yes
9040 else
9041         _pkg_short_errors_supported=no
9042 fi
9043         if test $_pkg_short_errors_supported = yes; then
9044                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
9045         else
9046                 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
9047         fi
9048         # Put the nasty error message in config.log where it belongs
9049         echo "$GUI_PKG_ERRORS" >&5
9050
9051         { { echo "$as_me:$LINENO: error: Package requirements ($gui_modules) were not met:
9052
9053 $GUI_PKG_ERRORS
9054
9055 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9056 installed software in a non-standard prefix.
9057
9058 Alternatively, you may set the environment variables GUI_CFLAGS
9059 and GUI_LIBS to avoid the need to call pkg-config.
9060 See the pkg-config man page for more details.
9061 " >&5
9062 echo "$as_me: error: Package requirements ($gui_modules) were not met:
9063
9064 $GUI_PKG_ERRORS
9065
9066 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9067 installed software in a non-standard prefix.
9068
9069 Alternatively, you may set the environment variables GUI_CFLAGS
9070 and GUI_LIBS to avoid the need to call pkg-config.
9071 See the pkg-config man page for more details.
9072 " >&2;}
9073    { (exit 1); exit 1; }; }
9074 elif test $pkg_failed = untried; then
9075         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
9076 is in your PATH or set the PKG_CONFIG environment variable to the full
9077 path to pkg-config.
9078
9079 Alternatively, you may set the environment variables GUI_CFLAGS
9080 and GUI_LIBS to avoid the need to call pkg-config.
9081 See the pkg-config man page for more details.
9082
9083 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9084 See \`config.log' for more details." >&5
9085 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
9086 is in your PATH or set the PKG_CONFIG environment variable to the full
9087 path to pkg-config.
9088
9089 Alternatively, you may set the environment variables GUI_CFLAGS
9090 and GUI_LIBS to avoid the need to call pkg-config.
9091 See the pkg-config man page for more details.
9092
9093 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9094 See \`config.log' for more details." >&2;}
9095    { (exit 1); exit 1; }; }
9096 else
9097         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
9098         GUI_LIBS=$pkg_cv_GUI_LIBS
9099         { echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6; }
9101         :
9102 fi
9103
9104     # Extract the first word of "gtk-builder-convert", so it can be a program name with args.
9105 set dummy gtk-builder-convert; ac_word=$2
9106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9108 if test "${ac_cv_path_GTK_BUILDER_CONV+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   case $GTK_BUILDER_CONV in
9112   [\\/]* | ?:[\\/]*)
9113   ac_cv_path_GTK_BUILDER_CONV="$GTK_BUILDER_CONV" # Let the user override the test with a path.
9114   ;;
9115   *)
9116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9118 do
9119   IFS=$as_save_IFS
9120   test -z "$as_dir" && as_dir=.
9121   for ac_exec_ext in '' $ac_executable_extensions; do
9122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123     ac_cv_path_GTK_BUILDER_CONV="$as_dir/$ac_word$ac_exec_ext"
9124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9125     break 2
9126   fi
9127 done
9128 done
9129 IFS=$as_save_IFS
9130
9131   ;;
9132 esac
9133 fi
9134 GTK_BUILDER_CONV=$ac_cv_path_GTK_BUILDER_CONV
9135 if test -n "$GTK_BUILDER_CONV"; then
9136   { echo "$as_me:$LINENO: result: $GTK_BUILDER_CONV" >&5
9137 echo "${ECHO_T}$GTK_BUILDER_CONV" >&6; }
9138 else
9139   { echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6; }
9141 fi
9142
9143
9144 elif test "$enable_dbus_service" = "yes"; then
9145     # syncevo-dbus-server needs localization
9146     :
9147 else
9148     INTLTOOL_UPDATE="true"
9149     USE_NLS="no"
9150 fi
9151
9152
9153
9154
9155
9156
9157
9158
9159 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
9160 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
9161 # as Debian Etch backport.
9162 ac_ext=cpp
9163 ac_cpp='$CXXCPP $CPPFLAGS'
9164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9167 if test -z "$CXX"; then
9168   if test -n "$CCC"; then
9169     CXX=$CCC
9170   else
9171     if test -n "$ac_tool_prefix"; then
9172   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9173   do
9174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9178 if test "${ac_cv_prog_CXX+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   if test -n "$CXX"; then
9182   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189   for ac_exec_ext in '' $ac_executable_extensions; do
9190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196 done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 CXX=$ac_cv_prog_CXX
9202 if test -n "$CXX"; then
9203   { echo "$as_me:$LINENO: result: $CXX" >&5
9204 echo "${ECHO_T}$CXX" >&6; }
9205 else
9206   { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9208 fi
9209
9210
9211     test -n "$CXX" && break
9212   done
9213 fi
9214 if test -z "$CXX"; then
9215   ac_ct_CXX=$CXX
9216   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9217 do
9218   # Extract the first word of "$ac_prog", so it can be a program name with args.
9219 set dummy $ac_prog; ac_word=$2
9220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9222 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   if test -n "$ac_ct_CXX"; then
9226   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233   for ac_exec_ext in '' $ac_executable_extensions; do
9234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235     ac_cv_prog_ac_ct_CXX="$ac_prog"
9236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240 done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9246 if test -n "$ac_ct_CXX"; then
9247   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9248 echo "${ECHO_T}$ac_ct_CXX" >&6; }
9249 else
9250   { echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6; }
9252 fi
9253
9254
9255   test -n "$ac_ct_CXX" && break
9256 done
9257
9258   if test "x$ac_ct_CXX" = x; then
9259     CXX="g++"
9260   else
9261     case $cross_compiling:$ac_tool_warned in
9262 yes:)
9263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9264 whose name does not start with the host triplet.  If you think this
9265 configuration is useful to you, please write to autoconf@gnu.org." >&5
9266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9267 whose name does not start with the host triplet.  If you think this
9268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9269 ac_tool_warned=yes ;;
9270 esac
9271     CXX=$ac_ct_CXX
9272   fi
9273 fi
9274
9275   fi
9276 fi
9277 # Provide some information about the compiler.
9278 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9279 ac_compiler=`set X $ac_compile; echo $2`
9280 { (ac_try="$ac_compiler --version >&5"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_compiler --version >&5") 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }
9290 { (ac_try="$ac_compiler -v >&5"
9291 case "(($ac_try" in
9292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293   *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296   (eval "$ac_compiler -v >&5") 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }
9300 { (ac_try="$ac_compiler -V >&5"
9301 case "(($ac_try" in
9302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303   *) ac_try_echo=$ac_try;;
9304 esac
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306   (eval "$ac_compiler -V >&5") 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }
9310
9311 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9312 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
9313 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322
9323 int
9324 main ()
9325 {
9326 #ifndef __GNUC__
9327        choke me
9328 #endif
9329
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_cxx_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_compiler_gnu=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356         ac_compiler_gnu=no
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9361
9362 fi
9363 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9364 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
9365 GXX=`test $ac_compiler_gnu = yes && echo yes`
9366 ac_test_CXXFLAGS=${CXXFLAGS+set}
9367 ac_save_CXXFLAGS=$CXXFLAGS
9368 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9369 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
9370 if test "${ac_cv_prog_cxx_g+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9374    ac_cxx_werror_flag=yes
9375    ac_cv_prog_cxx_g=no
9376    CXXFLAGS="-g"
9377    cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383
9384 int
9385 main ()
9386 {
9387
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399   (eval "$ac_compile") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && {
9406          test -z "$ac_cxx_werror_flag" ||
9407          test ! -s conftest.err
9408        } && test -s conftest.$ac_objext; then
9409   ac_cv_prog_cxx_g=yes
9410 else
9411   echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414         CXXFLAGS=""
9415       cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 int
9423 main ()
9424 {
9425
9426   ;
9427   return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9432 case "(($ac_try" in
9433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434   *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437   (eval "$ac_compile") 2>conftest.er1
9438   ac_status=$?
9439   grep -v '^ *+' conftest.er1 >conftest.err
9440   rm -f conftest.er1
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } && {
9444          test -z "$ac_cxx_werror_flag" ||
9445          test ! -s conftest.err
9446        } && test -s conftest.$ac_objext; then
9447   :
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9453          CXXFLAGS="-g"
9454          cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460
9461 int
9462 main ()
9463 {
9464
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_compile") 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } && {
9483          test -z "$ac_cxx_werror_flag" ||
9484          test ! -s conftest.err
9485        } && test -s conftest.$ac_objext; then
9486   ac_cv_prog_cxx_g=yes
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491
9492 fi
9493
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 fi
9499
9500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9502 fi
9503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
9505 if test "$ac_test_CXXFLAGS" = set; then
9506   CXXFLAGS=$ac_save_CXXFLAGS
9507 elif test $ac_cv_prog_cxx_g = yes; then
9508   if test "$GXX" = yes; then
9509     CXXFLAGS="-g -O2"
9510   else
9511     CXXFLAGS="-g"
9512   fi
9513 else
9514   if test "$GXX" = yes; then
9515     CXXFLAGS="-O2"
9516   else
9517     CXXFLAGS=
9518   fi
9519 fi
9520 ac_ext=cpp
9521 ac_cpp='$CXXCPP $CPPFLAGS'
9522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9525
9526 depcc="$CXX"  am_compiler_list=
9527
9528 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9529 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
9530 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9534   # We make a subdir and do the tests there.  Otherwise we can end up
9535   # making bogus files that we don't know about and never remove.  For
9536   # instance it was reported that on HP-UX the gcc test will end up
9537   # making a dummy file named `D' -- because `-MD' means `put the output
9538   # in D'.
9539   mkdir conftest.dir
9540   # Copy depcomp to subdir because otherwise we won't find it if we're
9541   # using a relative directory.
9542   cp "$am_depcomp" conftest.dir
9543   cd conftest.dir
9544   # We will build objects and dependencies in a subdirectory because
9545   # it helps to detect inapplicable dependency modes.  For instance
9546   # both Tru64's cc and ICC support -MD to output dependencies as a
9547   # side effect of compilation, but ICC will put the dependencies in
9548   # the current directory while Tru64 will put them in the object
9549   # directory.
9550   mkdir sub
9551
9552   am_cv_CXX_dependencies_compiler_type=none
9553   if test "$am_compiler_list" = ""; then
9554      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9555   fi
9556   for depmode in $am_compiler_list; do
9557     # Setup a source with many dependencies, because some compilers
9558     # like to wrap large dependency lists on column 80 (with \), and
9559     # we should not choose a depcomp mode which is confused by this.
9560     #
9561     # We need to recreate these files for each test, as the compiler may
9562     # overwrite some of them when testing with obscure command lines.
9563     # This happens at least with the AIX C compiler.
9564     : > sub/conftest.c
9565     for i in 1 2 3 4 5 6; do
9566       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9567       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9568       # Solaris 8's {/usr,}/bin/sh.
9569       touch sub/conftst$i.h
9570     done
9571     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9572
9573     case $depmode in
9574     nosideeffect)
9575       # after this tag, mechanisms are not by side-effect, so they'll
9576       # only be used when explicitly requested
9577       if test "x$enable_dependency_tracking" = xyes; then
9578         continue
9579       else
9580         break
9581       fi
9582       ;;
9583     none) break ;;
9584     esac
9585     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9586     # mode.  It turns out that the SunPro C++ compiler does not properly
9587     # handle `-M -o', and we need to detect this.
9588     if depmode=$depmode \
9589        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9590        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9591        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9592          >/dev/null 2>conftest.err &&
9593        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9594        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9595        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9596        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9597       # icc doesn't choke on unknown options, it will just issue warnings
9598       # or remarks (even with -Werror).  So we grep stderr for any message
9599       # that says an option was ignored or not supported.
9600       # When given -MP, icc 7.0 and 7.1 complain thusly:
9601       #   icc: Command line warning: ignoring option '-M'; no argument required
9602       # The diagnosis changed in icc 8.0:
9603       #   icc: Command line remark: option '-MP' not supported
9604       if (grep 'ignoring option' conftest.err ||
9605           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9606         am_cv_CXX_dependencies_compiler_type=$depmode
9607         break
9608       fi
9609     fi
9610   done
9611
9612   cd ..
9613   rm -rf conftest.dir
9614 else
9615   am_cv_CXX_dependencies_compiler_type=none
9616 fi
9617
9618 fi
9619 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9620 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9621 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9622
9623  if
9624   test "x$enable_dependency_tracking" != xno \
9625   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9626   am__fastdepCXX_TRUE=
9627   am__fastdepCXX_FALSE='#'
9628 else
9629   am__fastdepCXX_TRUE='#'
9630   am__fastdepCXX_FALSE=
9631 fi
9632
9633
9634
9635
9636
9637 # Check whether --with-boost was given.
9638 if test "${with_boost+set}" = set; then
9639   withval=$with_boost;
9640     if test "$withval" = "no"; then
9641                 want_boost="no"
9642     elif test "$withval" = "yes"; then
9643         want_boost="yes"
9644         ac_boost_path=""
9645     else
9646             want_boost="yes"
9647         ac_boost_path="$withval"
9648         fi
9649
9650 else
9651   want_boost="yes"
9652 fi
9653
9654
9655
9656
9657 # Check whether --with-boost-libdir was given.
9658 if test "${with_boost_libdir+set}" = set; then
9659   withval=$with_boost_libdir;
9660         if test -d $withval
9661         then
9662                 ac_boost_lib_path="$withval"
9663         else
9664                 { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
9665 echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
9666    { (exit 1); exit 1; }; }
9667         fi
9668
9669 else
9670   ac_boost_lib_path=""
9671
9672 fi
9673
9674
9675 if test "x$want_boost" = "xyes"; then
9676         boost_lib_version_req=1.34
9677         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
9678         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
9679         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
9680         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9681         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
9682                 boost_lib_version_req_sub_minor="0"
9683         fi
9684         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
9685         { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
9686 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
9687         succeeded=no
9688
9689                                 if test "$ac_boost_path" != ""; then
9690                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
9691                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
9692         else
9693                 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
9694                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
9695                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
9696                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
9697                                 break;
9698                         fi
9699                 done
9700         fi
9701
9702             if test "$ac_boost_lib_path" != ""; then
9703        BOOST_LDFLAGS="-L$ac_boost_lib_path"
9704     fi
9705
9706         CPPFLAGS_SAVED="$CPPFLAGS"
9707         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9708         export CPPFLAGS
9709
9710         LDFLAGS_SAVED="$LDFLAGS"
9711         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9712         export LDFLAGS
9713
9714         ac_ext=cpp
9715 ac_cpp='$CXXCPP $CPPFLAGS'
9716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9719
9720         cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727         #include <boost/version.hpp>
9728
9729 int
9730 main ()
9731 {
9732
9733         #if BOOST_VERSION >= $WANT_BOOST_VERSION
9734         // Everything is okay
9735         #else
9736         #  error Boost version is too old
9737         #endif
9738
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9745 case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_compile") 2>conftest.er1
9751   ac_status=$?
9752   grep -v '^ *+' conftest.er1 >conftest.err
9753   rm -f conftest.er1
9754   cat conftest.err >&5
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); } && {
9757          test -z "$ac_cxx_werror_flag" ||
9758          test ! -s conftest.err
9759        } && test -s conftest.$ac_objext; then
9760
9761         { echo "$as_me:$LINENO: result: yes" >&5
9762 echo "${ECHO_T}yes" >&6; }
9763         succeeded=yes
9764         found_system=yes
9765
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770
9771
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775         ac_ext=c
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9780
9781
9782
9783
9784                         if test "x$succeeded" != "xyes"; then
9785                 _version=0
9786                 if test "$ac_boost_path" != ""; then
9787                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9788                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9789                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9790                                         V_CHECK=`expr $_version_tmp \> $_version`
9791                                         if test "$V_CHECK" = "1" ; then
9792                                                 _version=$_version_tmp
9793                                         fi
9794                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9795                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
9796                                 done
9797                         fi
9798                 else
9799                         for ac_boost_path in /usr /usr/local /opt /opt/local ; do
9800                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9801                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9802                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9803                                                 V_CHECK=`expr $_version_tmp \> $_version`
9804                                                 if test "$V_CHECK" = "1" ; then
9805                                                         _version=$_version_tmp
9806                                                         best_path=$ac_boost_path
9807                                                 fi
9808                                         done
9809                                 fi
9810                         done
9811
9812                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9813                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
9814             if test "$ac_boost_lib_path" = ""
9815             then
9816                BOOST_LDFLAGS="-L$best_path/lib"
9817             fi
9818
9819                         if test "x$BOOST_ROOT" != "x"; then
9820                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
9821                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
9822                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
9823                                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
9824                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
9825                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
9826                                                 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
9827 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
9828                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
9829                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
9830                                         fi
9831                                 fi
9832                         fi
9833                 fi
9834
9835                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9836                 export CPPFLAGS
9837                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9838                 export LDFLAGS
9839
9840                 ac_ext=cpp
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9845
9846                 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852
9853                 #include <boost/version.hpp>
9854
9855 int
9856 main ()
9857 {
9858
9859                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9860                 // Everything is okay
9861                 #else
9862                 #  error Boost version is too old
9863                 #endif
9864
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (ac_try="$ac_compile"
9871 case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876   (eval "$ac_compile") 2>conftest.er1
9877   ac_status=$?
9878   grep -v '^ *+' conftest.er1 >conftest.err
9879   rm -f conftest.er1
9880   cat conftest.err >&5
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } && {
9883          test -z "$ac_cxx_werror_flag" ||
9884          test ! -s conftest.err
9885        } && test -s conftest.$ac_objext; then
9886
9887                 { echo "$as_me:$LINENO: result: yes" >&5
9888 echo "${ECHO_T}yes" >&6; }
9889                 succeeded=yes
9890                 found_system=yes
9891
9892 else
9893   echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896
9897
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901                 ac_ext=c
9902 ac_cpp='$CPP $CPPFLAGS'
9903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9906
9907         fi
9908
9909         if test "$succeeded" != "yes" ; then
9910                 if test "$_version" = "0" ; then
9911                         { { 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
9912 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;}
9913    { (exit 1); exit 1; }; }
9914                 else
9915                         { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
9916 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
9917                 fi
9918         else
9919
9920
9921
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_BOOST
9924 _ACEOF
9925
9926         fi
9927
9928         CPPFLAGS="$CPPFLAGS_SAVED"
9929         LDFLAGS="$LDFLAGS_SAVED"
9930 fi
9931
9932
9933
9934 # need rst2man for man pages
9935
9936 # Check whether --with-rst2man was given.
9937 if test "${with_rst2man+set}" = set; then
9938   withval=$with_rst2man; RST2MAN=$withval
9939              if test "$RST2MAN" == "yes"; then
9940                  # Extract the first word of "rst2man", so it can be a program name with args.
9941 set dummy rst2man; ac_word=$2
9942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9944 if test "${ac_cv_path_RST2MAN+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   case $RST2MAN in
9948   [\\/]* | ?:[\\/]*)
9949   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
9950   ;;
9951   *)
9952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955   IFS=$as_save_IFS
9956   test -z "$as_dir" && as_dir=.
9957   for ac_exec_ext in '' $ac_executable_extensions; do
9958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
9960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961     break 2
9962   fi
9963 done
9964 done
9965 IFS=$as_save_IFS
9966
9967   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
9968   ;;
9969 esac
9970 fi
9971 RST2MAN=$ac_cv_path_RST2MAN
9972 if test -n "$RST2MAN"; then
9973   { echo "$as_me:$LINENO: result: $RST2MAN" >&5
9974 echo "${ECHO_T}$RST2MAN" >&6; }
9975 else
9976   { echo "$as_me:$LINENO: result: no" >&5
9977 echo "${ECHO_T}no" >&6; }
9978 fi
9979
9980
9981              fi
9982              test "$RST2MAN" == "no" || test -x "$RST2MAN" || { { echo "$as_me:$LINENO: error: --with-rst2man=$RST2MAN: tool not found" >&5
9983 echo "$as_me: error: --with-rst2man=$RST2MAN: tool not found" >&2;}
9984    { (exit 1); exit 1; }; }
9985 else
9986   # Extract the first word of "rst2man", so it can be a program name with args.
9987 set dummy rst2man; ac_word=$2
9988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9990 if test "${ac_cv_path_RST2MAN+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   case $RST2MAN in
9994   [\\/]* | ?:[\\/]*)
9995   ac_cv_path_RST2MAN="$RST2MAN" # Let the user override the test with a path.
9996   ;;
9997   *)
9998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10000 do
10001   IFS=$as_save_IFS
10002   test -z "$as_dir" && as_dir=.
10003   for ac_exec_ext in '' $ac_executable_extensions; do
10004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005     ac_cv_path_RST2MAN="$as_dir/$ac_word$ac_exec_ext"
10006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10007     break 2
10008   fi
10009 done
10010 done
10011 IFS=$as_save_IFS
10012
10013   test -z "$ac_cv_path_RST2MAN" && ac_cv_path_RST2MAN=""no""
10014   ;;
10015 esac
10016 fi
10017 RST2MAN=$ac_cv_path_RST2MAN
10018 if test -n "$RST2MAN"; then
10019   { echo "$as_me:$LINENO: result: $RST2MAN" >&5
10020 echo "${ECHO_T}$RST2MAN" >&6; }
10021 else
10022   { echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6; }
10024 fi
10025
10026
10027 fi
10028
10029  if test "$RST2MAN" != "no"; then
10030   COND_MAN_PAGES_TRUE=
10031   COND_MAN_PAGES_FALSE='#'
10032 else
10033   COND_MAN_PAGES_TRUE='#'
10034   COND_MAN_PAGES_FALSE=
10035 fi
10036
10037
10038 # need rst2html for HTML version of README
10039
10040 # Check whether --with-rst2html was given.
10041 if test "${with_rst2html+set}" = set; then
10042   withval=$with_rst2html; RST2HTML=$withval
10043              if test "$RST2HTML" == "yes"; then
10044                  # Extract the first word of "rst2html", so it can be a program name with args.
10045 set dummy rst2html; ac_word=$2
10046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10048 if test "${ac_cv_path_RST2HTML+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   case $RST2HTML in
10052   [\\/]* | ?:[\\/]*)
10053   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
10054   ;;
10055   *)
10056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10058 do
10059   IFS=$as_save_IFS
10060   test -z "$as_dir" && as_dir=.
10061   for ac_exec_ext in '' $ac_executable_extensions; do
10062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10063     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
10064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10065     break 2
10066   fi
10067 done
10068 done
10069 IFS=$as_save_IFS
10070
10071   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
10072   ;;
10073 esac
10074 fi
10075 RST2HTML=$ac_cv_path_RST2HTML
10076 if test -n "$RST2HTML"; then
10077   { echo "$as_me:$LINENO: result: $RST2HTML" >&5
10078 echo "${ECHO_T}$RST2HTML" >&6; }
10079 else
10080   { echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6; }
10082 fi
10083
10084
10085              fi
10086              test "$RST2HTML" == "no" || test -x "$RST2HTML" || { { echo "$as_me:$LINENO: error: --with-rst2html=$RST2HTML: tool not found" >&5
10087 echo "$as_me: error: --with-rst2html=$RST2HTML: tool not found" >&2;}
10088    { (exit 1); exit 1; }; }
10089 else
10090   # Extract the first word of "rst2html", so it can be a program name with args.
10091 set dummy rst2html; ac_word=$2
10092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10094 if test "${ac_cv_path_RST2HTML+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   case $RST2HTML in
10098   [\\/]* | ?:[\\/]*)
10099   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
10100   ;;
10101   *)
10102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105   IFS=$as_save_IFS
10106   test -z "$as_dir" && as_dir=.
10107   for ac_exec_ext in '' $ac_executable_extensions; do
10108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
10110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111     break 2
10112   fi
10113 done
10114 done
10115 IFS=$as_save_IFS
10116
10117   test -z "$ac_cv_path_RST2HTML" && ac_cv_path_RST2HTML=""no""
10118   ;;
10119 esac
10120 fi
10121 RST2HTML=$ac_cv_path_RST2HTML
10122 if test -n "$RST2HTML"; then
10123   { echo "$as_me:$LINENO: result: $RST2HTML" >&5
10124 echo "${ECHO_T}$RST2HTML" >&6; }
10125 else
10126   { echo "$as_me:$LINENO: result: no" >&5
10127 echo "${ECHO_T}no" >&6; }
10128 fi
10129
10130
10131 fi
10132
10133  if test "$RST2HTML" != "no"; then
10134   COND_HTML_README_TRUE=
10135   COND_HTML_README_FALSE='#'
10136 else
10137   COND_HTML_README_TRUE='#'
10138   COND_HTML_README_FALSE=
10139 fi
10140
10141
10142 # absolute patch to source of Synthesis client library
10143 SYNTHESIS_SRC=no-synthesis-source
10144
10145 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
10146     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
10147     CLEAN_CLIENT_SRC=synthesis-workdir
10148     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
10149
10150     { echo "$as_me:$LINENO: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
10151 echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
10152     case "$SYNTHESISSRC" in
10153         *.git) protocol=git;;
10154         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
10155         *) protocol="file";;
10156     esac
10157
10158     mkdir -p src
10159     case $protocol in
10160         file)
10161             # use existing copy of the sources
10162             CLEAN_CLIENT_SRC=
10163             case "$SYNTHESISSRC" in
10164                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
10165                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
10166             esac
10167             ;;
10168         *svn*|*http*)
10169             SYNTHESISSRCREV="$SYNTHESISSRC"
10170             if test "$REVISION"; then
10171                 revarg="-r $REVISION "
10172                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
10173                     :
10174                 else
10175                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
10176                 fi
10177             fi
10178             if test -d $SYNTHESIS_SRC ; then
10179                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
10180 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
10181    { (exit 1); exit 1; }; }
10182             else
10183                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
10184 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
10185    { (exit 1); exit 1; }; }
10186             fi
10187             ;;
10188         *)
10189             if test -d $SYNTHESIS_SRC ; then
10190                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
10191 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
10192    { (exit 1); exit 1; }; }
10193             else
10194                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: cloning $SYNTHESISSRC failed" >&5
10195 echo "$as_me: error: cloning $SYNTHESISSRC failed" >&2;}
10196    { (exit 1); exit 1; }; }
10197             fi
10198             if test "$REVISION"; then
10199                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
10200                 ( set -x; cd $SYNTHESIS_SRC &&
10201                   (git checkout "$REVISION" ||
10202                    git checkout "tags/$REVISION" ||
10203                    git checkout "origin/$REVISION") ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
10204 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
10205    { (exit 1); exit 1; }; }
10206             fi
10207             ;;
10208     esac
10209 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
10210     # use existing copy of the sources; beware of
10211     # out-of-tree compilation
10212     case $srcdir in
10213          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
10214          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
10215     esac
10216 elif test "$enable_shared" = "no"; then
10217     # link against engine
10218
10219 pkg_failed=no
10220 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
10221 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
10222
10223 if test -n "$PKG_CONFIG"; then
10224     if test -n "$SYNTHESIS_CFLAGS"; then
10225         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
10226     else
10227         if test -n "$PKG_CONFIG" && \
10228     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10229   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; then
10233   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
10234 else
10235   pkg_failed=yes
10236 fi
10237     fi
10238 else
10239         pkg_failed=untried
10240 fi
10241 if test -n "$PKG_CONFIG"; then
10242     if test -n "$SYNTHESIS_LIBS"; then
10243         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
10244     else
10245         if test -n "$PKG_CONFIG" && \
10246     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10247   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; then
10251   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
10252 else
10253   pkg_failed=yes
10254 fi
10255     fi
10256 else
10257         pkg_failed=untried
10258 fi
10259
10260
10261
10262 if test $pkg_failed = yes; then
10263
10264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10265         _pkg_short_errors_supported=yes
10266 else
10267         _pkg_short_errors_supported=no
10268 fi
10269         if test $_pkg_short_errors_supported = yes; then
10270                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
10271         else
10272                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
10273         fi
10274         # Put the nasty error message in config.log where it belongs
10275         echo "$SYNTHESIS_PKG_ERRORS" >&5
10276
10277         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
10278
10279 $SYNTHESIS_PKG_ERRORS
10280
10281 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10282 installed software in a non-standard prefix.
10283
10284 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10285 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10286 See the pkg-config man page for more details.
10287 " >&5
10288 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10289
10290 $SYNTHESIS_PKG_ERRORS
10291
10292 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10293 installed software in a non-standard prefix.
10294
10295 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10296 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10297 See the pkg-config man page for more details.
10298 " >&2;}
10299    { (exit 1); exit 1; }; }
10300 elif test $pkg_failed = untried; then
10301         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10302 is in your PATH or set the PKG_CONFIG environment variable to the full
10303 path to pkg-config.
10304
10305 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10306 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10307 See the pkg-config man page for more details.
10308
10309 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10310 See \`config.log' for more details." >&5
10311 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
10312 is in your PATH or set the PKG_CONFIG environment variable to the full
10313 path to pkg-config.
10314
10315 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10316 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10317 See the pkg-config man page for more details.
10318
10319 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10320 See \`config.log' for more details." >&2;}
10321    { (exit 1); exit 1; }; }
10322 else
10323         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10324         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10325         { echo "$as_me:$LINENO: result: yes" >&5
10326 echo "${ECHO_T}yes" >&6; }
10327         :
10328 fi
10329     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
10330 else
10331     # link against SDK alone, except in client-test
10332     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
10333     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
10334
10335     # can't use the SDK alone because of sysync::SySyncDebugPuts()
10336
10337 pkg_failed=no
10338 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
10339 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
10340
10341 if test -n "$PKG_CONFIG"; then
10342     if test -n "$SYNTHESIS_CFLAGS"; then
10343         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
10344     else
10345         if test -n "$PKG_CONFIG" && \
10346     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10347   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; then
10351   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
10352 else
10353   pkg_failed=yes
10354 fi
10355     fi
10356 else
10357         pkg_failed=untried
10358 fi
10359 if test -n "$PKG_CONFIG"; then
10360     if test -n "$SYNTHESIS_LIBS"; then
10361         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
10362     else
10363         if test -n "$PKG_CONFIG" && \
10364     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
10365   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; then
10369   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
10370 else
10371   pkg_failed=yes
10372 fi
10373     fi
10374 else
10375         pkg_failed=untried
10376 fi
10377
10378
10379
10380 if test $pkg_failed = yes; then
10381
10382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10383         _pkg_short_errors_supported=yes
10384 else
10385         _pkg_short_errors_supported=no
10386 fi
10387         if test $_pkg_short_errors_supported = yes; then
10388                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
10389         else
10390                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
10391         fi
10392         # Put the nasty error message in config.log where it belongs
10393         echo "$SYNTHESIS_PKG_ERRORS" >&5
10394
10395         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
10396
10397 $SYNTHESIS_PKG_ERRORS
10398
10399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10400 installed software in a non-standard prefix.
10401
10402 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10403 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10404 See the pkg-config man page for more details.
10405 " >&5
10406 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
10407
10408 $SYNTHESIS_PKG_ERRORS
10409
10410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10411 installed software in a non-standard prefix.
10412
10413 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10414 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10415 See the pkg-config man page for more details.
10416 " >&2;}
10417    { (exit 1); exit 1; }; }
10418 elif test $pkg_failed = untried; then
10419         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
10420 is in your PATH or set the PKG_CONFIG environment variable to the full
10421 path to pkg-config.
10422
10423 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10424 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10425 See the pkg-config man page for more details.
10426
10427 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10428 See \`config.log' for more details." >&5
10429 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
10430 is in your PATH or set the PKG_CONFIG environment variable to the full
10431 path to pkg-config.
10432
10433 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
10434 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
10435 See the pkg-config man page for more details.
10436
10437 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10438 See \`config.log' for more details." >&2;}
10439    { (exit 1); exit 1; }; }
10440 else
10441         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
10442         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
10443         { echo "$as_me:$LINENO: result: yes" >&5
10444 echo "${ECHO_T}yes" >&6; }
10445         :
10446 fi
10447     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
10448 fi
10449
10450 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
10451     ( 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
10452 echo "$as_me: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&2;}
10453    { (exit 1); exit 1; }; }
10454
10455     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
10456     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
10457
10458     # use local copy of the sources, with dependencies
10459     # to trigger building the synthesis library
10460     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
10461     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
10462     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
10463
10464     if test "$enable_core" = "no" && test "$enable_gui" != "no"; then
10465        # SYNTHESIS_SUBDIR is ignored, at least build headers for GUI
10466        SYNTHESIS_SUBDIR_INCLUDES=synthesis-includes
10467     fi
10468
10469     if test "$enable_shared" = "no"; then
10470         # link against the engines that were enabled
10471         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
10472
10473 cat >>confdefs.h <<\_ACEOF
10474 #define ENABLE_SYNCML_LINKED 1
10475 _ACEOF
10476
10477     else
10478         # It would be nice if we could avoid linking against libsynthesis.la here.
10479         # This doesn't work at the moment because sysync::SySyncDebugPuts()
10480         # is called directly by the libsynthesissdk instead of going through
10481         # the normal C function pointer lookup.
10482         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
10483     fi
10484     SYNTHESIS_DEP=$SYNTHESIS_LIBS
10485
10486     # for linking client-test
10487     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
10488
10489     { echo "$as_me:$LINENO: configuring the Synthesis library " >&5
10490 echo "$as_me: configuring the Synthesis library " >&6;}
10491     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
10492         { { echo "$as_me:$LINENO: error: configuring Synthesis library failed " >&5
10493 echo "$as_me: error: configuring Synthesis library failed " >&2;}
10494    { (exit 1); exit 1; }; }
10495     fi
10496 fi
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508 BACKENDS=""
10509
10510 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
10511 #                       [ACTION-IF-NOT-GIVEN])
10512 #
10513 # Same as AC_ARG_ENABLE(), but also tells configure that the
10514 # backend exists.
10515 #
10516 # BACKEND = name of modules built in that dir as .la files without the
10517 #           obligatory sync prefix, e.g. "ebook"
10518 # DIR = name of the directory inside src/backends, e.g., "evolution"
10519
10520
10521
10522
10523 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
10524
10525
10526 # GNOME Bluetooth Panel plugin
10527
10528 pkg_failed=no
10529 { echo "$as_me:$LINENO: checking for GNOMEBLUETOOTH" >&5
10530 echo $ECHO_N "checking for GNOMEBLUETOOTH... $ECHO_C" >&6; }
10531
10532 if test -n "$PKG_CONFIG"; then
10533     if test -n "$GNOMEBLUETOOTH_CFLAGS"; then
10534         pkg_cv_GNOMEBLUETOOTH_CFLAGS="$GNOMEBLUETOOTH_CFLAGS"
10535     else
10536         if test -n "$PKG_CONFIG" && \
10537     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10538   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; then
10542   pkg_cv_GNOMEBLUETOOTH_CFLAGS=`$PKG_CONFIG --cflags "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10543 else
10544   pkg_failed=yes
10545 fi
10546     fi
10547 else
10548         pkg_failed=untried
10549 fi
10550 if test -n "$PKG_CONFIG"; then
10551     if test -n "$GNOMEBLUETOOTH_LIBS"; then
10552         pkg_cv_GNOMEBLUETOOTH_LIBS="$GNOMEBLUETOOTH_LIBS"
10553     else
10554         if test -n "$PKG_CONFIG" && \
10555     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-bluetooth-1.0 >= 2.27.6\"") >&5
10556   ($PKG_CONFIG --exists --print-errors "gnome-bluetooth-1.0 >= 2.27.6") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; then
10560   pkg_cv_GNOMEBLUETOOTH_LIBS=`$PKG_CONFIG --libs "gnome-bluetooth-1.0 >= 2.27.6" 2>/dev/null`
10561 else
10562   pkg_failed=yes
10563 fi
10564     fi
10565 else
10566         pkg_failed=untried
10567 fi
10568
10569
10570
10571 if test $pkg_failed = yes; then
10572
10573 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10574         _pkg_short_errors_supported=yes
10575 else
10576         _pkg_short_errors_supported=no
10577 fi
10578         if test $_pkg_short_errors_supported = yes; then
10579                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10580         else
10581                 GNOMEBLUETOOTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-bluetooth-1.0 >= 2.27.6"`
10582         fi
10583         # Put the nasty error message in config.log where it belongs
10584         echo "$GNOMEBLUETOOTH_PKG_ERRORS" >&5
10585
10586         { echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6; }
10588                 have_gbt="no"
10589 elif test $pkg_failed = untried; then
10590         have_gbt="no"
10591 else
10592         GNOMEBLUETOOTH_CFLAGS=$pkg_cv_GNOMEBLUETOOTH_CFLAGS
10593         GNOMEBLUETOOTH_LIBS=$pkg_cv_GNOMEBLUETOOTH_LIBS
10594         { echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6; }
10596         have_gbt="yes"
10597                    GNOMEBLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0 2>/dev/null`/gnome-bluetooth
10598 fi
10599
10600
10601
10602 # Check whether --enable-gnome-bluetooth-panel-plugin was given.
10603 if test "${enable_gnome_bluetooth_panel_plugin+set}" = set; then
10604   enableval=$enable_gnome_bluetooth_panel_plugin; enable_gnome_bluetooth_panel="$enableval"
10605 else
10606   enable_gnome_bluetooth_panel="no"
10607
10608 fi
10609
10610 if test "$enable_gnome_bluetooth_panel" = "yes"; then
10611    test "$have_gbt" = "yes" || { { echo "$as_me:$LINENO: error: --enable-gnome-bluetooth-panel requires
10612            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&5
10613 echo "$as_me: error: --enable-gnome-bluetooth-panel requires
10614            pkg-config information for gnome-bluetooth-1.0 >= 2.27.6 which was not found" >&2;}
10615    { (exit 1); exit 1; }; }
10616 fi
10617 ac_config_files="$ac_config_files src/gnome-bluetooth/Makefile"
10618
10619  if test "$have_gbt" = "yes" && test "$enable_gnome_bluetooth_panel" = "yes"; then
10620   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE=
10621   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE='#'
10622 else
10623   ENABLE_GNOME_BLUETOOTH_PANEL_TRUE='#'
10624   ENABLE_GNOME_BLUETOOTH_PANEL_FALSE=
10625 fi
10626
10627
10628 # Check whether --enable-doc was given.
10629 if test "${enable_doc+set}" = set; then
10630   enableval=$enable_doc; enable_doc="$enableval"
10631 else
10632   enable_doc="no"
10633 fi
10634
10635
10636  if test "$enable_doc" != "no"; then
10637   COND_DOC_TRUE=
10638   COND_DOC_FALSE='#'
10639 else
10640   COND_DOC_TRUE='#'
10641   COND_DOC_FALSE=
10642 fi
10643
10644
10645 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
10646
10647 ADDRESSBOOK_CFLAGS=
10648
10649 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
10650
10651
10652 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
10653
10654
10655         # Check whether --enable-addressbook was given.
10656 if test "${enable_addressbook+set}" = set; then
10657   enableval=$enable_addressbook; enable_addressbook="$enableval"
10658 else
10659   enable_addressbook="no"
10660 fi
10661
10662         BACKENDS="$BACKENDS addressbook"
10663         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
10664         for source in addressbook; do
10665             SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
10666         done
10667
10668
10669 if test "$enable_addressbook" = "yes"; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define ENABLE_ADDRESSBOOK 1
10673 _ACEOF
10674
10675         DEVICE_TYPE=MacOS_X
10676         enable_any="yes"
10677 else
10678         ADDRESSBOOK_LIBS=
10679 fi
10680
10681 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
10682
10683 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
10684
10685 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
10686
10687 pkg_emodules_10="libedataserver-1.0"
10688 pkg_emodules_11="libedataserver-1.1"
10689 pkg_emodules_12="libedataserver-1.2"
10690 pkg_ebook_10="libebook-1.0"
10691 pkg_ebook_11="libebook-1.1"
10692 pkg_ebook_12="libebook-1.2"
10693 pkg_ecal_10="libecal-1.0"
10694 pkg_ecal_11="libecal-1.1"
10695 pkg_ecal_12="libecal-1.2"
10696
10697 anymissing="
10698 Please install the development packages of Evolution and/or
10699 set the PKG_CONFIG_PATH variable so that it points towards
10700 the .pc files of libedataserver, libecal and libebook (the
10701 latter two are optional).
10702
10703 You can check that these packages are available by running
10704 pkg-config --list-all."
10705
10706 evomissing="No compatible evolution-data-server was found.
10707 $anymissing"
10708
10709
10710 pkg_failed=no
10711 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10712 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10713
10714 if test -n "$PKG_CONFIG"; then
10715     if test -n "$EPACKAGE_CFLAGS"; then
10716         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10717     else
10718         if test -n "$PKG_CONFIG" && \
10719     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10720   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; then
10724   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
10725 else
10726   pkg_failed=yes
10727 fi
10728     fi
10729 else
10730         pkg_failed=untried
10731 fi
10732 if test -n "$PKG_CONFIG"; then
10733     if test -n "$EPACKAGE_LIBS"; then
10734         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10735     else
10736         if test -n "$PKG_CONFIG" && \
10737     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
10738   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; then
10742   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
10743 else
10744   pkg_failed=yes
10745 fi
10746     fi
10747 else
10748         pkg_failed=untried
10749 fi
10750
10751
10752
10753 if test $pkg_failed = yes; then
10754
10755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10756         _pkg_short_errors_supported=yes
10757 else
10758         _pkg_short_errors_supported=no
10759 fi
10760         if test $_pkg_short_errors_supported = yes; then
10761                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
10762         else
10763                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
10764         fi
10765         # Put the nasty error message in config.log where it belongs
10766         echo "$EPACKAGE_PKG_ERRORS" >&5
10767
10768         { echo "$as_me:$LINENO: result: no" >&5
10769 echo "${ECHO_T}no" >&6; }
10770                 EDSFOUND=no
10771 elif test $pkg_failed = untried; then
10772         EDSFOUND=no
10773 else
10774         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10775         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10776         { echo "$as_me:$LINENO: result: yes" >&5
10777 echo "${ECHO_T}yes" >&6; }
10778         EDSFOUND=yes
10779 fi
10780 if test "x${EDSFOUND}" = "xno"; then
10781
10782 pkg_failed=no
10783 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10784 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10785
10786 if test -n "$PKG_CONFIG"; then
10787     if test -n "$EPACKAGE_CFLAGS"; then
10788         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10789     else
10790         if test -n "$PKG_CONFIG" && \
10791     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10792   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; then
10796   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
10797 else
10798   pkg_failed=yes
10799 fi
10800     fi
10801 else
10802         pkg_failed=untried
10803 fi
10804 if test -n "$PKG_CONFIG"; then
10805     if test -n "$EPACKAGE_LIBS"; then
10806         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10807     else
10808         if test -n "$PKG_CONFIG" && \
10809     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
10810   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; then
10814   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
10815 else
10816   pkg_failed=yes
10817 fi
10818     fi
10819 else
10820         pkg_failed=untried
10821 fi
10822
10823
10824
10825 if test $pkg_failed = yes; then
10826
10827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10828         _pkg_short_errors_supported=yes
10829 else
10830         _pkg_short_errors_supported=no
10831 fi
10832         if test $_pkg_short_errors_supported = yes; then
10833                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
10834         else
10835                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
10836         fi
10837         # Put the nasty error message in config.log where it belongs
10838         echo "$EPACKAGE_PKG_ERRORS" >&5
10839
10840         { echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6; }
10842                 EDSFOUND=no
10843 elif test $pkg_failed = untried; then
10844         EDSFOUND=no
10845 else
10846         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10847         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10848         { echo "$as_me:$LINENO: result: yes" >&5
10849 echo "${ECHO_T}yes" >&6; }
10850         EDSFOUND=yes
10851 fi
10852       if test "x${EDSFOUND}" = "xno"; then
10853
10854 pkg_failed=no
10855 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
10856 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
10857
10858 if test -n "$PKG_CONFIG"; then
10859     if test -n "$EPACKAGE_CFLAGS"; then
10860         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
10861     else
10862         if test -n "$PKG_CONFIG" && \
10863     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10864   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }; then
10868   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
10869 else
10870   pkg_failed=yes
10871 fi
10872     fi
10873 else
10874         pkg_failed=untried
10875 fi
10876 if test -n "$PKG_CONFIG"; then
10877     if test -n "$EPACKAGE_LIBS"; then
10878         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
10879     else
10880         if test -n "$PKG_CONFIG" && \
10881     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
10882   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; then
10886   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
10887 else
10888   pkg_failed=yes
10889 fi
10890     fi
10891 else
10892         pkg_failed=untried
10893 fi
10894
10895
10896
10897 if test $pkg_failed = yes; then
10898
10899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10900         _pkg_short_errors_supported=yes
10901 else
10902         _pkg_short_errors_supported=no
10903 fi
10904         if test $_pkg_short_errors_supported = yes; then
10905                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
10906         else
10907                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
10908         fi
10909         # Put the nasty error message in config.log where it belongs
10910         echo "$EPACKAGE_PKG_ERRORS" >&5
10911
10912         { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914                 EDSFOUND=no
10915 elif test $pkg_failed = untried; then
10916         EDSFOUND=no
10917 else
10918         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
10919         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
10920         { echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6; }
10922         EDSFOUND=yes
10923 fi
10924       fi
10925 fi
10926
10927
10928 pkg_failed=no
10929 { echo "$as_me:$LINENO: checking for ECAL" >&5
10930 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10931
10932 if test -n "$PKG_CONFIG"; then
10933     if test -n "$ECAL_CFLAGS"; then
10934         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10935     else
10936         if test -n "$PKG_CONFIG" && \
10937     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10938   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; then
10942   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
10943 else
10944   pkg_failed=yes
10945 fi
10946     fi
10947 else
10948         pkg_failed=untried
10949 fi
10950 if test -n "$PKG_CONFIG"; then
10951     if test -n "$ECAL_LIBS"; then
10952         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10953     else
10954         if test -n "$PKG_CONFIG" && \
10955     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10956   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; then
10960   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
10961 else
10962   pkg_failed=yes
10963 fi
10964     fi
10965 else
10966         pkg_failed=untried
10967 fi
10968
10969
10970
10971 if test $pkg_failed = yes; then
10972
10973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10974         _pkg_short_errors_supported=yes
10975 else
10976         _pkg_short_errors_supported=no
10977 fi
10978         if test $_pkg_short_errors_supported = yes; then
10979                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
10980         else
10981                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
10982         fi
10983         # Put the nasty error message in config.log where it belongs
10984         echo "$ECAL_PKG_ERRORS" >&5
10985
10986         { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10988                 ECALFOUND=no
10989 elif test $pkg_failed = untried; then
10990         ECALFOUND=no
10991 else
10992         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10993         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10994         { echo "$as_me:$LINENO: result: yes" >&5
10995 echo "${ECHO_T}yes" >&6; }
10996         ECALFOUND=yes
10997 fi
10998 if test "x${ECALFOUND}" = "xno"; then
10999
11000 pkg_failed=no
11001 { echo "$as_me:$LINENO: checking for ECAL" >&5
11002 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
11003
11004 if test -n "$PKG_CONFIG"; then
11005     if test -n "$ECAL_CFLAGS"; then
11006         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
11007     else
11008         if test -n "$PKG_CONFIG" && \
11009     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
11010   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; then
11014   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
11015 else
11016   pkg_failed=yes
11017 fi
11018     fi
11019 else
11020         pkg_failed=untried
11021 fi
11022 if test -n "$PKG_CONFIG"; then
11023     if test -n "$ECAL_LIBS"; then
11024         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
11025     else
11026         if test -n "$PKG_CONFIG" && \
11027     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
11028   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; then
11032   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
11033 else
11034   pkg_failed=yes
11035 fi
11036     fi
11037 else
11038         pkg_failed=untried
11039 fi
11040
11041
11042
11043 if test $pkg_failed = yes; then
11044
11045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11046         _pkg_short_errors_supported=yes
11047 else
11048         _pkg_short_errors_supported=no
11049 fi
11050         if test $_pkg_short_errors_supported = yes; then
11051                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
11052         else
11053                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
11054         fi
11055         # Put the nasty error message in config.log where it belongs
11056         echo "$ECAL_PKG_ERRORS" >&5
11057
11058         { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11060                 ECALFOUND=no
11061 elif test $pkg_failed = untried; then
11062         ECALFOUND=no
11063 else
11064         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
11065         ECAL_LIBS=$pkg_cv_ECAL_LIBS
11066         { echo "$as_me:$LINENO: result: yes" >&5
11067 echo "${ECHO_T}yes" >&6; }
11068         ECALFOUND=yes
11069 fi
11070         if test "x${ECALFOUND}" = "xno"; then
11071
11072 pkg_failed=no
11073 { echo "$as_me:$LINENO: checking for ECAL" >&5
11074 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
11075
11076 if test -n "$PKG_CONFIG"; then
11077     if test -n "$ECAL_CFLAGS"; then
11078         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
11079     else
11080         if test -n "$PKG_CONFIG" && \
11081     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
11082   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; then
11086   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
11087 else
11088   pkg_failed=yes
11089 fi
11090     fi
11091 else
11092         pkg_failed=untried
11093 fi
11094 if test -n "$PKG_CONFIG"; then
11095     if test -n "$ECAL_LIBS"; then
11096         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
11097     else
11098         if test -n "$PKG_CONFIG" && \
11099     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
11100   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; then
11104   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
11105 else
11106   pkg_failed=yes
11107 fi
11108     fi
11109 else
11110         pkg_failed=untried
11111 fi
11112
11113
11114
11115 if test $pkg_failed = yes; then
11116
11117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11118         _pkg_short_errors_supported=yes
11119 else
11120         _pkg_short_errors_supported=no
11121 fi
11122         if test $_pkg_short_errors_supported = yes; then
11123                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
11124         else
11125                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
11126         fi
11127         # Put the nasty error message in config.log where it belongs
11128         echo "$ECAL_PKG_ERRORS" >&5
11129
11130         { echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6; }
11132                 ECALFOUND=no
11133 elif test $pkg_failed = untried; then
11134         ECALFOUND=no
11135 else
11136         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
11137         ECAL_LIBS=$pkg_cv_ECAL_LIBS
11138         { echo "$as_me:$LINENO: result: yes" >&5
11139 echo "${ECHO_T}yes" >&6; }
11140         ECALFOUND=yes
11141 fi
11142         fi
11143 fi
11144
11145
11146 pkg_failed=no
11147 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11148 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11149
11150 if test -n "$PKG_CONFIG"; then
11151     if test -n "$EBOOK_CFLAGS"; then
11152         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11153     else
11154         if test -n "$PKG_CONFIG" && \
11155     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
11156   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; then
11160   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
11161 else
11162   pkg_failed=yes
11163 fi
11164     fi
11165 else
11166         pkg_failed=untried
11167 fi
11168 if test -n "$PKG_CONFIG"; then
11169     if test -n "$EBOOK_LIBS"; then
11170         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11171     else
11172         if test -n "$PKG_CONFIG" && \
11173     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
11174   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; then
11178   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
11179 else
11180   pkg_failed=yes
11181 fi
11182     fi
11183 else
11184         pkg_failed=untried
11185 fi
11186
11187
11188
11189 if test $pkg_failed = yes; then
11190
11191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11192         _pkg_short_errors_supported=yes
11193 else
11194         _pkg_short_errors_supported=no
11195 fi
11196         if test $_pkg_short_errors_supported = yes; then
11197                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
11198         else
11199                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
11200         fi
11201         # Put the nasty error message in config.log where it belongs
11202         echo "$EBOOK_PKG_ERRORS" >&5
11203
11204         { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11206                 EBOOKFOUND=no
11207 elif test $pkg_failed = untried; then
11208         EBOOKFOUND=no
11209 else
11210         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11211         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11212         { echo "$as_me:$LINENO: result: yes" >&5
11213 echo "${ECHO_T}yes" >&6; }
11214         EBOOKFOUND=yes
11215 fi
11216 if test "x${EBOOKFOUND}" = "xno"; then
11217
11218 pkg_failed=no
11219 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11220 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11221
11222 if test -n "$PKG_CONFIG"; then
11223     if test -n "$EBOOK_CFLAGS"; then
11224         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11225     else
11226         if test -n "$PKG_CONFIG" && \
11227     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
11228   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; then
11232   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
11233 else
11234   pkg_failed=yes
11235 fi
11236     fi
11237 else
11238         pkg_failed=untried
11239 fi
11240 if test -n "$PKG_CONFIG"; then
11241     if test -n "$EBOOK_LIBS"; then
11242         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11243     else
11244         if test -n "$PKG_CONFIG" && \
11245     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
11246   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; then
11250   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
11251 else
11252   pkg_failed=yes
11253 fi
11254     fi
11255 else
11256         pkg_failed=untried
11257 fi
11258
11259
11260
11261 if test $pkg_failed = yes; then
11262
11263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11264         _pkg_short_errors_supported=yes
11265 else
11266         _pkg_short_errors_supported=no
11267 fi
11268         if test $_pkg_short_errors_supported = yes; then
11269                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
11270         else
11271                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
11272         fi
11273         # Put the nasty error message in config.log where it belongs
11274         echo "$EBOOK_PKG_ERRORS" >&5
11275
11276         { echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6; }
11278                 EBOOKFOUND=no
11279 elif test $pkg_failed = untried; then
11280         EBOOKFOUND=no
11281 else
11282         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11283         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11284         { echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6; }
11286         EBOOKFOUND=yes
11287 fi
11288         if test "x${EBOOKFOUND}" = "xno"; then
11289
11290 pkg_failed=no
11291 { echo "$as_me:$LINENO: checking for EBOOK" >&5
11292 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
11293
11294 if test -n "$PKG_CONFIG"; then
11295     if test -n "$EBOOK_CFLAGS"; then
11296         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
11297     else
11298         if test -n "$PKG_CONFIG" && \
11299     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
11300   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; then
11304   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
11305 else
11306   pkg_failed=yes
11307 fi
11308     fi
11309 else
11310         pkg_failed=untried
11311 fi
11312 if test -n "$PKG_CONFIG"; then
11313     if test -n "$EBOOK_LIBS"; then
11314         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
11315     else
11316         if test -n "$PKG_CONFIG" && \
11317     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
11318   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; then
11322   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
11323 else
11324   pkg_failed=yes
11325 fi
11326     fi
11327 else
11328         pkg_failed=untried
11329 fi
11330
11331
11332
11333 if test $pkg_failed = yes; then
11334
11335 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11336         _pkg_short_errors_supported=yes
11337 else
11338         _pkg_short_errors_supported=no
11339 fi
11340         if test $_pkg_short_errors_supported = yes; then
11341                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
11342         else
11343                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
11344         fi
11345         # Put the nasty error message in config.log where it belongs
11346         echo "$EBOOK_PKG_ERRORS" >&5
11347
11348         { echo "$as_me:$LINENO: result: no" >&5
11349 echo "${ECHO_T}no" >&6; }
11350                 EBOOKFOUND=no
11351 elif test $pkg_failed = untried; then
11352         EBOOKFOUND=no
11353 else
11354         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
11355         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
11356         { echo "$as_me:$LINENO: result: yes" >&5
11357 echo "${ECHO_T}yes" >&6; }
11358         EBOOKFOUND=yes
11359 fi
11360         fi
11361 fi
11362
11363
11364         # Check whether --enable-ebook was given.
11365 if test "${enable_ebook+set}" = set; then
11366   enableval=$enable_ebook; enable_ebook="$enableval"
11367 else
11368   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
11369                        { { echo "$as_me:$LINENO: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&5
11370 echo "$as_me: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&2;}
11371    { (exit 1); exit 1; }; }
11372 fi
11373
11374         BACKENDS="$BACKENDS ebook"
11375         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
11376         for source in evolution; do
11377             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
11378         done
11379
11380
11381         # Check whether --enable-ecal was given.
11382 if test "${enable_ecal+set}" = set; then
11383   enableval=$enable_ecal; enable_ecal="$enableval"
11384 else
11385   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
11386                        { { echo "$as_me:$LINENO: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&5
11387 echo "$as_me: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&2;}
11388    { (exit 1); exit 1; }; }
11389 fi
11390
11391         BACKENDS="$BACKENDS ecal"
11392         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
11393         for source in evolution; do
11394             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
11395         done
11396
11397
11398 enable_evo="no"
11399 if test "$enable_ebook" = "yes"; then
11400         test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
11401 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
11402    { (exit 1); exit 1; }; }
11403
11404 cat >>confdefs.h <<\_ACEOF
11405 #define ENABLE_EBOOK 1
11406 _ACEOF
11407
11408         enable_evo="yes"
11409 else
11410         EBOOK_CFLAGS=
11411         EBOOK_LIBS=
11412 fi
11413
11414  if test "$enable_ecal" == "yes"; then
11415   ENABLE_ECAL_TRUE=
11416   ENABLE_ECAL_FALSE='#'
11417 else
11418   ENABLE_ECAL_TRUE='#'
11419   ENABLE_ECAL_FALSE=
11420 fi
11421
11422 if test "$enable_ecal" = "yes"; then
11423         test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
11424 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
11425    { (exit 1); exit 1; }; }
11426
11427 cat >>confdefs.h <<\_ACEOF
11428 #define ENABLE_ECAL 1
11429 _ACEOF
11430
11431         enable_evo="yes"
11432 else
11433         ECAL_CFLAGS=
11434         ECAL_LIBS=
11435 fi
11436
11437
11438 pkg_failed=no
11439 { echo "$as_me:$LINENO: checking for LIBICAL_AVAILABLE" >&5
11440 echo $ECHO_N "checking for LIBICAL_AVAILABLE... $ECHO_C" >&6; }
11441
11442 if test -n "$PKG_CONFIG"; then
11443     if test -n "$LIBICAL_AVAILABLE_CFLAGS"; then
11444         pkg_cv_LIBICAL_AVAILABLE_CFLAGS="$LIBICAL_AVAILABLE_CFLAGS"
11445     else
11446         if test -n "$PKG_CONFIG" && \
11447     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11448   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; then
11452   pkg_cv_LIBICAL_AVAILABLE_CFLAGS=`$PKG_CONFIG --cflags "libical >= 0.43" 2>/dev/null`
11453 else
11454   pkg_failed=yes
11455 fi
11456     fi
11457 else
11458         pkg_failed=untried
11459 fi
11460 if test -n "$PKG_CONFIG"; then
11461     if test -n "$LIBICAL_AVAILABLE_LIBS"; then
11462         pkg_cv_LIBICAL_AVAILABLE_LIBS="$LIBICAL_AVAILABLE_LIBS"
11463     else
11464         if test -n "$PKG_CONFIG" && \
11465     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical >= 0.43\"") >&5
11466   ($PKG_CONFIG --exists --print-errors "libical >= 0.43") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; then
11470   pkg_cv_LIBICAL_AVAILABLE_LIBS=`$PKG_CONFIG --libs "libical >= 0.43" 2>/dev/null`
11471 else
11472   pkg_failed=yes
11473 fi
11474     fi
11475 else
11476         pkg_failed=untried
11477 fi
11478
11479
11480
11481 if test $pkg_failed = yes; then
11482
11483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11484         _pkg_short_errors_supported=yes
11485 else
11486         _pkg_short_errors_supported=no
11487 fi
11488         if test $_pkg_short_errors_supported = yes; then
11489                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical >= 0.43"`
11490         else
11491                 LIBICAL_AVAILABLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical >= 0.43"`
11492         fi
11493         # Put the nasty error message in config.log where it belongs
11494         echo "$LIBICAL_AVAILABLE_PKG_ERRORS" >&5
11495
11496         { echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6; }
11498                 pass
11499 elif test $pkg_failed = untried; then
11500         pass
11501 else
11502         LIBICAL_AVAILABLE_CFLAGS=$pkg_cv_LIBICAL_AVAILABLE_CFLAGS
11503         LIBICAL_AVAILABLE_LIBS=$pkg_cv_LIBICAL_AVAILABLE_LIBS
11504         { echo "$as_me:$LINENO: result: yes" >&5
11505 echo "${ECHO_T}yes" >&6; }
11506
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_LIBICAL_R 1
11509 _ACEOF
11510
11511 fi
11512
11513 if test "$enable_evo" = "yes"; then
11514         need_glib="yes"
11515         if test "$EDSFOUND" = "yes"; then
11516
11517 cat >>confdefs.h <<\_ACEOF
11518 #define HAVE_EDS 1
11519 _ACEOF
11520
11521         else
11522                 { { echo "$as_me:$LINENO: error: $evomissing" >&5
11523 echo "$as_me: error: $evomissing" >&2;}
11524    { (exit 1); exit 1; }; }
11525         fi
11526 else
11527         EPACKAGE_CFLAGS=
11528         EPACKAGE_LIBS=
11529 fi
11530
11531 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS $ECAL_CFLAGS $EBOOK_CFLAGS"
11532 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
11533
11534 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
11535
11536 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
11537
11538
11539 FILE_CFLAGS=
11540 FILE_LIBS=
11541
11542
11543
11544 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
11545
11546
11547         # Check whether --enable-file was given.
11548 if test "${enable_file+set}" = set; then
11549   enableval=$enable_file; enable_file="$enableval"
11550 else
11551   enable_file="yes"
11552
11553 fi
11554
11555         BACKENDS="$BACKENDS file"
11556         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
11557         for source in file; do
11558             SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
11559         done
11560
11561
11562 if test "$enable_file" = "yes"; then
11563
11564 cat >>confdefs.h <<\_ACEOF
11565 #define ENABLE_FILE 1
11566 _ACEOF
11567
11568 fi
11569 ac_config_files="$ac_config_files src/backends/file/Makefile"
11570
11571 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
11572
11573 # vvvvvvvvvvvvvv src/backends/kcalextended/configure-sub.in vvvvvvvvvvvvvv
11574
11575 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
11576
11577
11578         # Check whether --enable-kcalextended was given.
11579 if test "${enable_kcalextended+set}" = set; then
11580   enableval=$enable_kcalextended; enable_kcalextended="$enableval"
11581 else
11582   enable_kcalextended="no"
11583
11584 fi
11585
11586         BACKENDS="$BACKENDS kcalextended"
11587         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo kcalextended | tr a-z A-Z`"
11588         for source in kcalextended; do
11589             SYNCSOURCES="$SYNCSOURCES backends/kcalextended/synckcalextended.la"
11590         done
11591
11592
11593 if test "$enable_kcalextended" = "yes"; then
11594
11595 cat >>confdefs.h <<\_ACEOF
11596 #define ENABLE_KCALEXTENDED 1
11597 _ACEOF
11598
11599
11600 pkg_failed=no
11601 { echo "$as_me:$LINENO: checking for KCALEXTENDED" >&5
11602 echo $ECHO_N "checking for KCALEXTENDED... $ECHO_C" >&6; }
11603
11604 if test -n "$PKG_CONFIG"; then
11605     if test -n "$KCALEXTENDED_CFLAGS"; then
11606         pkg_cv_KCALEXTENDED_CFLAGS="$KCALEXTENDED_CFLAGS"
11607     else
11608         if test -n "$PKG_CONFIG" && \
11609     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\"") >&5
11610   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; then
11614   pkg_cv_KCALEXTENDED_CFLAGS=`$PKG_CONFIG --cflags "libmkcal libkcalcoren" 2>/dev/null`
11615 else
11616   pkg_failed=yes
11617 fi
11618     fi
11619 else
11620         pkg_failed=untried
11621 fi
11622 if test -n "$PKG_CONFIG"; then
11623     if test -n "$KCALEXTENDED_LIBS"; then
11624         pkg_cv_KCALEXTENDED_LIBS="$KCALEXTENDED_LIBS"
11625     else
11626         if test -n "$PKG_CONFIG" && \
11627     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmkcal libkcalcoren\"") >&5
11628   ($PKG_CONFIG --exists --print-errors "libmkcal libkcalcoren") 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; then
11632   pkg_cv_KCALEXTENDED_LIBS=`$PKG_CONFIG --libs "libmkcal libkcalcoren" 2>/dev/null`
11633 else
11634   pkg_failed=yes
11635 fi
11636     fi
11637 else
11638         pkg_failed=untried
11639 fi
11640
11641
11642
11643 if test $pkg_failed = yes; then
11644
11645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11646         _pkg_short_errors_supported=yes
11647 else
11648         _pkg_short_errors_supported=no
11649 fi
11650         if test $_pkg_short_errors_supported = yes; then
11651                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
11652         else
11653                 KCALEXTENDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmkcal libkcalcoren"`
11654         fi
11655         # Put the nasty error message in config.log where it belongs
11656         echo "$KCALEXTENDED_PKG_ERRORS" >&5
11657
11658         { { echo "$as_me:$LINENO: error: Package requirements (libmkcal libkcalcoren) were not met:
11659
11660 $KCALEXTENDED_PKG_ERRORS
11661
11662 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11663 installed software in a non-standard prefix.
11664
11665 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11666 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11667 See the pkg-config man page for more details.
11668 " >&5
11669 echo "$as_me: error: Package requirements (libmkcal libkcalcoren) were not met:
11670
11671 $KCALEXTENDED_PKG_ERRORS
11672
11673 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11674 installed software in a non-standard prefix.
11675
11676 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11677 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11678 See the pkg-config man page for more details.
11679 " >&2;}
11680    { (exit 1); exit 1; }; }
11681 elif test $pkg_failed = untried; then
11682         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11683 is in your PATH or set the PKG_CONFIG environment variable to the full
11684 path to pkg-config.
11685
11686 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11687 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11688 See the pkg-config man page for more details.
11689
11690 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11691 See \`config.log' for more details." >&5
11692 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11693 is in your PATH or set the PKG_CONFIG environment variable to the full
11694 path to pkg-config.
11695
11696 Alternatively, you may set the environment variables KCALEXTENDED_CFLAGS
11697 and KCALEXTENDED_LIBS to avoid the need to call pkg-config.
11698 See the pkg-config man page for more details.
11699
11700 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11701 See \`config.log' for more details." >&2;}
11702    { (exit 1); exit 1; }; }
11703 else
11704         KCALEXTENDED_CFLAGS=$pkg_cv_KCALEXTENDED_CFLAGS
11705         KCALEXTENDED_LIBS=$pkg_cv_KCALEXTENDED_LIBS
11706         { echo "$as_me:$LINENO: result: yes" >&5
11707 echo "${ECHO_T}yes" >&6; }
11708         :
11709 fi
11710 fi
11711 ac_config_files="$ac_config_files src/backends/kcalextended/Makefile"
11712
11713 # ^^^^^^^^^^^^^^ src/backends/kcalextended/configure-sub.in ^^^^^^^^^^^^^^
11714
11715 # vvvvvvvvvvvvvv src/backends/maemo/configure-sub.in vvvvvvvvvvvvvv
11716
11717
11718 pkg_failed=no
11719 { echo "$as_me:$LINENO: checking for MCALB" >&5
11720 echo $ECHO_N "checking for MCALB... $ECHO_C" >&6; }
11721
11722 if test -n "$PKG_CONFIG"; then
11723     if test -n "$MCALB_CFLAGS"; then
11724         pkg_cv_MCALB_CFLAGS="$MCALB_CFLAGS"
11725     else
11726         if test -n "$PKG_CONFIG" && \
11727     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11728   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; then
11732   pkg_cv_MCALB_CFLAGS=`$PKG_CONFIG --cflags "calendar-backend" 2>/dev/null`
11733 else
11734   pkg_failed=yes
11735 fi
11736     fi
11737 else
11738         pkg_failed=untried
11739 fi
11740 if test -n "$PKG_CONFIG"; then
11741     if test -n "$MCALB_LIBS"; then
11742         pkg_cv_MCALB_LIBS="$MCALB_LIBS"
11743     else
11744         if test -n "$PKG_CONFIG" && \
11745     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"calendar-backend\"") >&5
11746   ($PKG_CONFIG --exists --print-errors "calendar-backend") 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; then
11750   pkg_cv_MCALB_LIBS=`$PKG_CONFIG --libs "calendar-backend" 2>/dev/null`
11751 else
11752   pkg_failed=yes
11753 fi
11754     fi
11755 else
11756         pkg_failed=untried
11757 fi
11758
11759
11760
11761 if test $pkg_failed = yes; then
11762
11763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11764         _pkg_short_errors_supported=yes
11765 else
11766         _pkg_short_errors_supported=no
11767 fi
11768         if test $_pkg_short_errors_supported = yes; then
11769                 MCALB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "calendar-backend"`
11770         else
11771                 MCALB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "calendar-backend"`
11772         fi
11773         # Put the nasty error message in config.log where it belongs
11774         echo "$MCALB_PKG_ERRORS" >&5
11775
11776         { echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6; }
11778                 MCALBFOUND=no
11779 elif test $pkg_failed = untried; then
11780         MCALBFOUND=no
11781 else
11782         MCALB_CFLAGS=$pkg_cv_MCALB_CFLAGS
11783         MCALB_LIBS=$pkg_cv_MCALB_LIBS
11784         { echo "$as_me:$LINENO: result: yes" >&5
11785 echo "${ECHO_T}yes" >&6; }
11786         MCALBFOUND=yes
11787 fi
11788
11789
11790 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $MCALB_CFLAGS"
11791
11792
11793         # Check whether --enable-maemocal was given.
11794 if test "${enable_maemocal+set}" = set; then
11795   enableval=$enable_maemocal; enable_maemocal="$enableval"
11796 else
11797   enable_maemocal="no"
11798 fi
11799
11800         BACKENDS="$BACKENDS maemocal"
11801         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo maemocal | tr a-z A-Z`"
11802         for source in maemo; do
11803             SYNCSOURCES="$SYNCSOURCES backends/maemo/syncmaemocal.la"
11804         done
11805
11806
11807 if test "$enable_maemocal" = "yes"; then
11808         test "x${MCALBFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&5
11809 echo "$as_me: error: --enable-maemo-calendar requires pkg-config information for calendar-backend, which was not found" >&2;}
11810    { (exit 1); exit 1; }; }
11811
11812 cat >>confdefs.h <<\_ACEOF
11813 #define ENABLE_MAEMO_CALENDAR 1
11814 _ACEOF
11815
11816 fi
11817 ac_config_files="$ac_config_files src/backends/maemo/Makefile"
11818
11819 # ^^^^^^^^^^^^^^ src/backends/maemo/configure-sub.in ^^^^^^^^^^^^^^
11820
11821 # vvvvvvvvvvvvvv src/backends/qtcontacts/configure-sub.in vvvvvvvvvvvvvv
11822
11823 # BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."
11824
11825
11826         # Check whether --enable-qtcontacts was given.
11827 if test "${enable_qtcontacts+set}" = set; then
11828   enableval=$enable_qtcontacts; enable_qtcontacts="$enableval"
11829 else
11830   enable_qtcontacts="no"
11831
11832 fi
11833
11834         BACKENDS="$BACKENDS qtcontacts"
11835         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo qtcontacts | tr a-z A-Z`"
11836         for source in qtcontacts; do
11837             SYNCSOURCES="$SYNCSOURCES backends/qtcontacts/syncqtcontacts.la"
11838         done
11839
11840
11841 if test "$enable_qtcontacts" = "yes"; then
11842
11843 cat >>confdefs.h <<\_ACEOF
11844 #define ENABLE_QTCONTACTS 1
11845 _ACEOF
11846
11847         # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
11848         # setting QT_* flags.
11849         need_qt_modules="$need_qt_modules +gui" # GUI needed for QVersit
11850         qt_config="$qt_config +mobility"
11851         qt_misc="$qt_misc
11852 MOBILITY += contacts versit"
11853 fi
11854
11855 ac_config_files="$ac_config_files src/backends/qtcontacts/Makefile"
11856
11857 # ^^^^^^^^^^^^^^ src/backends/qtcontacts/configure-sub.in ^^^^^^^^^^^^^^
11858
11859 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
11860
11861
11862 pkg_failed=no
11863 { echo "$as_me:$LINENO: checking for SQLITE" >&5
11864 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6; }
11865
11866 if test -n "$PKG_CONFIG"; then
11867     if test -n "$SQLITE_CFLAGS"; then
11868         pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
11869     else
11870         if test -n "$PKG_CONFIG" && \
11871     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11872   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; then
11876   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
11877 else
11878   pkg_failed=yes
11879 fi
11880     fi
11881 else
11882         pkg_failed=untried
11883 fi
11884 if test -n "$PKG_CONFIG"; then
11885     if test -n "$SQLITE_LIBS"; then
11886         pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
11887     else
11888         if test -n "$PKG_CONFIG" && \
11889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
11890   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; then
11894   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
11895 else
11896   pkg_failed=yes
11897 fi
11898     fi
11899 else
11900         pkg_failed=untried
11901 fi
11902
11903
11904
11905 if test $pkg_failed = yes; then
11906
11907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11908         _pkg_short_errors_supported=yes
11909 else
11910         _pkg_short_errors_supported=no
11911 fi
11912         if test $_pkg_short_errors_supported = yes; then
11913                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
11914         else
11915                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
11916         fi
11917         # Put the nasty error message in config.log where it belongs
11918         echo "$SQLITE_PKG_ERRORS" >&5
11919
11920         { echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6; }
11922                 SQLITEFOUND=no
11923 elif test $pkg_failed = untried; then
11924         SQLITEFOUND=no
11925 else
11926         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
11927         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
11928         { echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6; }
11930         SQLITEFOUND=yes
11931 fi
11932
11933
11934 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
11935
11936
11937         # Check whether --enable-sqlite was given.
11938 if test "${enable_sqlite+set}" = set; then
11939   enableval=$enable_sqlite; enable_sqlite="$enableval"
11940 else
11941   enable_sqlite="no"
11942 fi
11943
11944         BACKENDS="$BACKENDS sqlite"
11945         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
11946         for source in sqlite; do
11947             SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
11948         done
11949
11950
11951 if test "$enable_sqlite" = "yes"; then
11952         test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
11953 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
11954    { (exit 1); exit 1; }; }
11955
11956 cat >>confdefs.h <<\_ACEOF
11957 #define ENABLE_SQLITE 1
11958 _ACEOF
11959
11960 else
11961         # avoid linking against it if not needed
11962         SQLITE_CFLAGS=
11963         SQLITE_LIBS=
11964 fi
11965 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
11966
11967 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
11968
11969 # vvvvvvvvvvvvvv src/backends/xmlrpc/configure-sub.in vvvvvvvvvvvvvv
11970
11971
11972
11973
11974         # Check whether --enable-xmlrpc was given.
11975 if test "${enable_xmlrpc+set}" = set; then
11976   enableval=$enable_xmlrpc; enable_xmlrpc="$enableval"
11977 else
11978   enable_xmlrpc="no"
11979
11980 fi
11981
11982         BACKENDS="$BACKENDS xmlrpc"
11983         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo xmlrpc | tr a-z A-Z`"
11984         for source in xmlrpc; do
11985             SYNCSOURCES="$SYNCSOURCES backends/xmlrpc/syncxmlrpc.la"
11986         done
11987
11988
11989 if test "$enable_xmlrpc" = "yes"; then
11990
11991         test -e /usr/bin/xmlrpc-c-config || { { echo "$as_me:$LINENO: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&5
11992 echo "$as_me: error: --enable-xmlrpc requires xmlrpc-c-config, which was not found" >&2;}
11993    { (exit 1); exit 1; }; }
11994
11995         XMLRPC_CFLAGS=`/usr/bin/xmlrpc-c-config c++2 client --cflags`
11996         XMLRPC_LIBS=`/usr/bin/xmlrpc-c-config c++2 client --libs`
11997
11998
11999
12000                         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $XMLRPC_CFLAGS"
12001
12002
12003 cat >>confdefs.h <<\_ACEOF
12004 #define ENABLE_XMLRPC 1
12005 _ACEOF
12006
12007 fi
12008 ac_config_files="$ac_config_files src/backends/xmlrpc/Makefile"
12009
12010 # ^^^^^^^^^^^^^^ src/backends/xmlrpc/configure-sub.in ^^^^^^^^^^^^^^
12011
12012
12013
12014
12015 enable_any="no"
12016 backend_is_enabled () {
12017     eval echo \${enable_${1}}
12018 }
12019 for backend in $BACKENDS; do
12020     if test `backend_is_enabled $backend` == "yes"; then
12021        enable_any="yes"
12022        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
12023     fi
12024 done
12025
12026 if test "$enable_any" = "no"; then
12027         { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
12028 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
12029    { (exit 1); exit 1; }; }
12030 fi
12031
12032 ac_ext=cpp
12033 ac_cpp='$CXXCPP $CPPFLAGS'
12034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12037 if test -z "$CXX"; then
12038   if test -n "$CCC"; then
12039     CXX=$CCC
12040   else
12041     if test -n "$ac_tool_prefix"; then
12042   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12043   do
12044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12048 if test "${ac_cv_prog_CXX+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   if test -n "$CXX"; then
12052   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057   IFS=$as_save_IFS
12058   test -z "$as_dir" && as_dir=.
12059   for ac_exec_ext in '' $ac_executable_extensions; do
12060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063     break 2
12064   fi
12065 done
12066 done
12067 IFS=$as_save_IFS
12068
12069 fi
12070 fi
12071 CXX=$ac_cv_prog_CXX
12072 if test -n "$CXX"; then
12073   { echo "$as_me:$LINENO: result: $CXX" >&5
12074 echo "${ECHO_T}$CXX" >&6; }
12075 else
12076   { echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6; }
12078 fi
12079
12080
12081     test -n "$CXX" && break
12082   done
12083 fi
12084 if test -z "$CXX"; then
12085   ac_ct_CXX=$CXX
12086   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12087 do
12088   # Extract the first word of "$ac_prog", so it can be a program name with args.
12089 set dummy $ac_prog; ac_word=$2
12090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12092 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   if test -n "$ac_ct_CXX"; then
12096   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103   for ac_exec_ext in '' $ac_executable_extensions; do
12104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105     ac_cv_prog_ac_ct_CXX="$ac_prog"
12106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110 done
12111 IFS=$as_save_IFS
12112
12113 fi
12114 fi
12115 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12116 if test -n "$ac_ct_CXX"; then
12117   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12118 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12119 else
12120   { echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6; }
12122 fi
12123
12124
12125   test -n "$ac_ct_CXX" && break
12126 done
12127
12128   if test "x$ac_ct_CXX" = x; then
12129     CXX="g++"
12130   else
12131     case $cross_compiling:$ac_tool_warned in
12132 yes:)
12133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12134 whose name does not start with the host triplet.  If you think this
12135 configuration is useful to you, please write to autoconf@gnu.org." >&5
12136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12137 whose name does not start with the host triplet.  If you think this
12138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12139 ac_tool_warned=yes ;;
12140 esac
12141     CXX=$ac_ct_CXX
12142   fi
12143 fi
12144
12145   fi
12146 fi
12147 # Provide some information about the compiler.
12148 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12149 ac_compiler=`set X $ac_compile; echo $2`
12150 { (ac_try="$ac_compiler --version >&5"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_compiler --version >&5") 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }
12160 { (ac_try="$ac_compiler -v >&5"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_compiler -v >&5") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }
12170 { (ac_try="$ac_compiler -V >&5"
12171 case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_compiler -V >&5") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }
12180
12181 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12182 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12183 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192
12193 int
12194 main ()
12195 {
12196 #ifndef __GNUC__
12197        choke me
12198 #endif
12199
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_compile") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } && {
12218          test -z "$ac_cxx_werror_flag" ||
12219          test ! -s conftest.err
12220        } && test -s conftest.$ac_objext; then
12221   ac_compiler_gnu=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226         ac_compiler_gnu=no
12227 fi
12228
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12231
12232 fi
12233 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12234 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12235 GXX=`test $ac_compiler_gnu = yes && echo yes`
12236 ac_test_CXXFLAGS=${CXXFLAGS+set}
12237 ac_save_CXXFLAGS=$CXXFLAGS
12238 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12239 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12240 if test "${ac_cv_prog_cxx_g+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12244    ac_cxx_werror_flag=yes
12245    ac_cv_prog_cxx_g=no
12246    CXXFLAGS="-g"
12247    cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253
12254 int
12255 main ()
12256 {
12257
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (ac_try="$ac_compile"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_compile") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && {
12276          test -z "$ac_cxx_werror_flag" ||
12277          test ! -s conftest.err
12278        } && test -s conftest.$ac_objext; then
12279   ac_cv_prog_cxx_g=yes
12280 else
12281   echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284         CXXFLAGS=""
12285       cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291
12292 int
12293 main ()
12294 {
12295
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_compile") 2>conftest.er1
12308   ac_status=$?
12309   grep -v '^ *+' conftest.er1 >conftest.err
12310   rm -f conftest.er1
12311   cat conftest.err >&5
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); } && {
12314          test -z "$ac_cxx_werror_flag" ||
12315          test ! -s conftest.err
12316        } && test -s conftest.$ac_objext; then
12317   :
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12323          CXXFLAGS="-g"
12324          cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330
12331 int
12332 main ()
12333 {
12334
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343   *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346   (eval "$ac_compile") 2>conftest.er1
12347   ac_status=$?
12348   grep -v '^ *+' conftest.er1 >conftest.err
12349   rm -f conftest.er1
12350   cat conftest.err >&5
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); } && {
12353          test -z "$ac_cxx_werror_flag" ||
12354          test ! -s conftest.err
12355        } && test -s conftest.$ac_objext; then
12356   ac_cv_prog_cxx_g=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361
12362 fi
12363
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 fi
12366
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 fi
12369
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12372 fi
12373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12374 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12375 if test "$ac_test_CXXFLAGS" = set; then
12376   CXXFLAGS=$ac_save_CXXFLAGS
12377 elif test $ac_cv_prog_cxx_g = yes; then
12378   if test "$GXX" = yes; then
12379     CXXFLAGS="-g -O2"
12380   else
12381     CXXFLAGS="-g"
12382   fi
12383 else
12384   if test "$GXX" = yes; then
12385     CXXFLAGS="-O2"
12386   else
12387     CXXFLAGS=
12388   fi
12389 fi
12390 ac_ext=c
12391 ac_cpp='$CPP $CPPFLAGS'
12392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395
12396 depcc="$CXX"  am_compiler_list=
12397
12398 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12399 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12400 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12404   # We make a subdir and do the tests there.  Otherwise we can end up
12405   # making bogus files that we don't know about and never remove.  For
12406   # instance it was reported that on HP-UX the gcc test will end up
12407   # making a dummy file named `D' -- because `-MD' means `put the output
12408   # in D'.
12409   mkdir conftest.dir
12410   # Copy depcomp to subdir because otherwise we won't find it if we're
12411   # using a relative directory.
12412   cp "$am_depcomp" conftest.dir
12413   cd conftest.dir
12414   # We will build objects and dependencies in a subdirectory because
12415   # it helps to detect inapplicable dependency modes.  For instance
12416   # both Tru64's cc and ICC support -MD to output dependencies as a
12417   # side effect of compilation, but ICC will put the dependencies in
12418   # the current directory while Tru64 will put them in the object
12419   # directory.
12420   mkdir sub
12421
12422   am_cv_CXX_dependencies_compiler_type=none
12423   if test "$am_compiler_list" = ""; then
12424      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12425   fi
12426   for depmode in $am_compiler_list; do
12427     # Setup a source with many dependencies, because some compilers
12428     # like to wrap large dependency lists on column 80 (with \), and
12429     # we should not choose a depcomp mode which is confused by this.
12430     #
12431     # We need to recreate these files for each test, as the compiler may
12432     # overwrite some of them when testing with obscure command lines.
12433     # This happens at least with the AIX C compiler.
12434     : > sub/conftest.c
12435     for i in 1 2 3 4 5 6; do
12436       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12437       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12438       # Solaris 8's {/usr,}/bin/sh.
12439       touch sub/conftst$i.h
12440     done
12441     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12442
12443     case $depmode in
12444     nosideeffect)
12445       # after this tag, mechanisms are not by side-effect, so they'll
12446       # only be used when explicitly requested
12447       if test "x$enable_dependency_tracking" = xyes; then
12448         continue
12449       else
12450         break
12451       fi
12452       ;;
12453     none) break ;;
12454     esac
12455     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12456     # mode.  It turns out that the SunPro C++ compiler does not properly
12457     # handle `-M -o', and we need to detect this.
12458     if depmode=$depmode \
12459        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12460        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12461        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12462          >/dev/null 2>conftest.err &&
12463        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12464        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12465        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12466        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12467       # icc doesn't choke on unknown options, it will just issue warnings
12468       # or remarks (even with -Werror).  So we grep stderr for any message
12469       # that says an option was ignored or not supported.
12470       # When given -MP, icc 7.0 and 7.1 complain thusly:
12471       #   icc: Command line warning: ignoring option '-M'; no argument required
12472       # The diagnosis changed in icc 8.0:
12473       #   icc: Command line remark: option '-MP' not supported
12474       if (grep 'ignoring option' conftest.err ||
12475           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12476         am_cv_CXX_dependencies_compiler_type=$depmode
12477         break
12478       fi
12479     fi
12480   done
12481
12482   cd ..
12483   rm -rf conftest.dir
12484 else
12485   am_cv_CXX_dependencies_compiler_type=none
12486 fi
12487
12488 fi
12489 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12490 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12491 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12492
12493  if
12494   test "x$enable_dependency_tracking" != xno \
12495   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12496   am__fastdepCXX_TRUE=
12497   am__fastdepCXX_FALSE='#'
12498 else
12499   am__fastdepCXX_TRUE='#'
12500   am__fastdepCXX_FALSE=
12501 fi
12502
12503
12504 # Check whether --enable-shared was given.
12505 if test "${enable_shared+set}" = set; then
12506   enableval=$enable_shared; p=${PACKAGE-default}
12507     case $enableval in
12508     yes) enable_shared=yes ;;
12509     no) enable_shared=no ;;
12510     *)
12511       enable_shared=no
12512       # Look at the argument we got.  We use all the common list separators.
12513       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12514       for pkg in $enableval; do
12515         IFS="$lt_save_ifs"
12516         if test "X$pkg" = "X$p"; then
12517           enable_shared=yes
12518         fi
12519       done
12520       IFS="$lt_save_ifs"
12521       ;;
12522     esac
12523 else
12524   enable_shared=yes
12525 fi
12526
12527
12528 # Check whether --enable-static was given.
12529 if test "${enable_static+set}" = set; then
12530   enableval=$enable_static; p=${PACKAGE-default}
12531     case $enableval in
12532     yes) enable_static=yes ;;
12533     no) enable_static=no ;;
12534     *)
12535      enable_static=no
12536       # Look at the argument we got.  We use all the common list separators.
12537       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12538       for pkg in $enableval; do
12539         IFS="$lt_save_ifs"
12540         if test "X$pkg" = "X$p"; then
12541           enable_static=yes
12542         fi
12543       done
12544       IFS="$lt_save_ifs"
12545       ;;
12546     esac
12547 else
12548   enable_static=yes
12549 fi
12550
12551
12552 # Check whether --enable-fast-install was given.
12553 if test "${enable_fast_install+set}" = set; then
12554   enableval=$enable_fast_install; p=${PACKAGE-default}
12555     case $enableval in
12556     yes) enable_fast_install=yes ;;
12557     no) enable_fast_install=no ;;
12558     *)
12559       enable_fast_install=no
12560       # Look at the argument we got.  We use all the common list separators.
12561       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12562       for pkg in $enableval; do
12563         IFS="$lt_save_ifs"
12564         if test "X$pkg" = "X$p"; then
12565           enable_fast_install=yes
12566         fi
12567       done
12568       IFS="$lt_save_ifs"
12569       ;;
12570     esac
12571 else
12572   enable_fast_install=yes
12573 fi
12574
12575
12576 # Make sure we can run config.sub.
12577 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12578   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
12579 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
12580    { (exit 1); exit 1; }; }
12581
12582 { echo "$as_me:$LINENO: checking build system type" >&5
12583 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
12584 if test "${ac_cv_build+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   ac_build_alias=$build_alias
12588 test "x$ac_build_alias" = x &&
12589   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
12590 test "x$ac_build_alias" = x &&
12591   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
12592 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
12593    { (exit 1); exit 1; }; }
12594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12595   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
12596 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
12597    { (exit 1); exit 1; }; }
12598
12599 fi
12600 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
12601 echo "${ECHO_T}$ac_cv_build" >&6; }
12602 case $ac_cv_build in
12603 *-*-*) ;;
12604 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
12605 echo "$as_me: error: invalid value of canonical build" >&2;}
12606    { (exit 1); exit 1; }; };;
12607 esac
12608 build=$ac_cv_build
12609 ac_save_IFS=$IFS; IFS='-'
12610 set x $ac_cv_build
12611 shift
12612 build_cpu=$1
12613 build_vendor=$2
12614 shift; shift
12615 # Remember, the first character of IFS is used to create $*,
12616 # except with old shells:
12617 build_os=$*
12618 IFS=$ac_save_IFS
12619 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
12620
12621
12622 { echo "$as_me:$LINENO: checking host system type" >&5
12623 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
12624 if test "${ac_cv_host+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   if test "x$host_alias" = x; then
12628   ac_cv_host=$ac_cv_build
12629 else
12630   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12631     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12632 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12633    { (exit 1); exit 1; }; }
12634 fi
12635
12636 fi
12637 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12638 echo "${ECHO_T}$ac_cv_host" >&6; }
12639 case $ac_cv_host in
12640 *-*-*) ;;
12641 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12642 echo "$as_me: error: invalid value of canonical host" >&2;}
12643    { (exit 1); exit 1; }; };;
12644 esac
12645 host=$ac_cv_host
12646 ac_save_IFS=$IFS; IFS='-'
12647 set x $ac_cv_host
12648 shift
12649 host_cpu=$1
12650 host_vendor=$2
12651 shift; shift
12652 # Remember, the first character of IFS is used to create $*,
12653 # except with old shells:
12654 host_os=$*
12655 IFS=$ac_save_IFS
12656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12657
12658
12659 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12660 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12661 if test "${lt_cv_path_SED+set}" = set; then
12662   echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664   # Loop through the user's path and test for sed and gsed.
12665 # Then use that list of sed's as ones to test for truncation.
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669   IFS=$as_save_IFS
12670   test -z "$as_dir" && as_dir=.
12671   for lt_ac_prog in sed gsed; do
12672     for ac_exec_ext in '' $ac_executable_extensions; do
12673       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12674         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12675       fi
12676     done
12677   done
12678 done
12679 IFS=$as_save_IFS
12680 lt_ac_max=0
12681 lt_ac_count=0
12682 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12683 # along with /bin/sed that truncates output.
12684 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12685   test ! -f $lt_ac_sed && continue
12686   cat /dev/null > conftest.in
12687   lt_ac_count=0
12688   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12689   # Check for GNU sed and select it if it is found.
12690   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12691     lt_cv_path_SED=$lt_ac_sed
12692     break
12693   fi
12694   while true; do
12695     cat conftest.in conftest.in >conftest.tmp
12696     mv conftest.tmp conftest.in
12697     cp conftest.in conftest.nl
12698     echo >>conftest.nl
12699     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12700     cmp -s conftest.out conftest.nl || break
12701     # 10000 chars as input seems more than enough
12702     test $lt_ac_count -gt 10 && break
12703     lt_ac_count=`expr $lt_ac_count + 1`
12704     if test $lt_ac_count -gt $lt_ac_max; then
12705       lt_ac_max=$lt_ac_count
12706       lt_cv_path_SED=$lt_ac_sed
12707     fi
12708   done
12709 done
12710
12711 fi
12712
12713 SED=$lt_cv_path_SED
12714
12715 { echo "$as_me:$LINENO: result: $SED" >&5
12716 echo "${ECHO_T}$SED" >&6; }
12717
12718
12719 # Check whether --with-gnu-ld was given.
12720 if test "${with_gnu_ld+set}" = set; then
12721   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12722 else
12723   with_gnu_ld=no
12724 fi
12725
12726 ac_prog=ld
12727 if test "$GCC" = yes; then
12728   # Check if gcc -print-prog-name=ld gives a path.
12729   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12731   case $host in
12732   *-*-mingw*)
12733     # gcc leaves a trailing carriage return which upsets mingw
12734     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12735   *)
12736     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12737   esac
12738   case $ac_prog in
12739     # Accept absolute paths.
12740     [\\/]* | ?:[\\/]*)
12741       re_direlt='/[^/][^/]*/\.\./'
12742       # Canonicalize the pathname of ld
12743       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12744       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12745         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12746       done
12747       test -z "$LD" && LD="$ac_prog"
12748       ;;
12749   "")
12750     # If it fails, then pretend we aren't using GCC.
12751     ac_prog=ld
12752     ;;
12753   *)
12754     # If it is relative, then search for the first ld in PATH.
12755     with_gnu_ld=unknown
12756     ;;
12757   esac
12758 elif test "$with_gnu_ld" = yes; then
12759   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12761 else
12762   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12764 fi
12765 if test "${lt_cv_path_LD+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   if test -z "$LD"; then
12769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12770   for ac_dir in $PATH; do
12771     IFS="$lt_save_ifs"
12772     test -z "$ac_dir" && ac_dir=.
12773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12774       lt_cv_path_LD="$ac_dir/$ac_prog"
12775       # Check to see if the program is GNU ld.  I'd rather use --version,
12776       # but apparently some variants of GNU ld only accept -v.
12777       # Break only if it was the GNU/non-GNU ld that we prefer.
12778       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12779       *GNU* | *'with BFD'*)
12780         test "$with_gnu_ld" != no && break
12781         ;;
12782       *)
12783         test "$with_gnu_ld" != yes && break
12784         ;;
12785       esac
12786     fi
12787   done
12788   IFS="$lt_save_ifs"
12789 else
12790   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12791 fi
12792 fi
12793
12794 LD="$lt_cv_path_LD"
12795 if test -n "$LD"; then
12796   { echo "$as_me:$LINENO: result: $LD" >&5
12797 echo "${ECHO_T}$LD" >&6; }
12798 else
12799   { echo "$as_me:$LINENO: result: no" >&5
12800 echo "${ECHO_T}no" >&6; }
12801 fi
12802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12804    { (exit 1); exit 1; }; }
12805 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12811 case `$LD -v 2>&1 </dev/null` in
12812 *GNU* | *'with BFD'*)
12813   lt_cv_prog_gnu_ld=yes
12814   ;;
12815 *)
12816   lt_cv_prog_gnu_ld=no
12817   ;;
12818 esac
12819 fi
12820 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12822 with_gnu_ld=$lt_cv_prog_gnu_ld
12823
12824
12825 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12826 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12827 if test "${lt_cv_ld_reload_flag+set}" = set; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830   lt_cv_ld_reload_flag='-r'
12831 fi
12832 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12833 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12834 reload_flag=$lt_cv_ld_reload_flag
12835 case $reload_flag in
12836 "" | " "*) ;;
12837 *) reload_flag=" $reload_flag" ;;
12838 esac
12839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12840 case $host_os in
12841   darwin*)
12842     if test "$GCC" = yes; then
12843       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12844     else
12845       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12846     fi
12847     ;;
12848 esac
12849
12850 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12851 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12852 if test "${lt_cv_path_NM+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   if test -n "$NM"; then
12856   # Let the user override the test.
12857   lt_cv_path_NM="$NM"
12858 else
12859   lt_nm_to_check="${ac_tool_prefix}nm"
12860   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12861     lt_nm_to_check="$lt_nm_to_check nm"
12862   fi
12863   for lt_tmp_nm in $lt_nm_to_check; do
12864     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12865     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12866       IFS="$lt_save_ifs"
12867       test -z "$ac_dir" && ac_dir=.
12868       tmp_nm="$ac_dir/$lt_tmp_nm"
12869       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12870         # Check to see if the nm accepts a BSD-compat flag.
12871         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12872         #   nm: unknown option "B" ignored
12873         # Tru64's nm complains that /dev/null is an invalid object file
12874         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12875         */dev/null* | *'Invalid file or object type'*)
12876           lt_cv_path_NM="$tmp_nm -B"
12877           break
12878           ;;
12879         *)
12880           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12881           */dev/null*)
12882             lt_cv_path_NM="$tmp_nm -p"
12883             break
12884             ;;
12885           *)
12886             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12887             continue # so that we can try to find one that supports BSD flags
12888             ;;
12889           esac
12890           ;;
12891         esac
12892       fi
12893     done
12894     IFS="$lt_save_ifs"
12895   done
12896   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12897 fi
12898 fi
12899 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12900 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12901 NM="$lt_cv_path_NM"
12902
12903 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
12904 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12905 LN_S=$as_ln_s
12906 if test "$LN_S" = "ln -s"; then
12907   { echo "$as_me:$LINENO: result: yes" >&5
12908 echo "${ECHO_T}yes" >&6; }
12909 else
12910   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12911 echo "${ECHO_T}no, using $LN_S" >&6; }
12912 fi
12913
12914 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12915 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12916 if test "${lt_cv_deplibs_check_method+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   lt_cv_file_magic_cmd='$MAGIC_CMD'
12920 lt_cv_file_magic_test_file=
12921 lt_cv_deplibs_check_method='unknown'
12922 # Need to set the preceding variable on all platforms that support
12923 # interlibrary dependencies.
12924 # 'none' -- dependencies not supported.
12925 # `unknown' -- same as none, but documents that we really don't know.
12926 # 'pass_all' -- all dependencies passed with no checks.
12927 # 'test_compile' -- check by making test program.
12928 # 'file_magic [[regex]]' -- check by looking for files in library path
12929 # which responds to the $file_magic_cmd with a given extended regex.
12930 # If you have `file' or equivalent on your system and you're not sure
12931 # whether `pass_all' will *always* work, you probably want this one.
12932
12933 case $host_os in
12934 aix[4-9]*)
12935   lt_cv_deplibs_check_method=pass_all
12936   ;;
12937
12938 beos*)
12939   lt_cv_deplibs_check_method=pass_all
12940   ;;
12941
12942 bsdi[45]*)
12943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12944   lt_cv_file_magic_cmd='/usr/bin/file -L'
12945   lt_cv_file_magic_test_file=/shlib/libc.so
12946   ;;
12947
12948 cygwin*)
12949   # func_win32_libid is a shell function defined in ltmain.sh
12950   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12951   lt_cv_file_magic_cmd='func_win32_libid'
12952   ;;
12953
12954 mingw* | pw32*)
12955   # Base MSYS/MinGW do not provide the 'file' command needed by
12956   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12957   # unless we find 'file', for example because we are cross-compiling.
12958   if ( file / ) >/dev/null 2>&1; then
12959     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12960     lt_cv_file_magic_cmd='func_win32_libid'
12961   else
12962     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12963     lt_cv_file_magic_cmd='$OBJDUMP -f'
12964   fi
12965   ;;
12966
12967 darwin* | rhapsody*)
12968   lt_cv_deplibs_check_method=pass_all
12969   ;;
12970
12971 freebsd* | dragonfly*)
12972   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12973     case $host_cpu in
12974     i*86 )
12975       # Not sure whether the presence of OpenBSD here was a mistake.
12976       # Let's accept both of them until this is cleared up.
12977       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12978       lt_cv_file_magic_cmd=/usr/bin/file
12979       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12980       ;;
12981     esac
12982   else
12983     lt_cv_deplibs_check_method=pass_all
12984   fi
12985   ;;
12986
12987 gnu*)
12988   lt_cv_deplibs_check_method=pass_all
12989   ;;
12990
12991 hpux10.20* | hpux11*)
12992   lt_cv_file_magic_cmd=/usr/bin/file
12993   case $host_cpu in
12994   ia64*)
12995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12996     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12997     ;;
12998   hppa*64*)
12999     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]'
13000     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13001     ;;
13002   *)
13003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13004     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13005     ;;
13006   esac
13007   ;;
13008
13009 interix[3-9]*)
13010   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13011   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13012   ;;
13013
13014 irix5* | irix6* | nonstopux*)
13015   case $LD in
13016   *-32|*"-32 ") libmagic=32-bit;;
13017   *-n32|*"-n32 ") libmagic=N32;;
13018   *-64|*"-64 ") libmagic=64-bit;;
13019   *) libmagic=never-match;;
13020   esac
13021   lt_cv_deplibs_check_method=pass_all
13022   ;;
13023
13024 # This must be Linux ELF.
13025 linux* | k*bsd*-gnu)
13026   lt_cv_deplibs_check_method=pass_all
13027   ;;
13028
13029 netbsd* | netbsdelf*-gnu)
13030   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13032   else
13033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13034   fi
13035   ;;
13036
13037 newos6*)
13038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13039   lt_cv_file_magic_cmd=/usr/bin/file
13040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13041   ;;
13042
13043 nto-qnx*)
13044   lt_cv_deplibs_check_method=unknown
13045   ;;
13046
13047 openbsd*)
13048   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13050   else
13051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13052   fi
13053   ;;
13054
13055 osf3* | osf4* | osf5*)
13056   lt_cv_deplibs_check_method=pass_all
13057   ;;
13058
13059 rdos*)
13060   lt_cv_deplibs_check_method=pass_all
13061   ;;
13062
13063 solaris*)
13064   lt_cv_deplibs_check_method=pass_all
13065   ;;
13066
13067 sysv4 | sysv4.3*)
13068   case $host_vendor in
13069   motorola)
13070     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]'
13071     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13072     ;;
13073   ncr)
13074     lt_cv_deplibs_check_method=pass_all
13075     ;;
13076   sequent)
13077     lt_cv_file_magic_cmd='/bin/file'
13078     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13079     ;;
13080   sni)
13081     lt_cv_file_magic_cmd='/bin/file'
13082     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13083     lt_cv_file_magic_test_file=/lib/libc.so
13084     ;;
13085   siemens)
13086     lt_cv_deplibs_check_method=pass_all
13087     ;;
13088   pc)
13089     lt_cv_deplibs_check_method=pass_all
13090     ;;
13091   esac
13092   ;;
13093
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095   lt_cv_deplibs_check_method=pass_all
13096   ;;
13097 esac
13098
13099 fi
13100 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13101 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13102 file_magic_cmd=$lt_cv_file_magic_cmd
13103 deplibs_check_method=$lt_cv_deplibs_check_method
13104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13105
13106
13107
13108
13109 # If no C compiler was specified, use CC.
13110 LTCC=${LTCC-"$CC"}
13111
13112 # If no C compiler flags were specified, use CFLAGS.
13113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13114
13115 # Allow CC to be a program name with arguments.
13116 compiler=$CC
13117
13118 # Check whether --enable-libtool-lock was given.
13119 if test "${enable_libtool_lock+set}" = set; then
13120   enableval=$enable_libtool_lock;
13121 fi
13122
13123 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13124
13125 # Some flags need to be propagated to the compiler or linker for good
13126 # libtool support.
13127 case $host in
13128 ia64-*-hpux*)
13129   # Find out which ABI we are using.
13130   echo 'int i;' > conftest.$ac_ext
13131   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132   (eval $ac_compile) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; then
13136     case `/usr/bin/file conftest.$ac_objext` in
13137     *ELF-32*)
13138       HPUX_IA64_MODE="32"
13139       ;;
13140     *ELF-64*)
13141       HPUX_IA64_MODE="64"
13142       ;;
13143     esac
13144   fi
13145   rm -rf conftest*
13146   ;;
13147 *-*-irix6*)
13148   # Find out which ABI we are using.
13149   echo '#line 13149 "configure"' > conftest.$ac_ext
13150   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151   (eval $ac_compile) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; then
13155    if test "$lt_cv_prog_gnu_ld" = yes; then
13156     case `/usr/bin/file conftest.$ac_objext` in
13157     *32-bit*)
13158       LD="${LD-ld} -melf32bsmip"
13159       ;;
13160     *N32*)
13161       LD="${LD-ld} -melf32bmipn32"
13162       ;;
13163     *64-bit*)
13164       LD="${LD-ld} -melf64bmip"
13165       ;;
13166     esac
13167    else
13168     case `/usr/bin/file conftest.$ac_objext` in
13169     *32-bit*)
13170       LD="${LD-ld} -32"
13171       ;;
13172     *N32*)
13173       LD="${LD-ld} -n32"
13174       ;;
13175     *64-bit*)
13176       LD="${LD-ld} -64"
13177       ;;
13178     esac
13179    fi
13180   fi
13181   rm -rf conftest*
13182   ;;
13183
13184 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13185 s390*-*linux*|sparc*-*linux*)
13186   # Find out which ABI we are using.
13187   echo 'int i;' > conftest.$ac_ext
13188   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189   (eval $ac_compile) 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; then
13193     case `/usr/bin/file conftest.o` in
13194     *32-bit*)
13195       case $host in
13196         x86_64-*kfreebsd*-gnu)
13197           LD="${LD-ld} -m elf_i386_fbsd"
13198           ;;
13199         x86_64-*linux*)
13200           LD="${LD-ld} -m elf_i386"
13201           ;;
13202         ppc64-*linux*|powerpc64-*linux*)
13203           LD="${LD-ld} -m elf32ppclinux"
13204           ;;
13205         s390x-*linux*)
13206           LD="${LD-ld} -m elf_s390"
13207           ;;
13208         sparc64-*linux*)
13209           LD="${LD-ld} -m elf32_sparc"
13210           ;;
13211       esac
13212       ;;
13213     *64-bit*)
13214       case $host in
13215         x86_64-*kfreebsd*-gnu)
13216           LD="${LD-ld} -m elf_x86_64_fbsd"
13217           ;;
13218         x86_64-*linux*)
13219           LD="${LD-ld} -m elf_x86_64"
13220           ;;
13221         ppc*-*linux*|powerpc*-*linux*)
13222           LD="${LD-ld} -m elf64ppc"
13223           ;;
13224         s390*-*linux*)
13225           LD="${LD-ld} -m elf64_s390"
13226           ;;
13227         sparc*-*linux*)
13228           LD="${LD-ld} -m elf64_sparc"
13229           ;;
13230       esac
13231       ;;
13232     esac
13233   fi
13234   rm -rf conftest*
13235   ;;
13236
13237 *-*-sco3.2v5*)
13238   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13239   SAVE_CFLAGS="$CFLAGS"
13240   CFLAGS="$CFLAGS -belf"
13241   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13242 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13243 if test "${lt_cv_cc_needs_belf+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   ac_ext=c
13247 ac_cpp='$CPP $CPPFLAGS'
13248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251
13252      cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258
13259 int
13260 main ()
13261 {
13262
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_link") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } && {
13281          test -z "$ac_c_werror_flag" ||
13282          test ! -s conftest.err
13283        } && test -s conftest$ac_exeext &&
13284        $as_test_x conftest$ac_exeext; then
13285   lt_cv_cc_needs_belf=yes
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290         lt_cv_cc_needs_belf=no
13291 fi
13292
13293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13294       conftest$ac_exeext conftest.$ac_ext
13295      ac_ext=c
13296 ac_cpp='$CPP $CPPFLAGS'
13297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13300
13301 fi
13302 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13303 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13304   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13305     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13306     CFLAGS="$SAVE_CFLAGS"
13307   fi
13308   ;;
13309 sparc*-*solaris*)
13310   # Find out which ABI we are using.
13311   echo 'int i;' > conftest.$ac_ext
13312   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313   (eval $ac_compile) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; then
13317     case `/usr/bin/file conftest.o` in
13318     *64-bit*)
13319       case $lt_cv_prog_gnu_ld in
13320       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13321       *)
13322         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13323           LD="${LD-ld} -64"
13324         fi
13325         ;;
13326       esac
13327       ;;
13328     esac
13329   fi
13330   rm -rf conftest*
13331   ;;
13332
13333
13334 esac
13335
13336 need_locks="$enable_libtool_lock"
13337
13338
13339
13340 for ac_header in dlfcn.h
13341 do
13342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 fi
13349 ac_res=`eval echo '${'$as_ac_Header'}'`
13350                { echo "$as_me:$LINENO: result: $ac_res" >&5
13351 echo "${ECHO_T}$ac_res" >&6; }
13352 else
13353   # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 $ac_includes_default
13363 #include <$ac_header>
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_compile") 2>conftest.er1
13373   ac_status=$?
13374   grep -v '^ *+' conftest.er1 >conftest.err
13375   rm -f conftest.er1
13376   cat conftest.err >&5
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } && {
13379          test -z "$ac_c_werror_flag" ||
13380          test ! -s conftest.err
13381        } && test -s conftest.$ac_objext; then
13382   ac_header_compiler=yes
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387         ac_header_compiler=no
13388 fi
13389
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13392 echo "${ECHO_T}$ac_header_compiler" >&6; }
13393
13394 # Is the header present?
13395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13403 #include <$ac_header>
13404 _ACEOF
13405 if { (ac_try="$ac_cpp conftest.$ac_ext"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } >/dev/null && {
13418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13419          test ! -s conftest.err
13420        }; then
13421   ac_header_preproc=yes
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426   ac_header_preproc=no
13427 fi
13428
13429 rm -f conftest.err conftest.$ac_ext
13430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13431 echo "${ECHO_T}$ac_header_preproc" >&6; }
13432
13433 # So?  What about this header?
13434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13435   yes:no: )
13436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13440     ac_header_preproc=yes
13441     ;;
13442   no:yes:* )
13443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13455
13456     ;;
13457 esac
13458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   eval "$as_ac_Header=\$ac_header_preproc"
13464 fi
13465 ac_res=`eval echo '${'$as_ac_Header'}'`
13466                { echo "$as_me:$LINENO: result: $ac_res" >&5
13467 echo "${ECHO_T}$ac_res" >&6; }
13468
13469 fi
13470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471   cat >>confdefs.h <<_ACEOF
13472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13473 _ACEOF
13474
13475 fi
13476
13477 done
13478
13479
13480
13481 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13482     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13483     (test "X$CXX" != "Xg++"))) ; then
13484   ac_ext=cpp
13485 ac_cpp='$CXXCPP $CPPFLAGS'
13486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13489 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13490 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13491 if test -z "$CXXCPP"; then
13492   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495       # Double quotes because CXXCPP needs to be expanded
13496     for CXXCPP in "$CXX -E" "/lib/cpp"
13497     do
13498       ac_preproc_ok=false
13499 for ac_cxx_preproc_warn_flag in '' yes
13500 do
13501   # Use a header file that comes with gcc, so configuring glibc
13502   # with a fresh cross-compiler works.
13503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13504   # <limits.h> exists even on freestanding compilers.
13505   # On the NeXT, cc -E runs the code through the compiler's parser,
13506   # not just through cpp. "Syntax error" is here to catch this case.
13507   cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 #ifdef __STDC__
13514 # include <limits.h>
13515 #else
13516 # include <assert.h>
13517 #endif
13518                      Syntax error
13519 _ACEOF
13520 if { (ac_try="$ac_cpp conftest.$ac_ext"
13521 case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } >/dev/null && {
13533          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13534          test ! -s conftest.err
13535        }; then
13536   :
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541   # Broken: fails on valid input.
13542 continue
13543 fi
13544
13545 rm -f conftest.err conftest.$ac_ext
13546
13547   # OK, works on sane cases.  Now check whether nonexistent headers
13548   # can be detected and how.
13549   cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 #include <ac_nonexistent.h>
13556 _ACEOF
13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
13558 case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } >/dev/null && {
13570          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13571          test ! -s conftest.err
13572        }; then
13573   # Broken: success on invalid input.
13574 continue
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579   # Passes both tests.
13580 ac_preproc_ok=:
13581 break
13582 fi
13583
13584 rm -f conftest.err conftest.$ac_ext
13585
13586 done
13587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13588 rm -f conftest.err conftest.$ac_ext
13589 if $ac_preproc_ok; then
13590   break
13591 fi
13592
13593     done
13594     ac_cv_prog_CXXCPP=$CXXCPP
13595
13596 fi
13597   CXXCPP=$ac_cv_prog_CXXCPP
13598 else
13599   ac_cv_prog_CXXCPP=$CXXCPP
13600 fi
13601 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13602 echo "${ECHO_T}$CXXCPP" >&6; }
13603 ac_preproc_ok=false
13604 for ac_cxx_preproc_warn_flag in '' yes
13605 do
13606   # Use a header file that comes with gcc, so configuring glibc
13607   # with a fresh cross-compiler works.
13608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609   # <limits.h> exists even on freestanding compilers.
13610   # On the NeXT, cc -E runs the code through the compiler's parser,
13611   # not just through cpp. "Syntax error" is here to catch this case.
13612   cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h.  */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h.  */
13618 #ifdef __STDC__
13619 # include <limits.h>
13620 #else
13621 # include <assert.h>
13622 #endif
13623                      Syntax error
13624 _ACEOF
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13632   ac_status=$?
13633   grep -v '^ *+' conftest.er1 >conftest.err
13634   rm -f conftest.er1
13635   cat conftest.err >&5
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } >/dev/null && {
13638          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13639          test ! -s conftest.err
13640        }; then
13641   :
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646   # Broken: fails on valid input.
13647 continue
13648 fi
13649
13650 rm -f conftest.err conftest.$ac_ext
13651
13652   # OK, works on sane cases.  Now check whether nonexistent headers
13653   # can be detected and how.
13654   cat >conftest.$ac_ext <<_ACEOF
13655 /* confdefs.h.  */
13656 _ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h.  */
13660 #include <ac_nonexistent.h>
13661 _ACEOF
13662 if { (ac_try="$ac_cpp conftest.$ac_ext"
13663 case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } >/dev/null && {
13675          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13676          test ! -s conftest.err
13677        }; then
13678   # Broken: success on invalid input.
13679 continue
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684   # Passes both tests.
13685 ac_preproc_ok=:
13686 break
13687 fi
13688
13689 rm -f conftest.err conftest.$ac_ext
13690
13691 done
13692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13693 rm -f conftest.err conftest.$ac_ext
13694 if $ac_preproc_ok; then
13695   :
13696 else
13697   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13700 See \`config.log' for more details." >&2;}
13701    { (exit 1); exit 1; }; }
13702 fi
13703
13704 ac_ext=cpp
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13709
13710 fi
13711
13712 ac_ext=f
13713 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13714 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13716 if test -n "$ac_tool_prefix"; then
13717   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
13718   do
13719     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13723 if test "${ac_cv_prog_F77+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   if test -n "$F77"; then
13727   ac_cv_prog_F77="$F77" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732   IFS=$as_save_IFS
13733   test -z "$as_dir" && as_dir=.
13734   for ac_exec_ext in '' $ac_executable_extensions; do
13735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13738     break 2
13739   fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 F77=$ac_cv_prog_F77
13747 if test -n "$F77"; then
13748   { echo "$as_me:$LINENO: result: $F77" >&5
13749 echo "${ECHO_T}$F77" >&6; }
13750 else
13751   { echo "$as_me:$LINENO: result: no" >&5
13752 echo "${ECHO_T}no" >&6; }
13753 fi
13754
13755
13756     test -n "$F77" && break
13757   done
13758 fi
13759 if test -z "$F77"; then
13760   ac_ct_F77=$F77
13761   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
13762 do
13763   # Extract the first word of "$ac_prog", so it can be a program name with args.
13764 set dummy $ac_prog; ac_word=$2
13765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13767 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   if test -n "$ac_ct_F77"; then
13771   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13772 else
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13775 do
13776   IFS=$as_save_IFS
13777   test -z "$as_dir" && as_dir=.
13778   for ac_exec_ext in '' $ac_executable_extensions; do
13779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13780     ac_cv_prog_ac_ct_F77="$ac_prog"
13781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13782     break 2
13783   fi
13784 done
13785 done
13786 IFS=$as_save_IFS
13787
13788 fi
13789 fi
13790 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13791 if test -n "$ac_ct_F77"; then
13792   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13793 echo "${ECHO_T}$ac_ct_F77" >&6; }
13794 else
13795   { echo "$as_me:$LINENO: result: no" >&5
13796 echo "${ECHO_T}no" >&6; }
13797 fi
13798
13799
13800   test -n "$ac_ct_F77" && break
13801 done
13802
13803   if test "x$ac_ct_F77" = x; then
13804     F77=""
13805   else
13806     case $cross_compiling:$ac_tool_warned in
13807 yes:)
13808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13809 whose name does not start with the host triplet.  If you think this
13810 configuration is useful to you, please write to autoconf@gnu.org." >&5
13811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13812 whose name does not start with the host triplet.  If you think this
13813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13814 ac_tool_warned=yes ;;
13815 esac
13816     F77=$ac_ct_F77
13817   fi
13818 fi
13819
13820
13821 # Provide some information about the compiler.
13822 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13823 ac_compiler=`set X $ac_compile; echo $2`
13824 { (ac_try="$ac_compiler --version >&5"
13825 case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_compiler --version >&5") 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }
13834 { (ac_try="$ac_compiler -v >&5"
13835 case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_compiler -v >&5") 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }
13844 { (ac_try="$ac_compiler -V >&5"
13845 case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_compiler -V >&5") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }
13854 rm -f a.out
13855
13856 # If we don't use `.F' as extension, the preprocessor is not run on the
13857 # input file.  (Note that this only needs to work for GNU compilers.)
13858 ac_save_ext=$ac_ext
13859 ac_ext=F
13860 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13861 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13862 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   cat >conftest.$ac_ext <<_ACEOF
13866       program main
13867 #ifndef __GNUC__
13868        choke me
13869 #endif
13870
13871       end
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880   (eval "$ac_compile") 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } && {
13887          test -z "$ac_f77_werror_flag" ||
13888          test ! -s conftest.err
13889        } && test -s conftest.$ac_objext; then
13890   ac_compiler_gnu=yes
13891 else
13892   echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895         ac_compiler_gnu=no
13896 fi
13897
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13900
13901 fi
13902 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13903 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13904 ac_ext=$ac_save_ext
13905 ac_test_FFLAGS=${FFLAGS+set}
13906 ac_save_FFLAGS=$FFLAGS
13907 FFLAGS=
13908 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13909 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13910 if test "${ac_cv_prog_f77_g+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   FFLAGS=-g
13914 cat >conftest.$ac_ext <<_ACEOF
13915       program main
13916
13917       end
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_compile") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } && {
13933          test -z "$ac_f77_werror_flag" ||
13934          test ! -s conftest.err
13935        } && test -s conftest.$ac_objext; then
13936   ac_cv_prog_f77_g=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941         ac_cv_prog_f77_g=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945
13946 fi
13947 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13948 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13949 if test "$ac_test_FFLAGS" = set; then
13950   FFLAGS=$ac_save_FFLAGS
13951 elif test $ac_cv_prog_f77_g = yes; then
13952   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13953     FFLAGS="-g -O2"
13954   else
13955     FFLAGS="-g"
13956   fi
13957 else
13958   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13959     FFLAGS="-O2"
13960   else
13961     FFLAGS=
13962   fi
13963 fi
13964
13965 G77=`test $ac_compiler_gnu = yes && echo yes`
13966 ac_ext=c
13967 ac_cpp='$CPP $CPPFLAGS'
13968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13971
13972
13973
13974 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13975 # find the maximum length of command line arguments
13976 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13977 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13978 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13979   echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981     i=0
13982   teststring="ABCD"
13983
13984   case $build_os in
13985   msdosdjgpp*)
13986     # On DJGPP, this test can blow up pretty badly due to problems in libc
13987     # (any single argument exceeding 2000 bytes causes a buffer overrun
13988     # during glob expansion).  Even if it were fixed, the result of this
13989     # check would be larger than it should be.
13990     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13991     ;;
13992
13993   gnu*)
13994     # Under GNU Hurd, this test is not required because there is
13995     # no limit to the length of command line arguments.
13996     # Libtool will interpret -1 as no limit whatsoever
13997     lt_cv_sys_max_cmd_len=-1;
13998     ;;
13999
14000   cygwin* | mingw*)
14001     # On Win9x/ME, this test blows up -- it succeeds, but takes
14002     # about 5 minutes as the teststring grows exponentially.
14003     # Worse, since 9x/ME are not pre-emptively multitasking,
14004     # you end up with a "frozen" computer, even though with patience
14005     # the test eventually succeeds (with a max line length of 256k).
14006     # Instead, let's just punt: use the minimum linelength reported by
14007     # all of the supported platforms: 8192 (on NT/2K/XP).
14008     lt_cv_sys_max_cmd_len=8192;
14009     ;;
14010
14011   amigaos*)
14012     # On AmigaOS with pdksh, this test takes hours, literally.
14013     # So we just punt and use a minimum line length of 8192.
14014     lt_cv_sys_max_cmd_len=8192;
14015     ;;
14016
14017   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14018     # This has been around since 386BSD, at least.  Likely further.
14019     if test -x /sbin/sysctl; then
14020       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14021     elif test -x /usr/sbin/sysctl; then
14022       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14023     else
14024       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14025     fi
14026     # And add a safety zone
14027     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14028     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14029     ;;
14030
14031   interix*)
14032     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14033     lt_cv_sys_max_cmd_len=196608
14034     ;;
14035
14036   osf*)
14037     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14038     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14039     # nice to cause kernel panics so lets avoid the loop below.
14040     # First set a reasonable default.
14041     lt_cv_sys_max_cmd_len=16384
14042     #
14043     if test -x /sbin/sysconfig; then
14044       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14045         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14046       esac
14047     fi
14048     ;;
14049   sco3.2v5*)
14050     lt_cv_sys_max_cmd_len=102400
14051     ;;
14052   sysv5* | sco5v6* | sysv4.2uw2*)
14053     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14054     if test -n "$kargmax"; then
14055       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
14056     else
14057       lt_cv_sys_max_cmd_len=32768
14058     fi
14059     ;;
14060   *)
14061     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14062     if test -n "$lt_cv_sys_max_cmd_len"; then
14063       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14064       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14065     else
14066       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14067       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14068                = "XX$teststring") >/dev/null 2>&1 &&
14069               new_result=`expr "X$teststring" : ".*" 2>&1` &&
14070               lt_cv_sys_max_cmd_len=$new_result &&
14071               test $i != 17 # 1/2 MB should be enough
14072       do
14073         i=`expr $i + 1`
14074         teststring=$teststring$teststring
14075       done
14076       teststring=
14077       # Add a significant safety factor because C++ compilers can tack on massive
14078       # amounts of additional arguments before passing them to the linker.
14079       # It appears as though 1/2 is a usable value.
14080       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14081     fi
14082     ;;
14083   esac
14084
14085 fi
14086
14087 if test -n $lt_cv_sys_max_cmd_len ; then
14088   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14089 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14090 else
14091   { echo "$as_me:$LINENO: result: none" >&5
14092 echo "${ECHO_T}none" >&6; }
14093 fi
14094
14095
14096
14097
14098
14099 # Check for command to grab the raw symbol name followed by C symbol from nm.
14100 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14101 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14102 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105
14106 # These are sane defaults that work on at least a few old systems.
14107 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14108
14109 # Character class describing NM global symbol codes.
14110 symcode='[BCDEGRST]'
14111
14112 # Regexp to match symbols that can be accessed directly from C.
14113 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14114
14115 # Transform an extracted symbol line into a proper C declaration
14116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14117
14118 # Transform an extracted symbol line into symbol name and symbol address
14119 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'"
14120
14121 # Define system-specific variables.
14122 case $host_os in
14123 aix*)
14124   symcode='[BCDT]'
14125   ;;
14126 cygwin* | mingw* | pw32*)
14127   symcode='[ABCDGISTW]'
14128   ;;
14129 hpux*) # Its linker distinguishes data from code symbols
14130   if test "$host_cpu" = ia64; then
14131     symcode='[ABCDEGRST]'
14132   fi
14133   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14134   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'"
14135   ;;
14136 linux* | k*bsd*-gnu)
14137   if test "$host_cpu" = ia64; then
14138     symcode='[ABCDGIRSTW]'
14139     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14140     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'"
14141   fi
14142   ;;
14143 irix* | nonstopux*)
14144   symcode='[BCDEGRST]'
14145   ;;
14146 osf*)
14147   symcode='[BCDEGQRST]'
14148   ;;
14149 solaris*)
14150   symcode='[BDRT]'
14151   ;;
14152 sco3.2v5*)
14153   symcode='[DT]'
14154   ;;
14155 sysv4.2uw2*)
14156   symcode='[DT]'
14157   ;;
14158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14159   symcode='[ABDT]'
14160   ;;
14161 sysv4)
14162   symcode='[DFNSTU]'
14163   ;;
14164 esac
14165
14166 # Handle CRLF in mingw tool chain
14167 opt_cr=
14168 case $build_os in
14169 mingw*)
14170   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14171   ;;
14172 esac
14173
14174 # If we're using GNU nm, then use its standard symbol codes.
14175 case `$NM -V 2>&1` in
14176 *GNU* | *'with BFD'*)
14177   symcode='[ABCDGIRSTW]' ;;
14178 esac
14179
14180 # Try without a prefix undercore, then with it.
14181 for ac_symprfx in "" "_"; do
14182
14183   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14184   symxfrm="\\1 $ac_symprfx\\2 \\2"
14185
14186   # Write the raw and C identifiers.
14187   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14188
14189   # Check to see that the pipe works correctly.
14190   pipe_works=no
14191
14192   rm -f conftest*
14193   cat > conftest.$ac_ext <<EOF
14194 #ifdef __cplusplus
14195 extern "C" {
14196 #endif
14197 char nm_test_var;
14198 void nm_test_func(){}
14199 #ifdef __cplusplus
14200 }
14201 #endif
14202 int main(){nm_test_var='a';nm_test_func();return(0);}
14203 EOF
14204
14205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206   (eval $ac_compile) 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; then
14210     # Now try to grab the symbols.
14211     nlist=conftest.nm
14212     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14213   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } && test -s "$nlist"; then
14217       # Try sorting and uniquifying the output.
14218       if sort "$nlist" | uniq > "$nlist"T; then
14219         mv -f "$nlist"T "$nlist"
14220       else
14221         rm -f "$nlist"T
14222       fi
14223
14224       # Make sure that we snagged all the symbols we need.
14225       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14226         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14227           cat <<EOF > conftest.$ac_ext
14228 #ifdef __cplusplus
14229 extern "C" {
14230 #endif
14231
14232 EOF
14233           # Now generate the symbol file.
14234           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14235
14236           cat <<EOF >> conftest.$ac_ext
14237 #if defined (__STDC__) && __STDC__
14238 # define lt_ptr_t void *
14239 #else
14240 # define lt_ptr_t char *
14241 # define const
14242 #endif
14243
14244 /* The mapping between symbol names and symbols. */
14245 const struct {
14246   const char *name;
14247   lt_ptr_t address;
14248 }
14249 lt_preloaded_symbols[] =
14250 {
14251 EOF
14252           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14253           cat <<\EOF >> conftest.$ac_ext
14254   {0, (lt_ptr_t) 0}
14255 };
14256
14257 #ifdef __cplusplus
14258 }
14259 #endif
14260 EOF
14261           # Now try linking the two files.
14262           mv conftest.$ac_objext conftstm.$ac_objext
14263           lt_save_LIBS="$LIBS"
14264           lt_save_CFLAGS="$CFLAGS"
14265           LIBS="conftstm.$ac_objext"
14266           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14267           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268   (eval $ac_link) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14272             pipe_works=yes
14273           fi
14274           LIBS="$lt_save_LIBS"
14275           CFLAGS="$lt_save_CFLAGS"
14276         else
14277           echo "cannot find nm_test_func in $nlist" >&5
14278         fi
14279       else
14280         echo "cannot find nm_test_var in $nlist" >&5
14281       fi
14282     else
14283       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14284     fi
14285   else
14286     echo "$progname: failed program was:" >&5
14287     cat conftest.$ac_ext >&5
14288   fi
14289   rm -rf conftest* conftst*
14290
14291   # Do not use the global_symbol_pipe unless it works.
14292   if test "$pipe_works" = yes; then
14293     break
14294   else
14295     lt_cv_sys_global_symbol_pipe=
14296   fi
14297 done
14298
14299 fi
14300
14301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14302   lt_cv_sys_global_symbol_to_cdecl=
14303 fi
14304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14305   { echo "$as_me:$LINENO: result: failed" >&5
14306 echo "${ECHO_T}failed" >&6; }
14307 else
14308   { echo "$as_me:$LINENO: result: ok" >&5
14309 echo "${ECHO_T}ok" >&6; }
14310 fi
14311
14312 { echo "$as_me:$LINENO: checking for objdir" >&5
14313 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14314 if test "${lt_cv_objdir+set}" = set; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   rm -f .libs 2>/dev/null
14318 mkdir .libs 2>/dev/null
14319 if test -d .libs; then
14320   lt_cv_objdir=.libs
14321 else
14322   # MS-DOS does not allow filenames that begin with a dot.
14323   lt_cv_objdir=_libs
14324 fi
14325 rmdir .libs 2>/dev/null
14326 fi
14327 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14328 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14329 objdir=$lt_cv_objdir
14330
14331
14332
14333
14334
14335 case $host_os in
14336 aix3*)
14337   # AIX sometimes has problems with the GCC collect2 program.  For some
14338   # reason, if we set the COLLECT_NAMES environment variable, the problems
14339   # vanish in a puff of smoke.
14340   if test "X${COLLECT_NAMES+set}" != Xset; then
14341     COLLECT_NAMES=
14342     export COLLECT_NAMES
14343   fi
14344   ;;
14345 esac
14346
14347 # Sed substitution that helps us do robust quoting.  It backslashifies
14348 # metacharacters that are still active within double-quoted strings.
14349 Xsed='sed -e 1s/^X//'
14350 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14351
14352 # Same as above, but do not quote variable references.
14353 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14354
14355 # Sed substitution to delay expansion of an escaped shell variable in a
14356 # double_quote_subst'ed string.
14357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14358
14359 # Sed substitution to avoid accidental globbing in evaled expressions
14360 no_glob_subst='s/\*/\\\*/g'
14361
14362 # Constants:
14363 rm="rm -f"
14364
14365 # Global variables:
14366 default_ofile=libtool
14367 can_build_shared=yes
14368
14369 # All known linkers require a `.a' archive for static linking (except MSVC,
14370 # which needs '.lib').
14371 libext=a
14372 ltmain="$ac_aux_dir/ltmain.sh"
14373 ofile="$default_ofile"
14374 with_gnu_ld="$lt_cv_prog_gnu_ld"
14375
14376 if test -n "$ac_tool_prefix"; then
14377   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14378 set dummy ${ac_tool_prefix}ar; ac_word=$2
14379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14381 if test "${ac_cv_prog_AR+set}" = set; then
14382   echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384   if test -n "$AR"; then
14385   ac_cv_prog_AR="$AR" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390   IFS=$as_save_IFS
14391   test -z "$as_dir" && as_dir=.
14392   for ac_exec_ext in '' $ac_executable_extensions; do
14393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14394     ac_cv_prog_AR="${ac_tool_prefix}ar"
14395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14396     break 2
14397   fi
14398 done
14399 done
14400 IFS=$as_save_IFS
14401
14402 fi
14403 fi
14404 AR=$ac_cv_prog_AR
14405 if test -n "$AR"; then
14406   { echo "$as_me:$LINENO: result: $AR" >&5
14407 echo "${ECHO_T}$AR" >&6; }
14408 else
14409   { echo "$as_me:$LINENO: result: no" >&5
14410 echo "${ECHO_T}no" >&6; }
14411 fi
14412
14413
14414 fi
14415 if test -z "$ac_cv_prog_AR"; then
14416   ac_ct_AR=$AR
14417   # Extract the first word of "ar", so it can be a program name with args.
14418 set dummy ar; ac_word=$2
14419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14421 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424   if test -n "$ac_ct_AR"; then
14425   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14426 else
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14429 do
14430   IFS=$as_save_IFS
14431   test -z "$as_dir" && as_dir=.
14432   for ac_exec_ext in '' $ac_executable_extensions; do
14433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434     ac_cv_prog_ac_ct_AR="ar"
14435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14436     break 2
14437   fi
14438 done
14439 done
14440 IFS=$as_save_IFS
14441
14442 fi
14443 fi
14444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14445 if test -n "$ac_ct_AR"; then
14446   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14447 echo "${ECHO_T}$ac_ct_AR" >&6; }
14448 else
14449   { echo "$as_me:$LINENO: result: no" >&5
14450 echo "${ECHO_T}no" >&6; }
14451 fi
14452
14453   if test "x$ac_ct_AR" = x; then
14454     AR="false"
14455   else
14456     case $cross_compiling:$ac_tool_warned in
14457 yes:)
14458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14459 whose name does not start with the host triplet.  If you think this
14460 configuration is useful to you, please write to autoconf@gnu.org." >&5
14461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14462 whose name does not start with the host triplet.  If you think this
14463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14464 ac_tool_warned=yes ;;
14465 esac
14466     AR=$ac_ct_AR
14467   fi
14468 else
14469   AR="$ac_cv_prog_AR"
14470 fi
14471
14472 if test -n "$ac_tool_prefix"; then
14473   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14477 if test "${ac_cv_prog_RANLIB+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   if test -n "$RANLIB"; then
14481   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486   IFS=$as_save_IFS
14487   test -z "$as_dir" && as_dir=.
14488   for ac_exec_ext in '' $ac_executable_extensions; do
14489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14492     break 2
14493   fi
14494 done
14495 done
14496 IFS=$as_save_IFS
14497
14498 fi
14499 fi
14500 RANLIB=$ac_cv_prog_RANLIB
14501 if test -n "$RANLIB"; then
14502   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14503 echo "${ECHO_T}$RANLIB" >&6; }
14504 else
14505   { echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6; }
14507 fi
14508
14509
14510 fi
14511 if test -z "$ac_cv_prog_RANLIB"; then
14512   ac_ct_RANLIB=$RANLIB
14513   # Extract the first word of "ranlib", so it can be a program name with args.
14514 set dummy ranlib; ac_word=$2
14515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   if test -n "$ac_ct_RANLIB"; then
14521   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526   IFS=$as_save_IFS
14527   test -z "$as_dir" && as_dir=.
14528   for ac_exec_ext in '' $ac_executable_extensions; do
14529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14530     ac_cv_prog_ac_ct_RANLIB="ranlib"
14531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14532     break 2
14533   fi
14534 done
14535 done
14536 IFS=$as_save_IFS
14537
14538 fi
14539 fi
14540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14541 if test -n "$ac_ct_RANLIB"; then
14542   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14544 else
14545   { echo "$as_me:$LINENO: result: no" >&5
14546 echo "${ECHO_T}no" >&6; }
14547 fi
14548
14549   if test "x$ac_ct_RANLIB" = x; then
14550     RANLIB=":"
14551   else
14552     case $cross_compiling:$ac_tool_warned in
14553 yes:)
14554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14555 whose name does not start with the host triplet.  If you think this
14556 configuration is useful to you, please write to autoconf@gnu.org." >&5
14557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14558 whose name does not start with the host triplet.  If you think this
14559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14560 ac_tool_warned=yes ;;
14561 esac
14562     RANLIB=$ac_ct_RANLIB
14563   fi
14564 else
14565   RANLIB="$ac_cv_prog_RANLIB"
14566 fi
14567
14568 if test -n "$ac_tool_prefix"; then
14569   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14570 set dummy ${ac_tool_prefix}strip; ac_word=$2
14571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14573 if test "${ac_cv_prog_STRIP+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   if test -n "$STRIP"; then
14577   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14578 else
14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580 for as_dir in $PATH
14581 do
14582   IFS=$as_save_IFS
14583   test -z "$as_dir" && as_dir=.
14584   for ac_exec_ext in '' $ac_executable_extensions; do
14585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14586     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14588     break 2
14589   fi
14590 done
14591 done
14592 IFS=$as_save_IFS
14593
14594 fi
14595 fi
14596 STRIP=$ac_cv_prog_STRIP
14597 if test -n "$STRIP"; then
14598   { echo "$as_me:$LINENO: result: $STRIP" >&5
14599 echo "${ECHO_T}$STRIP" >&6; }
14600 else
14601   { echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6; }
14603 fi
14604
14605
14606 fi
14607 if test -z "$ac_cv_prog_STRIP"; then
14608   ac_ct_STRIP=$STRIP
14609   # Extract the first word of "strip", so it can be a program name with args.
14610 set dummy strip; ac_word=$2
14611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14613 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   if test -n "$ac_ct_STRIP"; then
14617   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14618 else
14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14621 do
14622   IFS=$as_save_IFS
14623   test -z "$as_dir" && as_dir=.
14624   for ac_exec_ext in '' $ac_executable_extensions; do
14625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14626     ac_cv_prog_ac_ct_STRIP="strip"
14627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14628     break 2
14629   fi
14630 done
14631 done
14632 IFS=$as_save_IFS
14633
14634 fi
14635 fi
14636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14637 if test -n "$ac_ct_STRIP"; then
14638   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14639 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14640 else
14641   { echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6; }
14643 fi
14644
14645   if test "x$ac_ct_STRIP" = x; then
14646     STRIP=":"
14647   else
14648     case $cross_compiling:$ac_tool_warned in
14649 yes:)
14650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14651 whose name does not start with the host triplet.  If you think this
14652 configuration is useful to you, please write to autoconf@gnu.org." >&5
14653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14654 whose name does not start with the host triplet.  If you think this
14655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14656 ac_tool_warned=yes ;;
14657 esac
14658     STRIP=$ac_ct_STRIP
14659   fi
14660 else
14661   STRIP="$ac_cv_prog_STRIP"
14662 fi
14663
14664
14665 old_CC="$CC"
14666 old_CFLAGS="$CFLAGS"
14667
14668 # Set sane defaults for various variables
14669 test -z "$AR" && AR=ar
14670 test -z "$AR_FLAGS" && AR_FLAGS=cru
14671 test -z "$AS" && AS=as
14672 test -z "$CC" && CC=cc
14673 test -z "$LTCC" && LTCC=$CC
14674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14675 test -z "$DLLTOOL" && DLLTOOL=dlltool
14676 test -z "$LD" && LD=ld
14677 test -z "$LN_S" && LN_S="ln -s"
14678 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14679 test -z "$NM" && NM=nm
14680 test -z "$SED" && SED=sed
14681 test -z "$OBJDUMP" && OBJDUMP=objdump
14682 test -z "$RANLIB" && RANLIB=:
14683 test -z "$STRIP" && STRIP=:
14684 test -z "$ac_objext" && ac_objext=o
14685
14686 # Determine commands to create old-style static archives.
14687 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14688 old_postinstall_cmds='chmod 644 $oldlib'
14689 old_postuninstall_cmds=
14690
14691 if test -n "$RANLIB"; then
14692   case $host_os in
14693   openbsd*)
14694     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14695     ;;
14696   *)
14697     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14698     ;;
14699   esac
14700   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14701 fi
14702
14703 for cc_temp in $compiler""; do
14704   case $cc_temp in
14705     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14706     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14707     \-*) ;;
14708     *) break;;
14709   esac
14710 done
14711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14712
14713
14714 # Only perform the check for file, if the check method requires it
14715 case $deplibs_check_method in
14716 file_magic*)
14717   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14718     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14719 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14720 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   case $MAGIC_CMD in
14724 [\\/*] |  ?:[\\/]*)
14725   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14726   ;;
14727 *)
14728   lt_save_MAGIC_CMD="$MAGIC_CMD"
14729   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14730   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14731   for ac_dir in $ac_dummy; do
14732     IFS="$lt_save_ifs"
14733     test -z "$ac_dir" && ac_dir=.
14734     if test -f $ac_dir/${ac_tool_prefix}file; then
14735       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14736       if test -n "$file_magic_test_file"; then
14737         case $deplibs_check_method in
14738         "file_magic "*)
14739           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14740           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14741           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14742             $EGREP "$file_magic_regex" > /dev/null; then
14743             :
14744           else
14745             cat <<EOF 1>&2
14746
14747 *** Warning: the command libtool uses to detect shared libraries,
14748 *** $file_magic_cmd, produces output that libtool cannot recognize.
14749 *** The result is that libtool may fail to recognize shared libraries
14750 *** as such.  This will affect the creation of libtool libraries that
14751 *** depend on shared libraries, but programs linked with such libtool
14752 *** libraries will work regardless of this problem.  Nevertheless, you
14753 *** may want to report the problem to your system manager and/or to
14754 *** bug-libtool@gnu.org
14755
14756 EOF
14757           fi ;;
14758         esac
14759       fi
14760       break
14761     fi
14762   done
14763   IFS="$lt_save_ifs"
14764   MAGIC_CMD="$lt_save_MAGIC_CMD"
14765   ;;
14766 esac
14767 fi
14768
14769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14770 if test -n "$MAGIC_CMD"; then
14771   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14772 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14773 else
14774   { echo "$as_me:$LINENO: result: no" >&5
14775 echo "${ECHO_T}no" >&6; }
14776 fi
14777
14778 if test -z "$lt_cv_path_MAGIC_CMD"; then
14779   if test -n "$ac_tool_prefix"; then
14780     { echo "$as_me:$LINENO: checking for file" >&5
14781 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14782 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   case $MAGIC_CMD in
14786 [\\/*] |  ?:[\\/]*)
14787   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14788   ;;
14789 *)
14790   lt_save_MAGIC_CMD="$MAGIC_CMD"
14791   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14792   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14793   for ac_dir in $ac_dummy; do
14794     IFS="$lt_save_ifs"
14795     test -z "$ac_dir" && ac_dir=.
14796     if test -f $ac_dir/file; then
14797       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14798       if test -n "$file_magic_test_file"; then
14799         case $deplibs_check_method in
14800         "file_magic "*)
14801           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14802           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14803           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14804             $EGREP "$file_magic_regex" > /dev/null; then
14805             :
14806           else
14807             cat <<EOF 1>&2
14808
14809 *** Warning: the command libtool uses to detect shared libraries,
14810 *** $file_magic_cmd, produces output that libtool cannot recognize.
14811 *** The result is that libtool may fail to recognize shared libraries
14812 *** as such.  This will affect the creation of libtool libraries that
14813 *** depend on shared libraries, but programs linked with such libtool
14814 *** libraries will work regardless of this problem.  Nevertheless, you
14815 *** may want to report the problem to your system manager and/or to
14816 *** bug-libtool@gnu.org
14817
14818 EOF
14819           fi ;;
14820         esac
14821       fi
14822       break
14823     fi
14824   done
14825   IFS="$lt_save_ifs"
14826   MAGIC_CMD="$lt_save_MAGIC_CMD"
14827   ;;
14828 esac
14829 fi
14830
14831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14832 if test -n "$MAGIC_CMD"; then
14833   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14834 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14835 else
14836   { echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6; }
14838 fi
14839
14840   else
14841     MAGIC_CMD=:
14842   fi
14843 fi
14844
14845   fi
14846   ;;
14847 esac
14848
14849
14850   case $host_os in
14851     rhapsody* | darwin*)
14852     if test -n "$ac_tool_prefix"; then
14853   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14854 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14857 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   if test -n "$DSYMUTIL"; then
14861   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14862 else
14863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864 for as_dir in $PATH
14865 do
14866   IFS=$as_save_IFS
14867   test -z "$as_dir" && as_dir=.
14868   for ac_exec_ext in '' $ac_executable_extensions; do
14869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14870     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14872     break 2
14873   fi
14874 done
14875 done
14876 IFS=$as_save_IFS
14877
14878 fi
14879 fi
14880 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14881 if test -n "$DSYMUTIL"; then
14882   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
14883 echo "${ECHO_T}$DSYMUTIL" >&6; }
14884 else
14885   { echo "$as_me:$LINENO: result: no" >&5
14886 echo "${ECHO_T}no" >&6; }
14887 fi
14888
14889
14890 fi
14891 if test -z "$ac_cv_prog_DSYMUTIL"; then
14892   ac_ct_DSYMUTIL=$DSYMUTIL
14893   # Extract the first word of "dsymutil", so it can be a program name with args.
14894 set dummy dsymutil; ac_word=$2
14895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14897 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   if test -n "$ac_ct_DSYMUTIL"; then
14901   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14902 else
14903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904 for as_dir in $PATH
14905 do
14906   IFS=$as_save_IFS
14907   test -z "$as_dir" && as_dir=.
14908   for ac_exec_ext in '' $ac_executable_extensions; do
14909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14910     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14912     break 2
14913   fi
14914 done
14915 done
14916 IFS=$as_save_IFS
14917
14918 fi
14919 fi
14920 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14921 if test -n "$ac_ct_DSYMUTIL"; then
14922   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
14923 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
14924 else
14925   { echo "$as_me:$LINENO: result: no" >&5
14926 echo "${ECHO_T}no" >&6; }
14927 fi
14928
14929   if test "x$ac_ct_DSYMUTIL" = x; then
14930     DSYMUTIL=":"
14931   else
14932     case $cross_compiling:$ac_tool_warned in
14933 yes:)
14934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14935 whose name does not start with the host triplet.  If you think this
14936 configuration is useful to you, please write to autoconf@gnu.org." >&5
14937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14938 whose name does not start with the host triplet.  If you think this
14939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14940 ac_tool_warned=yes ;;
14941 esac
14942     DSYMUTIL=$ac_ct_DSYMUTIL
14943   fi
14944 else
14945   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14946 fi
14947
14948     if test -n "$ac_tool_prefix"; then
14949   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14953 if test "${ac_cv_prog_NMEDIT+set}" = set; then
14954   echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956   if test -n "$NMEDIT"; then
14957   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14958 else
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14961 do
14962   IFS=$as_save_IFS
14963   test -z "$as_dir" && as_dir=.
14964   for ac_exec_ext in '' $ac_executable_extensions; do
14965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14966     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14968     break 2
14969   fi
14970 done
14971 done
14972 IFS=$as_save_IFS
14973
14974 fi
14975 fi
14976 NMEDIT=$ac_cv_prog_NMEDIT
14977 if test -n "$NMEDIT"; then
14978   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
14979 echo "${ECHO_T}$NMEDIT" >&6; }
14980 else
14981   { echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6; }
14983 fi
14984
14985
14986 fi
14987 if test -z "$ac_cv_prog_NMEDIT"; then
14988   ac_ct_NMEDIT=$NMEDIT
14989   # Extract the first word of "nmedit", so it can be a program name with args.
14990 set dummy nmedit; ac_word=$2
14991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14993 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   if test -n "$ac_ct_NMEDIT"; then
14997   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14998 else
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002   IFS=$as_save_IFS
15003   test -z "$as_dir" && as_dir=.
15004   for ac_exec_ext in '' $ac_executable_extensions; do
15005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15006     ac_cv_prog_ac_ct_NMEDIT="nmedit"
15007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15008     break 2
15009   fi
15010 done
15011 done
15012 IFS=$as_save_IFS
15013
15014 fi
15015 fi
15016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15017 if test -n "$ac_ct_NMEDIT"; then
15018   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15019 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
15020 else
15021   { echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6; }
15023 fi
15024
15025   if test "x$ac_ct_NMEDIT" = x; then
15026     NMEDIT=":"
15027   else
15028     case $cross_compiling:$ac_tool_warned in
15029 yes:)
15030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15031 whose name does not start with the host triplet.  If you think this
15032 configuration is useful to you, please write to autoconf@gnu.org." >&5
15033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15034 whose name does not start with the host triplet.  If you think this
15035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15036 ac_tool_warned=yes ;;
15037 esac
15038     NMEDIT=$ac_ct_NMEDIT
15039   fi
15040 else
15041   NMEDIT="$ac_cv_prog_NMEDIT"
15042 fi
15043
15044
15045     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
15046 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
15047 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   lt_cv_apple_cc_single_mod=no
15051       if test -z "${LT_MULTI_MODULE}"; then
15052    # By default we will add the -single_module flag. You can override
15053    # by either setting the environment variable LT_MULTI_MODULE
15054    # non-empty at configure time, or by adding -multi_module to the
15055    # link flags.
15056    echo "int foo(void){return 1;}" > conftest.c
15057    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15058      -dynamiclib ${wl}-single_module conftest.c
15059    if test -f libconftest.dylib; then
15060      lt_cv_apple_cc_single_mod=yes
15061      rm -rf libconftest.dylib*
15062    fi
15063    rm conftest.c
15064       fi
15065 fi
15066 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
15067 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
15068     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
15069 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
15070 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   lt_cv_ld_exported_symbols_list=no
15074       save_LDFLAGS=$LDFLAGS
15075       echo "_main" > conftest.sym
15076       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15077       cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h.  */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h.  */
15083
15084 int
15085 main ()
15086 {
15087
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_link") 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } && {
15106          test -z "$ac_c_werror_flag" ||
15107          test ! -s conftest.err
15108        } && test -s conftest$ac_exeext &&
15109        $as_test_x conftest$ac_exeext; then
15110   lt_cv_ld_exported_symbols_list=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115         lt_cv_ld_exported_symbols_list=no
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15119       conftest$ac_exeext conftest.$ac_ext
15120    LDFLAGS="$save_LDFLAGS"
15121
15122 fi
15123 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
15124 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
15125     case $host_os in
15126     rhapsody* | darwin1.[0123])
15127       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15128     darwin1.*)
15129      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15130     darwin*)
15131       # if running on 10.5 or later, the deployment target defaults
15132       # to the OS version, if on x86, and 10.4, the deployment
15133       # target defaults to 10.4. Don't you love it?
15134       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15135    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15136      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15137    10.[012]*)
15138      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15139    10.*)
15140      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15141       esac
15142     ;;
15143   esac
15144     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15145       _lt_dar_single_mod='$single_module'
15146     fi
15147     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15148       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15149     else
15150       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
15151     fi
15152     if test "$DSYMUTIL" != ":"; then
15153       _lt_dsymutil="~$DSYMUTIL \$lib || :"
15154     else
15155       _lt_dsymutil=
15156     fi
15157     ;;
15158   esac
15159
15160
15161 enable_dlopen=yes
15162 enable_win32_dll=no
15163
15164 # Check whether --enable-libtool-lock was given.
15165 if test "${enable_libtool_lock+set}" = set; then
15166   enableval=$enable_libtool_lock;
15167 fi
15168
15169 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15170
15171
15172 # Check whether --with-pic was given.
15173 if test "${with_pic+set}" = set; then
15174   withval=$with_pic; pic_mode="$withval"
15175 else
15176   pic_mode=default
15177 fi
15178
15179 test -z "$pic_mode" && pic_mode=default
15180
15181 # Use C for the default configuration in the libtool script
15182 tagname=
15183 lt_save_CC="$CC"
15184 ac_ext=c
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189
15190
15191 # Source file extension for C test sources.
15192 ac_ext=c
15193
15194 # Object file extension for compiled C test sources.
15195 objext=o
15196 objext=$objext
15197
15198 # Code to be used in simple compile tests
15199 lt_simple_compile_test_code="int some_variable = 0;"
15200
15201 # Code to be used in simple link tests
15202 lt_simple_link_test_code='int main(){return(0);}'
15203
15204
15205 # If no C compiler was specified, use CC.
15206 LTCC=${LTCC-"$CC"}
15207
15208 # If no C compiler flags were specified, use CFLAGS.
15209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15210
15211 # Allow CC to be a program name with arguments.
15212 compiler=$CC
15213
15214
15215 # save warnings/boilerplate of simple test code
15216 ac_outfile=conftest.$ac_objext
15217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15219 _lt_compiler_boilerplate=`cat conftest.err`
15220 $rm conftest*
15221
15222 ac_outfile=conftest.$ac_objext
15223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15225 _lt_linker_boilerplate=`cat conftest.err`
15226 $rm -r conftest*
15227
15228
15229
15230 lt_prog_compiler_no_builtin_flag=
15231
15232 if test "$GCC" = yes; then
15233   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15234
15235
15236 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15237 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15238 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15239   echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241   lt_cv_prog_compiler_rtti_exceptions=no
15242   ac_outfile=conftest.$ac_objext
15243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15244    lt_compiler_flag="-fno-rtti -fno-exceptions"
15245    # Insert the option either (1) after the last *FLAGS variable, or
15246    # (2) before a word containing "conftest.", or (3) at the end.
15247    # Note that $ac_compile itself does not contain backslashes and begins
15248    # with a dollar sign (not a hyphen), so the echo should work correctly.
15249    # The option is referenced via a variable to avoid confusing sed.
15250    lt_compile=`echo "$ac_compile" | $SED \
15251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253    -e 's:$: $lt_compiler_flag:'`
15254    (eval echo "\"\$as_me:15254: $lt_compile\"" >&5)
15255    (eval "$lt_compile" 2>conftest.err)
15256    ac_status=$?
15257    cat conftest.err >&5
15258    echo "$as_me:15258: \$? = $ac_status" >&5
15259    if (exit $ac_status) && test -s "$ac_outfile"; then
15260      # The compiler can only warn and ignore the option if not recognized
15261      # So say no if there are warnings other than the usual output.
15262      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15263      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15264      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15265        lt_cv_prog_compiler_rtti_exceptions=yes
15266      fi
15267    fi
15268    $rm conftest*
15269
15270 fi
15271 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15272 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15273
15274 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15275     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15276 else
15277     :
15278 fi
15279
15280 fi
15281
15282 lt_prog_compiler_wl=
15283 lt_prog_compiler_pic=
15284 lt_prog_compiler_static=
15285
15286 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15288
15289   if test "$GCC" = yes; then
15290     lt_prog_compiler_wl='-Wl,'
15291     lt_prog_compiler_static='-static'
15292
15293     case $host_os in
15294       aix*)
15295       # All AIX code is PIC.
15296       if test "$host_cpu" = ia64; then
15297         # AIX 5 now supports IA64 processor
15298         lt_prog_compiler_static='-Bstatic'
15299       fi
15300       ;;
15301
15302     amigaos*)
15303       # FIXME: we need at least 68020 code to build shared libraries, but
15304       # adding the `-m68020' flag to GCC prevents building anything better,
15305       # like `-m68040'.
15306       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15307       ;;
15308
15309     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15310       # PIC is the default for these OSes.
15311       ;;
15312
15313     mingw* | cygwin* | pw32* | os2*)
15314       # This hack is so that the source file can tell whether it is being
15315       # built for inclusion in a dll (and should export symbols for example).
15316       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15317       # (--disable-auto-import) libraries
15318       lt_prog_compiler_pic='-DDLL_EXPORT'
15319       ;;
15320
15321     darwin* | rhapsody*)
15322       # PIC is the default on this platform
15323       # Common symbols not allowed in MH_DYLIB files
15324       lt_prog_compiler_pic='-fno-common'
15325       ;;
15326
15327     interix[3-9]*)
15328       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15329       # Instead, we relocate shared libraries at runtime.
15330       ;;
15331
15332     msdosdjgpp*)
15333       # Just because we use GCC doesn't mean we suddenly get shared libraries
15334       # on systems that don't support them.
15335       lt_prog_compiler_can_build_shared=no
15336       enable_shared=no
15337       ;;
15338
15339     sysv4*MP*)
15340       if test -d /usr/nec; then
15341         lt_prog_compiler_pic=-Kconform_pic
15342       fi
15343       ;;
15344
15345     hpux*)
15346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15347       # not for PA HP-UX.
15348       case $host_cpu in
15349       hppa*64*|ia64*)
15350         # +Z the default
15351         ;;
15352       *)
15353         lt_prog_compiler_pic='-fPIC'
15354         ;;
15355       esac
15356       ;;
15357
15358     *)
15359       lt_prog_compiler_pic='-fPIC'
15360       ;;
15361     esac
15362   else
15363     # PORTME Check for flag to pass linker flags through the system compiler.
15364     case $host_os in
15365     aix*)
15366       lt_prog_compiler_wl='-Wl,'
15367       if test "$host_cpu" = ia64; then
15368         # AIX 5 now supports IA64 processor
15369         lt_prog_compiler_static='-Bstatic'
15370       else
15371         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15372       fi
15373       ;;
15374       darwin*)
15375         # PIC is the default on this platform
15376         # Common symbols not allowed in MH_DYLIB files
15377        case $cc_basename in
15378          xlc*)
15379          lt_prog_compiler_pic='-qnocommon'
15380          lt_prog_compiler_wl='-Wl,'
15381          ;;
15382        esac
15383        ;;
15384
15385     mingw* | cygwin* | pw32* | os2*)
15386       # This hack is so that the source file can tell whether it is being
15387       # built for inclusion in a dll (and should export symbols for example).
15388       lt_prog_compiler_pic='-DDLL_EXPORT'
15389       ;;
15390
15391     hpux9* | hpux10* | hpux11*)
15392       lt_prog_compiler_wl='-Wl,'
15393       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15394       # not for PA HP-UX.
15395       case $host_cpu in
15396       hppa*64*|ia64*)
15397         # +Z the default
15398         ;;
15399       *)
15400         lt_prog_compiler_pic='+Z'
15401         ;;
15402       esac
15403       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15404       lt_prog_compiler_static='${wl}-a ${wl}archive'
15405       ;;
15406
15407     irix5* | irix6* | nonstopux*)
15408       lt_prog_compiler_wl='-Wl,'
15409       # PIC (with -KPIC) is the default.
15410       lt_prog_compiler_static='-non_shared'
15411       ;;
15412
15413     newsos6)
15414       lt_prog_compiler_pic='-KPIC'
15415       lt_prog_compiler_static='-Bstatic'
15416       ;;
15417
15418     linux* | k*bsd*-gnu)
15419       case $cc_basename in
15420       icc* | ecc*)
15421         lt_prog_compiler_wl='-Wl,'
15422         lt_prog_compiler_pic='-KPIC'
15423         lt_prog_compiler_static='-static'
15424         ;;
15425       pgcc* | pgf77* | pgf90* | pgf95*)
15426         # Portland Group compilers (*not* the Pentium gcc compiler,
15427         # which looks to be a dead project)
15428         lt_prog_compiler_wl='-Wl,'
15429         lt_prog_compiler_pic='-fpic'
15430         lt_prog_compiler_static='-Bstatic'
15431         ;;
15432       ccc*)
15433         lt_prog_compiler_wl='-Wl,'
15434         # All Alpha code is PIC.
15435         lt_prog_compiler_static='-non_shared'
15436         ;;
15437       *)
15438         case `$CC -V 2>&1 | sed 5q` in
15439         *Sun\ C*)
15440           # Sun C 5.9
15441           lt_prog_compiler_pic='-KPIC'
15442           lt_prog_compiler_static='-Bstatic'
15443           lt_prog_compiler_wl='-Wl,'
15444           ;;
15445         *Sun\ F*)
15446           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15447           lt_prog_compiler_pic='-KPIC'
15448           lt_prog_compiler_static='-Bstatic'
15449           lt_prog_compiler_wl=''
15450           ;;
15451         esac
15452         ;;
15453       esac
15454       ;;
15455
15456     osf3* | osf4* | osf5*)
15457       lt_prog_compiler_wl='-Wl,'
15458       # All OSF/1 code is PIC.
15459       lt_prog_compiler_static='-non_shared'
15460       ;;
15461
15462     rdos*)
15463       lt_prog_compiler_static='-non_shared'
15464       ;;
15465
15466     solaris*)
15467       lt_prog_compiler_pic='-KPIC'
15468       lt_prog_compiler_static='-Bstatic'
15469       case $cc_basename in
15470       f77* | f90* | f95*)
15471         lt_prog_compiler_wl='-Qoption ld ';;
15472       *)
15473         lt_prog_compiler_wl='-Wl,';;
15474       esac
15475       ;;
15476
15477     sunos4*)
15478       lt_prog_compiler_wl='-Qoption ld '
15479       lt_prog_compiler_pic='-PIC'
15480       lt_prog_compiler_static='-Bstatic'
15481       ;;
15482
15483     sysv4 | sysv4.2uw2* | sysv4.3*)
15484       lt_prog_compiler_wl='-Wl,'
15485       lt_prog_compiler_pic='-KPIC'
15486       lt_prog_compiler_static='-Bstatic'
15487       ;;
15488
15489     sysv4*MP*)
15490       if test -d /usr/nec ;then
15491         lt_prog_compiler_pic='-Kconform_pic'
15492         lt_prog_compiler_static='-Bstatic'
15493       fi
15494       ;;
15495
15496     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15497       lt_prog_compiler_wl='-Wl,'
15498       lt_prog_compiler_pic='-KPIC'
15499       lt_prog_compiler_static='-Bstatic'
15500       ;;
15501
15502     unicos*)
15503       lt_prog_compiler_wl='-Wl,'
15504       lt_prog_compiler_can_build_shared=no
15505       ;;
15506
15507     uts4*)
15508       lt_prog_compiler_pic='-pic'
15509       lt_prog_compiler_static='-Bstatic'
15510       ;;
15511
15512     *)
15513       lt_prog_compiler_can_build_shared=no
15514       ;;
15515     esac
15516   fi
15517
15518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15519 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15520
15521 #
15522 # Check to make sure the PIC flag actually works.
15523 #
15524 if test -n "$lt_prog_compiler_pic"; then
15525
15526 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15528 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   lt_cv_prog_compiler_pic_works=no
15532   ac_outfile=conftest.$ac_objext
15533    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15534    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15535    # Insert the option either (1) after the last *FLAGS variable, or
15536    # (2) before a word containing "conftest.", or (3) at the end.
15537    # Note that $ac_compile itself does not contain backslashes and begins
15538    # with a dollar sign (not a hyphen), so the echo should work correctly.
15539    # The option is referenced via a variable to avoid confusing sed.
15540    lt_compile=`echo "$ac_compile" | $SED \
15541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543    -e 's:$: $lt_compiler_flag:'`
15544    (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545    (eval "$lt_compile" 2>conftest.err)
15546    ac_status=$?
15547    cat conftest.err >&5
15548    echo "$as_me:15548: \$? = $ac_status" >&5
15549    if (exit $ac_status) && test -s "$ac_outfile"; then
15550      # The compiler can only warn and ignore the option if not recognized
15551      # So say no if there are warnings other than the usual output.
15552      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15553      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555        lt_cv_prog_compiler_pic_works=yes
15556      fi
15557    fi
15558    $rm conftest*
15559
15560 fi
15561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
15562 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
15563
15564 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15565     case $lt_prog_compiler_pic in
15566      "" | " "*) ;;
15567      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15568      esac
15569 else
15570     lt_prog_compiler_pic=
15571      lt_prog_compiler_can_build_shared=no
15572 fi
15573
15574 fi
15575 case $host_os in
15576   # For platforms which do not support PIC, -DPIC is meaningless:
15577   *djgpp*)
15578     lt_prog_compiler_pic=
15579     ;;
15580   *)
15581     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15582     ;;
15583 esac
15584
15585 #
15586 # Check to make sure the static flag actually works.
15587 #
15588 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15589 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15590 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15591 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
15592   echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594   lt_cv_prog_compiler_static_works=no
15595    save_LDFLAGS="$LDFLAGS"
15596    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15597    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15598    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15599      # The linker can only warn and ignore the option if not recognized
15600      # So say no if there are warnings
15601      if test -s conftest.err; then
15602        # Append any errors to the config.log.
15603        cat conftest.err 1>&5
15604        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15605        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15606        if diff conftest.exp conftest.er2 >/dev/null; then
15607          lt_cv_prog_compiler_static_works=yes
15608        fi
15609      else
15610        lt_cv_prog_compiler_static_works=yes
15611      fi
15612    fi
15613    $rm -r conftest*
15614    LDFLAGS="$save_LDFLAGS"
15615
15616 fi
15617 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
15618 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
15619
15620 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15621     :
15622 else
15623     lt_prog_compiler_static=
15624 fi
15625
15626
15627 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15628 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   lt_cv_prog_compiler_c_o=no
15633    $rm -r conftest 2>/dev/null
15634    mkdir conftest
15635    cd conftest
15636    mkdir out
15637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15638
15639    lt_compiler_flag="-o out/conftest2.$ac_objext"
15640    # Insert the option either (1) after the last *FLAGS variable, or
15641    # (2) before a word containing "conftest.", or (3) at the end.
15642    # Note that $ac_compile itself does not contain backslashes and begins
15643    # with a dollar sign (not a hyphen), so the echo should work correctly.
15644    lt_compile=`echo "$ac_compile" | $SED \
15645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15647    -e 's:$: $lt_compiler_flag:'`
15648    (eval echo "\"\$as_me:15648: $lt_compile\"" >&5)
15649    (eval "$lt_compile" 2>out/conftest.err)
15650    ac_status=$?
15651    cat out/conftest.err >&5
15652    echo "$as_me:15652: \$? = $ac_status" >&5
15653    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15654    then
15655      # The compiler can only warn and ignore the option if not recognized
15656      # So say no if there are warnings
15657      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15658      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15659      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15660        lt_cv_prog_compiler_c_o=yes
15661      fi
15662    fi
15663    chmod u+w . 2>&5
15664    $rm conftest*
15665    # SGI C++ compiler will create directory out/ii_files/ for
15666    # template instantiation
15667    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15668    $rm out/* && rmdir out
15669    cd ..
15670    rmdir conftest
15671    $rm conftest*
15672
15673 fi
15674 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15675 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15676
15677
15678 hard_links="nottested"
15679 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15680   # do not overwrite the value of need_locks provided by the user
15681   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15682 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15683   hard_links=yes
15684   $rm conftest*
15685   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15686   touch conftest.a
15687   ln conftest.a conftest.b 2>&5 || hard_links=no
15688   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15689   { echo "$as_me:$LINENO: result: $hard_links" >&5
15690 echo "${ECHO_T}$hard_links" >&6; }
15691   if test "$hard_links" = no; then
15692     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15693 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15694     need_locks=warn
15695   fi
15696 else
15697   need_locks=no
15698 fi
15699
15700 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15701 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15702
15703   runpath_var=
15704   allow_undefined_flag=
15705   enable_shared_with_static_runtimes=no
15706   archive_cmds=
15707   archive_expsym_cmds=
15708   old_archive_From_new_cmds=
15709   old_archive_from_expsyms_cmds=
15710   export_dynamic_flag_spec=
15711   whole_archive_flag_spec=
15712   thread_safe_flag_spec=
15713   hardcode_libdir_flag_spec=
15714   hardcode_libdir_flag_spec_ld=
15715   hardcode_libdir_separator=
15716   hardcode_direct=no
15717   hardcode_minus_L=no
15718   hardcode_shlibpath_var=unsupported
15719   link_all_deplibs=unknown
15720   hardcode_automatic=no
15721   module_cmds=
15722   module_expsym_cmds=
15723   always_export_symbols=no
15724   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15725   # include_expsyms should be a list of space-separated symbols to be *always*
15726   # included in the symbol list
15727   include_expsyms=
15728   # exclude_expsyms can be an extended regexp of symbols to exclude
15729   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15730   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15731   # as well as any symbol that contains `d'.
15732   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15733   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15734   # platforms (ab)use it in PIC code, but their linkers get confused if
15735   # the symbol is explicitly referenced.  Since portable code cannot
15736   # rely on this symbol name, it's probably fine to never include it in
15737   # preloaded symbol tables.
15738   # Exclude shared library initialization/finalization symbols.
15739   extract_expsyms_cmds=
15740   # Just being paranoid about ensuring that cc_basename is set.
15741   for cc_temp in $compiler""; do
15742   case $cc_temp in
15743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15745     \-*) ;;
15746     *) break;;
15747   esac
15748 done
15749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15750
15751   case $host_os in
15752   cygwin* | mingw* | pw32*)
15753     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15754     # When not using gcc, we currently assume that we are using
15755     # Microsoft Visual C++.
15756     if test "$GCC" != yes; then
15757       with_gnu_ld=no
15758     fi
15759     ;;
15760   interix*)
15761     # we just hope/assume this is gcc and not c89 (= MSVC++)
15762     with_gnu_ld=yes
15763     ;;
15764   openbsd*)
15765     with_gnu_ld=no
15766     ;;
15767   esac
15768
15769   ld_shlibs=yes
15770   if test "$with_gnu_ld" = yes; then
15771     # If archive_cmds runs LD, not CC, wlarc should be empty
15772     wlarc='${wl}'
15773
15774     # Set some defaults for GNU ld with shared library support. These
15775     # are reset later if shared libraries are not supported. Putting them
15776     # here allows them to be overridden if necessary.
15777     runpath_var=LD_RUN_PATH
15778     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15779     export_dynamic_flag_spec='${wl}--export-dynamic'
15780     # ancient GNU ld didn't support --whole-archive et. al.
15781     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15782         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15783       else
15784         whole_archive_flag_spec=
15785     fi
15786     supports_anon_versioning=no
15787     case `$LD -v 2>/dev/null` in
15788       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15789       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15790       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15791       *\ 2.11.*) ;; # other 2.11 versions
15792       *) supports_anon_versioning=yes ;;
15793     esac
15794
15795     # See if GNU ld supports shared libraries.
15796     case $host_os in
15797     aix[3-9]*)
15798       # On AIX/PPC, the GNU linker is very broken
15799       if test "$host_cpu" != ia64; then
15800         ld_shlibs=no
15801         cat <<EOF 1>&2
15802
15803 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15804 *** to be unable to reliably create shared libraries on AIX.
15805 *** Therefore, libtool is disabling shared libraries support.  If you
15806 *** really care for shared libraries, you may want to modify your PATH
15807 *** so that a non-GNU linker is found, and then restart.
15808
15809 EOF
15810       fi
15811       ;;
15812
15813     amigaos*)
15814       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)'
15815       hardcode_libdir_flag_spec='-L$libdir'
15816       hardcode_minus_L=yes
15817
15818       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15819       # that the semantics of dynamic libraries on AmigaOS, at least up
15820       # to version 4, is to share data among multiple programs linked
15821       # with the same dynamic library.  Since this doesn't match the
15822       # behavior of shared libraries on other platforms, we can't use
15823       # them.
15824       ld_shlibs=no
15825       ;;
15826
15827     beos*)
15828       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15829         allow_undefined_flag=unsupported
15830         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15831         # support --undefined.  This deserves some investigation.  FIXME
15832         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833       else
15834         ld_shlibs=no
15835       fi
15836       ;;
15837
15838     cygwin* | mingw* | pw32*)
15839       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15840       # as there is no search path for DLLs.
15841       hardcode_libdir_flag_spec='-L$libdir'
15842       allow_undefined_flag=unsupported
15843       always_export_symbols=no
15844       enable_shared_with_static_runtimes=yes
15845       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15846
15847       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15848         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15849         # If the export-symbols file already is a .def file (1st line
15850         # is EXPORTS), use it as is; otherwise, prepend...
15851         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15852           cp $export_symbols $output_objdir/$soname.def;
15853         else
15854           echo EXPORTS > $output_objdir/$soname.def;
15855           cat $export_symbols >> $output_objdir/$soname.def;
15856         fi~
15857         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15858       else
15859         ld_shlibs=no
15860       fi
15861       ;;
15862
15863     interix[3-9]*)
15864       hardcode_direct=no
15865       hardcode_shlibpath_var=no
15866       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15867       export_dynamic_flag_spec='${wl}-E'
15868       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15869       # Instead, shared libraries are loaded at an image base (0x10000000 by
15870       # default) and relocated if they conflict, which is a slow very memory
15871       # consuming and fragmenting process.  To avoid this, we pick a random,
15872       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15873       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15874       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15875       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'
15876       ;;
15877
15878     gnu* | linux* | k*bsd*-gnu)
15879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15880         tmp_addflag=
15881         case $cc_basename,$host_cpu in
15882         pgcc*)                          # Portland Group C compiler
15883           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'
15884           tmp_addflag=' $pic_flag'
15885           ;;
15886         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15887           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'
15888           tmp_addflag=' $pic_flag -Mnomain' ;;
15889         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15890           tmp_addflag=' -i_dynamic' ;;
15891         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15892           tmp_addflag=' -i_dynamic -nofor_main' ;;
15893         ifc* | ifort*)                  # Intel Fortran compiler
15894           tmp_addflag=' -nofor_main' ;;
15895         esac
15896         case `$CC -V 2>&1 | sed 5q` in
15897         *Sun\ C*)                       # Sun C 5.9
15898           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'
15899           tmp_sharedflag='-G' ;;
15900         *Sun\ F*)                       # Sun Fortran 8.3
15901           tmp_sharedflag='-G' ;;
15902         *)
15903           tmp_sharedflag='-shared' ;;
15904         esac
15905         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15906
15907         if test $supports_anon_versioning = yes; then
15908           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15909   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910   $echo "local: *; };" >> $output_objdir/$libname.ver~
15911           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15912         fi
15913         link_all_deplibs=no
15914       else
15915         ld_shlibs=no
15916       fi
15917       ;;
15918
15919     netbsd* | netbsdelf*-gnu)
15920       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15921         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15922         wlarc=
15923       else
15924         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15925         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15926       fi
15927       ;;
15928
15929     solaris*)
15930       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15931         ld_shlibs=no
15932         cat <<EOF 1>&2
15933
15934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15935 *** create shared libraries on Solaris systems.  Therefore, libtool
15936 *** is disabling shared libraries support.  We urge you to upgrade GNU
15937 *** binutils to release 2.9.1 or newer.  Another option is to modify
15938 *** your PATH or compiler configuration so that the native linker is
15939 *** used, and then restart.
15940
15941 EOF
15942       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15943         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15944         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15945       else
15946         ld_shlibs=no
15947       fi
15948       ;;
15949
15950     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15951       case `$LD -v 2>&1` in
15952         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15953         ld_shlibs=no
15954         cat <<_LT_EOF 1>&2
15955
15956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15957 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15958 *** is disabling shared libraries support.  We urge you to upgrade GNU
15959 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15960 *** your PATH or compiler configuration so that the native linker is
15961 *** used, and then restart.
15962
15963 _LT_EOF
15964         ;;
15965         *)
15966           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15968             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15969             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15970           else
15971             ld_shlibs=no
15972           fi
15973         ;;
15974       esac
15975       ;;
15976
15977     sunos4*)
15978       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15979       wlarc=
15980       hardcode_direct=yes
15981       hardcode_shlibpath_var=no
15982       ;;
15983
15984     *)
15985       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15986         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15988       else
15989         ld_shlibs=no
15990       fi
15991       ;;
15992     esac
15993
15994     if test "$ld_shlibs" = no; then
15995       runpath_var=
15996       hardcode_libdir_flag_spec=
15997       export_dynamic_flag_spec=
15998       whole_archive_flag_spec=
15999     fi
16000   else
16001     # PORTME fill in a description of your system's linker (not GNU ld)
16002     case $host_os in
16003     aix3*)
16004       allow_undefined_flag=unsupported
16005       always_export_symbols=yes
16006       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'
16007       # Note: this linker hardcodes the directories in LIBPATH if there
16008       # are no directories specified by -L.
16009       hardcode_minus_L=yes
16010       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16011         # Neither direct hardcoding nor static linking is supported with a
16012         # broken collect2.
16013         hardcode_direct=unsupported
16014       fi
16015       ;;
16016
16017     aix[4-9]*)
16018       if test "$host_cpu" = ia64; then
16019         # On IA64, the linker does run time linking by default, so we don't
16020         # have to do anything special.
16021         aix_use_runtimelinking=no
16022         exp_sym_flag='-Bexport'
16023         no_entry_flag=""
16024       else
16025         # If we're using GNU nm, then we don't want the "-C" option.
16026         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16027         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16028           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'
16029         else
16030           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'
16031         fi
16032         aix_use_runtimelinking=no
16033
16034         # Test if we are trying to use run time linking or normal
16035         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16036         # need to do runtime linking.
16037         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16038           for ld_flag in $LDFLAGS; do
16039           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16040             aix_use_runtimelinking=yes
16041             break
16042           fi
16043           done
16044           ;;
16045         esac
16046
16047         exp_sym_flag='-bexport'
16048         no_entry_flag='-bnoentry'
16049       fi
16050
16051       # When large executables or shared objects are built, AIX ld can
16052       # have problems creating the table of contents.  If linking a library
16053       # or program results in "error TOC overflow" add -mminimal-toc to
16054       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16055       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16056
16057       archive_cmds=''
16058       hardcode_direct=yes
16059       hardcode_libdir_separator=':'
16060       link_all_deplibs=yes
16061
16062       if test "$GCC" = yes; then
16063         case $host_os in aix4.[012]|aix4.[012].*)
16064         # We only want to do this on AIX 4.2 and lower, the check
16065         # below for broken collect2 doesn't work under 4.3+
16066           collect2name=`${CC} -print-prog-name=collect2`
16067           if test -f "$collect2name" && \
16068            strings "$collect2name" | grep resolve_lib_name >/dev/null
16069           then
16070           # We have reworked collect2
16071           :
16072           else
16073           # We have old collect2
16074           hardcode_direct=unsupported
16075           # It fails to find uninstalled libraries when the uninstalled
16076           # path is not listed in the libpath.  Setting hardcode_minus_L
16077           # to unsupported forces relinking
16078           hardcode_minus_L=yes
16079           hardcode_libdir_flag_spec='-L$libdir'
16080           hardcode_libdir_separator=
16081           fi
16082           ;;
16083         esac
16084         shared_flag='-shared'
16085         if test "$aix_use_runtimelinking" = yes; then
16086           shared_flag="$shared_flag "'${wl}-G'
16087         fi
16088       else
16089         # not using gcc
16090         if test "$host_cpu" = ia64; then
16091         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16092         # chokes on -Wl,-G. The following line is correct:
16093           shared_flag='-G'
16094         else
16095           if test "$aix_use_runtimelinking" = yes; then
16096             shared_flag='${wl}-G'
16097           else
16098             shared_flag='${wl}-bM:SRE'
16099           fi
16100         fi
16101       fi
16102
16103       # It seems that -bexpall does not export symbols beginning with
16104       # underscore (_), so it is better to generate a list of symbols to export.
16105       always_export_symbols=yes
16106       if test "$aix_use_runtimelinking" = yes; then
16107         # Warning - without using the other runtime loading flags (-brtl),
16108         # -berok will link without error, but may produce a broken library.
16109         allow_undefined_flag='-berok'
16110        # Determine the default libpath from the value encoded in an empty executable.
16111        cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117
16118 int
16119 main ()
16120 {
16121
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_link") 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } && {
16140          test -z "$ac_c_werror_flag" ||
16141          test ! -s conftest.err
16142        } && test -s conftest$ac_exeext &&
16143        $as_test_x conftest$ac_exeext; then
16144
16145 lt_aix_libpath_sed='
16146     /Import File Strings/,/^$/ {
16147         /^0/ {
16148             s/^0  *\(.*\)$/\1/
16149             p
16150         }
16151     }'
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16156 fi
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165       conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16167
16168        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16169         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"
16170        else
16171         if test "$host_cpu" = ia64; then
16172           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16173           allow_undefined_flag="-z nodefs"
16174           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"
16175         else
16176          # Determine the default libpath from the value encoded in an empty executable.
16177          cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183
16184 int
16185 main ()
16186 {
16187
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_link") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } && {
16206          test -z "$ac_c_werror_flag" ||
16207          test ! -s conftest.err
16208        } && test -s conftest$ac_exeext &&
16209        $as_test_x conftest$ac_exeext; then
16210
16211 lt_aix_libpath_sed='
16212     /Import File Strings/,/^$/ {
16213         /^0/ {
16214             s/^0  *\(.*\)$/\1/
16215             p
16216         }
16217     }'
16218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16219 # Check for a 64-bit object if we didn't find anything.
16220 if test -z "$aix_libpath"; then
16221   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16222 fi
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16231       conftest$ac_exeext conftest.$ac_ext
16232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16233
16234          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16235           # Warning - without using the other run time loading flags,
16236           # -berok will link without error, but may produce a broken library.
16237           no_undefined_flag=' ${wl}-bernotok'
16238           allow_undefined_flag=' ${wl}-berok'
16239           # Exported symbols can be pulled into shared objects from archives
16240           whole_archive_flag_spec='$convenience'
16241           archive_cmds_need_lc=yes
16242           # This is similar to how AIX traditionally builds its shared libraries.
16243           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'
16244         fi
16245       fi
16246       ;;
16247
16248     amigaos*)
16249       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)'
16250       hardcode_libdir_flag_spec='-L$libdir'
16251       hardcode_minus_L=yes
16252       # see comment about different semantics on the GNU ld section
16253       ld_shlibs=no
16254       ;;
16255
16256     bsdi[45]*)
16257       export_dynamic_flag_spec=-rdynamic
16258       ;;
16259
16260     cygwin* | mingw* | pw32*)
16261       # When not using gcc, we currently assume that we are using
16262       # Microsoft Visual C++.
16263       # hardcode_libdir_flag_spec is actually meaningless, as there is
16264       # no search path for DLLs.
16265       hardcode_libdir_flag_spec=' '
16266       allow_undefined_flag=unsupported
16267       # Tell ltmain to make .lib files, not .a files.
16268       libext=lib
16269       # Tell ltmain to make .dll files, not .so files.
16270       shrext_cmds=".dll"
16271       # FIXME: Setting linknames here is a bad hack.
16272       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16273       # The linker will automatically build a .lib file if we build a DLL.
16274       old_archive_From_new_cmds='true'
16275       # FIXME: Should let the user specify the lib program.
16276       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16277       fix_srcfile_path='`cygpath -w "$srcfile"`'
16278       enable_shared_with_static_runtimes=yes
16279       ;;
16280
16281     darwin* | rhapsody*)
16282       case $host_os in
16283         rhapsody* | darwin1.[012])
16284          allow_undefined_flag='${wl}-undefined ${wl}suppress'
16285          ;;
16286        *) # Darwin 1.3 on
16287          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16288            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16289          else
16290            case ${MACOSX_DEPLOYMENT_TARGET} in
16291              10.[012])
16292                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16293                ;;
16294              10.*)
16295                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16296                ;;
16297            esac
16298          fi
16299          ;;
16300       esac
16301       archive_cmds_need_lc=no
16302       hardcode_direct=no
16303       hardcode_automatic=yes
16304       hardcode_shlibpath_var=unsupported
16305       whole_archive_flag_spec=''
16306       link_all_deplibs=yes
16307     if test "$GCC" = yes ; then
16308         output_verbose_link_cmd='echo'
16309         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16310         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16311         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}"
16312         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}"
16313     else
16314       case $cc_basename in
16315         xlc*)
16316          output_verbose_link_cmd='echo'
16317          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16318          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16319           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16320          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}'
16321           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}'
16322           ;;
16323        *)
16324          ld_shlibs=no
16325           ;;
16326       esac
16327     fi
16328       ;;
16329
16330     dgux*)
16331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332       hardcode_libdir_flag_spec='-L$libdir'
16333       hardcode_shlibpath_var=no
16334       ;;
16335
16336     freebsd1*)
16337       ld_shlibs=no
16338       ;;
16339
16340     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16341     # support.  Future versions do this automatically, but an explicit c++rt0.o
16342     # does not break anything, and helps significantly (at the cost of a little
16343     # extra space).
16344     freebsd2.2*)
16345       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16346       hardcode_libdir_flag_spec='-R$libdir'
16347       hardcode_direct=yes
16348       hardcode_shlibpath_var=no
16349       ;;
16350
16351     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16352     freebsd2*)
16353       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354       hardcode_direct=yes
16355       hardcode_minus_L=yes
16356       hardcode_shlibpath_var=no
16357       ;;
16358
16359     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16360     freebsd* | dragonfly*)
16361       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16362       hardcode_libdir_flag_spec='-R$libdir'
16363       hardcode_direct=yes
16364       hardcode_shlibpath_var=no
16365       ;;
16366
16367     hpux9*)
16368       if test "$GCC" = yes; then
16369         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'
16370       else
16371         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'
16372       fi
16373       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16374       hardcode_libdir_separator=:
16375       hardcode_direct=yes
16376
16377       # hardcode_minus_L: Not really in the search PATH,
16378       # but as the default location of the library.
16379       hardcode_minus_L=yes
16380       export_dynamic_flag_spec='${wl}-E'
16381       ;;
16382
16383     hpux10*)
16384       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16385         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16386       else
16387         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16388       fi
16389       if test "$with_gnu_ld" = no; then
16390         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16391         hardcode_libdir_separator=:
16392
16393         hardcode_direct=yes
16394         export_dynamic_flag_spec='${wl}-E'
16395
16396         # hardcode_minus_L: Not really in the search PATH,
16397         # but as the default location of the library.
16398         hardcode_minus_L=yes
16399       fi
16400       ;;
16401
16402     hpux11*)
16403       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16404         case $host_cpu in
16405         hppa*64*)
16406           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16407           ;;
16408         ia64*)
16409           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16410           ;;
16411         *)
16412           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16413           ;;
16414         esac
16415       else
16416         case $host_cpu in
16417         hppa*64*)
16418           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16419           ;;
16420         ia64*)
16421           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16422           ;;
16423         *)
16424           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16425           ;;
16426         esac
16427       fi
16428       if test "$with_gnu_ld" = no; then
16429         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16430         hardcode_libdir_separator=:
16431
16432         case $host_cpu in
16433         hppa*64*|ia64*)
16434           hardcode_libdir_flag_spec_ld='+b $libdir'
16435           hardcode_direct=no
16436           hardcode_shlibpath_var=no
16437           ;;
16438         *)
16439           hardcode_direct=yes
16440           export_dynamic_flag_spec='${wl}-E'
16441
16442           # hardcode_minus_L: Not really in the search PATH,
16443           # but as the default location of the library.
16444           hardcode_minus_L=yes
16445           ;;
16446         esac
16447       fi
16448       ;;
16449
16450     irix5* | irix6* | nonstopux*)
16451       if test "$GCC" = yes; then
16452         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'
16453       else
16454         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'
16455         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16456       fi
16457       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16458       hardcode_libdir_separator=:
16459       link_all_deplibs=yes
16460       ;;
16461
16462     netbsd* | netbsdelf*-gnu)
16463       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16464         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16465       else
16466         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16467       fi
16468       hardcode_libdir_flag_spec='-R$libdir'
16469       hardcode_direct=yes
16470       hardcode_shlibpath_var=no
16471       ;;
16472
16473     newsos6)
16474       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475       hardcode_direct=yes
16476       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16477       hardcode_libdir_separator=:
16478       hardcode_shlibpath_var=no
16479       ;;
16480
16481     openbsd*)
16482       if test -f /usr/libexec/ld.so; then
16483         hardcode_direct=yes
16484         hardcode_shlibpath_var=no
16485         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16486           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16487           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16488           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16489           export_dynamic_flag_spec='${wl}-E'
16490         else
16491           case $host_os in
16492            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16493              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494              hardcode_libdir_flag_spec='-R$libdir'
16495              ;;
16496            *)
16497              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16498              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16499              ;;
16500           esac
16501         fi
16502       else
16503         ld_shlibs=no
16504       fi
16505       ;;
16506
16507     os2*)
16508       hardcode_libdir_flag_spec='-L$libdir'
16509       hardcode_minus_L=yes
16510       allow_undefined_flag=unsupported
16511       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'
16512       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16513       ;;
16514
16515     osf3*)
16516       if test "$GCC" = yes; then
16517         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16518         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'
16519       else
16520         allow_undefined_flag=' -expect_unresolved \*'
16521         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'
16522       fi
16523       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16524       hardcode_libdir_separator=:
16525       ;;
16526
16527     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16528       if test "$GCC" = yes; then
16529         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16530         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'
16531         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16532       else
16533         allow_undefined_flag=' -expect_unresolved \*'
16534         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'
16535         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16536         $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'
16537
16538         # Both c and cxx compiler support -rpath directly
16539         hardcode_libdir_flag_spec='-rpath $libdir'
16540       fi
16541       hardcode_libdir_separator=:
16542       ;;
16543
16544     solaris*)
16545       no_undefined_flag=' -z text'
16546       if test "$GCC" = yes; then
16547         wlarc='${wl}'
16548         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16549         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16550           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16551       else
16552         wlarc=''
16553         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16555         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16556       fi
16557       hardcode_libdir_flag_spec='-R$libdir'
16558       hardcode_shlibpath_var=no
16559       case $host_os in
16560       solaris2.[0-5] | solaris2.[0-5].*) ;;
16561       *)
16562         # The compiler driver will combine and reorder linker options,
16563         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16564         # but is careful enough not to reorder.
16565         # Supported since Solaris 2.6 (maybe 2.5.1?)
16566         if test "$GCC" = yes; then
16567           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16568         else
16569           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16570         fi
16571         ;;
16572       esac
16573       link_all_deplibs=yes
16574       ;;
16575
16576     sunos4*)
16577       if test "x$host_vendor" = xsequent; then
16578         # Use $CC to link under sequent, because it throws in some extra .o
16579         # files that make .init and .fini sections work.
16580         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16581       else
16582         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16583       fi
16584       hardcode_libdir_flag_spec='-L$libdir'
16585       hardcode_direct=yes
16586       hardcode_minus_L=yes
16587       hardcode_shlibpath_var=no
16588       ;;
16589
16590     sysv4)
16591       case $host_vendor in
16592         sni)
16593           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594           hardcode_direct=yes # is this really true???
16595         ;;
16596         siemens)
16597           ## LD is ld it makes a PLAMLIB
16598           ## CC just makes a GrossModule.
16599           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16600           reload_cmds='$CC -r -o $output$reload_objs'
16601           hardcode_direct=no
16602         ;;
16603         motorola)
16604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16606         ;;
16607       esac
16608       runpath_var='LD_RUN_PATH'
16609       hardcode_shlibpath_var=no
16610       ;;
16611
16612     sysv4.3*)
16613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614       hardcode_shlibpath_var=no
16615       export_dynamic_flag_spec='-Bexport'
16616       ;;
16617
16618     sysv4*MP*)
16619       if test -d /usr/nec; then
16620         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621         hardcode_shlibpath_var=no
16622         runpath_var=LD_RUN_PATH
16623         hardcode_runpath_var=yes
16624         ld_shlibs=yes
16625       fi
16626       ;;
16627
16628     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16629       no_undefined_flag='${wl}-z,text'
16630       archive_cmds_need_lc=no
16631       hardcode_shlibpath_var=no
16632       runpath_var='LD_RUN_PATH'
16633
16634       if test "$GCC" = yes; then
16635         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16636         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16637       else
16638         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16639         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16640       fi
16641       ;;
16642
16643     sysv5* | sco3.2v5* | sco5v6*)
16644       # Note: We can NOT use -z defs as we might desire, because we do not
16645       # link with -lc, and that would cause any symbols used from libc to
16646       # always be unresolved, which means just about no library would
16647       # ever link correctly.  If we're not using GNU ld we use -z text
16648       # though, which does catch some bad symbols but isn't as heavy-handed
16649       # as -z defs.
16650       no_undefined_flag='${wl}-z,text'
16651       allow_undefined_flag='${wl}-z,nodefs'
16652       archive_cmds_need_lc=no
16653       hardcode_shlibpath_var=no
16654       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16655       hardcode_libdir_separator=':'
16656       link_all_deplibs=yes
16657       export_dynamic_flag_spec='${wl}-Bexport'
16658       runpath_var='LD_RUN_PATH'
16659
16660       if test "$GCC" = yes; then
16661         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16662         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16663       else
16664         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666       fi
16667       ;;
16668
16669     uts4*)
16670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671       hardcode_libdir_flag_spec='-L$libdir'
16672       hardcode_shlibpath_var=no
16673       ;;
16674
16675     *)
16676       ld_shlibs=no
16677       ;;
16678     esac
16679   fi
16680
16681 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16682 echo "${ECHO_T}$ld_shlibs" >&6; }
16683 test "$ld_shlibs" = no && can_build_shared=no
16684
16685 #
16686 # Do we need to explicitly link libc?
16687 #
16688 case "x$archive_cmds_need_lc" in
16689 x|xyes)
16690   # Assume -lc should be added
16691   archive_cmds_need_lc=yes
16692
16693   if test "$enable_shared" = yes && test "$GCC" = yes; then
16694     case $archive_cmds in
16695     *'~'*)
16696       # FIXME: we may have to deal with multi-command sequences.
16697       ;;
16698     '$CC '*)
16699       # Test whether the compiler implicitly links with -lc since on some
16700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16701       # to ld, don't add -lc before -lgcc.
16702       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16704       $rm conftest*
16705       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16706
16707       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708   (eval $ac_compile) 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); } 2>conftest.err; then
16712         soname=conftest
16713         lib=conftest
16714         libobjs=conftest.$ac_objext
16715         deplibs=
16716         wl=$lt_prog_compiler_wl
16717         pic_flag=$lt_prog_compiler_pic
16718         compiler_flags=-v
16719         linker_flags=-v
16720         verstring=
16721         output_objdir=.
16722         libname=conftest
16723         lt_save_allow_undefined_flag=$allow_undefined_flag
16724         allow_undefined_flag=
16725         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16726   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }
16730         then
16731           archive_cmds_need_lc=no
16732         else
16733           archive_cmds_need_lc=yes
16734         fi
16735         allow_undefined_flag=$lt_save_allow_undefined_flag
16736       else
16737         cat conftest.err 1>&5
16738       fi
16739       $rm conftest*
16740       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16741 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16742       ;;
16743     esac
16744   fi
16745   ;;
16746 esac
16747
16748 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16749 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16750 library_names_spec=
16751 libname_spec='lib$name'
16752 soname_spec=
16753 shrext_cmds=".so"
16754 postinstall_cmds=
16755 postuninstall_cmds=
16756 finish_cmds=
16757 finish_eval=
16758 shlibpath_var=
16759 shlibpath_overrides_runpath=unknown
16760 version_type=none
16761 dynamic_linker="$host_os ld.so"
16762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16763
16764 if test "$GCC" = yes; then
16765   case $host_os in
16766     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16767     *) lt_awk_arg="/^libraries:/" ;;
16768   esac
16769   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16771     # if the path contains ";" then we assume it to be the separator
16772     # otherwise default to the standard path separator (i.e. ":") - it is
16773     # assumed that no part of a normal pathname contains ";" but that should
16774     # okay in the real world where ";" in dirpaths is itself problematic.
16775     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16776   else
16777     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16778   fi
16779   # Ok, now we have the path, separated by spaces, we can step through it
16780   # and add multilib dir if necessary.
16781   lt_tmp_lt_search_path_spec=
16782   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16783   for lt_sys_path in $lt_search_path_spec; do
16784     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16785       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16786     else
16787       test -d "$lt_sys_path" && \
16788         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16789     fi
16790   done
16791   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16792 BEGIN {RS=" "; FS="/|\n";} {
16793   lt_foo="";
16794   lt_count=0;
16795   for (lt_i = NF; lt_i > 0; lt_i--) {
16796     if ($lt_i != "" && $lt_i != ".") {
16797       if ($lt_i == "..") {
16798         lt_count++;
16799       } else {
16800         if (lt_count == 0) {
16801           lt_foo="/" $lt_i lt_foo;
16802         } else {
16803           lt_count--;
16804         }
16805       }
16806     }
16807   }
16808   if (lt_foo != "") { lt_freq[lt_foo]++; }
16809   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16810 }'`
16811   sys_lib_search_path_spec=`echo $lt_search_path_spec`
16812 else
16813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16814 fi
16815 need_lib_prefix=unknown
16816 hardcode_into_libs=no
16817
16818 # when you set need_version to no, make sure it does not cause -set_version
16819 # flags to be left without arguments
16820 need_version=unknown
16821
16822 case $host_os in
16823 aix3*)
16824   version_type=linux
16825   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16826   shlibpath_var=LIBPATH
16827
16828   # AIX 3 has no versioning support, so we append a major version to the name.
16829   soname_spec='${libname}${release}${shared_ext}$major'
16830   ;;
16831
16832 aix[4-9]*)
16833   version_type=linux
16834   need_lib_prefix=no
16835   need_version=no
16836   hardcode_into_libs=yes
16837   if test "$host_cpu" = ia64; then
16838     # AIX 5 supports IA64
16839     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16840     shlibpath_var=LD_LIBRARY_PATH
16841   else
16842     # With GCC up to 2.95.x, collect2 would create an import file
16843     # for dependence libraries.  The import file would start with
16844     # the line `#! .'.  This would cause the generated library to
16845     # depend on `.', always an invalid library.  This was fixed in
16846     # development snapshots of GCC prior to 3.0.
16847     case $host_os in
16848       aix4 | aix4.[01] | aix4.[01].*)
16849       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16850            echo ' yes '
16851            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16852         :
16853       else
16854         can_build_shared=no
16855       fi
16856       ;;
16857     esac
16858     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16859     # soname into executable. Probably we can add versioning support to
16860     # collect2, so additional links can be useful in future.
16861     if test "$aix_use_runtimelinking" = yes; then
16862       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16863       # instead of lib<name>.a to let people know that these are not
16864       # typical AIX shared libraries.
16865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16866     else
16867       # We preserve .a as extension for shared libraries through AIX4.2
16868       # and later when we are not doing run time linking.
16869       library_names_spec='${libname}${release}.a $libname.a'
16870       soname_spec='${libname}${release}${shared_ext}$major'
16871     fi
16872     shlibpath_var=LIBPATH
16873   fi
16874   ;;
16875
16876 amigaos*)
16877   library_names_spec='$libname.ixlibrary $libname.a'
16878   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16879   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'
16880   ;;
16881
16882 beos*)
16883   library_names_spec='${libname}${shared_ext}'
16884   dynamic_linker="$host_os ld.so"
16885   shlibpath_var=LIBRARY_PATH
16886   ;;
16887
16888 bsdi[45]*)
16889   version_type=linux
16890   need_version=no
16891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892   soname_spec='${libname}${release}${shared_ext}$major'
16893   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16894   shlibpath_var=LD_LIBRARY_PATH
16895   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16896   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16897   # the default ld.so.conf also contains /usr/contrib/lib and
16898   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16899   # libtool to hard-code these into programs
16900   ;;
16901
16902 cygwin* | mingw* | pw32*)
16903   version_type=windows
16904   shrext_cmds=".dll"
16905   need_version=no
16906   need_lib_prefix=no
16907
16908   case $GCC,$host_os in
16909   yes,cygwin* | yes,mingw* | yes,pw32*)
16910     library_names_spec='$libname.dll.a'
16911     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16912     postinstall_cmds='base_file=`basename \${file}`~
16913       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16914       dldir=$destdir/`dirname \$dlpath`~
16915       test -d \$dldir || mkdir -p \$dldir~
16916       $install_prog $dir/$dlname \$dldir/$dlname~
16917       chmod a+x \$dldir/$dlname'
16918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16919       dlpath=$dir/\$dldll~
16920        $rm \$dlpath'
16921     shlibpath_overrides_runpath=yes
16922
16923     case $host_os in
16924     cygwin*)
16925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16928       ;;
16929     mingw*)
16930       # MinGW DLLs use traditional 'lib' prefix
16931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16932       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16933       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16934         # It is most probably a Windows format PATH printed by
16935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16936         # path with ; separators, and with drive letters. We can handle the
16937         # drive letters (cygwin fileutils understands them), so leave them,
16938         # especially as we might pass files found there to a mingw objdump,
16939         # which wouldn't understand a cygwinified path. Ahh.
16940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16941       else
16942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16943       fi
16944       ;;
16945     pw32*)
16946       # pw32 DLLs use 'pw' prefix rather than 'lib'
16947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948       ;;
16949     esac
16950     ;;
16951
16952   *)
16953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16954     ;;
16955   esac
16956   dynamic_linker='Win32 ld.exe'
16957   # FIXME: first we should search . and the directory the executable is in
16958   shlibpath_var=PATH
16959   ;;
16960
16961 darwin* | rhapsody*)
16962   dynamic_linker="$host_os dyld"
16963   version_type=darwin
16964   need_lib_prefix=no
16965   need_version=no
16966   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16967   soname_spec='${libname}${release}${major}$shared_ext'
16968   shlibpath_overrides_runpath=yes
16969   shlibpath_var=DYLD_LIBRARY_PATH
16970   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16971
16972   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16973   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16974   ;;
16975
16976 dgux*)
16977   version_type=linux
16978   need_lib_prefix=no
16979   need_version=no
16980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16981   soname_spec='${libname}${release}${shared_ext}$major'
16982   shlibpath_var=LD_LIBRARY_PATH
16983   ;;
16984
16985 freebsd1*)
16986   dynamic_linker=no
16987   ;;
16988
16989 freebsd* | dragonfly*)
16990   # DragonFly does not have aout.  When/if they implement a new
16991   # versioning mechanism, adjust this.
16992   if test -x /usr/bin/objformat; then
16993     objformat=`/usr/bin/objformat`
16994   else
16995     case $host_os in
16996     freebsd[123]*) objformat=aout ;;
16997     *) objformat=elf ;;
16998     esac
16999   fi
17000   version_type=freebsd-$objformat
17001   case $version_type in
17002     freebsd-elf*)
17003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17004       need_version=no
17005       need_lib_prefix=no
17006       ;;
17007     freebsd-*)
17008       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17009       need_version=yes
17010       ;;
17011   esac
17012   shlibpath_var=LD_LIBRARY_PATH
17013   case $host_os in
17014   freebsd2*)
17015     shlibpath_overrides_runpath=yes
17016     ;;
17017   freebsd3.[01]* | freebsdelf3.[01]*)
17018     shlibpath_overrides_runpath=yes
17019     hardcode_into_libs=yes
17020     ;;
17021   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17022   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17023     shlibpath_overrides_runpath=no
17024     hardcode_into_libs=yes
17025     ;;
17026   *) # from 4.6 on, and DragonFly
17027     shlibpath_overrides_runpath=yes
17028     hardcode_into_libs=yes
17029     ;;
17030   esac
17031   ;;
17032
17033 gnu*)
17034   version_type=linux
17035   need_lib_prefix=no
17036   need_version=no
17037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17038   soname_spec='${libname}${release}${shared_ext}$major'
17039   shlibpath_var=LD_LIBRARY_PATH
17040   hardcode_into_libs=yes
17041   ;;
17042
17043 hpux9* | hpux10* | hpux11*)
17044   # Give a soname corresponding to the major version so that dld.sl refuses to
17045   # link against other versions.
17046   version_type=sunos
17047   need_lib_prefix=no
17048   need_version=no
17049   case $host_cpu in
17050   ia64*)
17051     shrext_cmds='.so'
17052     hardcode_into_libs=yes
17053     dynamic_linker="$host_os dld.so"
17054     shlibpath_var=LD_LIBRARY_PATH
17055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057     soname_spec='${libname}${release}${shared_ext}$major'
17058     if test "X$HPUX_IA64_MODE" = X32; then
17059       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17060     else
17061       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17062     fi
17063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17064     ;;
17065    hppa*64*)
17066      shrext_cmds='.sl'
17067      hardcode_into_libs=yes
17068      dynamic_linker="$host_os dld.sl"
17069      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17070      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17071      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072      soname_spec='${libname}${release}${shared_ext}$major'
17073      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17074      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17075      ;;
17076    *)
17077     shrext_cmds='.sl'
17078     dynamic_linker="$host_os dld.sl"
17079     shlibpath_var=SHLIB_PATH
17080     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082     soname_spec='${libname}${release}${shared_ext}$major'
17083     ;;
17084   esac
17085   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17086   postinstall_cmds='chmod 555 $lib'
17087   ;;
17088
17089 interix[3-9]*)
17090   version_type=linux
17091   need_lib_prefix=no
17092   need_version=no
17093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17094   soname_spec='${libname}${release}${shared_ext}$major'
17095   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17096   shlibpath_var=LD_LIBRARY_PATH
17097   shlibpath_overrides_runpath=no
17098   hardcode_into_libs=yes
17099   ;;
17100
17101 irix5* | irix6* | nonstopux*)
17102   case $host_os in
17103     nonstopux*) version_type=nonstopux ;;
17104     *)
17105         if test "$lt_cv_prog_gnu_ld" = yes; then
17106                 version_type=linux
17107         else
17108                 version_type=irix
17109         fi ;;
17110   esac
17111   need_lib_prefix=no
17112   need_version=no
17113   soname_spec='${libname}${release}${shared_ext}$major'
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17115   case $host_os in
17116   irix5* | nonstopux*)
17117     libsuff= shlibsuff=
17118     ;;
17119   *)
17120     case $LD in # libtool.m4 will add one of these switches to LD
17121     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122       libsuff= shlibsuff= libmagic=32-bit;;
17123     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124       libsuff=32 shlibsuff=N32 libmagic=N32;;
17125     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127     *) libsuff= shlibsuff= libmagic=never-match;;
17128     esac
17129     ;;
17130   esac
17131   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132   shlibpath_overrides_runpath=no
17133   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135   hardcode_into_libs=yes
17136   ;;
17137
17138 # No shared lib support for Linux oldld, aout, or coff.
17139 linux*oldld* | linux*aout* | linux*coff*)
17140   dynamic_linker=no
17141   ;;
17142
17143 # This must be Linux ELF.
17144 linux* | k*bsd*-gnu)
17145   version_type=linux
17146   need_lib_prefix=no
17147   need_version=no
17148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149   soname_spec='${libname}${release}${shared_ext}$major'
17150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   shlibpath_overrides_runpath=no
17153   # This implies no fast_install, which is unacceptable.
17154   # Some rework will be needed to allow for fast_install
17155   # before this can be enabled.
17156   hardcode_into_libs=yes
17157
17158   # Append ld.so.conf contents to the search path
17159   if test -f /etc/ld.so.conf; then
17160     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' ' '`
17161     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17162   fi
17163
17164   # We used to test for /lib/ld.so.1 and disable shared libraries on
17165   # powerpc, because MkLinux only supported shared libraries with the
17166   # GNU dynamic linker.  Since this was broken with cross compilers,
17167   # most powerpc-linux boxes support dynamic linking these days and
17168   # people can always --disable-shared, the test was removed, and we
17169   # assume the GNU/Linux dynamic linker is in use.
17170   dynamic_linker='GNU/Linux ld.so'
17171   ;;
17172
17173 netbsdelf*-gnu)
17174   version_type=linux
17175   need_lib_prefix=no
17176   need_version=no
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   shlibpath_overrides_runpath=no
17181   hardcode_into_libs=yes
17182   dynamic_linker='NetBSD ld.elf_so'
17183   ;;
17184
17185 netbsd*)
17186   version_type=sunos
17187   need_lib_prefix=no
17188   need_version=no
17189   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192     dynamic_linker='NetBSD (a.out) ld.so'
17193   else
17194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195     soname_spec='${libname}${release}${shared_ext}$major'
17196     dynamic_linker='NetBSD ld.elf_so'
17197   fi
17198   shlibpath_var=LD_LIBRARY_PATH
17199   shlibpath_overrides_runpath=yes
17200   hardcode_into_libs=yes
17201   ;;
17202
17203 newsos6)
17204   version_type=linux
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   shlibpath_overrides_runpath=yes
17208   ;;
17209
17210 nto-qnx*)
17211   version_type=linux
17212   need_lib_prefix=no
17213   need_version=no
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=yes
17218   ;;
17219
17220 openbsd*)
17221   version_type=sunos
17222   sys_lib_dlsearch_path_spec="/usr/lib"
17223   need_lib_prefix=no
17224   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17225   case $host_os in
17226     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17227     *)                         need_version=no  ;;
17228   esac
17229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233     case $host_os in
17234       openbsd2.[89] | openbsd2.[89].*)
17235         shlibpath_overrides_runpath=no
17236         ;;
17237       *)
17238         shlibpath_overrides_runpath=yes
17239         ;;
17240       esac
17241   else
17242     shlibpath_overrides_runpath=yes
17243   fi
17244   ;;
17245
17246 os2*)
17247   libname_spec='$name'
17248   shrext_cmds=".dll"
17249   need_lib_prefix=no
17250   library_names_spec='$libname${shared_ext} $libname.a'
17251   dynamic_linker='OS/2 ld.exe'
17252   shlibpath_var=LIBPATH
17253   ;;
17254
17255 osf3* | osf4* | osf5*)
17256   version_type=osf
17257   need_lib_prefix=no
17258   need_version=no
17259   soname_spec='${libname}${release}${shared_ext}$major'
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261   shlibpath_var=LD_LIBRARY_PATH
17262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264   ;;
17265
17266 rdos*)
17267   dynamic_linker=no
17268   ;;
17269
17270 solaris*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275   soname_spec='${libname}${release}${shared_ext}$major'
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=yes
17278   hardcode_into_libs=yes
17279   # ldd complains unless libraries are executable
17280   postinstall_cmds='chmod +x $lib'
17281   ;;
17282
17283 sunos4*)
17284   version_type=sunos
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17287   shlibpath_var=LD_LIBRARY_PATH
17288   shlibpath_overrides_runpath=yes
17289   if test "$with_gnu_ld" = yes; then
17290     need_lib_prefix=no
17291   fi
17292   need_version=yes
17293   ;;
17294
17295 sysv4 | sysv4.3*)
17296   version_type=linux
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   shlibpath_var=LD_LIBRARY_PATH
17300   case $host_vendor in
17301     sni)
17302       shlibpath_overrides_runpath=no
17303       need_lib_prefix=no
17304       export_dynamic_flag_spec='${wl}-Blargedynsym'
17305       runpath_var=LD_RUN_PATH
17306       ;;
17307     siemens)
17308       need_lib_prefix=no
17309       ;;
17310     motorola)
17311       need_lib_prefix=no
17312       need_version=no
17313       shlibpath_overrides_runpath=no
17314       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17315       ;;
17316   esac
17317   ;;
17318
17319 sysv4*MP*)
17320   if test -d /usr/nec ;then
17321     version_type=linux
17322     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17323     soname_spec='$libname${shared_ext}.$major'
17324     shlibpath_var=LD_LIBRARY_PATH
17325   fi
17326   ;;
17327
17328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17329   version_type=freebsd-elf
17330   need_lib_prefix=no
17331   need_version=no
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   hardcode_into_libs=yes
17336   if test "$with_gnu_ld" = yes; then
17337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17338     shlibpath_overrides_runpath=no
17339   else
17340     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17341     shlibpath_overrides_runpath=yes
17342     case $host_os in
17343       sco3.2v5*)
17344         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17345         ;;
17346     esac
17347   fi
17348   sys_lib_dlsearch_path_spec='/usr/lib'
17349   ;;
17350
17351 uts4*)
17352   version_type=linux
17353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354   soname_spec='${libname}${release}${shared_ext}$major'
17355   shlibpath_var=LD_LIBRARY_PATH
17356   ;;
17357
17358 *)
17359   dynamic_linker=no
17360   ;;
17361 esac
17362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17363 echo "${ECHO_T}$dynamic_linker" >&6; }
17364 test "$dynamic_linker" = no && can_build_shared=no
17365
17366 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17370 fi
17371
17372 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17377 fi
17378
17379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17380
17381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382 if test "$GCC" = yes; then
17383   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17384 fi
17385
17386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17388 hardcode_action=
17389 if test -n "$hardcode_libdir_flag_spec" || \
17390    test -n "$runpath_var" || \
17391    test "X$hardcode_automatic" = "Xyes" ; then
17392
17393   # We can hardcode non-existant directories.
17394   if test "$hardcode_direct" != no &&
17395      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17396      # have to relink, otherwise we might link with an installed library
17397      # when we should be linking with a yet-to-be-installed one
17398      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17399      test "$hardcode_minus_L" != no; then
17400     # Linking always hardcodes the temporary library directory.
17401     hardcode_action=relink
17402   else
17403     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17404     hardcode_action=immediate
17405   fi
17406 else
17407   # We cannot hardcode anything, or else we can only hardcode existing
17408   # directories.
17409   hardcode_action=unsupported
17410 fi
17411 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17412 echo "${ECHO_T}$hardcode_action" >&6; }
17413
17414 if test "$hardcode_action" = relink; then
17415   # Fast installation is not supported
17416   enable_fast_install=no
17417 elif test "$shlibpath_overrides_runpath" = yes ||
17418      test "$enable_shared" = no; then
17419   # Fast installation is not necessary
17420   enable_fast_install=needless
17421 fi
17422
17423 striplib=
17424 old_striplib=
17425 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17427 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17428   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17429   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17430   { echo "$as_me:$LINENO: result: yes" >&5
17431 echo "${ECHO_T}yes" >&6; }
17432 else
17433 # FIXME - insert some real tests, host_os isn't really good enough
17434   case $host_os in
17435    darwin*)
17436        if test -n "$STRIP" ; then
17437          striplib="$STRIP -x"
17438          old_striplib="$STRIP -S"
17439          { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17441        else
17442   { echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6; }
17444 fi
17445        ;;
17446    *)
17447   { echo "$as_me:$LINENO: result: no" >&5
17448 echo "${ECHO_T}no" >&6; }
17449     ;;
17450   esac
17451 fi
17452
17453 if test "x$enable_dlopen" != xyes; then
17454   enable_dlopen=unknown
17455   enable_dlopen_self=unknown
17456   enable_dlopen_self_static=unknown
17457 else
17458   lt_cv_dlopen=no
17459   lt_cv_dlopen_libs=
17460
17461   case $host_os in
17462   beos*)
17463     lt_cv_dlopen="load_add_on"
17464     lt_cv_dlopen_libs=
17465     lt_cv_dlopen_self=yes
17466     ;;
17467
17468   mingw* | pw32*)
17469     lt_cv_dlopen="LoadLibrary"
17470     lt_cv_dlopen_libs=
17471    ;;
17472
17473   cygwin*)
17474     lt_cv_dlopen="dlopen"
17475     lt_cv_dlopen_libs=
17476    ;;
17477
17478   darwin*)
17479   # if libdl is installed we need to link against it
17480     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17483   echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485   ac_check_lib_save_LIBS=$LIBS
17486 LIBS="-ldl  $LIBS"
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493
17494 /* Override any GCC internal prototype to avoid an error.
17495    Use char because int might match the return type of a GCC
17496    builtin and then its argument prototype would still apply.  */
17497 #ifdef __cplusplus
17498 extern "C"
17499 #endif
17500 char dlopen ();
17501 int
17502 main ()
17503 {
17504 return dlopen ();
17505   ;
17506   return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513   *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516   (eval "$ac_link") 2>conftest.er1
17517   ac_status=$?
17518   grep -v '^ *+' conftest.er1 >conftest.err
17519   rm -f conftest.er1
17520   cat conftest.err >&5
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); } && {
17523          test -z "$ac_c_werror_flag" ||
17524          test ! -s conftest.err
17525        } && test -s conftest$ac_exeext &&
17526        $as_test_x conftest$ac_exeext; then
17527   ac_cv_lib_dl_dlopen=yes
17528 else
17529   echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532         ac_cv_lib_dl_dlopen=no
17533 fi
17534
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536       conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17538 fi
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17541 if test $ac_cv_lib_dl_dlopen = yes; then
17542   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17543 else
17544
17545     lt_cv_dlopen="dyld"
17546     lt_cv_dlopen_libs=
17547     lt_cv_dlopen_self=yes
17548
17549 fi
17550
17551    ;;
17552
17553   *)
17554     { echo "$as_me:$LINENO: checking for shl_load" >&5
17555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17556 if test "${ac_cv_func_shl_load+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17567 #define shl_load innocuous_shl_load
17568
17569 /* System header to define __stub macros and hopefully few prototypes,
17570     which can conflict with char shl_load (); below.
17571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572     <limits.h> exists even on freestanding compilers.  */
17573
17574 #ifdef __STDC__
17575 # include <limits.h>
17576 #else
17577 # include <assert.h>
17578 #endif
17579
17580 #undef shl_load
17581
17582 /* Override any GCC internal prototype to avoid an error.
17583    Use char because int might match the return type of a GCC
17584    builtin and then its argument prototype would still apply.  */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 char shl_load ();
17589 /* The GNU C library defines this for functions which it implements
17590     to always fail with ENOSYS.  Some functions are actually named
17591     something starting with __ and the normal name is an alias.  */
17592 #if defined __stub_shl_load || defined __stub___shl_load
17593 choke me
17594 #endif
17595
17596 int
17597 main ()
17598 {
17599 return shl_load ();
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_link") 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } && {
17618          test -z "$ac_c_werror_flag" ||
17619          test ! -s conftest.err
17620        } && test -s conftest$ac_exeext &&
17621        $as_test_x conftest$ac_exeext; then
17622   ac_cv_func_shl_load=yes
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627         ac_cv_func_shl_load=no
17628 fi
17629
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631       conftest$ac_exeext conftest.$ac_ext
17632 fi
17633 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17635 if test $ac_cv_func_shl_load = yes; then
17636   lt_cv_dlopen="shl_load"
17637 else
17638   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   ac_check_lib_save_LIBS=$LIBS
17644 LIBS="-ldld  $LIBS"
17645 cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651
17652 /* Override any GCC internal prototype to avoid an error.
17653    Use char because int might match the return type of a GCC
17654    builtin and then its argument prototype would still apply.  */
17655 #ifdef __cplusplus
17656 extern "C"
17657 #endif
17658 char shl_load ();
17659 int
17660 main ()
17661 {
17662 return shl_load ();
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_link") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest$ac_exeext &&
17684        $as_test_x conftest$ac_exeext; then
17685   ac_cv_lib_dld_shl_load=yes
17686 else
17687   echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690         ac_cv_lib_dld_shl_load=no
17691 fi
17692
17693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17694       conftest$ac_exeext conftest.$ac_ext
17695 LIBS=$ac_check_lib_save_LIBS
17696 fi
17697 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17699 if test $ac_cv_lib_dld_shl_load = yes; then
17700   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17701 else
17702   { echo "$as_me:$LINENO: checking for dlopen" >&5
17703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17704 if test "${ac_cv_func_dlopen+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17715 #define dlopen innocuous_dlopen
17716
17717 /* System header to define __stub macros and hopefully few prototypes,
17718     which can conflict with char dlopen (); below.
17719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720     <limits.h> exists even on freestanding compilers.  */
17721
17722 #ifdef __STDC__
17723 # include <limits.h>
17724 #else
17725 # include <assert.h>
17726 #endif
17727
17728 #undef dlopen
17729
17730 /* Override any GCC internal prototype to avoid an error.
17731    Use char because int might match the return type of a GCC
17732    builtin and then its argument prototype would still apply.  */
17733 #ifdef __cplusplus
17734 extern "C"
17735 #endif
17736 char dlopen ();
17737 /* The GNU C library defines this for functions which it implements
17738     to always fail with ENOSYS.  Some functions are actually named
17739     something starting with __ and the normal name is an alias.  */
17740 #if defined __stub_dlopen || defined __stub___dlopen
17741 choke me
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 return dlopen ();
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && {
17766          test -z "$ac_c_werror_flag" ||
17767          test ! -s conftest.err
17768        } && test -s conftest$ac_exeext &&
17769        $as_test_x conftest$ac_exeext; then
17770   ac_cv_func_dlopen=yes
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775         ac_cv_func_dlopen=no
17776 fi
17777
17778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17779       conftest$ac_exeext conftest.$ac_ext
17780 fi
17781 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17782 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17783 if test $ac_cv_func_dlopen = yes; then
17784   lt_cv_dlopen="dlopen"
17785 else
17786   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   ac_check_lib_save_LIBS=$LIBS
17792 LIBS="-ldl  $LIBS"
17793 cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h.  */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h.  */
17799
17800 /* Override any GCC internal prototype to avoid an error.
17801    Use char because int might match the return type of a GCC
17802    builtin and then its argument prototype would still apply.  */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 char dlopen ();
17807 int
17808 main ()
17809 {
17810 return dlopen ();
17811   ;
17812   return 0;
17813 }
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819   *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822   (eval "$ac_link") 2>conftest.er1
17823   ac_status=$?
17824   grep -v '^ *+' conftest.er1 >conftest.err
17825   rm -f conftest.er1
17826   cat conftest.err >&5
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); } && {
17829          test -z "$ac_c_werror_flag" ||
17830          test ! -s conftest.err
17831        } && test -s conftest$ac_exeext &&
17832        $as_test_x conftest$ac_exeext; then
17833   ac_cv_lib_dl_dlopen=yes
17834 else
17835   echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838         ac_cv_lib_dl_dlopen=no
17839 fi
17840
17841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17842       conftest$ac_exeext conftest.$ac_ext
17843 LIBS=$ac_check_lib_save_LIBS
17844 fi
17845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17846 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17847 if test $ac_cv_lib_dl_dlopen = yes; then
17848   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17849 else
17850   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17851 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17852 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17853   echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855   ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lsvld  $LIBS"
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863
17864 /* Override any GCC internal prototype to avoid an error.
17865    Use char because int might match the return type of a GCC
17866    builtin and then its argument prototype would still apply.  */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char dlopen ();
17871 int
17872 main ()
17873 {
17874 return dlopen ();
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_link") 2>conftest.er1
17887   ac_status=$?
17888   grep -v '^ *+' conftest.er1 >conftest.err
17889   rm -f conftest.er1
17890   cat conftest.err >&5
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } && {
17893          test -z "$ac_c_werror_flag" ||
17894          test ! -s conftest.err
17895        } && test -s conftest$ac_exeext &&
17896        $as_test_x conftest$ac_exeext; then
17897   ac_cv_lib_svld_dlopen=yes
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902         ac_cv_lib_svld_dlopen=no
17903 fi
17904
17905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17906       conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17908 fi
17909 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17911 if test $ac_cv_lib_svld_dlopen = yes; then
17912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17913 else
17914   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919   ac_check_lib_save_LIBS=$LIBS
17920 LIBS="-ldld  $LIBS"
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h.  */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h.  */
17927
17928 /* Override any GCC internal prototype to avoid an error.
17929    Use char because int might match the return type of a GCC
17930    builtin and then its argument prototype would still apply.  */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 char dld_link ();
17935 int
17936 main ()
17937 {
17938 return dld_link ();
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_link") 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } && {
17957          test -z "$ac_c_werror_flag" ||
17958          test ! -s conftest.err
17959        } && test -s conftest$ac_exeext &&
17960        $as_test_x conftest$ac_exeext; then
17961   ac_cv_lib_dld_dld_link=yes
17962 else
17963   echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966         ac_cv_lib_dld_dld_link=no
17967 fi
17968
17969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17970       conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17972 fi
17973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17974 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17975 if test $ac_cv_lib_dld_dld_link = yes; then
17976   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17977 fi
17978
17979
17980 fi
17981
17982
17983 fi
17984
17985
17986 fi
17987
17988
17989 fi
17990
17991
17992 fi
17993
17994     ;;
17995   esac
17996
17997   if test "x$lt_cv_dlopen" != xno; then
17998     enable_dlopen=yes
17999   else
18000     enable_dlopen=no
18001   fi
18002
18003   case $lt_cv_dlopen in
18004   dlopen)
18005     save_CPPFLAGS="$CPPFLAGS"
18006     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18007
18008     save_LDFLAGS="$LDFLAGS"
18009     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18010
18011     save_LIBS="$LIBS"
18012     LIBS="$lt_cv_dlopen_libs $LIBS"
18013
18014     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18015 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18016 if test "${lt_cv_dlopen_self+set}" = set; then
18017   echo $ECHO_N "(cached) $ECHO_C" >&6
18018 else
18019           if test "$cross_compiling" = yes; then :
18020   lt_cv_dlopen_self=cross
18021 else
18022   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18023   lt_status=$lt_dlunknown
18024   cat > conftest.$ac_ext <<EOF
18025 #line 18025 "configure"
18026 #include "confdefs.h"
18027
18028 #if HAVE_DLFCN_H
18029 #include <dlfcn.h>
18030 #endif
18031
18032 #include <stdio.h>
18033
18034 #ifdef RTLD_GLOBAL
18035 #  define LT_DLGLOBAL           RTLD_GLOBAL
18036 #else
18037 #  ifdef DL_GLOBAL
18038 #    define LT_DLGLOBAL         DL_GLOBAL
18039 #  else
18040 #    define LT_DLGLOBAL         0
18041 #  endif
18042 #endif
18043
18044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045    find out it does not work in some platform. */
18046 #ifndef LT_DLLAZY_OR_NOW
18047 #  ifdef RTLD_LAZY
18048 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18049 #  else
18050 #    ifdef DL_LAZY
18051 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18052 #    else
18053 #      ifdef RTLD_NOW
18054 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18055 #      else
18056 #        ifdef DL_NOW
18057 #          define LT_DLLAZY_OR_NOW      DL_NOW
18058 #        else
18059 #          define LT_DLLAZY_OR_NOW      0
18060 #        endif
18061 #      endif
18062 #    endif
18063 #  endif
18064 #endif
18065
18066 #ifdef __cplusplus
18067 extern "C" void exit (int);
18068 #endif
18069
18070 void fnord() { int i=42;}
18071 int main ()
18072 {
18073   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18074   int status = $lt_dlunknown;
18075
18076   if (self)
18077     {
18078       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18079       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18080       /* dlclose (self); */
18081     }
18082   else
18083     puts (dlerror ());
18084
18085     exit (status);
18086 }
18087 EOF
18088   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18089   (eval $ac_link) 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18093     (./conftest; exit; ) >&5 2>/dev/null
18094     lt_status=$?
18095     case x$lt_status in
18096       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18097       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18098       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18099     esac
18100   else :
18101     # compilation failed
18102     lt_cv_dlopen_self=no
18103   fi
18104 fi
18105 rm -fr conftest*
18106
18107
18108 fi
18109 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18110 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18111
18112     if test "x$lt_cv_dlopen_self" = xyes; then
18113       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18114       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18115 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18116 if test "${lt_cv_dlopen_self_static+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119           if test "$cross_compiling" = yes; then :
18120   lt_cv_dlopen_self_static=cross
18121 else
18122   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18123   lt_status=$lt_dlunknown
18124   cat > conftest.$ac_ext <<EOF
18125 #line 18125 "configure"
18126 #include "confdefs.h"
18127
18128 #if HAVE_DLFCN_H
18129 #include <dlfcn.h>
18130 #endif
18131
18132 #include <stdio.h>
18133
18134 #ifdef RTLD_GLOBAL
18135 #  define LT_DLGLOBAL           RTLD_GLOBAL
18136 #else
18137 #  ifdef DL_GLOBAL
18138 #    define LT_DLGLOBAL         DL_GLOBAL
18139 #  else
18140 #    define LT_DLGLOBAL         0
18141 #  endif
18142 #endif
18143
18144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18145    find out it does not work in some platform. */
18146 #ifndef LT_DLLAZY_OR_NOW
18147 #  ifdef RTLD_LAZY
18148 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18149 #  else
18150 #    ifdef DL_LAZY
18151 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18152 #    else
18153 #      ifdef RTLD_NOW
18154 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18155 #      else
18156 #        ifdef DL_NOW
18157 #          define LT_DLLAZY_OR_NOW      DL_NOW
18158 #        else
18159 #          define LT_DLLAZY_OR_NOW      0
18160 #        endif
18161 #      endif
18162 #    endif
18163 #  endif
18164 #endif
18165
18166 #ifdef __cplusplus
18167 extern "C" void exit (int);
18168 #endif
18169
18170 void fnord() { int i=42;}
18171 int main ()
18172 {
18173   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18174   int status = $lt_dlunknown;
18175
18176   if (self)
18177     {
18178       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18179       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18180       /* dlclose (self); */
18181     }
18182   else
18183     puts (dlerror ());
18184
18185     exit (status);
18186 }
18187 EOF
18188   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18189   (eval $ac_link) 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18193     (./conftest; exit; ) >&5 2>/dev/null
18194     lt_status=$?
18195     case x$lt_status in
18196       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18197       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18199     esac
18200   else :
18201     # compilation failed
18202     lt_cv_dlopen_self_static=no
18203   fi
18204 fi
18205 rm -fr conftest*
18206
18207
18208 fi
18209 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18211     fi
18212
18213     CPPFLAGS="$save_CPPFLAGS"
18214     LDFLAGS="$save_LDFLAGS"
18215     LIBS="$save_LIBS"
18216     ;;
18217   esac
18218
18219   case $lt_cv_dlopen_self in
18220   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221   *) enable_dlopen_self=unknown ;;
18222   esac
18223
18224   case $lt_cv_dlopen_self_static in
18225   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226   *) enable_dlopen_self_static=unknown ;;
18227   esac
18228 fi
18229
18230
18231 # Report which library types will actually be built
18232 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18234 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18235 echo "${ECHO_T}$can_build_shared" >&6; }
18236
18237 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18239 test "$can_build_shared" = "no" && enable_shared=no
18240
18241 # On AIX, shared libraries and static libraries use the same namespace, and
18242 # are all built from PIC.
18243 case $host_os in
18244 aix3*)
18245   test "$enable_shared" = yes && enable_static=no
18246   if test -n "$RANLIB"; then
18247     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18248     postinstall_cmds='$RANLIB $lib'
18249   fi
18250   ;;
18251
18252 aix[4-9]*)
18253   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18254     test "$enable_shared" = yes && enable_static=no
18255   fi
18256     ;;
18257 esac
18258 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18259 echo "${ECHO_T}$enable_shared" >&6; }
18260
18261 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18263 # Make sure either enable_shared or enable_static is yes.
18264 test "$enable_shared" = yes || enable_static=yes
18265 { echo "$as_me:$LINENO: result: $enable_static" >&5
18266 echo "${ECHO_T}$enable_static" >&6; }
18267
18268 # The else clause should only fire when bootstrapping the
18269 # libtool distribution, otherwise you forgot to ship ltmain.sh
18270 # with your package, and you will get complaints that there are
18271 # no rules to generate ltmain.sh.
18272 if test -f "$ltmain"; then
18273   # See if we are running on zsh, and set the options which allow our commands through
18274   # without removal of \ escapes.
18275   if test -n "${ZSH_VERSION+set}" ; then
18276     setopt NO_GLOB_SUBST
18277   fi
18278   # Now quote all the things that may contain metacharacters while being
18279   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18280   # variables and quote the copies for generation of the libtool script.
18281   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18282     SED SHELL STRIP \
18283     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18284     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18285     deplibs_check_method reload_flag reload_cmds need_locks \
18286     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18287     lt_cv_sys_global_symbol_to_c_name_address \
18288     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18289     old_postinstall_cmds old_postuninstall_cmds \
18290     compiler \
18291     CC \
18292     LD \
18293     lt_prog_compiler_wl \
18294     lt_prog_compiler_pic \
18295     lt_prog_compiler_static \
18296     lt_prog_compiler_no_builtin_flag \
18297     export_dynamic_flag_spec \
18298     thread_safe_flag_spec \
18299     whole_archive_flag_spec \
18300     enable_shared_with_static_runtimes \
18301     old_archive_cmds \
18302     old_archive_from_new_cmds \
18303     predep_objects \
18304     postdep_objects \
18305     predeps \
18306     postdeps \
18307     compiler_lib_search_path \
18308     compiler_lib_search_dirs \
18309     archive_cmds \
18310     archive_expsym_cmds \
18311     postinstall_cmds \
18312     postuninstall_cmds \
18313     old_archive_from_expsyms_cmds \
18314     allow_undefined_flag \
18315     no_undefined_flag \
18316     export_symbols_cmds \
18317     hardcode_libdir_flag_spec \
18318     hardcode_libdir_flag_spec_ld \
18319     hardcode_libdir_separator \
18320     hardcode_automatic \
18321     module_cmds \
18322     module_expsym_cmds \
18323     lt_cv_prog_compiler_c_o \
18324     fix_srcfile_path \
18325     exclude_expsyms \
18326     include_expsyms; do
18327
18328     case $var in
18329     old_archive_cmds | \
18330     old_archive_from_new_cmds | \
18331     archive_cmds | \
18332     archive_expsym_cmds | \
18333     module_cmds | \
18334     module_expsym_cmds | \
18335     old_archive_from_expsyms_cmds | \
18336     export_symbols_cmds | \
18337     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18338     postinstall_cmds | postuninstall_cmds | \
18339     old_postinstall_cmds | old_postuninstall_cmds | \
18340     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18341       # Double-quote double-evaled strings.
18342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18343       ;;
18344     *)
18345       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18346       ;;
18347     esac
18348   done
18349
18350   case $lt_echo in
18351   *'\$0 --fallback-echo"')
18352     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18353     ;;
18354   esac
18355
18356 cfgfile="${ofile}T"
18357   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18358   $rm -f "$cfgfile"
18359   { echo "$as_me:$LINENO: creating $ofile" >&5
18360 echo "$as_me: creating $ofile" >&6;}
18361
18362   cat <<__EOF__ >> "$cfgfile"
18363 #! $SHELL
18364
18365 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18366 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18368 #
18369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
18370 # Free Software Foundation, Inc.
18371 #
18372 # This file is part of GNU Libtool:
18373 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18374 #
18375 # This program is free software; you can redistribute it and/or modify
18376 # it under the terms of the GNU General Public License as published by
18377 # the Free Software Foundation; either version 2 of the License, or
18378 # (at your option) any later version.
18379 #
18380 # This program is distributed in the hope that it will be useful, but
18381 # WITHOUT ANY WARRANTY; without even the implied warranty of
18382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18383 # General Public License for more details.
18384 #
18385 # You should have received a copy of the GNU General Public License
18386 # along with this program; if not, write to the Free Software
18387 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18388 #
18389 # As a special exception to the GNU General Public License, if you
18390 # distribute this file as part of a program that contains a
18391 # configuration script generated by Autoconf, you may include it under
18392 # the same distribution terms that you use for the rest of that program.
18393
18394 # A sed program that does not truncate output.
18395 SED=$lt_SED
18396
18397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18398 Xsed="$SED -e 1s/^X//"
18399
18400 # The HP-UX ksh and POSIX shell print the target directory to stdout
18401 # if CDPATH is set.
18402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18403
18404 # The names of the tagged configurations supported by this script.
18405 available_tags=
18406
18407 # ### BEGIN LIBTOOL CONFIG
18408
18409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18410
18411 # Shell to use when invoking shell scripts.
18412 SHELL=$lt_SHELL
18413
18414 # Whether or not to build shared libraries.
18415 build_libtool_libs=$enable_shared
18416
18417 # Whether or not to build static libraries.
18418 build_old_libs=$enable_static
18419
18420 # Whether or not to add -lc for building shared libraries.
18421 build_libtool_need_lc=$archive_cmds_need_lc
18422
18423 # Whether or not to disallow shared libs when runtime libs are static
18424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18425
18426 # Whether or not to optimize for fast installation.
18427 fast_install=$enable_fast_install
18428
18429 # The host system.
18430 host_alias=$host_alias
18431 host=$host
18432 host_os=$host_os
18433
18434 # The build system.
18435 build_alias=$build_alias
18436 build=$build
18437 build_os=$build_os
18438
18439 # An echo program that does not interpret backslashes.
18440 echo=$lt_echo
18441
18442 # The archiver.
18443 AR=$lt_AR
18444 AR_FLAGS=$lt_AR_FLAGS
18445
18446 # A C compiler.
18447 LTCC=$lt_LTCC
18448
18449 # LTCC compiler flags.
18450 LTCFLAGS=$lt_LTCFLAGS
18451
18452 # A language-specific compiler.
18453 CC=$lt_compiler
18454
18455 # Is the compiler the GNU C compiler?
18456 with_gcc=$GCC
18457
18458 # An ERE matcher.
18459 EGREP=$lt_EGREP
18460
18461 # The linker used to build libraries.
18462 LD=$lt_LD
18463
18464 # Whether we need hard or soft links.
18465 LN_S=$lt_LN_S
18466
18467 # A BSD-compatible nm program.
18468 NM=$lt_NM
18469
18470 # A symbol stripping program
18471 STRIP=$lt_STRIP
18472
18473 # Used to examine libraries when file_magic_cmd begins "file"
18474 MAGIC_CMD=$MAGIC_CMD
18475
18476 # Used on cygwin: DLL creation program.
18477 DLLTOOL="$DLLTOOL"
18478
18479 # Used on cygwin: object dumper.
18480 OBJDUMP="$OBJDUMP"
18481
18482 # Used on cygwin: assembler.
18483 AS="$AS"
18484
18485 # The name of the directory that contains temporary libtool files.
18486 objdir=$objdir
18487
18488 # How to create reloadable object files.
18489 reload_flag=$lt_reload_flag
18490 reload_cmds=$lt_reload_cmds
18491
18492 # How to pass a linker flag through the compiler.
18493 wl=$lt_lt_prog_compiler_wl
18494
18495 # Object file suffix (normally "o").
18496 objext="$ac_objext"
18497
18498 # Old archive suffix (normally "a").
18499 libext="$libext"
18500
18501 # Shared library suffix (normally ".so").
18502 shrext_cmds='$shrext_cmds'
18503
18504 # Executable file suffix (normally "").
18505 exeext="$exeext"
18506
18507 # Additional compiler flags for building library objects.
18508 pic_flag=$lt_lt_prog_compiler_pic
18509 pic_mode=$pic_mode
18510
18511 # What is the maximum length of a command?
18512 max_cmd_len=$lt_cv_sys_max_cmd_len
18513
18514 # Does compiler simultaneously support -c and -o options?
18515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18516
18517 # Must we lock files when doing compilation?
18518 need_locks=$lt_need_locks
18519
18520 # Do we need the lib prefix for modules?
18521 need_lib_prefix=$need_lib_prefix
18522
18523 # Do we need a version for libraries?
18524 need_version=$need_version
18525
18526 # Whether dlopen is supported.
18527 dlopen_support=$enable_dlopen
18528
18529 # Whether dlopen of programs is supported.
18530 dlopen_self=$enable_dlopen_self
18531
18532 # Whether dlopen of statically linked programs is supported.
18533 dlopen_self_static=$enable_dlopen_self_static
18534
18535 # Compiler flag to prevent dynamic linking.
18536 link_static_flag=$lt_lt_prog_compiler_static
18537
18538 # Compiler flag to turn off builtin functions.
18539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18540
18541 # Compiler flag to allow reflexive dlopens.
18542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18543
18544 # Compiler flag to generate shared objects directly from archives.
18545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18546
18547 # Compiler flag to generate thread-safe objects.
18548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18549
18550 # Library versioning type.
18551 version_type=$version_type
18552
18553 # Format of library name prefix.
18554 libname_spec=$lt_libname_spec
18555
18556 # List of archive names.  First name is the real one, the rest are links.
18557 # The last name is the one that the linker finds with -lNAME.
18558 library_names_spec=$lt_library_names_spec
18559
18560 # The coded name of the library, if different from the real name.
18561 soname_spec=$lt_soname_spec
18562
18563 # Commands used to build and install an old-style archive.
18564 RANLIB=$lt_RANLIB
18565 old_archive_cmds=$lt_old_archive_cmds
18566 old_postinstall_cmds=$lt_old_postinstall_cmds
18567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18568
18569 # Create an old-style archive from a shared archive.
18570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18571
18572 # Create a temporary old-style archive to link instead of a shared archive.
18573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18574
18575 # Commands used to build and install a shared archive.
18576 archive_cmds=$lt_archive_cmds
18577 archive_expsym_cmds=$lt_archive_expsym_cmds
18578 postinstall_cmds=$lt_postinstall_cmds
18579 postuninstall_cmds=$lt_postuninstall_cmds
18580
18581 # Commands used to build a loadable module (assumed same as above if empty)
18582 module_cmds=$lt_module_cmds
18583 module_expsym_cmds=$lt_module_expsym_cmds
18584
18585 # Commands to strip libraries.
18586 old_striplib=$lt_old_striplib
18587 striplib=$lt_striplib
18588
18589 # Dependencies to place before the objects being linked to create a
18590 # shared library.
18591 predep_objects=$lt_predep_objects
18592
18593 # Dependencies to place after the objects being linked to create a
18594 # shared library.
18595 postdep_objects=$lt_postdep_objects
18596
18597 # Dependencies to place before the objects being linked to create a
18598 # shared library.
18599 predeps=$lt_predeps
18600
18601 # Dependencies to place after the objects being linked to create a
18602 # shared library.
18603 postdeps=$lt_postdeps
18604
18605 # The directories searched by this compiler when creating a shared
18606 # library
18607 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18608
18609 # The library search path used internally by the compiler when linking
18610 # a shared library.
18611 compiler_lib_search_path=$lt_compiler_lib_search_path
18612
18613 # Method to check whether dependent libraries are shared objects.
18614 deplibs_check_method=$lt_deplibs_check_method
18615
18616 # Command to use when deplibs_check_method == file_magic.
18617 file_magic_cmd=$lt_file_magic_cmd
18618
18619 # Flag that allows shared libraries with undefined symbols to be built.
18620 allow_undefined_flag=$lt_allow_undefined_flag
18621
18622 # Flag that forces no undefined symbols.
18623 no_undefined_flag=$lt_no_undefined_flag
18624
18625 # Commands used to finish a libtool library installation in a directory.
18626 finish_cmds=$lt_finish_cmds
18627
18628 # Same as above, but a single script fragment to be evaled but not shown.
18629 finish_eval=$lt_finish_eval
18630
18631 # Take the output of nm and produce a listing of raw symbols and C names.
18632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18633
18634 # Transform the output of nm in a proper C declaration
18635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18636
18637 # Transform the output of nm in a C name address pair
18638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18639
18640 # This is the shared library runtime path variable.
18641 runpath_var=$runpath_var
18642
18643 # This is the shared library path variable.
18644 shlibpath_var=$shlibpath_var
18645
18646 # Is shlibpath searched before the hard-coded library search path?
18647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18648
18649 # How to hardcode a shared library path into an executable.
18650 hardcode_action=$hardcode_action
18651
18652 # Whether we should hardcode library paths into libraries.
18653 hardcode_into_libs=$hardcode_into_libs
18654
18655 # Flag to hardcode \$libdir into a binary during linking.
18656 # This must work even if \$libdir does not exist.
18657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18658
18659 # If ld is used when linking, flag to hardcode \$libdir into
18660 # a binary during linking. This must work even if \$libdir does
18661 # not exist.
18662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18663
18664 # Whether we need a single -rpath flag with a separated argument.
18665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18666
18667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18668 # resulting binary.
18669 hardcode_direct=$hardcode_direct
18670
18671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18672 # resulting binary.
18673 hardcode_minus_L=$hardcode_minus_L
18674
18675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18676 # the resulting binary.
18677 hardcode_shlibpath_var=$hardcode_shlibpath_var
18678
18679 # Set to yes if building a shared library automatically hardcodes DIR into the library
18680 # and all subsequent libraries and executables linked against it.
18681 hardcode_automatic=$hardcode_automatic
18682
18683 # Variables whose values should be saved in libtool wrapper scripts and
18684 # restored at relink time.
18685 variables_saved_for_relink="$variables_saved_for_relink"
18686
18687 # Whether libtool must link a program against all its dependency libraries.
18688 link_all_deplibs=$link_all_deplibs
18689
18690 # Compile-time system search path for libraries
18691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18692
18693 # Run-time system search path for libraries
18694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18695
18696 # Fix the shell variable \$srcfile for the compiler.
18697 fix_srcfile_path=$lt_fix_srcfile_path
18698
18699 # Set to yes if exported symbols are required.
18700 always_export_symbols=$always_export_symbols
18701
18702 # The commands to list exported symbols.
18703 export_symbols_cmds=$lt_export_symbols_cmds
18704
18705 # The commands to extract the exported symbol list from a shared archive.
18706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18707
18708 # Symbols that should not be listed in the preloaded symbols.
18709 exclude_expsyms=$lt_exclude_expsyms
18710
18711 # Symbols that must always be exported.
18712 include_expsyms=$lt_include_expsyms
18713
18714 # ### END LIBTOOL CONFIG
18715
18716 __EOF__
18717
18718
18719   case $host_os in
18720   aix3*)
18721     cat <<\EOF >> "$cfgfile"
18722
18723 # AIX sometimes has problems with the GCC collect2 program.  For some
18724 # reason, if we set the COLLECT_NAMES environment variable, the problems
18725 # vanish in a puff of smoke.
18726 if test "X${COLLECT_NAMES+set}" != Xset; then
18727   COLLECT_NAMES=
18728   export COLLECT_NAMES
18729 fi
18730 EOF
18731     ;;
18732   esac
18733
18734   # We use sed instead of cat because bash on DJGPP gets confused if
18735   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18736   # text mode, it properly converts lines to CR/LF.  This bash problem
18737   # is reportedly fixed, but why not run on old versions too?
18738   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18739
18740   mv -f "$cfgfile" "$ofile" || \
18741     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18742   chmod +x "$ofile"
18743
18744 else
18745   # If there is no Makefile yet, we rely on a make rule to execute
18746   # `config.status --recheck' to rerun these tests and create the
18747   # libtool script then.
18748   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18749   if test -f "$ltmain_in"; then
18750     test -f Makefile && make "$ltmain"
18751   fi
18752 fi
18753
18754
18755 ac_ext=c
18756 ac_cpp='$CPP $CPPFLAGS'
18757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18760
18761 CC="$lt_save_CC"
18762
18763
18764 # Check whether --with-tags was given.
18765 if test "${with_tags+set}" = set; then
18766   withval=$with_tags; tagnames="$withval"
18767 fi
18768
18769
18770 if test -f "$ltmain" && test -n "$tagnames"; then
18771   if test ! -f "${ofile}"; then
18772     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18773 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18774   fi
18775
18776   if test -z "$LTCC"; then
18777     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18778     if test -z "$LTCC"; then
18779       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18780 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18781     else
18782       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18783 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18784     fi
18785   fi
18786   if test -z "$LTCFLAGS"; then
18787     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18788   fi
18789
18790   # Extract list of available tagged configurations in $ofile.
18791   # Note that this assumes the entire list is on one line.
18792   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18793
18794   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18795   for tagname in $tagnames; do
18796     IFS="$lt_save_ifs"
18797     # Check whether tagname contains only valid characters
18798     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18799     "") ;;
18800     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18801 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18802    { (exit 1); exit 1; }; }
18803         ;;
18804     esac
18805
18806     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18807     then
18808       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18809 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18810    { (exit 1); exit 1; }; }
18811     fi
18812
18813     # Update the list of available tags.
18814     if test -n "$tagname"; then
18815       echo appending configuration tag \"$tagname\" to $ofile
18816
18817       case $tagname in
18818       CXX)
18819         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18820             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18821             (test "X$CXX" != "Xg++"))) ; then
18822           ac_ext=cpp
18823 ac_cpp='$CXXCPP $CPPFLAGS'
18824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827
18828
18829
18830
18831 archive_cmds_need_lc_CXX=no
18832 allow_undefined_flag_CXX=
18833 always_export_symbols_CXX=no
18834 archive_expsym_cmds_CXX=
18835 export_dynamic_flag_spec_CXX=
18836 hardcode_direct_CXX=no
18837 hardcode_libdir_flag_spec_CXX=
18838 hardcode_libdir_flag_spec_ld_CXX=
18839 hardcode_libdir_separator_CXX=
18840 hardcode_minus_L_CXX=no
18841 hardcode_shlibpath_var_CXX=unsupported
18842 hardcode_automatic_CXX=no
18843 module_cmds_CXX=
18844 module_expsym_cmds_CXX=
18845 link_all_deplibs_CXX=unknown
18846 old_archive_cmds_CXX=$old_archive_cmds
18847 no_undefined_flag_CXX=
18848 whole_archive_flag_spec_CXX=
18849 enable_shared_with_static_runtimes_CXX=no
18850
18851 # Dependencies to place before and after the object being linked:
18852 predep_objects_CXX=
18853 postdep_objects_CXX=
18854 predeps_CXX=
18855 postdeps_CXX=
18856 compiler_lib_search_path_CXX=
18857 compiler_lib_search_dirs_CXX=
18858
18859 # Source file extension for C++ test sources.
18860 ac_ext=cpp
18861
18862 # Object file extension for compiled C++ test sources.
18863 objext=o
18864 objext_CXX=$objext
18865
18866 # Code to be used in simple compile tests
18867 lt_simple_compile_test_code="int some_variable = 0;"
18868
18869 # Code to be used in simple link tests
18870 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18871
18872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18873
18874 # If no C compiler was specified, use CC.
18875 LTCC=${LTCC-"$CC"}
18876
18877 # If no C compiler flags were specified, use CFLAGS.
18878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18879
18880 # Allow CC to be a program name with arguments.
18881 compiler=$CC
18882
18883
18884 # save warnings/boilerplate of simple test code
18885 ac_outfile=conftest.$ac_objext
18886 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18887 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18888 _lt_compiler_boilerplate=`cat conftest.err`
18889 $rm conftest*
18890
18891 ac_outfile=conftest.$ac_objext
18892 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18893 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18894 _lt_linker_boilerplate=`cat conftest.err`
18895 $rm -r conftest*
18896
18897
18898 # Allow CC to be a program name with arguments.
18899 lt_save_CC=$CC
18900 lt_save_LD=$LD
18901 lt_save_GCC=$GCC
18902 GCC=$GXX
18903 lt_save_with_gnu_ld=$with_gnu_ld
18904 lt_save_path_LD=$lt_cv_path_LD
18905 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18906   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18907 else
18908   $as_unset lt_cv_prog_gnu_ld
18909 fi
18910 if test -n "${lt_cv_path_LDCXX+set}"; then
18911   lt_cv_path_LD=$lt_cv_path_LDCXX
18912 else
18913   $as_unset lt_cv_path_LD
18914 fi
18915 test -z "${LDCXX+set}" || LD=$LDCXX
18916 CC=${CXX-"c++"}
18917 compiler=$CC
18918 compiler_CXX=$CC
18919 for cc_temp in $compiler""; do
18920   case $cc_temp in
18921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18923     \-*) ;;
18924     *) break;;
18925   esac
18926 done
18927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18928
18929
18930 # We don't want -fno-exception wen compiling C++ code, so set the
18931 # no_builtin_flag separately
18932 if test "$GXX" = yes; then
18933   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18934 else
18935   lt_prog_compiler_no_builtin_flag_CXX=
18936 fi
18937
18938 if test "$GXX" = yes; then
18939   # Set up default GNU C++ configuration
18940
18941
18942 # Check whether --with-gnu-ld was given.
18943 if test "${with_gnu_ld+set}" = set; then
18944   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18945 else
18946   with_gnu_ld=no
18947 fi
18948
18949 ac_prog=ld
18950 if test "$GCC" = yes; then
18951   # Check if gcc -print-prog-name=ld gives a path.
18952   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18953 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18954   case $host in
18955   *-*-mingw*)
18956     # gcc leaves a trailing carriage return which upsets mingw
18957     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18958   *)
18959     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18960   esac
18961   case $ac_prog in
18962     # Accept absolute paths.
18963     [\\/]* | ?:[\\/]*)
18964       re_direlt='/[^/][^/]*/\.\./'
18965       # Canonicalize the pathname of ld
18966       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18967       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18968         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18969       done
18970       test -z "$LD" && LD="$ac_prog"
18971       ;;
18972   "")
18973     # If it fails, then pretend we aren't using GCC.
18974     ac_prog=ld
18975     ;;
18976   *)
18977     # If it is relative, then search for the first ld in PATH.
18978     with_gnu_ld=unknown
18979     ;;
18980   esac
18981 elif test "$with_gnu_ld" = yes; then
18982   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18983 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18984 else
18985   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18986 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18987 fi
18988 if test "${lt_cv_path_LD+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   if test -z "$LD"; then
18992   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18993   for ac_dir in $PATH; do
18994     IFS="$lt_save_ifs"
18995     test -z "$ac_dir" && ac_dir=.
18996     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18997       lt_cv_path_LD="$ac_dir/$ac_prog"
18998       # Check to see if the program is GNU ld.  I'd rather use --version,
18999       # but apparently some variants of GNU ld only accept -v.
19000       # Break only if it was the GNU/non-GNU ld that we prefer.
19001       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19002       *GNU* | *'with BFD'*)
19003         test "$with_gnu_ld" != no && break
19004         ;;
19005       *)
19006         test "$with_gnu_ld" != yes && break
19007         ;;
19008       esac
19009     fi
19010   done
19011   IFS="$lt_save_ifs"
19012 else
19013   lt_cv_path_LD="$LD" # Let the user override the test with a path.
19014 fi
19015 fi
19016
19017 LD="$lt_cv_path_LD"
19018 if test -n "$LD"; then
19019   { echo "$as_me:$LINENO: result: $LD" >&5
19020 echo "${ECHO_T}$LD" >&6; }
19021 else
19022   { echo "$as_me:$LINENO: result: no" >&5
19023 echo "${ECHO_T}no" >&6; }
19024 fi
19025 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19026 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19027    { (exit 1); exit 1; }; }
19028 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19029 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19030 if test "${lt_cv_prog_gnu_ld+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19034 case `$LD -v 2>&1 </dev/null` in
19035 *GNU* | *'with BFD'*)
19036   lt_cv_prog_gnu_ld=yes
19037   ;;
19038 *)
19039   lt_cv_prog_gnu_ld=no
19040   ;;
19041 esac
19042 fi
19043 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19044 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
19045 with_gnu_ld=$lt_cv_prog_gnu_ld
19046
19047
19048
19049   # Check if GNU C++ uses GNU ld as the underlying linker, since the
19050   # archiving commands below assume that GNU ld is being used.
19051   if test "$with_gnu_ld" = yes; then
19052     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19053     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'
19054
19055     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19056     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19057
19058     # If archive_cmds runs LD, not CC, wlarc should be empty
19059     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19060     #     investigate it a little bit more. (MM)
19061     wlarc='${wl}'
19062
19063     # ancient GNU ld didn't support --whole-archive et. al.
19064     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
19065         grep 'no-whole-archive' > /dev/null; then
19066       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19067     else
19068       whole_archive_flag_spec_CXX=
19069     fi
19070   else
19071     with_gnu_ld=no
19072     wlarc=
19073
19074     # A generic and very simple default shared library creation
19075     # command for GNU C++ for the case where it uses the native
19076     # linker, instead of GNU ld.  If possible, this setting should
19077     # overridden to take advantage of the native linker features on
19078     # the platform it is being used on.
19079     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19080   fi
19081
19082   # Commands to make compiler produce verbose output that lists
19083   # what "hidden" libraries, object files and flags are used when
19084   # linking a shared library.
19085   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19086
19087 else
19088   GXX=no
19089   with_gnu_ld=no
19090   wlarc=
19091 fi
19092
19093 # PORTME: fill in a description of your system's C++ link characteristics
19094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19096 ld_shlibs_CXX=yes
19097 case $host_os in
19098   aix3*)
19099     # FIXME: insert proper C++ library support
19100     ld_shlibs_CXX=no
19101     ;;
19102   aix[4-9]*)
19103     if test "$host_cpu" = ia64; then
19104       # On IA64, the linker does run time linking by default, so we don't
19105       # have to do anything special.
19106       aix_use_runtimelinking=no
19107       exp_sym_flag='-Bexport'
19108       no_entry_flag=""
19109     else
19110       aix_use_runtimelinking=no
19111
19112       # Test if we are trying to use run time linking or normal
19113       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19114       # need to do runtime linking.
19115       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19116         for ld_flag in $LDFLAGS; do
19117           case $ld_flag in
19118           *-brtl*)
19119             aix_use_runtimelinking=yes
19120             break
19121             ;;
19122           esac
19123         done
19124         ;;
19125       esac
19126
19127       exp_sym_flag='-bexport'
19128       no_entry_flag='-bnoentry'
19129     fi
19130
19131     # When large executables or shared objects are built, AIX ld can
19132     # have problems creating the table of contents.  If linking a library
19133     # or program results in "error TOC overflow" add -mminimal-toc to
19134     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19135     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19136
19137     archive_cmds_CXX=''
19138     hardcode_direct_CXX=yes
19139     hardcode_libdir_separator_CXX=':'
19140     link_all_deplibs_CXX=yes
19141
19142     if test "$GXX" = yes; then
19143       case $host_os in aix4.[012]|aix4.[012].*)
19144       # We only want to do this on AIX 4.2 and lower, the check
19145       # below for broken collect2 doesn't work under 4.3+
19146         collect2name=`${CC} -print-prog-name=collect2`
19147         if test -f "$collect2name" && \
19148            strings "$collect2name" | grep resolve_lib_name >/dev/null
19149         then
19150           # We have reworked collect2
19151           :
19152         else
19153           # We have old collect2
19154           hardcode_direct_CXX=unsupported
19155           # It fails to find uninstalled libraries when the uninstalled
19156           # path is not listed in the libpath.  Setting hardcode_minus_L
19157           # to unsupported forces relinking
19158           hardcode_minus_L_CXX=yes
19159           hardcode_libdir_flag_spec_CXX='-L$libdir'
19160           hardcode_libdir_separator_CXX=
19161         fi
19162         ;;
19163       esac
19164       shared_flag='-shared'
19165       if test "$aix_use_runtimelinking" = yes; then
19166         shared_flag="$shared_flag "'${wl}-G'
19167       fi
19168     else
19169       # not using gcc
19170       if test "$host_cpu" = ia64; then
19171         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19172         # chokes on -Wl,-G. The following line is correct:
19173         shared_flag='-G'
19174       else
19175         if test "$aix_use_runtimelinking" = yes; then
19176           shared_flag='${wl}-G'
19177         else
19178           shared_flag='${wl}-bM:SRE'
19179         fi
19180       fi
19181     fi
19182
19183     # It seems that -bexpall does not export symbols beginning with
19184     # underscore (_), so it is better to generate a list of symbols to export.
19185     always_export_symbols_CXX=yes
19186     if test "$aix_use_runtimelinking" = yes; then
19187       # Warning - without using the other runtime loading flags (-brtl),
19188       # -berok will link without error, but may produce a broken library.
19189       allow_undefined_flag_CXX='-berok'
19190       # Determine the default libpath from the value encoded in an empty executable.
19191       cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197
19198 int
19199 main ()
19200 {
19201
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_link") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && {
19220          test -z "$ac_cxx_werror_flag" ||
19221          test ! -s conftest.err
19222        } && test -s conftest$ac_exeext &&
19223        $as_test_x conftest$ac_exeext; then
19224
19225 lt_aix_libpath_sed='
19226     /Import File Strings/,/^$/ {
19227         /^0/ {
19228             s/^0  *\(.*\)$/\1/
19229             p
19230         }
19231     }'
19232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19233 # Check for a 64-bit object if we didn't find anything.
19234 if test -z "$aix_libpath"; then
19235   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19236 fi
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241
19242 fi
19243
19244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19245       conftest$ac_exeext conftest.$ac_ext
19246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19247
19248       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19249
19250       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"
19251      else
19252       if test "$host_cpu" = ia64; then
19253         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19254         allow_undefined_flag_CXX="-z nodefs"
19255         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"
19256       else
19257         # Determine the default libpath from the value encoded in an empty executable.
19258         cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h.  */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h.  */
19264
19265 int
19266 main ()
19267 {
19268
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_link") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } && {
19287          test -z "$ac_cxx_werror_flag" ||
19288          test ! -s conftest.err
19289        } && test -s conftest$ac_exeext &&
19290        $as_test_x conftest$ac_exeext; then
19291
19292 lt_aix_libpath_sed='
19293     /Import File Strings/,/^$/ {
19294         /^0/ {
19295             s/^0  *\(.*\)$/\1/
19296             p
19297         }
19298     }'
19299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19300 # Check for a 64-bit object if we didn't find anything.
19301 if test -z "$aix_libpath"; then
19302   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19303 fi
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308
19309 fi
19310
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312       conftest$ac_exeext conftest.$ac_ext
19313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19314
19315         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19316         # Warning - without using the other run time loading flags,
19317         # -berok will link without error, but may produce a broken library.
19318         no_undefined_flag_CXX=' ${wl}-bernotok'
19319         allow_undefined_flag_CXX=' ${wl}-berok'
19320         # Exported symbols can be pulled into shared objects from archives
19321         whole_archive_flag_spec_CXX='$convenience'
19322         archive_cmds_need_lc_CXX=yes
19323         # This is similar to how AIX traditionally builds its shared libraries.
19324         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'
19325       fi
19326     fi
19327     ;;
19328
19329   beos*)
19330     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19331       allow_undefined_flag_CXX=unsupported
19332       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19333       # support --undefined.  This deserves some investigation.  FIXME
19334       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19335     else
19336       ld_shlibs_CXX=no
19337     fi
19338     ;;
19339
19340   chorus*)
19341     case $cc_basename in
19342       *)
19343         # FIXME: insert proper C++ library support
19344         ld_shlibs_CXX=no
19345         ;;
19346     esac
19347     ;;
19348
19349   cygwin* | mingw* | pw32*)
19350     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19351     # as there is no search path for DLLs.
19352     hardcode_libdir_flag_spec_CXX='-L$libdir'
19353     allow_undefined_flag_CXX=unsupported
19354     always_export_symbols_CXX=no
19355     enable_shared_with_static_runtimes_CXX=yes
19356
19357     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19358       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'
19359       # If the export-symbols file already is a .def file (1st line
19360       # is EXPORTS), use it as is; otherwise, prepend...
19361       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362         cp $export_symbols $output_objdir/$soname.def;
19363       else
19364         echo EXPORTS > $output_objdir/$soname.def;
19365         cat $export_symbols >> $output_objdir/$soname.def;
19366       fi~
19367       $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'
19368     else
19369       ld_shlibs_CXX=no
19370     fi
19371   ;;
19372       darwin* | rhapsody*)
19373       archive_cmds_need_lc_CXX=no
19374       hardcode_direct_CXX=no
19375       hardcode_automatic_CXX=yes
19376       hardcode_shlibpath_var_CXX=unsupported
19377       whole_archive_flag_spec_CXX=''
19378       link_all_deplibs_CXX=yes
19379       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19380       if test "$GXX" = yes ; then
19381       output_verbose_link_cmd='echo'
19382       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}"
19383       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19384       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}"
19385       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}"
19386       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19387         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}"
19388         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}"
19389       fi
19390       else
19391       case $cc_basename in
19392         xlc*)
19393          output_verbose_link_cmd='echo'
19394           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'
19395           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19396           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19397           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}'
19398           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}'
19399           ;;
19400        *)
19401          ld_shlibs_CXX=no
19402           ;;
19403       esac
19404       fi
19405         ;;
19406
19407   dgux*)
19408     case $cc_basename in
19409       ec++*)
19410         # FIXME: insert proper C++ library support
19411         ld_shlibs_CXX=no
19412         ;;
19413       ghcx*)
19414         # Green Hills C++ Compiler
19415         # FIXME: insert proper C++ library support
19416         ld_shlibs_CXX=no
19417         ;;
19418       *)
19419         # FIXME: insert proper C++ library support
19420         ld_shlibs_CXX=no
19421         ;;
19422     esac
19423     ;;
19424   freebsd[12]*)
19425     # C++ shared libraries reported to be fairly broken before switch to ELF
19426     ld_shlibs_CXX=no
19427     ;;
19428   freebsd-elf*)
19429     archive_cmds_need_lc_CXX=no
19430     ;;
19431   freebsd* | dragonfly*)
19432     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19433     # conventions
19434     ld_shlibs_CXX=yes
19435     ;;
19436   gnu*)
19437     ;;
19438   hpux9*)
19439     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19440     hardcode_libdir_separator_CXX=:
19441     export_dynamic_flag_spec_CXX='${wl}-E'
19442     hardcode_direct_CXX=yes
19443     hardcode_minus_L_CXX=yes # Not in the search PATH,
19444                                 # but as the default
19445                                 # location of the library.
19446
19447     case $cc_basename in
19448     CC*)
19449       # FIXME: insert proper C++ library support
19450       ld_shlibs_CXX=no
19451       ;;
19452     aCC*)
19453       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'
19454       # Commands to make compiler produce verbose output that lists
19455       # what "hidden" libraries, object files and flags are used when
19456       # linking a shared library.
19457       #
19458       # There doesn't appear to be a way to prevent this compiler from
19459       # explicitly linking system object files so we need to strip them
19460       # from the output so that they don't get included in the library
19461       # dependencies.
19462       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'
19463       ;;
19464     *)
19465       if test "$GXX" = yes; then
19466         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'
19467       else
19468         # FIXME: insert proper C++ library support
19469         ld_shlibs_CXX=no
19470       fi
19471       ;;
19472     esac
19473     ;;
19474   hpux10*|hpux11*)
19475     if test $with_gnu_ld = no; then
19476       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19477       hardcode_libdir_separator_CXX=:
19478
19479       case $host_cpu in
19480       hppa*64*|ia64*) ;;
19481       *)
19482         export_dynamic_flag_spec_CXX='${wl}-E'
19483         ;;
19484       esac
19485     fi
19486     case $host_cpu in
19487     hppa*64*|ia64*)
19488       hardcode_direct_CXX=no
19489       hardcode_shlibpath_var_CXX=no
19490       ;;
19491     *)
19492       hardcode_direct_CXX=yes
19493       hardcode_minus_L_CXX=yes # Not in the search PATH,
19494                                               # but as the default
19495                                               # location of the library.
19496       ;;
19497     esac
19498
19499     case $cc_basename in
19500       CC*)
19501         # FIXME: insert proper C++ library support
19502         ld_shlibs_CXX=no
19503         ;;
19504       aCC*)
19505         case $host_cpu in
19506         hppa*64*)
19507           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19508           ;;
19509         ia64*)
19510           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19511           ;;
19512         *)
19513           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19514           ;;
19515         esac
19516         # Commands to make compiler produce verbose output that lists
19517         # what "hidden" libraries, object files and flags are used when
19518         # linking a shared library.
19519         #
19520         # There doesn't appear to be a way to prevent this compiler from
19521         # explicitly linking system object files so we need to strip them
19522         # from the output so that they don't get included in the library
19523         # dependencies.
19524         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'
19525         ;;
19526       *)
19527         if test "$GXX" = yes; then
19528           if test $with_gnu_ld = no; then
19529             case $host_cpu in
19530             hppa*64*)
19531               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19532               ;;
19533             ia64*)
19534               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19535               ;;
19536             *)
19537               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'
19538               ;;
19539             esac
19540           fi
19541         else
19542           # FIXME: insert proper C++ library support
19543           ld_shlibs_CXX=no
19544         fi
19545         ;;
19546     esac
19547     ;;
19548   interix[3-9]*)
19549     hardcode_direct_CXX=no
19550     hardcode_shlibpath_var_CXX=no
19551     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19552     export_dynamic_flag_spec_CXX='${wl}-E'
19553     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19554     # Instead, shared libraries are loaded at an image base (0x10000000 by
19555     # default) and relocated if they conflict, which is a slow very memory
19556     # consuming and fragmenting process.  To avoid this, we pick a random,
19557     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19558     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19559     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'
19560     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'
19561     ;;
19562   irix5* | irix6*)
19563     case $cc_basename in
19564       CC*)
19565         # SGI C++
19566         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'
19567
19568         # Archives containing C++ object files must be created using
19569         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19570         # necessary to make sure instantiated templates are included
19571         # in the archive.
19572         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19573         ;;
19574       *)
19575         if test "$GXX" = yes; then
19576           if test "$with_gnu_ld" = no; then
19577             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'
19578           else
19579             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'
19580           fi
19581         fi
19582         link_all_deplibs_CXX=yes
19583         ;;
19584     esac
19585     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19586     hardcode_libdir_separator_CXX=:
19587     ;;
19588   linux* | k*bsd*-gnu)
19589     case $cc_basename in
19590       KCC*)
19591         # Kuck and Associates, Inc. (KAI) C++ Compiler
19592
19593         # KCC will only create a shared library if the output file
19594         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19595         # to its proper name (with version) after linking.
19596         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'
19597         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'
19598         # Commands to make compiler produce verbose output that lists
19599         # what "hidden" libraries, object files and flags are used when
19600         # linking a shared library.
19601         #
19602         # There doesn't appear to be a way to prevent this compiler from
19603         # explicitly linking system object files so we need to strip them
19604         # from the output so that they don't get included in the library
19605         # dependencies.
19606         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'
19607
19608         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19609         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19610
19611         # Archives containing C++ object files must be created using
19612         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19613         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19614         ;;
19615       icpc*)
19616         # Intel C++
19617         with_gnu_ld=yes
19618         # version 8.0 and above of icpc choke on multiply defined symbols
19619         # if we add $predep_objects and $postdep_objects, however 7.1 and
19620         # earlier do not add the objects themselves.
19621         case `$CC -V 2>&1` in
19622         *"Version 7."*)
19623           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19624           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'
19625           ;;
19626         *)  # Version 8.0 or newer
19627           tmp_idyn=
19628           case $host_cpu in
19629             ia64*) tmp_idyn=' -i_dynamic';;
19630           esac
19631           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19632           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'
19633           ;;
19634         esac
19635         archive_cmds_need_lc_CXX=no
19636         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19637         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19638         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19639         ;;
19640       pgCC* | pgcpp*)
19641         # Portland Group C++ compiler
19642         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19643         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'
19644
19645         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19646         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19647         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'
19648         ;;
19649       cxx*)
19650         # Compaq C++
19651         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19652         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'
19653
19654         runpath_var=LD_RUN_PATH
19655         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19656         hardcode_libdir_separator_CXX=:
19657
19658         # Commands to make compiler produce verbose output that lists
19659         # what "hidden" libraries, object files and flags are used when
19660         # linking a shared library.
19661         #
19662         # There doesn't appear to be a way to prevent this compiler from
19663         # explicitly linking system object files so we need to strip them
19664         # from the output so that they don't get included in the library
19665         # dependencies.
19666         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'
19667         ;;
19668       *)
19669         case `$CC -V 2>&1 | sed 5q` in
19670         *Sun\ C*)
19671           # Sun C++ 5.9
19672           no_undefined_flag_CXX=' -zdefs'
19673           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19674           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'
19675           hardcode_libdir_flag_spec_CXX='-R$libdir'
19676           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'
19677
19678           # Not sure whether something based on
19679           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19680           # would be better.
19681           output_verbose_link_cmd='echo'
19682
19683           # Archives containing C++ object files must be created using
19684           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19685           # necessary to make sure instantiated templates are included
19686           # in the archive.
19687           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19688           ;;
19689         esac
19690         ;;
19691     esac
19692     ;;
19693   lynxos*)
19694     # FIXME: insert proper C++ library support
19695     ld_shlibs_CXX=no
19696     ;;
19697   m88k*)
19698     # FIXME: insert proper C++ library support
19699     ld_shlibs_CXX=no
19700     ;;
19701   mvs*)
19702     case $cc_basename in
19703       cxx*)
19704         # FIXME: insert proper C++ library support
19705         ld_shlibs_CXX=no
19706         ;;
19707       *)
19708         # FIXME: insert proper C++ library support
19709         ld_shlibs_CXX=no
19710         ;;
19711     esac
19712     ;;
19713   netbsd* | netbsdelf*-gnu)
19714     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19715       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19716       wlarc=
19717       hardcode_libdir_flag_spec_CXX='-R$libdir'
19718       hardcode_direct_CXX=yes
19719       hardcode_shlibpath_var_CXX=no
19720     fi
19721     # Workaround some broken pre-1.5 toolchains
19722     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19723     ;;
19724   openbsd2*)
19725     # C++ shared libraries are fairly broken
19726     ld_shlibs_CXX=no
19727     ;;
19728   openbsd*)
19729     if test -f /usr/libexec/ld.so; then
19730       hardcode_direct_CXX=yes
19731       hardcode_shlibpath_var_CXX=no
19732       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19733       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19734       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19735         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19736         export_dynamic_flag_spec_CXX='${wl}-E'
19737         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19738       fi
19739       output_verbose_link_cmd='echo'
19740     else
19741       ld_shlibs_CXX=no
19742     fi
19743     ;;
19744   osf3*)
19745     case $cc_basename in
19746       KCC*)
19747         # Kuck and Associates, Inc. (KAI) C++ Compiler
19748
19749         # KCC will only create a shared library if the output file
19750         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19751         # to its proper name (with version) after linking.
19752         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'
19753
19754         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19755         hardcode_libdir_separator_CXX=:
19756
19757         # Archives containing C++ object files must be created using
19758         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19759         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19760
19761         ;;
19762       RCC*)
19763         # Rational C++ 2.4.1
19764         # FIXME: insert proper C++ library support
19765         ld_shlibs_CXX=no
19766         ;;
19767       cxx*)
19768         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19769         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'
19770
19771         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19772         hardcode_libdir_separator_CXX=:
19773
19774         # Commands to make compiler produce verbose output that lists
19775         # what "hidden" libraries, object files and flags are used when
19776         # linking a shared library.
19777         #
19778         # There doesn't appear to be a way to prevent this compiler from
19779         # explicitly linking system object files so we need to strip them
19780         # from the output so that they don't get included in the library
19781         # dependencies.
19782         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'
19783         ;;
19784       *)
19785         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19786           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19787           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'
19788
19789           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19790           hardcode_libdir_separator_CXX=:
19791
19792           # Commands to make compiler produce verbose output that lists
19793           # what "hidden" libraries, object files and flags are used when
19794           # linking a shared library.
19795           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19796
19797         else
19798           # FIXME: insert proper C++ library support
19799           ld_shlibs_CXX=no
19800         fi
19801         ;;
19802     esac
19803     ;;
19804   osf4* | osf5*)
19805     case $cc_basename in
19806       KCC*)
19807         # Kuck and Associates, Inc. (KAI) C++ Compiler
19808
19809         # KCC will only create a shared library if the output file
19810         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19811         # to its proper name (with version) after linking.
19812         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'
19813
19814         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19815         hardcode_libdir_separator_CXX=:
19816
19817         # Archives containing C++ object files must be created using
19818         # the KAI C++ compiler.
19819         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19820         ;;
19821       RCC*)
19822         # Rational C++ 2.4.1
19823         # FIXME: insert proper C++ library support
19824         ld_shlibs_CXX=no
19825         ;;
19826       cxx*)
19827         allow_undefined_flag_CXX=' -expect_unresolved \*'
19828         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'
19829         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19830           echo "-hidden">> $lib.exp~
19831           $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~
19832           $rm $lib.exp'
19833
19834         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19835         hardcode_libdir_separator_CXX=:
19836
19837         # Commands to make compiler produce verbose output that lists
19838         # what "hidden" libraries, object files and flags are used when
19839         # linking a shared library.
19840         #
19841         # There doesn't appear to be a way to prevent this compiler from
19842         # explicitly linking system object files so we need to strip them
19843         # from the output so that they don't get included in the library
19844         # dependencies.
19845         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'
19846         ;;
19847       *)
19848         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19849           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19850          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'
19851
19852           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19853           hardcode_libdir_separator_CXX=:
19854
19855           # Commands to make compiler produce verbose output that lists
19856           # what "hidden" libraries, object files and flags are used when
19857           # linking a shared library.
19858           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19859
19860         else
19861           # FIXME: insert proper C++ library support
19862           ld_shlibs_CXX=no
19863         fi
19864         ;;
19865     esac
19866     ;;
19867   psos*)
19868     # FIXME: insert proper C++ library support
19869     ld_shlibs_CXX=no
19870     ;;
19871   sunos4*)
19872     case $cc_basename in
19873       CC*)
19874         # Sun C++ 4.x
19875         # FIXME: insert proper C++ library support
19876         ld_shlibs_CXX=no
19877         ;;
19878       lcc*)
19879         # Lucid
19880         # FIXME: insert proper C++ library support
19881         ld_shlibs_CXX=no
19882         ;;
19883       *)
19884         # FIXME: insert proper C++ library support
19885         ld_shlibs_CXX=no
19886         ;;
19887     esac
19888     ;;
19889   solaris*)
19890     case $cc_basename in
19891       CC*)
19892         # Sun C++ 4.2, 5.x and Centerline C++
19893         archive_cmds_need_lc_CXX=yes
19894         no_undefined_flag_CXX=' -zdefs'
19895         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19896         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19897         $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'
19898
19899         hardcode_libdir_flag_spec_CXX='-R$libdir'
19900         hardcode_shlibpath_var_CXX=no
19901         case $host_os in
19902           solaris2.[0-5] | solaris2.[0-5].*) ;;
19903           *)
19904             # The compiler driver will combine and reorder linker options,
19905             # but understands `-z linker_flag'.
19906             # Supported since Solaris 2.6 (maybe 2.5.1?)
19907             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19908             ;;
19909         esac
19910         link_all_deplibs_CXX=yes
19911
19912         output_verbose_link_cmd='echo'
19913
19914         # Archives containing C++ object files must be created using
19915         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19916         # necessary to make sure instantiated templates are included
19917         # in the archive.
19918         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19919         ;;
19920       gcx*)
19921         # Green Hills C++ Compiler
19922         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19923
19924         # The C++ compiler must be used to create the archive.
19925         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19926         ;;
19927       *)
19928         # GNU C++ compiler with Solaris linker
19929         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19930           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19931           if $CC --version | grep -v '^2\.7' > /dev/null; then
19932             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19933             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19934                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19935
19936             # Commands to make compiler produce verbose output that lists
19937             # what "hidden" libraries, object files and flags are used when
19938             # linking a shared library.
19939             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19940           else
19941             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19942             # platform.
19943             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19944             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19945                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19946
19947             # Commands to make compiler produce verbose output that lists
19948             # what "hidden" libraries, object files and flags are used when
19949             # linking a shared library.
19950             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19951           fi
19952
19953           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19954           case $host_os in
19955           solaris2.[0-5] | solaris2.[0-5].*) ;;
19956           *)
19957             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19958             ;;
19959           esac
19960         fi
19961         ;;
19962     esac
19963     ;;
19964   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19965     no_undefined_flag_CXX='${wl}-z,text'
19966     archive_cmds_need_lc_CXX=no
19967     hardcode_shlibpath_var_CXX=no
19968     runpath_var='LD_RUN_PATH'
19969
19970     case $cc_basename in
19971       CC*)
19972         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19973         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19974         ;;
19975       *)
19976         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19977         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19978         ;;
19979     esac
19980     ;;
19981   sysv5* | sco3.2v5* | sco5v6*)
19982     # Note: We can NOT use -z defs as we might desire, because we do not
19983     # link with -lc, and that would cause any symbols used from libc to
19984     # always be unresolved, which means just about no library would
19985     # ever link correctly.  If we're not using GNU ld we use -z text
19986     # though, which does catch some bad symbols but isn't as heavy-handed
19987     # as -z defs.
19988     # For security reasons, it is highly recommended that you always
19989     # use absolute paths for naming shared libraries, and exclude the
19990     # DT_RUNPATH tag from executables and libraries.  But doing so
19991     # requires that you compile everything twice, which is a pain.
19992     # So that behaviour is only enabled if SCOABSPATH is set to a
19993     # non-empty value in the environment.  Most likely only useful for
19994     # creating official distributions of packages.
19995     # This is a hack until libtool officially supports absolute path
19996     # names for shared libraries.
19997     no_undefined_flag_CXX='${wl}-z,text'
19998     allow_undefined_flag_CXX='${wl}-z,nodefs'
19999     archive_cmds_need_lc_CXX=no
20000     hardcode_shlibpath_var_CXX=no
20001     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20002     hardcode_libdir_separator_CXX=':'
20003     link_all_deplibs_CXX=yes
20004     export_dynamic_flag_spec_CXX='${wl}-Bexport'
20005     runpath_var='LD_RUN_PATH'
20006
20007     case $cc_basename in
20008       CC*)
20009         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20010         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20011         ;;
20012       *)
20013         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20014         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20015         ;;
20016     esac
20017     ;;
20018   tandem*)
20019     case $cc_basename in
20020       NCC*)
20021         # NonStop-UX NCC 3.20
20022         # FIXME: insert proper C++ library support
20023         ld_shlibs_CXX=no
20024         ;;
20025       *)
20026         # FIXME: insert proper C++ library support
20027         ld_shlibs_CXX=no
20028         ;;
20029     esac
20030     ;;
20031   vxworks*)
20032     # FIXME: insert proper C++ library support
20033     ld_shlibs_CXX=no
20034     ;;
20035   *)
20036     # FIXME: insert proper C++ library support
20037     ld_shlibs_CXX=no
20038     ;;
20039 esac
20040 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20041 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20042 test "$ld_shlibs_CXX" = no && can_build_shared=no
20043
20044 GCC_CXX="$GXX"
20045 LD_CXX="$LD"
20046
20047 cat > conftest.$ac_ext <<EOF
20048 class Foo
20049 {
20050 public:
20051   Foo (void) { a = 0; }
20052 private:
20053   int a;
20054 };
20055 EOF
20056
20057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058   (eval $ac_compile) 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; then
20062   # Parse the compiler output and extract the necessary
20063   # objects, libraries and library flags.
20064
20065   # Sentinel used to keep track of whether or not we are before
20066   # the conftest object file.
20067   pre_test_object_deps_done=no
20068
20069   # The `*' in the case matches for architectures that use `case' in
20070   # $output_verbose_cmd can trigger glob expansion during the loop
20071   # eval without this substitution.
20072   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20073
20074   for p in `eval $output_verbose_link_cmd`; do
20075     case $p in
20076
20077     -L* | -R* | -l*)
20078        # Some compilers place space between "-{L,R}" and the path.
20079        # Remove the space.
20080        if test $p = "-L" \
20081           || test $p = "-R"; then
20082          prev=$p
20083          continue
20084        else
20085          prev=
20086        fi
20087
20088        if test "$pre_test_object_deps_done" = no; then
20089          case $p in
20090          -L* | -R*)
20091            # Internal compiler library paths should come after those
20092            # provided the user.  The postdeps already come after the
20093            # user supplied libs so there is no need to process them.
20094            if test -z "$compiler_lib_search_path_CXX"; then
20095              compiler_lib_search_path_CXX="${prev}${p}"
20096            else
20097              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20098            fi
20099            ;;
20100          # The "-l" case would never come before the object being
20101          # linked, so don't bother handling this case.
20102          esac
20103        else
20104          if test -z "$postdeps_CXX"; then
20105            postdeps_CXX="${prev}${p}"
20106          else
20107            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20108          fi
20109        fi
20110        ;;
20111
20112     *.$objext)
20113        # This assumes that the test object file only shows up
20114        # once in the compiler output.
20115        if test "$p" = "conftest.$objext"; then
20116          pre_test_object_deps_done=yes
20117          continue
20118        fi
20119
20120        if test "$pre_test_object_deps_done" = no; then
20121          if test -z "$predep_objects_CXX"; then
20122            predep_objects_CXX="$p"
20123          else
20124            predep_objects_CXX="$predep_objects_CXX $p"
20125          fi
20126        else
20127          if test -z "$postdep_objects_CXX"; then
20128            postdep_objects_CXX="$p"
20129          else
20130            postdep_objects_CXX="$postdep_objects_CXX $p"
20131          fi
20132        fi
20133        ;;
20134
20135     *) ;; # Ignore the rest.
20136
20137     esac
20138   done
20139
20140   # Clean up.
20141   rm -f a.out a.exe
20142 else
20143   echo "libtool.m4: error: problem compiling CXX test program"
20144 fi
20145
20146 $rm -f confest.$objext
20147
20148 compiler_lib_search_dirs_CXX=
20149 if test -n "$compiler_lib_search_path_CXX"; then
20150   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20151 fi
20152
20153 # PORTME: override above test on systems where it is broken
20154 case $host_os in
20155 interix[3-9]*)
20156   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20157   # hack all around it, let's just trust "g++" to DTRT.
20158   predep_objects_CXX=
20159   postdep_objects_CXX=
20160   postdeps_CXX=
20161   ;;
20162
20163 linux*)
20164   case `$CC -V 2>&1 | sed 5q` in
20165   *Sun\ C*)
20166     # Sun C++ 5.9
20167     #
20168     # The more standards-conforming stlport4 library is
20169     # incompatible with the Cstd library. Avoid specifying
20170     # it if it's in CXXFLAGS. Ignore libCrun as
20171     # -library=stlport4 depends on it.
20172     case " $CXX $CXXFLAGS " in
20173     *" -library=stlport4 "*)
20174       solaris_use_stlport4=yes
20175       ;;
20176     esac
20177     if test "$solaris_use_stlport4" != yes; then
20178       postdeps_CXX='-library=Cstd -library=Crun'
20179     fi
20180     ;;
20181   esac
20182   ;;
20183
20184 solaris*)
20185   case $cc_basename in
20186   CC*)
20187     # The more standards-conforming stlport4 library is
20188     # incompatible with the Cstd library. Avoid specifying
20189     # it if it's in CXXFLAGS. Ignore libCrun as
20190     # -library=stlport4 depends on it.
20191     case " $CXX $CXXFLAGS " in
20192     *" -library=stlport4 "*)
20193       solaris_use_stlport4=yes
20194       ;;
20195     esac
20196
20197     # Adding this requires a known-good setup of shared libraries for
20198     # Sun compiler versions before 5.6, else PIC objects from an old
20199     # archive will be linked into the output, leading to subtle bugs.
20200     if test "$solaris_use_stlport4" != yes; then
20201       postdeps_CXX='-library=Cstd -library=Crun'
20202     fi
20203     ;;
20204   esac
20205   ;;
20206 esac
20207
20208 case " $postdeps_CXX " in
20209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20210 esac
20211
20212 lt_prog_compiler_wl_CXX=
20213 lt_prog_compiler_pic_CXX=
20214 lt_prog_compiler_static_CXX=
20215
20216 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20218
20219   # C++ specific cases for pic, static, wl, etc.
20220   if test "$GXX" = yes; then
20221     lt_prog_compiler_wl_CXX='-Wl,'
20222     lt_prog_compiler_static_CXX='-static'
20223
20224     case $host_os in
20225     aix*)
20226       # All AIX code is PIC.
20227       if test "$host_cpu" = ia64; then
20228         # AIX 5 now supports IA64 processor
20229         lt_prog_compiler_static_CXX='-Bstatic'
20230       fi
20231       ;;
20232     amigaos*)
20233       # FIXME: we need at least 68020 code to build shared libraries, but
20234       # adding the `-m68020' flag to GCC prevents building anything better,
20235       # like `-m68040'.
20236       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20237       ;;
20238     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20239       # PIC is the default for these OSes.
20240       ;;
20241     mingw* | cygwin* | os2* | pw32*)
20242       # This hack is so that the source file can tell whether it is being
20243       # built for inclusion in a dll (and should export symbols for example).
20244       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20245       # (--disable-auto-import) libraries
20246       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20247       ;;
20248     darwin* | rhapsody*)
20249       # PIC is the default on this platform
20250       # Common symbols not allowed in MH_DYLIB files
20251       lt_prog_compiler_pic_CXX='-fno-common'
20252       ;;
20253     *djgpp*)
20254       # DJGPP does not support shared libraries at all
20255       lt_prog_compiler_pic_CXX=
20256       ;;
20257     interix[3-9]*)
20258       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20259       # Instead, we relocate shared libraries at runtime.
20260       ;;
20261     sysv4*MP*)
20262       if test -d /usr/nec; then
20263         lt_prog_compiler_pic_CXX=-Kconform_pic
20264       fi
20265       ;;
20266     hpux*)
20267       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20268       # not for PA HP-UX.
20269       case $host_cpu in
20270       hppa*64*|ia64*)
20271         ;;
20272       *)
20273         lt_prog_compiler_pic_CXX='-fPIC'
20274         ;;
20275       esac
20276       ;;
20277     *)
20278       lt_prog_compiler_pic_CXX='-fPIC'
20279       ;;
20280     esac
20281   else
20282     case $host_os in
20283       aix[4-9]*)
20284         # All AIX code is PIC.
20285         if test "$host_cpu" = ia64; then
20286           # AIX 5 now supports IA64 processor
20287           lt_prog_compiler_static_CXX='-Bstatic'
20288         else
20289           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20290         fi
20291         ;;
20292       chorus*)
20293         case $cc_basename in
20294         cxch68*)
20295           # Green Hills C++ Compiler
20296           # _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"
20297           ;;
20298         esac
20299         ;;
20300        darwin*)
20301          # PIC is the default on this platform
20302          # Common symbols not allowed in MH_DYLIB files
20303          case $cc_basename in
20304            xlc*)
20305            lt_prog_compiler_pic_CXX='-qnocommon'
20306            lt_prog_compiler_wl_CXX='-Wl,'
20307            ;;
20308          esac
20309        ;;
20310       dgux*)
20311         case $cc_basename in
20312           ec++*)
20313             lt_prog_compiler_pic_CXX='-KPIC'
20314             ;;
20315           ghcx*)
20316             # Green Hills C++ Compiler
20317             lt_prog_compiler_pic_CXX='-pic'
20318             ;;
20319           *)
20320             ;;
20321         esac
20322         ;;
20323       freebsd* | dragonfly*)
20324         # FreeBSD uses GNU C++
20325         ;;
20326       hpux9* | hpux10* | hpux11*)
20327         case $cc_basename in
20328           CC*)
20329             lt_prog_compiler_wl_CXX='-Wl,'
20330             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20331             if test "$host_cpu" != ia64; then
20332               lt_prog_compiler_pic_CXX='+Z'
20333             fi
20334             ;;
20335           aCC*)
20336             lt_prog_compiler_wl_CXX='-Wl,'
20337             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20338             case $host_cpu in
20339             hppa*64*|ia64*)
20340               # +Z the default
20341               ;;
20342             *)
20343               lt_prog_compiler_pic_CXX='+Z'
20344               ;;
20345             esac
20346             ;;
20347           *)
20348             ;;
20349         esac
20350         ;;
20351       interix*)
20352         # This is c89, which is MS Visual C++ (no shared libs)
20353         # Anyone wants to do a port?
20354         ;;
20355       irix5* | irix6* | nonstopux*)
20356         case $cc_basename in
20357           CC*)
20358             lt_prog_compiler_wl_CXX='-Wl,'
20359             lt_prog_compiler_static_CXX='-non_shared'
20360             # CC pic flag -KPIC is the default.
20361             ;;
20362           *)
20363             ;;
20364         esac
20365         ;;
20366       linux* | k*bsd*-gnu)
20367         case $cc_basename in
20368           KCC*)
20369             # KAI C++ Compiler
20370             lt_prog_compiler_wl_CXX='--backend -Wl,'
20371             lt_prog_compiler_pic_CXX='-fPIC'
20372             ;;
20373           icpc* | ecpc*)
20374             # Intel C++
20375             lt_prog_compiler_wl_CXX='-Wl,'
20376             lt_prog_compiler_pic_CXX='-KPIC'
20377             lt_prog_compiler_static_CXX='-static'
20378             ;;
20379           pgCC* | pgcpp*)
20380             # Portland Group C++ compiler.
20381             lt_prog_compiler_wl_CXX='-Wl,'
20382             lt_prog_compiler_pic_CXX='-fpic'
20383             lt_prog_compiler_static_CXX='-Bstatic'
20384             ;;
20385           cxx*)
20386             # Compaq C++
20387             # Make sure the PIC flag is empty.  It appears that all Alpha
20388             # Linux and Compaq Tru64 Unix objects are PIC.
20389             lt_prog_compiler_pic_CXX=
20390             lt_prog_compiler_static_CXX='-non_shared'
20391             ;;
20392           *)
20393             case `$CC -V 2>&1 | sed 5q` in
20394             *Sun\ C*)
20395               # Sun C++ 5.9
20396               lt_prog_compiler_pic_CXX='-KPIC'
20397               lt_prog_compiler_static_CXX='-Bstatic'
20398               lt_prog_compiler_wl_CXX='-Qoption ld '
20399               ;;
20400             esac
20401             ;;
20402         esac
20403         ;;
20404       lynxos*)
20405         ;;
20406       m88k*)
20407         ;;
20408       mvs*)
20409         case $cc_basename in
20410           cxx*)
20411             lt_prog_compiler_pic_CXX='-W c,exportall'
20412             ;;
20413           *)
20414             ;;
20415         esac
20416         ;;
20417       netbsd* | netbsdelf*-gnu)
20418         ;;
20419       osf3* | osf4* | osf5*)
20420         case $cc_basename in
20421           KCC*)
20422             lt_prog_compiler_wl_CXX='--backend -Wl,'
20423             ;;
20424           RCC*)
20425             # Rational C++ 2.4.1
20426             lt_prog_compiler_pic_CXX='-pic'
20427             ;;
20428           cxx*)
20429             # Digital/Compaq C++
20430             lt_prog_compiler_wl_CXX='-Wl,'
20431             # Make sure the PIC flag is empty.  It appears that all Alpha
20432             # Linux and Compaq Tru64 Unix objects are PIC.
20433             lt_prog_compiler_pic_CXX=
20434             lt_prog_compiler_static_CXX='-non_shared'
20435             ;;
20436           *)
20437             ;;
20438         esac
20439         ;;
20440       psos*)
20441         ;;
20442       solaris*)
20443         case $cc_basename in
20444           CC*)
20445             # Sun C++ 4.2, 5.x and Centerline C++
20446             lt_prog_compiler_pic_CXX='-KPIC'
20447             lt_prog_compiler_static_CXX='-Bstatic'
20448             lt_prog_compiler_wl_CXX='-Qoption ld '
20449             ;;
20450           gcx*)
20451             # Green Hills C++ Compiler
20452             lt_prog_compiler_pic_CXX='-PIC'
20453             ;;
20454           *)
20455             ;;
20456         esac
20457         ;;
20458       sunos4*)
20459         case $cc_basename in
20460           CC*)
20461             # Sun C++ 4.x
20462             lt_prog_compiler_pic_CXX='-pic'
20463             lt_prog_compiler_static_CXX='-Bstatic'
20464             ;;
20465           lcc*)
20466             # Lucid
20467             lt_prog_compiler_pic_CXX='-pic'
20468             ;;
20469           *)
20470             ;;
20471         esac
20472         ;;
20473       tandem*)
20474         case $cc_basename in
20475           NCC*)
20476             # NonStop-UX NCC 3.20
20477             lt_prog_compiler_pic_CXX='-KPIC'
20478             ;;
20479           *)
20480             ;;
20481         esac
20482         ;;
20483       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20484         case $cc_basename in
20485           CC*)
20486             lt_prog_compiler_wl_CXX='-Wl,'
20487             lt_prog_compiler_pic_CXX='-KPIC'
20488             lt_prog_compiler_static_CXX='-Bstatic'
20489             ;;
20490         esac
20491         ;;
20492       vxworks*)
20493         ;;
20494       *)
20495         lt_prog_compiler_can_build_shared_CXX=no
20496         ;;
20497     esac
20498   fi
20499
20500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20501 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20502
20503 #
20504 # Check to make sure the PIC flag actually works.
20505 #
20506 if test -n "$lt_prog_compiler_pic_CXX"; then
20507
20508 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20509 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20510 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   lt_cv_prog_compiler_pic_works_CXX=no
20514   ac_outfile=conftest.$ac_objext
20515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20516    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20517    # Insert the option either (1) after the last *FLAGS variable, or
20518    # (2) before a word containing "conftest.", or (3) at the end.
20519    # Note that $ac_compile itself does not contain backslashes and begins
20520    # with a dollar sign (not a hyphen), so the echo should work correctly.
20521    # The option is referenced via a variable to avoid confusing sed.
20522    lt_compile=`echo "$ac_compile" | $SED \
20523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20525    -e 's:$: $lt_compiler_flag:'`
20526    (eval echo "\"\$as_me:20526: $lt_compile\"" >&5)
20527    (eval "$lt_compile" 2>conftest.err)
20528    ac_status=$?
20529    cat conftest.err >&5
20530    echo "$as_me:20530: \$? = $ac_status" >&5
20531    if (exit $ac_status) && test -s "$ac_outfile"; then
20532      # The compiler can only warn and ignore the option if not recognized
20533      # So say no if there are warnings other than the usual output.
20534      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20537        lt_cv_prog_compiler_pic_works_CXX=yes
20538      fi
20539    fi
20540    $rm conftest*
20541
20542 fi
20543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20544 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20545
20546 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20547     case $lt_prog_compiler_pic_CXX in
20548      "" | " "*) ;;
20549      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20550      esac
20551 else
20552     lt_prog_compiler_pic_CXX=
20553      lt_prog_compiler_can_build_shared_CXX=no
20554 fi
20555
20556 fi
20557 case $host_os in
20558   # For platforms which do not support PIC, -DPIC is meaningless:
20559   *djgpp*)
20560     lt_prog_compiler_pic_CXX=
20561     ;;
20562   *)
20563     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20564     ;;
20565 esac
20566
20567 #
20568 # Check to make sure the static flag actually works.
20569 #
20570 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20571 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20572 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20573 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   lt_cv_prog_compiler_static_works_CXX=no
20577    save_LDFLAGS="$LDFLAGS"
20578    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20579    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20580    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20581      # The linker can only warn and ignore the option if not recognized
20582      # So say no if there are warnings
20583      if test -s conftest.err; then
20584        # Append any errors to the config.log.
20585        cat conftest.err 1>&5
20586        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20587        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20588        if diff conftest.exp conftest.er2 >/dev/null; then
20589          lt_cv_prog_compiler_static_works_CXX=yes
20590        fi
20591      else
20592        lt_cv_prog_compiler_static_works_CXX=yes
20593      fi
20594    fi
20595    $rm -r conftest*
20596    LDFLAGS="$save_LDFLAGS"
20597
20598 fi
20599 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20600 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
20601
20602 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20603     :
20604 else
20605     lt_prog_compiler_static_CXX=
20606 fi
20607
20608
20609 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20611 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   lt_cv_prog_compiler_c_o_CXX=no
20615    $rm -r conftest 2>/dev/null
20616    mkdir conftest
20617    cd conftest
20618    mkdir out
20619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20620
20621    lt_compiler_flag="-o out/conftest2.$ac_objext"
20622    # Insert the option either (1) after the last *FLAGS variable, or
20623    # (2) before a word containing "conftest.", or (3) at the end.
20624    # Note that $ac_compile itself does not contain backslashes and begins
20625    # with a dollar sign (not a hyphen), so the echo should work correctly.
20626    lt_compile=`echo "$ac_compile" | $SED \
20627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20629    -e 's:$: $lt_compiler_flag:'`
20630    (eval echo "\"\$as_me:20630: $lt_compile\"" >&5)
20631    (eval "$lt_compile" 2>out/conftest.err)
20632    ac_status=$?
20633    cat out/conftest.err >&5
20634    echo "$as_me:20634: \$? = $ac_status" >&5
20635    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20636    then
20637      # The compiler can only warn and ignore the option if not recognized
20638      # So say no if there are warnings
20639      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20640      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20641      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20642        lt_cv_prog_compiler_c_o_CXX=yes
20643      fi
20644    fi
20645    chmod u+w . 2>&5
20646    $rm conftest*
20647    # SGI C++ compiler will create directory out/ii_files/ for
20648    # template instantiation
20649    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20650    $rm out/* && rmdir out
20651    cd ..
20652    rmdir conftest
20653    $rm conftest*
20654
20655 fi
20656 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20657 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20658
20659
20660 hard_links="nottested"
20661 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20662   # do not overwrite the value of need_locks provided by the user
20663   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20664 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20665   hard_links=yes
20666   $rm conftest*
20667   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20668   touch conftest.a
20669   ln conftest.a conftest.b 2>&5 || hard_links=no
20670   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20671   { echo "$as_me:$LINENO: result: $hard_links" >&5
20672 echo "${ECHO_T}$hard_links" >&6; }
20673   if test "$hard_links" = no; then
20674     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20675 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20676     need_locks=warn
20677   fi
20678 else
20679   need_locks=no
20680 fi
20681
20682 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20683 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20684
20685   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20686   case $host_os in
20687   aix[4-9]*)
20688     # If we're using GNU nm, then we don't want the "-C" option.
20689     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20690     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20691       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'
20692     else
20693       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'
20694     fi
20695     ;;
20696   pw32*)
20697     export_symbols_cmds_CXX="$ltdll_cmds"
20698   ;;
20699   cygwin* | mingw*)
20700     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'
20701   ;;
20702   linux* | k*bsd*-gnu)
20703     link_all_deplibs_CXX=no
20704   ;;
20705   *)
20706     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20707   ;;
20708   esac
20709   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20710
20711 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20712 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20713 test "$ld_shlibs_CXX" = no && can_build_shared=no
20714
20715 #
20716 # Do we need to explicitly link libc?
20717 #
20718 case "x$archive_cmds_need_lc_CXX" in
20719 x|xyes)
20720   # Assume -lc should be added
20721   archive_cmds_need_lc_CXX=yes
20722
20723   if test "$enable_shared" = yes && test "$GCC" = yes; then
20724     case $archive_cmds_CXX in
20725     *'~'*)
20726       # FIXME: we may have to deal with multi-command sequences.
20727       ;;
20728     '$CC '*)
20729       # Test whether the compiler implicitly links with -lc since on some
20730       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20731       # to ld, don't add -lc before -lgcc.
20732       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20733 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20734       $rm conftest*
20735       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20736
20737       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20738   (eval $ac_compile) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } 2>conftest.err; then
20742         soname=conftest
20743         lib=conftest
20744         libobjs=conftest.$ac_objext
20745         deplibs=
20746         wl=$lt_prog_compiler_wl_CXX
20747         pic_flag=$lt_prog_compiler_pic_CXX
20748         compiler_flags=-v
20749         linker_flags=-v
20750         verstring=
20751         output_objdir=.
20752         libname=conftest
20753         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20754         allow_undefined_flag_CXX=
20755         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20756   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }
20760         then
20761           archive_cmds_need_lc_CXX=no
20762         else
20763           archive_cmds_need_lc_CXX=yes
20764         fi
20765         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20766       else
20767         cat conftest.err 1>&5
20768       fi
20769       $rm conftest*
20770       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20771 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20772       ;;
20773     esac
20774   fi
20775   ;;
20776 esac
20777
20778 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20780 library_names_spec=
20781 libname_spec='lib$name'
20782 soname_spec=
20783 shrext_cmds=".so"
20784 postinstall_cmds=
20785 postuninstall_cmds=
20786 finish_cmds=
20787 finish_eval=
20788 shlibpath_var=
20789 shlibpath_overrides_runpath=unknown
20790 version_type=none
20791 dynamic_linker="$host_os ld.so"
20792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20793
20794 need_lib_prefix=unknown
20795 hardcode_into_libs=no
20796
20797 # when you set need_version to no, make sure it does not cause -set_version
20798 # flags to be left without arguments
20799 need_version=unknown
20800
20801 case $host_os in
20802 aix3*)
20803   version_type=linux
20804   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20805   shlibpath_var=LIBPATH
20806
20807   # AIX 3 has no versioning support, so we append a major version to the name.
20808   soname_spec='${libname}${release}${shared_ext}$major'
20809   ;;
20810
20811 aix[4-9]*)
20812   version_type=linux
20813   need_lib_prefix=no
20814   need_version=no
20815   hardcode_into_libs=yes
20816   if test "$host_cpu" = ia64; then
20817     # AIX 5 supports IA64
20818     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20819     shlibpath_var=LD_LIBRARY_PATH
20820   else
20821     # With GCC up to 2.95.x, collect2 would create an import file
20822     # for dependence libraries.  The import file would start with
20823     # the line `#! .'.  This would cause the generated library to
20824     # depend on `.', always an invalid library.  This was fixed in
20825     # development snapshots of GCC prior to 3.0.
20826     case $host_os in
20827       aix4 | aix4.[01] | aix4.[01].*)
20828       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20829            echo ' yes '
20830            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20831         :
20832       else
20833         can_build_shared=no
20834       fi
20835       ;;
20836     esac
20837     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20838     # soname into executable. Probably we can add versioning support to
20839     # collect2, so additional links can be useful in future.
20840     if test "$aix_use_runtimelinking" = yes; then
20841       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20842       # instead of lib<name>.a to let people know that these are not
20843       # typical AIX shared libraries.
20844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845     else
20846       # We preserve .a as extension for shared libraries through AIX4.2
20847       # and later when we are not doing run time linking.
20848       library_names_spec='${libname}${release}.a $libname.a'
20849       soname_spec='${libname}${release}${shared_ext}$major'
20850     fi
20851     shlibpath_var=LIBPATH
20852   fi
20853   ;;
20854
20855 amigaos*)
20856   library_names_spec='$libname.ixlibrary $libname.a'
20857   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20858   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'
20859   ;;
20860
20861 beos*)
20862   library_names_spec='${libname}${shared_ext}'
20863   dynamic_linker="$host_os ld.so"
20864   shlibpath_var=LIBRARY_PATH
20865   ;;
20866
20867 bsdi[45]*)
20868   version_type=linux
20869   need_version=no
20870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871   soname_spec='${libname}${release}${shared_ext}$major'
20872   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20873   shlibpath_var=LD_LIBRARY_PATH
20874   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20875   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20876   # the default ld.so.conf also contains /usr/contrib/lib and
20877   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20878   # libtool to hard-code these into programs
20879   ;;
20880
20881 cygwin* | mingw* | pw32*)
20882   version_type=windows
20883   shrext_cmds=".dll"
20884   need_version=no
20885   need_lib_prefix=no
20886
20887   case $GCC,$host_os in
20888   yes,cygwin* | yes,mingw* | yes,pw32*)
20889     library_names_spec='$libname.dll.a'
20890     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20891     postinstall_cmds='base_file=`basename \${file}`~
20892       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20893       dldir=$destdir/`dirname \$dlpath`~
20894       test -d \$dldir || mkdir -p \$dldir~
20895       $install_prog $dir/$dlname \$dldir/$dlname~
20896       chmod a+x \$dldir/$dlname'
20897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20898       dlpath=$dir/\$dldll~
20899        $rm \$dlpath'
20900     shlibpath_overrides_runpath=yes
20901
20902     case $host_os in
20903     cygwin*)
20904       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20905       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20906       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20907       ;;
20908     mingw*)
20909       # MinGW DLLs use traditional 'lib' prefix
20910       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20911       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20912       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20913         # It is most probably a Windows format PATH printed by
20914         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20915         # path with ; separators, and with drive letters. We can handle the
20916         # drive letters (cygwin fileutils understands them), so leave them,
20917         # especially as we might pass files found there to a mingw objdump,
20918         # which wouldn't understand a cygwinified path. Ahh.
20919         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20920       else
20921         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20922       fi
20923       ;;
20924     pw32*)
20925       # pw32 DLLs use 'pw' prefix rather than 'lib'
20926       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20927       ;;
20928     esac
20929     ;;
20930
20931   *)
20932     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20933     ;;
20934   esac
20935   dynamic_linker='Win32 ld.exe'
20936   # FIXME: first we should search . and the directory the executable is in
20937   shlibpath_var=PATH
20938   ;;
20939
20940 darwin* | rhapsody*)
20941   dynamic_linker="$host_os dyld"
20942   version_type=darwin
20943   need_lib_prefix=no
20944   need_version=no
20945   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20946   soname_spec='${libname}${release}${major}$shared_ext'
20947   shlibpath_overrides_runpath=yes
20948   shlibpath_var=DYLD_LIBRARY_PATH
20949   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20950
20951   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20952   ;;
20953
20954 dgux*)
20955   version_type=linux
20956   need_lib_prefix=no
20957   need_version=no
20958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20959   soname_spec='${libname}${release}${shared_ext}$major'
20960   shlibpath_var=LD_LIBRARY_PATH
20961   ;;
20962
20963 freebsd1*)
20964   dynamic_linker=no
20965   ;;
20966
20967 freebsd* | dragonfly*)
20968   # DragonFly does not have aout.  When/if they implement a new
20969   # versioning mechanism, adjust this.
20970   if test -x /usr/bin/objformat; then
20971     objformat=`/usr/bin/objformat`
20972   else
20973     case $host_os in
20974     freebsd[123]*) objformat=aout ;;
20975     *) objformat=elf ;;
20976     esac
20977   fi
20978   version_type=freebsd-$objformat
20979   case $version_type in
20980     freebsd-elf*)
20981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20982       need_version=no
20983       need_lib_prefix=no
20984       ;;
20985     freebsd-*)
20986       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20987       need_version=yes
20988       ;;
20989   esac
20990   shlibpath_var=LD_LIBRARY_PATH
20991   case $host_os in
20992   freebsd2*)
20993     shlibpath_overrides_runpath=yes
20994     ;;
20995   freebsd3.[01]* | freebsdelf3.[01]*)
20996     shlibpath_overrides_runpath=yes
20997     hardcode_into_libs=yes
20998     ;;
20999   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21000   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21001     shlibpath_overrides_runpath=no
21002     hardcode_into_libs=yes
21003     ;;
21004   *) # from 4.6 on, and DragonFly
21005     shlibpath_overrides_runpath=yes
21006     hardcode_into_libs=yes
21007     ;;
21008   esac
21009   ;;
21010
21011 gnu*)
21012   version_type=linux
21013   need_lib_prefix=no
21014   need_version=no
21015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21016   soname_spec='${libname}${release}${shared_ext}$major'
21017   shlibpath_var=LD_LIBRARY_PATH
21018   hardcode_into_libs=yes
21019   ;;
21020
21021 hpux9* | hpux10* | hpux11*)
21022   # Give a soname corresponding to the major version so that dld.sl refuses to
21023   # link against other versions.
21024   version_type=sunos
21025   need_lib_prefix=no
21026   need_version=no
21027   case $host_cpu in
21028   ia64*)
21029     shrext_cmds='.so'
21030     hardcode_into_libs=yes
21031     dynamic_linker="$host_os dld.so"
21032     shlibpath_var=LD_LIBRARY_PATH
21033     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21035     soname_spec='${libname}${release}${shared_ext}$major'
21036     if test "X$HPUX_IA64_MODE" = X32; then
21037       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21038     else
21039       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21040     fi
21041     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21042     ;;
21043    hppa*64*)
21044      shrext_cmds='.sl'
21045      hardcode_into_libs=yes
21046      dynamic_linker="$host_os dld.sl"
21047      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21048      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21049      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050      soname_spec='${libname}${release}${shared_ext}$major'
21051      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21052      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21053      ;;
21054    *)
21055     shrext_cmds='.sl'
21056     dynamic_linker="$host_os dld.sl"
21057     shlibpath_var=SHLIB_PATH
21058     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21060     soname_spec='${libname}${release}${shared_ext}$major'
21061     ;;
21062   esac
21063   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21064   postinstall_cmds='chmod 555 $lib'
21065   ;;
21066
21067 interix[3-9]*)
21068   version_type=linux
21069   need_lib_prefix=no
21070   need_version=no
21071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21072   soname_spec='${libname}${release}${shared_ext}$major'
21073   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21074   shlibpath_var=LD_LIBRARY_PATH
21075   shlibpath_overrides_runpath=no
21076   hardcode_into_libs=yes
21077   ;;
21078
21079 irix5* | irix6* | nonstopux*)
21080   case $host_os in
21081     nonstopux*) version_type=nonstopux ;;
21082     *)
21083         if test "$lt_cv_prog_gnu_ld" = yes; then
21084                 version_type=linux
21085         else
21086                 version_type=irix
21087         fi ;;
21088   esac
21089   need_lib_prefix=no
21090   need_version=no
21091   soname_spec='${libname}${release}${shared_ext}$major'
21092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21093   case $host_os in
21094   irix5* | nonstopux*)
21095     libsuff= shlibsuff=
21096     ;;
21097   *)
21098     case $LD in # libtool.m4 will add one of these switches to LD
21099     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21100       libsuff= shlibsuff= libmagic=32-bit;;
21101     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21102       libsuff=32 shlibsuff=N32 libmagic=N32;;
21103     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21104       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21105     *) libsuff= shlibsuff= libmagic=never-match;;
21106     esac
21107     ;;
21108   esac
21109   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21110   shlibpath_overrides_runpath=no
21111   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21112   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21113   hardcode_into_libs=yes
21114   ;;
21115
21116 # No shared lib support for Linux oldld, aout, or coff.
21117 linux*oldld* | linux*aout* | linux*coff*)
21118   dynamic_linker=no
21119   ;;
21120
21121 # This must be Linux ELF.
21122 linux* | k*bsd*-gnu)
21123   version_type=linux
21124   need_lib_prefix=no
21125   need_version=no
21126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127   soname_spec='${libname}${release}${shared_ext}$major'
21128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21129   shlibpath_var=LD_LIBRARY_PATH
21130   shlibpath_overrides_runpath=no
21131   # This implies no fast_install, which is unacceptable.
21132   # Some rework will be needed to allow for fast_install
21133   # before this can be enabled.
21134   hardcode_into_libs=yes
21135
21136   # Append ld.so.conf contents to the search path
21137   if test -f /etc/ld.so.conf; then
21138     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' ' '`
21139     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21140   fi
21141
21142   # We used to test for /lib/ld.so.1 and disable shared libraries on
21143   # powerpc, because MkLinux only supported shared libraries with the
21144   # GNU dynamic linker.  Since this was broken with cross compilers,
21145   # most powerpc-linux boxes support dynamic linking these days and
21146   # people can always --disable-shared, the test was removed, and we
21147   # assume the GNU/Linux dynamic linker is in use.
21148   dynamic_linker='GNU/Linux ld.so'
21149   ;;
21150
21151 netbsdelf*-gnu)
21152   version_type=linux
21153   need_lib_prefix=no
21154   need_version=no
21155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21156   soname_spec='${libname}${release}${shared_ext}$major'
21157   shlibpath_var=LD_LIBRARY_PATH
21158   shlibpath_overrides_runpath=no
21159   hardcode_into_libs=yes
21160   dynamic_linker='NetBSD ld.elf_so'
21161   ;;
21162
21163 netbsd*)
21164   version_type=sunos
21165   need_lib_prefix=no
21166   need_version=no
21167   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21169     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21170     dynamic_linker='NetBSD (a.out) ld.so'
21171   else
21172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21173     soname_spec='${libname}${release}${shared_ext}$major'
21174     dynamic_linker='NetBSD ld.elf_so'
21175   fi
21176   shlibpath_var=LD_LIBRARY_PATH
21177   shlibpath_overrides_runpath=yes
21178   hardcode_into_libs=yes
21179   ;;
21180
21181 newsos6)
21182   version_type=linux
21183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21184   shlibpath_var=LD_LIBRARY_PATH
21185   shlibpath_overrides_runpath=yes
21186   ;;
21187
21188 nto-qnx*)
21189   version_type=linux
21190   need_lib_prefix=no
21191   need_version=no
21192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21193   soname_spec='${libname}${release}${shared_ext}$major'
21194   shlibpath_var=LD_LIBRARY_PATH
21195   shlibpath_overrides_runpath=yes
21196   ;;
21197
21198 openbsd*)
21199   version_type=sunos
21200   sys_lib_dlsearch_path_spec="/usr/lib"
21201   need_lib_prefix=no
21202   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21203   case $host_os in
21204     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21205     *)                         need_version=no  ;;
21206   esac
21207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21209   shlibpath_var=LD_LIBRARY_PATH
21210   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21211     case $host_os in
21212       openbsd2.[89] | openbsd2.[89].*)
21213         shlibpath_overrides_runpath=no
21214         ;;
21215       *)
21216         shlibpath_overrides_runpath=yes
21217         ;;
21218       esac
21219   else
21220     shlibpath_overrides_runpath=yes
21221   fi
21222   ;;
21223
21224 os2*)
21225   libname_spec='$name'
21226   shrext_cmds=".dll"
21227   need_lib_prefix=no
21228   library_names_spec='$libname${shared_ext} $libname.a'
21229   dynamic_linker='OS/2 ld.exe'
21230   shlibpath_var=LIBPATH
21231   ;;
21232
21233 osf3* | osf4* | osf5*)
21234   version_type=osf
21235   need_lib_prefix=no
21236   need_version=no
21237   soname_spec='${libname}${release}${shared_ext}$major'
21238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239   shlibpath_var=LD_LIBRARY_PATH
21240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21242   ;;
21243
21244 rdos*)
21245   dynamic_linker=no
21246   ;;
21247
21248 solaris*)
21249   version_type=linux
21250   need_lib_prefix=no
21251   need_version=no
21252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253   soname_spec='${libname}${release}${shared_ext}$major'
21254   shlibpath_var=LD_LIBRARY_PATH
21255   shlibpath_overrides_runpath=yes
21256   hardcode_into_libs=yes
21257   # ldd complains unless libraries are executable
21258   postinstall_cmds='chmod +x $lib'
21259   ;;
21260
21261 sunos4*)
21262   version_type=sunos
21263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21264   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21265   shlibpath_var=LD_LIBRARY_PATH
21266   shlibpath_overrides_runpath=yes
21267   if test "$with_gnu_ld" = yes; then
21268     need_lib_prefix=no
21269   fi
21270   need_version=yes
21271   ;;
21272
21273 sysv4 | sysv4.3*)
21274   version_type=linux
21275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276   soname_spec='${libname}${release}${shared_ext}$major'
21277   shlibpath_var=LD_LIBRARY_PATH
21278   case $host_vendor in
21279     sni)
21280       shlibpath_overrides_runpath=no
21281       need_lib_prefix=no
21282       export_dynamic_flag_spec='${wl}-Blargedynsym'
21283       runpath_var=LD_RUN_PATH
21284       ;;
21285     siemens)
21286       need_lib_prefix=no
21287       ;;
21288     motorola)
21289       need_lib_prefix=no
21290       need_version=no
21291       shlibpath_overrides_runpath=no
21292       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21293       ;;
21294   esac
21295   ;;
21296
21297 sysv4*MP*)
21298   if test -d /usr/nec ;then
21299     version_type=linux
21300     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21301     soname_spec='$libname${shared_ext}.$major'
21302     shlibpath_var=LD_LIBRARY_PATH
21303   fi
21304   ;;
21305
21306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21307   version_type=freebsd-elf
21308   need_lib_prefix=no
21309   need_version=no
21310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21311   soname_spec='${libname}${release}${shared_ext}$major'
21312   shlibpath_var=LD_LIBRARY_PATH
21313   hardcode_into_libs=yes
21314   if test "$with_gnu_ld" = yes; then
21315     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21316     shlibpath_overrides_runpath=no
21317   else
21318     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21319     shlibpath_overrides_runpath=yes
21320     case $host_os in
21321       sco3.2v5*)
21322         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21323         ;;
21324     esac
21325   fi
21326   sys_lib_dlsearch_path_spec='/usr/lib'
21327   ;;
21328
21329 uts4*)
21330   version_type=linux
21331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332   soname_spec='${libname}${release}${shared_ext}$major'
21333   shlibpath_var=LD_LIBRARY_PATH
21334   ;;
21335
21336 *)
21337   dynamic_linker=no
21338   ;;
21339 esac
21340 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21341 echo "${ECHO_T}$dynamic_linker" >&6; }
21342 test "$dynamic_linker" = no && can_build_shared=no
21343
21344 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21345   echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21348 fi
21349
21350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21355 fi
21356
21357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21358
21359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21360 if test "$GCC" = yes; then
21361   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21362 fi
21363
21364 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21366 hardcode_action_CXX=
21367 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21368    test -n "$runpath_var_CXX" || \
21369    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21370
21371   # We can hardcode non-existant directories.
21372   if test "$hardcode_direct_CXX" != no &&
21373      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21374      # have to relink, otherwise we might link with an installed library
21375      # when we should be linking with a yet-to-be-installed one
21376      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21377      test "$hardcode_minus_L_CXX" != no; then
21378     # Linking always hardcodes the temporary library directory.
21379     hardcode_action_CXX=relink
21380   else
21381     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21382     hardcode_action_CXX=immediate
21383   fi
21384 else
21385   # We cannot hardcode anything, or else we can only hardcode existing
21386   # directories.
21387   hardcode_action_CXX=unsupported
21388 fi
21389 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21390 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21391
21392 if test "$hardcode_action_CXX" = relink; then
21393   # Fast installation is not supported
21394   enable_fast_install=no
21395 elif test "$shlibpath_overrides_runpath" = yes ||
21396      test "$enable_shared" = no; then
21397   # Fast installation is not necessary
21398   enable_fast_install=needless
21399 fi
21400
21401
21402 # The else clause should only fire when bootstrapping the
21403 # libtool distribution, otherwise you forgot to ship ltmain.sh
21404 # with your package, and you will get complaints that there are
21405 # no rules to generate ltmain.sh.
21406 if test -f "$ltmain"; then
21407   # See if we are running on zsh, and set the options which allow our commands through
21408   # without removal of \ escapes.
21409   if test -n "${ZSH_VERSION+set}" ; then
21410     setopt NO_GLOB_SUBST
21411   fi
21412   # Now quote all the things that may contain metacharacters while being
21413   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21414   # variables and quote the copies for generation of the libtool script.
21415   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21416     SED SHELL STRIP \
21417     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21418     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21419     deplibs_check_method reload_flag reload_cmds need_locks \
21420     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21421     lt_cv_sys_global_symbol_to_c_name_address \
21422     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21423     old_postinstall_cmds old_postuninstall_cmds \
21424     compiler_CXX \
21425     CC_CXX \
21426     LD_CXX \
21427     lt_prog_compiler_wl_CXX \
21428     lt_prog_compiler_pic_CXX \
21429     lt_prog_compiler_static_CXX \
21430     lt_prog_compiler_no_builtin_flag_CXX \
21431     export_dynamic_flag_spec_CXX \
21432     thread_safe_flag_spec_CXX \
21433     whole_archive_flag_spec_CXX \
21434     enable_shared_with_static_runtimes_CXX \
21435     old_archive_cmds_CXX \
21436     old_archive_from_new_cmds_CXX \
21437     predep_objects_CXX \
21438     postdep_objects_CXX \
21439     predeps_CXX \
21440     postdeps_CXX \
21441     compiler_lib_search_path_CXX \
21442     compiler_lib_search_dirs_CXX \
21443     archive_cmds_CXX \
21444     archive_expsym_cmds_CXX \
21445     postinstall_cmds_CXX \
21446     postuninstall_cmds_CXX \
21447     old_archive_from_expsyms_cmds_CXX \
21448     allow_undefined_flag_CXX \
21449     no_undefined_flag_CXX \
21450     export_symbols_cmds_CXX \
21451     hardcode_libdir_flag_spec_CXX \
21452     hardcode_libdir_flag_spec_ld_CXX \
21453     hardcode_libdir_separator_CXX \
21454     hardcode_automatic_CXX \
21455     module_cmds_CXX \
21456     module_expsym_cmds_CXX \
21457     lt_cv_prog_compiler_c_o_CXX \
21458     fix_srcfile_path_CXX \
21459     exclude_expsyms_CXX \
21460     include_expsyms_CXX; do
21461
21462     case $var in
21463     old_archive_cmds_CXX | \
21464     old_archive_from_new_cmds_CXX | \
21465     archive_cmds_CXX | \
21466     archive_expsym_cmds_CXX | \
21467     module_cmds_CXX | \
21468     module_expsym_cmds_CXX | \
21469     old_archive_from_expsyms_cmds_CXX | \
21470     export_symbols_cmds_CXX | \
21471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21472     postinstall_cmds | postuninstall_cmds | \
21473     old_postinstall_cmds | old_postuninstall_cmds | \
21474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21475       # Double-quote double-evaled strings.
21476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21477       ;;
21478     *)
21479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21480       ;;
21481     esac
21482   done
21483
21484   case $lt_echo in
21485   *'\$0 --fallback-echo"')
21486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21487     ;;
21488   esac
21489
21490 cfgfile="$ofile"
21491
21492   cat <<__EOF__ >> "$cfgfile"
21493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21494
21495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21496
21497 # Shell to use when invoking shell scripts.
21498 SHELL=$lt_SHELL
21499
21500 # Whether or not to build shared libraries.
21501 build_libtool_libs=$enable_shared
21502
21503 # Whether or not to build static libraries.
21504 build_old_libs=$enable_static
21505
21506 # Whether or not to add -lc for building shared libraries.
21507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21508
21509 # Whether or not to disallow shared libs when runtime libs are static
21510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21511
21512 # Whether or not to optimize for fast installation.
21513 fast_install=$enable_fast_install
21514
21515 # The host system.
21516 host_alias=$host_alias
21517 host=$host
21518 host_os=$host_os
21519
21520 # The build system.
21521 build_alias=$build_alias
21522 build=$build
21523 build_os=$build_os
21524
21525 # An echo program that does not interpret backslashes.
21526 echo=$lt_echo
21527
21528 # The archiver.
21529 AR=$lt_AR
21530 AR_FLAGS=$lt_AR_FLAGS
21531
21532 # A C compiler.
21533 LTCC=$lt_LTCC
21534
21535 # LTCC compiler flags.
21536 LTCFLAGS=$lt_LTCFLAGS
21537
21538 # A language-specific compiler.
21539 CC=$lt_compiler_CXX
21540
21541 # Is the compiler the GNU C compiler?
21542 with_gcc=$GCC_CXX
21543
21544 # An ERE matcher.
21545 EGREP=$lt_EGREP
21546
21547 # The linker used to build libraries.
21548 LD=$lt_LD_CXX
21549
21550 # Whether we need hard or soft links.
21551 LN_S=$lt_LN_S
21552
21553 # A BSD-compatible nm program.
21554 NM=$lt_NM
21555
21556 # A symbol stripping program
21557 STRIP=$lt_STRIP
21558
21559 # Used to examine libraries when file_magic_cmd begins "file"
21560 MAGIC_CMD=$MAGIC_CMD
21561
21562 # Used on cygwin: DLL creation program.
21563 DLLTOOL="$DLLTOOL"
21564
21565 # Used on cygwin: object dumper.
21566 OBJDUMP="$OBJDUMP"
21567
21568 # Used on cygwin: assembler.
21569 AS="$AS"
21570
21571 # The name of the directory that contains temporary libtool files.
21572 objdir=$objdir
21573
21574 # How to create reloadable object files.
21575 reload_flag=$lt_reload_flag
21576 reload_cmds=$lt_reload_cmds
21577
21578 # How to pass a linker flag through the compiler.
21579 wl=$lt_lt_prog_compiler_wl_CXX
21580
21581 # Object file suffix (normally "o").
21582 objext="$ac_objext"
21583
21584 # Old archive suffix (normally "a").
21585 libext="$libext"
21586
21587 # Shared library suffix (normally ".so").
21588 shrext_cmds='$shrext_cmds'
21589
21590 # Executable file suffix (normally "").
21591 exeext="$exeext"
21592
21593 # Additional compiler flags for building library objects.
21594 pic_flag=$lt_lt_prog_compiler_pic_CXX
21595 pic_mode=$pic_mode
21596
21597 # What is the maximum length of a command?
21598 max_cmd_len=$lt_cv_sys_max_cmd_len
21599
21600 # Does compiler simultaneously support -c and -o options?
21601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21602
21603 # Must we lock files when doing compilation?
21604 need_locks=$lt_need_locks
21605
21606 # Do we need the lib prefix for modules?
21607 need_lib_prefix=$need_lib_prefix
21608
21609 # Do we need a version for libraries?
21610 need_version=$need_version
21611
21612 # Whether dlopen is supported.
21613 dlopen_support=$enable_dlopen
21614
21615 # Whether dlopen of programs is supported.
21616 dlopen_self=$enable_dlopen_self
21617
21618 # Whether dlopen of statically linked programs is supported.
21619 dlopen_self_static=$enable_dlopen_self_static
21620
21621 # Compiler flag to prevent dynamic linking.
21622 link_static_flag=$lt_lt_prog_compiler_static_CXX
21623
21624 # Compiler flag to turn off builtin functions.
21625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21626
21627 # Compiler flag to allow reflexive dlopens.
21628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21629
21630 # Compiler flag to generate shared objects directly from archives.
21631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21632
21633 # Compiler flag to generate thread-safe objects.
21634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21635
21636 # Library versioning type.
21637 version_type=$version_type
21638
21639 # Format of library name prefix.
21640 libname_spec=$lt_libname_spec
21641
21642 # List of archive names.  First name is the real one, the rest are links.
21643 # The last name is the one that the linker finds with -lNAME.
21644 library_names_spec=$lt_library_names_spec
21645
21646 # The coded name of the library, if different from the real name.
21647 soname_spec=$lt_soname_spec
21648
21649 # Commands used to build and install an old-style archive.
21650 RANLIB=$lt_RANLIB
21651 old_archive_cmds=$lt_old_archive_cmds_CXX
21652 old_postinstall_cmds=$lt_old_postinstall_cmds
21653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21654
21655 # Create an old-style archive from a shared archive.
21656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21657
21658 # Create a temporary old-style archive to link instead of a shared archive.
21659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21660
21661 # Commands used to build and install a shared archive.
21662 archive_cmds=$lt_archive_cmds_CXX
21663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21664 postinstall_cmds=$lt_postinstall_cmds
21665 postuninstall_cmds=$lt_postuninstall_cmds
21666
21667 # Commands used to build a loadable module (assumed same as above if empty)
21668 module_cmds=$lt_module_cmds_CXX
21669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21670
21671 # Commands to strip libraries.
21672 old_striplib=$lt_old_striplib
21673 striplib=$lt_striplib
21674
21675 # Dependencies to place before the objects being linked to create a
21676 # shared library.
21677 predep_objects=$lt_predep_objects_CXX
21678
21679 # Dependencies to place after the objects being linked to create a
21680 # shared library.
21681 postdep_objects=$lt_postdep_objects_CXX
21682
21683 # Dependencies to place before the objects being linked to create a
21684 # shared library.
21685 predeps=$lt_predeps_CXX
21686
21687 # Dependencies to place after the objects being linked to create a
21688 # shared library.
21689 postdeps=$lt_postdeps_CXX
21690
21691 # The directories searched by this compiler when creating a shared
21692 # library
21693 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21694
21695 # The library search path used internally by the compiler when linking
21696 # a shared library.
21697 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21698
21699 # Method to check whether dependent libraries are shared objects.
21700 deplibs_check_method=$lt_deplibs_check_method
21701
21702 # Command to use when deplibs_check_method == file_magic.
21703 file_magic_cmd=$lt_file_magic_cmd
21704
21705 # Flag that allows shared libraries with undefined symbols to be built.
21706 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21707
21708 # Flag that forces no undefined symbols.
21709 no_undefined_flag=$lt_no_undefined_flag_CXX
21710
21711 # Commands used to finish a libtool library installation in a directory.
21712 finish_cmds=$lt_finish_cmds
21713
21714 # Same as above, but a single script fragment to be evaled but not shown.
21715 finish_eval=$lt_finish_eval
21716
21717 # Take the output of nm and produce a listing of raw symbols and C names.
21718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21719
21720 # Transform the output of nm in a proper C declaration
21721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21722
21723 # Transform the output of nm in a C name address pair
21724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21725
21726 # This is the shared library runtime path variable.
21727 runpath_var=$runpath_var
21728
21729 # This is the shared library path variable.
21730 shlibpath_var=$shlibpath_var
21731
21732 # Is shlibpath searched before the hard-coded library search path?
21733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21734
21735 # How to hardcode a shared library path into an executable.
21736 hardcode_action=$hardcode_action_CXX
21737
21738 # Whether we should hardcode library paths into libraries.
21739 hardcode_into_libs=$hardcode_into_libs
21740
21741 # Flag to hardcode \$libdir into a binary during linking.
21742 # This must work even if \$libdir does not exist.
21743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21744
21745 # If ld is used when linking, flag to hardcode \$libdir into
21746 # a binary during linking. This must work even if \$libdir does
21747 # not exist.
21748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21749
21750 # Whether we need a single -rpath flag with a separated argument.
21751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21752
21753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21754 # resulting binary.
21755 hardcode_direct=$hardcode_direct_CXX
21756
21757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21758 # resulting binary.
21759 hardcode_minus_L=$hardcode_minus_L_CXX
21760
21761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21762 # the resulting binary.
21763 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21764
21765 # Set to yes if building a shared library automatically hardcodes DIR into the library
21766 # and all subsequent libraries and executables linked against it.
21767 hardcode_automatic=$hardcode_automatic_CXX
21768
21769 # Variables whose values should be saved in libtool wrapper scripts and
21770 # restored at relink time.
21771 variables_saved_for_relink="$variables_saved_for_relink"
21772
21773 # Whether libtool must link a program against all its dependency libraries.
21774 link_all_deplibs=$link_all_deplibs_CXX
21775
21776 # Compile-time system search path for libraries
21777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21778
21779 # Run-time system search path for libraries
21780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21781
21782 # Fix the shell variable \$srcfile for the compiler.
21783 fix_srcfile_path=$lt_fix_srcfile_path
21784
21785 # Set to yes if exported symbols are required.
21786 always_export_symbols=$always_export_symbols_CXX
21787
21788 # The commands to list exported symbols.
21789 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21790
21791 # The commands to extract the exported symbol list from a shared archive.
21792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21793
21794 # Symbols that should not be listed in the preloaded symbols.
21795 exclude_expsyms=$lt_exclude_expsyms_CXX
21796
21797 # Symbols that must always be exported.
21798 include_expsyms=$lt_include_expsyms_CXX
21799
21800 # ### END LIBTOOL TAG CONFIG: $tagname
21801
21802 __EOF__
21803
21804
21805 else
21806   # If there is no Makefile yet, we rely on a make rule to execute
21807   # `config.status --recheck' to rerun these tests and create the
21808   # libtool script then.
21809   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21810   if test -f "$ltmain_in"; then
21811     test -f Makefile && make "$ltmain"
21812   fi
21813 fi
21814
21815
21816 ac_ext=c
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21821
21822 CC=$lt_save_CC
21823 LDCXX=$LD
21824 LD=$lt_save_LD
21825 GCC=$lt_save_GCC
21826 with_gnu_ldcxx=$with_gnu_ld
21827 with_gnu_ld=$lt_save_with_gnu_ld
21828 lt_cv_path_LDCXX=$lt_cv_path_LD
21829 lt_cv_path_LD=$lt_save_path_LD
21830 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21831 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21832
21833         else
21834           tagname=""
21835         fi
21836         ;;
21837
21838       F77)
21839         if test -n "$F77" && test "X$F77" != "Xno"; then
21840
21841 ac_ext=f
21842 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21843 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21845
21846
21847 archive_cmds_need_lc_F77=no
21848 allow_undefined_flag_F77=
21849 always_export_symbols_F77=no
21850 archive_expsym_cmds_F77=
21851 export_dynamic_flag_spec_F77=
21852 hardcode_direct_F77=no
21853 hardcode_libdir_flag_spec_F77=
21854 hardcode_libdir_flag_spec_ld_F77=
21855 hardcode_libdir_separator_F77=
21856 hardcode_minus_L_F77=no
21857 hardcode_automatic_F77=no
21858 module_cmds_F77=
21859 module_expsym_cmds_F77=
21860 link_all_deplibs_F77=unknown
21861 old_archive_cmds_F77=$old_archive_cmds
21862 no_undefined_flag_F77=
21863 whole_archive_flag_spec_F77=
21864 enable_shared_with_static_runtimes_F77=no
21865
21866 # Source file extension for f77 test sources.
21867 ac_ext=f
21868
21869 # Object file extension for compiled f77 test sources.
21870 objext=o
21871 objext_F77=$objext
21872
21873 # Code to be used in simple compile tests
21874 lt_simple_compile_test_code="\
21875       subroutine t
21876       return
21877       end
21878 "
21879
21880 # Code to be used in simple link tests
21881 lt_simple_link_test_code="\
21882       program t
21883       end
21884 "
21885
21886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21887
21888 # If no C compiler was specified, use CC.
21889 LTCC=${LTCC-"$CC"}
21890
21891 # If no C compiler flags were specified, use CFLAGS.
21892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21893
21894 # Allow CC to be a program name with arguments.
21895 compiler=$CC
21896
21897
21898 # save warnings/boilerplate of simple test code
21899 ac_outfile=conftest.$ac_objext
21900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21902 _lt_compiler_boilerplate=`cat conftest.err`
21903 $rm conftest*
21904
21905 ac_outfile=conftest.$ac_objext
21906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21908 _lt_linker_boilerplate=`cat conftest.err`
21909 $rm -r conftest*
21910
21911
21912 # Allow CC to be a program name with arguments.
21913 lt_save_CC="$CC"
21914 CC=${F77-"f77"}
21915 compiler=$CC
21916 compiler_F77=$CC
21917 for cc_temp in $compiler""; do
21918   case $cc_temp in
21919     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21920     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21921     \-*) ;;
21922     *) break;;
21923   esac
21924 done
21925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21926
21927
21928 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21929 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21930 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21931 echo "${ECHO_T}$can_build_shared" >&6; }
21932
21933 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21934 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21935 test "$can_build_shared" = "no" && enable_shared=no
21936
21937 # On AIX, shared libraries and static libraries use the same namespace, and
21938 # are all built from PIC.
21939 case $host_os in
21940 aix3*)
21941   test "$enable_shared" = yes && enable_static=no
21942   if test -n "$RANLIB"; then
21943     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21944     postinstall_cmds='$RANLIB $lib'
21945   fi
21946   ;;
21947 aix[4-9]*)
21948   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21949     test "$enable_shared" = yes && enable_static=no
21950   fi
21951   ;;
21952 esac
21953 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21954 echo "${ECHO_T}$enable_shared" >&6; }
21955
21956 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21957 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21958 # Make sure either enable_shared or enable_static is yes.
21959 test "$enable_shared" = yes || enable_static=yes
21960 { echo "$as_me:$LINENO: result: $enable_static" >&5
21961 echo "${ECHO_T}$enable_static" >&6; }
21962
21963 GCC_F77="$G77"
21964 LD_F77="$LD"
21965
21966 lt_prog_compiler_wl_F77=
21967 lt_prog_compiler_pic_F77=
21968 lt_prog_compiler_static_F77=
21969
21970 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21971 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21972
21973   if test "$GCC" = yes; then
21974     lt_prog_compiler_wl_F77='-Wl,'
21975     lt_prog_compiler_static_F77='-static'
21976
21977     case $host_os in
21978       aix*)
21979       # All AIX code is PIC.
21980       if test "$host_cpu" = ia64; then
21981         # AIX 5 now supports IA64 processor
21982         lt_prog_compiler_static_F77='-Bstatic'
21983       fi
21984       ;;
21985
21986     amigaos*)
21987       # FIXME: we need at least 68020 code to build shared libraries, but
21988       # adding the `-m68020' flag to GCC prevents building anything better,
21989       # like `-m68040'.
21990       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21991       ;;
21992
21993     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21994       # PIC is the default for these OSes.
21995       ;;
21996
21997     mingw* | cygwin* | pw32* | os2*)
21998       # This hack is so that the source file can tell whether it is being
21999       # built for inclusion in a dll (and should export symbols for example).
22000       # Although the cygwin gcc ignores -fPIC, still need this for old-style
22001       # (--disable-auto-import) libraries
22002       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22003       ;;
22004
22005     darwin* | rhapsody*)
22006       # PIC is the default on this platform
22007       # Common symbols not allowed in MH_DYLIB files
22008       lt_prog_compiler_pic_F77='-fno-common'
22009       ;;
22010
22011     interix[3-9]*)
22012       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22013       # Instead, we relocate shared libraries at runtime.
22014       ;;
22015
22016     msdosdjgpp*)
22017       # Just because we use GCC doesn't mean we suddenly get shared libraries
22018       # on systems that don't support them.
22019       lt_prog_compiler_can_build_shared_F77=no
22020       enable_shared=no
22021       ;;
22022
22023     sysv4*MP*)
22024       if test -d /usr/nec; then
22025         lt_prog_compiler_pic_F77=-Kconform_pic
22026       fi
22027       ;;
22028
22029     hpux*)
22030       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22031       # not for PA HP-UX.
22032       case $host_cpu in
22033       hppa*64*|ia64*)
22034         # +Z the default
22035         ;;
22036       *)
22037         lt_prog_compiler_pic_F77='-fPIC'
22038         ;;
22039       esac
22040       ;;
22041
22042     *)
22043       lt_prog_compiler_pic_F77='-fPIC'
22044       ;;
22045     esac
22046   else
22047     # PORTME Check for flag to pass linker flags through the system compiler.
22048     case $host_os in
22049     aix*)
22050       lt_prog_compiler_wl_F77='-Wl,'
22051       if test "$host_cpu" = ia64; then
22052         # AIX 5 now supports IA64 processor
22053         lt_prog_compiler_static_F77='-Bstatic'
22054       else
22055         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22056       fi
22057       ;;
22058       darwin*)
22059         # PIC is the default on this platform
22060         # Common symbols not allowed in MH_DYLIB files
22061        case $cc_basename in
22062          xlc*)
22063          lt_prog_compiler_pic_F77='-qnocommon'
22064          lt_prog_compiler_wl_F77='-Wl,'
22065          ;;
22066        esac
22067        ;;
22068
22069     mingw* | cygwin* | pw32* | os2*)
22070       # This hack is so that the source file can tell whether it is being
22071       # built for inclusion in a dll (and should export symbols for example).
22072       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22073       ;;
22074
22075     hpux9* | hpux10* | hpux11*)
22076       lt_prog_compiler_wl_F77='-Wl,'
22077       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22078       # not for PA HP-UX.
22079       case $host_cpu in
22080       hppa*64*|ia64*)
22081         # +Z the default
22082         ;;
22083       *)
22084         lt_prog_compiler_pic_F77='+Z'
22085         ;;
22086       esac
22087       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22088       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22089       ;;
22090
22091     irix5* | irix6* | nonstopux*)
22092       lt_prog_compiler_wl_F77='-Wl,'
22093       # PIC (with -KPIC) is the default.
22094       lt_prog_compiler_static_F77='-non_shared'
22095       ;;
22096
22097     newsos6)
22098       lt_prog_compiler_pic_F77='-KPIC'
22099       lt_prog_compiler_static_F77='-Bstatic'
22100       ;;
22101
22102     linux* | k*bsd*-gnu)
22103       case $cc_basename in
22104       icc* | ecc*)
22105         lt_prog_compiler_wl_F77='-Wl,'
22106         lt_prog_compiler_pic_F77='-KPIC'
22107         lt_prog_compiler_static_F77='-static'
22108         ;;
22109       pgcc* | pgf77* | pgf90* | pgf95*)
22110         # Portland Group compilers (*not* the Pentium gcc compiler,
22111         # which looks to be a dead project)
22112         lt_prog_compiler_wl_F77='-Wl,'
22113         lt_prog_compiler_pic_F77='-fpic'
22114         lt_prog_compiler_static_F77='-Bstatic'
22115         ;;
22116       ccc*)
22117         lt_prog_compiler_wl_F77='-Wl,'
22118         # All Alpha code is PIC.
22119         lt_prog_compiler_static_F77='-non_shared'
22120         ;;
22121       *)
22122         case `$CC -V 2>&1 | sed 5q` in
22123         *Sun\ C*)
22124           # Sun C 5.9
22125           lt_prog_compiler_pic_F77='-KPIC'
22126           lt_prog_compiler_static_F77='-Bstatic'
22127           lt_prog_compiler_wl_F77='-Wl,'
22128           ;;
22129         *Sun\ F*)
22130           # Sun Fortran 8.3 passes all unrecognized flags to the linker
22131           lt_prog_compiler_pic_F77='-KPIC'
22132           lt_prog_compiler_static_F77='-Bstatic'
22133           lt_prog_compiler_wl_F77=''
22134           ;;
22135         esac
22136         ;;
22137       esac
22138       ;;
22139
22140     osf3* | osf4* | osf5*)
22141       lt_prog_compiler_wl_F77='-Wl,'
22142       # All OSF/1 code is PIC.
22143       lt_prog_compiler_static_F77='-non_shared'
22144       ;;
22145
22146     rdos*)
22147       lt_prog_compiler_static_F77='-non_shared'
22148       ;;
22149
22150     solaris*)
22151       lt_prog_compiler_pic_F77='-KPIC'
22152       lt_prog_compiler_static_F77='-Bstatic'
22153       case $cc_basename in
22154       f77* | f90* | f95*)
22155         lt_prog_compiler_wl_F77='-Qoption ld ';;
22156       *)
22157         lt_prog_compiler_wl_F77='-Wl,';;
22158       esac
22159       ;;
22160
22161     sunos4*)
22162       lt_prog_compiler_wl_F77='-Qoption ld '
22163       lt_prog_compiler_pic_F77='-PIC'
22164       lt_prog_compiler_static_F77='-Bstatic'
22165       ;;
22166
22167     sysv4 | sysv4.2uw2* | sysv4.3*)
22168       lt_prog_compiler_wl_F77='-Wl,'
22169       lt_prog_compiler_pic_F77='-KPIC'
22170       lt_prog_compiler_static_F77='-Bstatic'
22171       ;;
22172
22173     sysv4*MP*)
22174       if test -d /usr/nec ;then
22175         lt_prog_compiler_pic_F77='-Kconform_pic'
22176         lt_prog_compiler_static_F77='-Bstatic'
22177       fi
22178       ;;
22179
22180     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22181       lt_prog_compiler_wl_F77='-Wl,'
22182       lt_prog_compiler_pic_F77='-KPIC'
22183       lt_prog_compiler_static_F77='-Bstatic'
22184       ;;
22185
22186     unicos*)
22187       lt_prog_compiler_wl_F77='-Wl,'
22188       lt_prog_compiler_can_build_shared_F77=no
22189       ;;
22190
22191     uts4*)
22192       lt_prog_compiler_pic_F77='-pic'
22193       lt_prog_compiler_static_F77='-Bstatic'
22194       ;;
22195
22196     *)
22197       lt_prog_compiler_can_build_shared_F77=no
22198       ;;
22199     esac
22200   fi
22201
22202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22203 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
22204
22205 #
22206 # Check to make sure the PIC flag actually works.
22207 #
22208 if test -n "$lt_prog_compiler_pic_F77"; then
22209
22210 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22211 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
22212 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   lt_cv_prog_compiler_pic_works_F77=no
22216   ac_outfile=conftest.$ac_objext
22217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22218    lt_compiler_flag="$lt_prog_compiler_pic_F77"
22219    # Insert the option either (1) after the last *FLAGS variable, or
22220    # (2) before a word containing "conftest.", or (3) at the end.
22221    # Note that $ac_compile itself does not contain backslashes and begins
22222    # with a dollar sign (not a hyphen), so the echo should work correctly.
22223    # The option is referenced via a variable to avoid confusing sed.
22224    lt_compile=`echo "$ac_compile" | $SED \
22225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22227    -e 's:$: $lt_compiler_flag:'`
22228    (eval echo "\"\$as_me:22228: $lt_compile\"" >&5)
22229    (eval "$lt_compile" 2>conftest.err)
22230    ac_status=$?
22231    cat conftest.err >&5
22232    echo "$as_me:22232: \$? = $ac_status" >&5
22233    if (exit $ac_status) && test -s "$ac_outfile"; then
22234      # The compiler can only warn and ignore the option if not recognized
22235      # So say no if there are warnings other than the usual output.
22236      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22237      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22238      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22239        lt_cv_prog_compiler_pic_works_F77=yes
22240      fi
22241    fi
22242    $rm conftest*
22243
22244 fi
22245 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
22246 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
22247
22248 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
22249     case $lt_prog_compiler_pic_F77 in
22250      "" | " "*) ;;
22251      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22252      esac
22253 else
22254     lt_prog_compiler_pic_F77=
22255      lt_prog_compiler_can_build_shared_F77=no
22256 fi
22257
22258 fi
22259 case $host_os in
22260   # For platforms which do not support PIC, -DPIC is meaningless:
22261   *djgpp*)
22262     lt_prog_compiler_pic_F77=
22263     ;;
22264   *)
22265     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22266     ;;
22267 esac
22268
22269 #
22270 # Check to make sure the static flag actually works.
22271 #
22272 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22273 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22274 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22275 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
22276   echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278   lt_cv_prog_compiler_static_works_F77=no
22279    save_LDFLAGS="$LDFLAGS"
22280    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22281    echo "$lt_simple_link_test_code" > conftest.$ac_ext
22282    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22283      # The linker can only warn and ignore the option if not recognized
22284      # So say no if there are warnings
22285      if test -s conftest.err; then
22286        # Append any errors to the config.log.
22287        cat conftest.err 1>&5
22288        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22289        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22290        if diff conftest.exp conftest.er2 >/dev/null; then
22291          lt_cv_prog_compiler_static_works_F77=yes
22292        fi
22293      else
22294        lt_cv_prog_compiler_static_works_F77=yes
22295      fi
22296    fi
22297    $rm -r conftest*
22298    LDFLAGS="$save_LDFLAGS"
22299
22300 fi
22301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
22302 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
22303
22304 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
22305     :
22306 else
22307     lt_prog_compiler_static_F77=
22308 fi
22309
22310
22311 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22312 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22313 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22314   echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316   lt_cv_prog_compiler_c_o_F77=no
22317    $rm -r conftest 2>/dev/null
22318    mkdir conftest
22319    cd conftest
22320    mkdir out
22321    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22322
22323    lt_compiler_flag="-o out/conftest2.$ac_objext"
22324    # Insert the option either (1) after the last *FLAGS variable, or
22325    # (2) before a word containing "conftest.", or (3) at the end.
22326    # Note that $ac_compile itself does not contain backslashes and begins
22327    # with a dollar sign (not a hyphen), so the echo should work correctly.
22328    lt_compile=`echo "$ac_compile" | $SED \
22329    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22331    -e 's:$: $lt_compiler_flag:'`
22332    (eval echo "\"\$as_me:22332: $lt_compile\"" >&5)
22333    (eval "$lt_compile" 2>out/conftest.err)
22334    ac_status=$?
22335    cat out/conftest.err >&5
22336    echo "$as_me:22336: \$? = $ac_status" >&5
22337    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22338    then
22339      # The compiler can only warn and ignore the option if not recognized
22340      # So say no if there are warnings
22341      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22342      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22343      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22344        lt_cv_prog_compiler_c_o_F77=yes
22345      fi
22346    fi
22347    chmod u+w . 2>&5
22348    $rm conftest*
22349    # SGI C++ compiler will create directory out/ii_files/ for
22350    # template instantiation
22351    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22352    $rm out/* && rmdir out
22353    cd ..
22354    rmdir conftest
22355    $rm conftest*
22356
22357 fi
22358 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22359 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22360
22361
22362 hard_links="nottested"
22363 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22364   # do not overwrite the value of need_locks provided by the user
22365   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22366 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22367   hard_links=yes
22368   $rm conftest*
22369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22370   touch conftest.a
22371   ln conftest.a conftest.b 2>&5 || hard_links=no
22372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22373   { echo "$as_me:$LINENO: result: $hard_links" >&5
22374 echo "${ECHO_T}$hard_links" >&6; }
22375   if test "$hard_links" = no; then
22376     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22377 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22378     need_locks=warn
22379   fi
22380 else
22381   need_locks=no
22382 fi
22383
22384 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22386
22387   runpath_var=
22388   allow_undefined_flag_F77=
22389   enable_shared_with_static_runtimes_F77=no
22390   archive_cmds_F77=
22391   archive_expsym_cmds_F77=
22392   old_archive_From_new_cmds_F77=
22393   old_archive_from_expsyms_cmds_F77=
22394   export_dynamic_flag_spec_F77=
22395   whole_archive_flag_spec_F77=
22396   thread_safe_flag_spec_F77=
22397   hardcode_libdir_flag_spec_F77=
22398   hardcode_libdir_flag_spec_ld_F77=
22399   hardcode_libdir_separator_F77=
22400   hardcode_direct_F77=no
22401   hardcode_minus_L_F77=no
22402   hardcode_shlibpath_var_F77=unsupported
22403   link_all_deplibs_F77=unknown
22404   hardcode_automatic_F77=no
22405   module_cmds_F77=
22406   module_expsym_cmds_F77=
22407   always_export_symbols_F77=no
22408   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22409   # include_expsyms should be a list of space-separated symbols to be *always*
22410   # included in the symbol list
22411   include_expsyms_F77=
22412   # exclude_expsyms can be an extended regexp of symbols to exclude
22413   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22414   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22415   # as well as any symbol that contains `d'.
22416   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22417   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22418   # platforms (ab)use it in PIC code, but their linkers get confused if
22419   # the symbol is explicitly referenced.  Since portable code cannot
22420   # rely on this symbol name, it's probably fine to never include it in
22421   # preloaded symbol tables.
22422   # Exclude shared library initialization/finalization symbols.
22423   extract_expsyms_cmds=
22424   # Just being paranoid about ensuring that cc_basename is set.
22425   for cc_temp in $compiler""; do
22426   case $cc_temp in
22427     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22428     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22429     \-*) ;;
22430     *) break;;
22431   esac
22432 done
22433 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22434
22435   case $host_os in
22436   cygwin* | mingw* | pw32*)
22437     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22438     # When not using gcc, we currently assume that we are using
22439     # Microsoft Visual C++.
22440     if test "$GCC" != yes; then
22441       with_gnu_ld=no
22442     fi
22443     ;;
22444   interix*)
22445     # we just hope/assume this is gcc and not c89 (= MSVC++)
22446     with_gnu_ld=yes
22447     ;;
22448   openbsd*)
22449     with_gnu_ld=no
22450     ;;
22451   esac
22452
22453   ld_shlibs_F77=yes
22454   if test "$with_gnu_ld" = yes; then
22455     # If archive_cmds runs LD, not CC, wlarc should be empty
22456     wlarc='${wl}'
22457
22458     # Set some defaults for GNU ld with shared library support. These
22459     # are reset later if shared libraries are not supported. Putting them
22460     # here allows them to be overridden if necessary.
22461     runpath_var=LD_RUN_PATH
22462     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22463     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22464     # ancient GNU ld didn't support --whole-archive et. al.
22465     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22466         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22467       else
22468         whole_archive_flag_spec_F77=
22469     fi
22470     supports_anon_versioning=no
22471     case `$LD -v 2>/dev/null` in
22472       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22473       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22474       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22475       *\ 2.11.*) ;; # other 2.11 versions
22476       *) supports_anon_versioning=yes ;;
22477     esac
22478
22479     # See if GNU ld supports shared libraries.
22480     case $host_os in
22481     aix[3-9]*)
22482       # On AIX/PPC, the GNU linker is very broken
22483       if test "$host_cpu" != ia64; then
22484         ld_shlibs_F77=no
22485         cat <<EOF 1>&2
22486
22487 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22488 *** to be unable to reliably create shared libraries on AIX.
22489 *** Therefore, libtool is disabling shared libraries support.  If you
22490 *** really care for shared libraries, you may want to modify your PATH
22491 *** so that a non-GNU linker is found, and then restart.
22492
22493 EOF
22494       fi
22495       ;;
22496
22497     amigaos*)
22498       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)'
22499       hardcode_libdir_flag_spec_F77='-L$libdir'
22500       hardcode_minus_L_F77=yes
22501
22502       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22503       # that the semantics of dynamic libraries on AmigaOS, at least up
22504       # to version 4, is to share data among multiple programs linked
22505       # with the same dynamic library.  Since this doesn't match the
22506       # behavior of shared libraries on other platforms, we can't use
22507       # them.
22508       ld_shlibs_F77=no
22509       ;;
22510
22511     beos*)
22512       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22513         allow_undefined_flag_F77=unsupported
22514         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22515         # support --undefined.  This deserves some investigation.  FIXME
22516         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22517       else
22518         ld_shlibs_F77=no
22519       fi
22520       ;;
22521
22522     cygwin* | mingw* | pw32*)
22523       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22524       # as there is no search path for DLLs.
22525       hardcode_libdir_flag_spec_F77='-L$libdir'
22526       allow_undefined_flag_F77=unsupported
22527       always_export_symbols_F77=no
22528       enable_shared_with_static_runtimes_F77=yes
22529       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22530
22531       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22532         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22533         # If the export-symbols file already is a .def file (1st line
22534         # is EXPORTS), use it as is; otherwise, prepend...
22535         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22536           cp $export_symbols $output_objdir/$soname.def;
22537         else
22538           echo EXPORTS > $output_objdir/$soname.def;
22539           cat $export_symbols >> $output_objdir/$soname.def;
22540         fi~
22541         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22542       else
22543         ld_shlibs_F77=no
22544       fi
22545       ;;
22546
22547     interix[3-9]*)
22548       hardcode_direct_F77=no
22549       hardcode_shlibpath_var_F77=no
22550       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22551       export_dynamic_flag_spec_F77='${wl}-E'
22552       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22553       # Instead, shared libraries are loaded at an image base (0x10000000 by
22554       # default) and relocated if they conflict, which is a slow very memory
22555       # consuming and fragmenting process.  To avoid this, we pick a random,
22556       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22557       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22558       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'
22559       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'
22560       ;;
22561
22562     gnu* | linux* | k*bsd*-gnu)
22563       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22564         tmp_addflag=
22565         case $cc_basename,$host_cpu in
22566         pgcc*)                          # Portland Group C compiler
22567           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'
22568           tmp_addflag=' $pic_flag'
22569           ;;
22570         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22571           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'
22572           tmp_addflag=' $pic_flag -Mnomain' ;;
22573         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22574           tmp_addflag=' -i_dynamic' ;;
22575         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22576           tmp_addflag=' -i_dynamic -nofor_main' ;;
22577         ifc* | ifort*)                  # Intel Fortran compiler
22578           tmp_addflag=' -nofor_main' ;;
22579         esac
22580         case `$CC -V 2>&1 | sed 5q` in
22581         *Sun\ C*)                       # Sun C 5.9
22582           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'
22583           tmp_sharedflag='-G' ;;
22584         *Sun\ F*)                       # Sun Fortran 8.3
22585           tmp_sharedflag='-G' ;;
22586         *)
22587           tmp_sharedflag='-shared' ;;
22588         esac
22589         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22590
22591         if test $supports_anon_versioning = yes; then
22592           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22593   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22594   $echo "local: *; };" >> $output_objdir/$libname.ver~
22595           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22596         fi
22597         link_all_deplibs_F77=no
22598       else
22599         ld_shlibs_F77=no
22600       fi
22601       ;;
22602
22603     netbsd* | netbsdelf*-gnu)
22604       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22605         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22606         wlarc=
22607       else
22608         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22609         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22610       fi
22611       ;;
22612
22613     solaris*)
22614       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22615         ld_shlibs_F77=no
22616         cat <<EOF 1>&2
22617
22618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22619 *** create shared libraries on Solaris systems.  Therefore, libtool
22620 *** is disabling shared libraries support.  We urge you to upgrade GNU
22621 *** binutils to release 2.9.1 or newer.  Another option is to modify
22622 *** your PATH or compiler configuration so that the native linker is
22623 *** used, and then restart.
22624
22625 EOF
22626       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22628         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22629       else
22630         ld_shlibs_F77=no
22631       fi
22632       ;;
22633
22634     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22635       case `$LD -v 2>&1` in
22636         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22637         ld_shlibs_F77=no
22638         cat <<_LT_EOF 1>&2
22639
22640 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22641 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22642 *** is disabling shared libraries support.  We urge you to upgrade GNU
22643 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22644 *** your PATH or compiler configuration so that the native linker is
22645 *** used, and then restart.
22646
22647 _LT_EOF
22648         ;;
22649         *)
22650           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22651             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22652             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22653             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22654           else
22655             ld_shlibs_F77=no
22656           fi
22657         ;;
22658       esac
22659       ;;
22660
22661     sunos4*)
22662       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22663       wlarc=
22664       hardcode_direct_F77=yes
22665       hardcode_shlibpath_var_F77=no
22666       ;;
22667
22668     *)
22669       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22670         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22671         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22672       else
22673         ld_shlibs_F77=no
22674       fi
22675       ;;
22676     esac
22677
22678     if test "$ld_shlibs_F77" = no; then
22679       runpath_var=
22680       hardcode_libdir_flag_spec_F77=
22681       export_dynamic_flag_spec_F77=
22682       whole_archive_flag_spec_F77=
22683     fi
22684   else
22685     # PORTME fill in a description of your system's linker (not GNU ld)
22686     case $host_os in
22687     aix3*)
22688       allow_undefined_flag_F77=unsupported
22689       always_export_symbols_F77=yes
22690       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'
22691       # Note: this linker hardcodes the directories in LIBPATH if there
22692       # are no directories specified by -L.
22693       hardcode_minus_L_F77=yes
22694       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22695         # Neither direct hardcoding nor static linking is supported with a
22696         # broken collect2.
22697         hardcode_direct_F77=unsupported
22698       fi
22699       ;;
22700
22701     aix[4-9]*)
22702       if test "$host_cpu" = ia64; then
22703         # On IA64, the linker does run time linking by default, so we don't
22704         # have to do anything special.
22705         aix_use_runtimelinking=no
22706         exp_sym_flag='-Bexport'
22707         no_entry_flag=""
22708       else
22709         # If we're using GNU nm, then we don't want the "-C" option.
22710         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22711         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22712           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'
22713         else
22714           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'
22715         fi
22716         aix_use_runtimelinking=no
22717
22718         # Test if we are trying to use run time linking or normal
22719         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22720         # need to do runtime linking.
22721         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22722           for ld_flag in $LDFLAGS; do
22723           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22724             aix_use_runtimelinking=yes
22725             break
22726           fi
22727           done
22728           ;;
22729         esac
22730
22731         exp_sym_flag='-bexport'
22732         no_entry_flag='-bnoentry'
22733       fi
22734
22735       # When large executables or shared objects are built, AIX ld can
22736       # have problems creating the table of contents.  If linking a library
22737       # or program results in "error TOC overflow" add -mminimal-toc to
22738       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22739       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22740
22741       archive_cmds_F77=''
22742       hardcode_direct_F77=yes
22743       hardcode_libdir_separator_F77=':'
22744       link_all_deplibs_F77=yes
22745
22746       if test "$GCC" = yes; then
22747         case $host_os in aix4.[012]|aix4.[012].*)
22748         # We only want to do this on AIX 4.2 and lower, the check
22749         # below for broken collect2 doesn't work under 4.3+
22750           collect2name=`${CC} -print-prog-name=collect2`
22751           if test -f "$collect2name" && \
22752            strings "$collect2name" | grep resolve_lib_name >/dev/null
22753           then
22754           # We have reworked collect2
22755           :
22756           else
22757           # We have old collect2
22758           hardcode_direct_F77=unsupported
22759           # It fails to find uninstalled libraries when the uninstalled
22760           # path is not listed in the libpath.  Setting hardcode_minus_L
22761           # to unsupported forces relinking
22762           hardcode_minus_L_F77=yes
22763           hardcode_libdir_flag_spec_F77='-L$libdir'
22764           hardcode_libdir_separator_F77=
22765           fi
22766           ;;
22767         esac
22768         shared_flag='-shared'
22769         if test "$aix_use_runtimelinking" = yes; then
22770           shared_flag="$shared_flag "'${wl}-G'
22771         fi
22772       else
22773         # not using gcc
22774         if test "$host_cpu" = ia64; then
22775         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22776         # chokes on -Wl,-G. The following line is correct:
22777           shared_flag='-G'
22778         else
22779           if test "$aix_use_runtimelinking" = yes; then
22780             shared_flag='${wl}-G'
22781           else
22782             shared_flag='${wl}-bM:SRE'
22783           fi
22784         fi
22785       fi
22786
22787       # It seems that -bexpall does not export symbols beginning with
22788       # underscore (_), so it is better to generate a list of symbols to export.
22789       always_export_symbols_F77=yes
22790       if test "$aix_use_runtimelinking" = yes; then
22791         # Warning - without using the other runtime loading flags (-brtl),
22792         # -berok will link without error, but may produce a broken library.
22793         allow_undefined_flag_F77='-berok'
22794        # Determine the default libpath from the value encoded in an empty executable.
22795        cat >conftest.$ac_ext <<_ACEOF
22796       program main
22797
22798       end
22799 _ACEOF
22800 rm -f conftest.$ac_objext conftest$ac_exeext
22801 if { (ac_try="$ac_link"
22802 case "(($ac_try" in
22803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804   *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807   (eval "$ac_link") 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && {
22814          test -z "$ac_f77_werror_flag" ||
22815          test ! -s conftest.err
22816        } && test -s conftest$ac_exeext &&
22817        $as_test_x conftest$ac_exeext; then
22818
22819 lt_aix_libpath_sed='
22820     /Import File Strings/,/^$/ {
22821         /^0/ {
22822             s/^0  *\(.*\)$/\1/
22823             p
22824         }
22825     }'
22826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22827 # Check for a 64-bit object if we didn't find anything.
22828 if test -z "$aix_libpath"; then
22829   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22830 fi
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839       conftest$ac_exeext conftest.$ac_ext
22840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22841
22842        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22843         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"
22844        else
22845         if test "$host_cpu" = ia64; then
22846           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22847           allow_undefined_flag_F77="-z nodefs"
22848           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"
22849         else
22850          # Determine the default libpath from the value encoded in an empty executable.
22851          cat >conftest.$ac_ext <<_ACEOF
22852       program main
22853
22854       end
22855 _ACEOF
22856 rm -f conftest.$ac_objext conftest$ac_exeext
22857 if { (ac_try="$ac_link"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_link") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_f77_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest$ac_exeext &&
22873        $as_test_x conftest$ac_exeext; then
22874
22875 lt_aix_libpath_sed='
22876     /Import File Strings/,/^$/ {
22877         /^0/ {
22878             s/^0  *\(.*\)$/\1/
22879             p
22880         }
22881     }'
22882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22883 # Check for a 64-bit object if we didn't find anything.
22884 if test -z "$aix_libpath"; then
22885   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22886 fi
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22895       conftest$ac_exeext conftest.$ac_ext
22896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22897
22898          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22899           # Warning - without using the other run time loading flags,
22900           # -berok will link without error, but may produce a broken library.
22901           no_undefined_flag_F77=' ${wl}-bernotok'
22902           allow_undefined_flag_F77=' ${wl}-berok'
22903           # Exported symbols can be pulled into shared objects from archives
22904           whole_archive_flag_spec_F77='$convenience'
22905           archive_cmds_need_lc_F77=yes
22906           # This is similar to how AIX traditionally builds its shared libraries.
22907           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'
22908         fi
22909       fi
22910       ;;
22911
22912     amigaos*)
22913       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)'
22914       hardcode_libdir_flag_spec_F77='-L$libdir'
22915       hardcode_minus_L_F77=yes
22916       # see comment about different semantics on the GNU ld section
22917       ld_shlibs_F77=no
22918       ;;
22919
22920     bsdi[45]*)
22921       export_dynamic_flag_spec_F77=-rdynamic
22922       ;;
22923
22924     cygwin* | mingw* | pw32*)
22925       # When not using gcc, we currently assume that we are using
22926       # Microsoft Visual C++.
22927       # hardcode_libdir_flag_spec is actually meaningless, as there is
22928       # no search path for DLLs.
22929       hardcode_libdir_flag_spec_F77=' '
22930       allow_undefined_flag_F77=unsupported
22931       # Tell ltmain to make .lib files, not .a files.
22932       libext=lib
22933       # Tell ltmain to make .dll files, not .so files.
22934       shrext_cmds=".dll"
22935       # FIXME: Setting linknames here is a bad hack.
22936       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22937       # The linker will automatically build a .lib file if we build a DLL.
22938       old_archive_From_new_cmds_F77='true'
22939       # FIXME: Should let the user specify the lib program.
22940       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22941       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22942       enable_shared_with_static_runtimes_F77=yes
22943       ;;
22944
22945     darwin* | rhapsody*)
22946       case $host_os in
22947         rhapsody* | darwin1.[012])
22948          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22949          ;;
22950        *) # Darwin 1.3 on
22951          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22952            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22953          else
22954            case ${MACOSX_DEPLOYMENT_TARGET} in
22955              10.[012])
22956                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22957                ;;
22958              10.*)
22959                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22960                ;;
22961            esac
22962          fi
22963          ;;
22964       esac
22965       archive_cmds_need_lc_F77=no
22966       hardcode_direct_F77=no
22967       hardcode_automatic_F77=yes
22968       hardcode_shlibpath_var_F77=unsupported
22969       whole_archive_flag_spec_F77=''
22970       link_all_deplibs_F77=yes
22971     if test "$GCC" = yes ; then
22972         output_verbose_link_cmd='echo'
22973         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}"
22974         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22975         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}"
22976         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}"
22977     else
22978       case $cc_basename in
22979         xlc*)
22980          output_verbose_link_cmd='echo'
22981          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22982          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22983           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22984          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}'
22985           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}'
22986           ;;
22987        *)
22988          ld_shlibs_F77=no
22989           ;;
22990       esac
22991     fi
22992       ;;
22993
22994     dgux*)
22995       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22996       hardcode_libdir_flag_spec_F77='-L$libdir'
22997       hardcode_shlibpath_var_F77=no
22998       ;;
22999
23000     freebsd1*)
23001       ld_shlibs_F77=no
23002       ;;
23003
23004     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23005     # support.  Future versions do this automatically, but an explicit c++rt0.o
23006     # does not break anything, and helps significantly (at the cost of a little
23007     # extra space).
23008     freebsd2.2*)
23009       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23010       hardcode_libdir_flag_spec_F77='-R$libdir'
23011       hardcode_direct_F77=yes
23012       hardcode_shlibpath_var_F77=no
23013       ;;
23014
23015     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23016     freebsd2*)
23017       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23018       hardcode_direct_F77=yes
23019       hardcode_minus_L_F77=yes
23020       hardcode_shlibpath_var_F77=no
23021       ;;
23022
23023     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23024     freebsd* | dragonfly*)
23025       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23026       hardcode_libdir_flag_spec_F77='-R$libdir'
23027       hardcode_direct_F77=yes
23028       hardcode_shlibpath_var_F77=no
23029       ;;
23030
23031     hpux9*)
23032       if test "$GCC" = yes; then
23033         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'
23034       else
23035         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'
23036       fi
23037       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23038       hardcode_libdir_separator_F77=:
23039       hardcode_direct_F77=yes
23040
23041       # hardcode_minus_L: Not really in the search PATH,
23042       # but as the default location of the library.
23043       hardcode_minus_L_F77=yes
23044       export_dynamic_flag_spec_F77='${wl}-E'
23045       ;;
23046
23047     hpux10*)
23048       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23049         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23050       else
23051         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23052       fi
23053       if test "$with_gnu_ld" = no; then
23054         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23055         hardcode_libdir_separator_F77=:
23056
23057         hardcode_direct_F77=yes
23058         export_dynamic_flag_spec_F77='${wl}-E'
23059
23060         # hardcode_minus_L: Not really in the search PATH,
23061         # but as the default location of the library.
23062         hardcode_minus_L_F77=yes
23063       fi
23064       ;;
23065
23066     hpux11*)
23067       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23068         case $host_cpu in
23069         hppa*64*)
23070           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23071           ;;
23072         ia64*)
23073           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23074           ;;
23075         *)
23076           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23077           ;;
23078         esac
23079       else
23080         case $host_cpu in
23081         hppa*64*)
23082           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23083           ;;
23084         ia64*)
23085           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23086           ;;
23087         *)
23088           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23089           ;;
23090         esac
23091       fi
23092       if test "$with_gnu_ld" = no; then
23093         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23094         hardcode_libdir_separator_F77=:
23095
23096         case $host_cpu in
23097         hppa*64*|ia64*)
23098           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23099           hardcode_direct_F77=no
23100           hardcode_shlibpath_var_F77=no
23101           ;;
23102         *)
23103           hardcode_direct_F77=yes
23104           export_dynamic_flag_spec_F77='${wl}-E'
23105
23106           # hardcode_minus_L: Not really in the search PATH,
23107           # but as the default location of the library.
23108           hardcode_minus_L_F77=yes
23109           ;;
23110         esac
23111       fi
23112       ;;
23113
23114     irix5* | irix6* | nonstopux*)
23115       if test "$GCC" = yes; then
23116         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'
23117       else
23118         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'
23119         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23120       fi
23121       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23122       hardcode_libdir_separator_F77=:
23123       link_all_deplibs_F77=yes
23124       ;;
23125
23126     netbsd* | netbsdelf*-gnu)
23127       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23128         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23129       else
23130         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23131       fi
23132       hardcode_libdir_flag_spec_F77='-R$libdir'
23133       hardcode_direct_F77=yes
23134       hardcode_shlibpath_var_F77=no
23135       ;;
23136
23137     newsos6)
23138       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23139       hardcode_direct_F77=yes
23140       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23141       hardcode_libdir_separator_F77=:
23142       hardcode_shlibpath_var_F77=no
23143       ;;
23144
23145     openbsd*)
23146       if test -f /usr/libexec/ld.so; then
23147         hardcode_direct_F77=yes
23148         hardcode_shlibpath_var_F77=no
23149         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23150           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23151           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23152           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23153           export_dynamic_flag_spec_F77='${wl}-E'
23154         else
23155           case $host_os in
23156            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23157              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23158              hardcode_libdir_flag_spec_F77='-R$libdir'
23159              ;;
23160            *)
23161              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23162              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23163              ;;
23164           esac
23165         fi
23166       else
23167         ld_shlibs_F77=no
23168       fi
23169       ;;
23170
23171     os2*)
23172       hardcode_libdir_flag_spec_F77='-L$libdir'
23173       hardcode_minus_L_F77=yes
23174       allow_undefined_flag_F77=unsupported
23175       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'
23176       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23177       ;;
23178
23179     osf3*)
23180       if test "$GCC" = yes; then
23181         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23182         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'
23183       else
23184         allow_undefined_flag_F77=' -expect_unresolved \*'
23185         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'
23186       fi
23187       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23188       hardcode_libdir_separator_F77=:
23189       ;;
23190
23191     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23192       if test "$GCC" = yes; then
23193         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23194         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'
23195         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23196       else
23197         allow_undefined_flag_F77=' -expect_unresolved \*'
23198         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'
23199         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~
23200         $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'
23201
23202         # Both c and cxx compiler support -rpath directly
23203         hardcode_libdir_flag_spec_F77='-rpath $libdir'
23204       fi
23205       hardcode_libdir_separator_F77=:
23206       ;;
23207
23208     solaris*)
23209       no_undefined_flag_F77=' -z text'
23210       if test "$GCC" = yes; then
23211         wlarc='${wl}'
23212         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23213         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23214           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23215       else
23216         wlarc=''
23217         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23218         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23219         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23220       fi
23221       hardcode_libdir_flag_spec_F77='-R$libdir'
23222       hardcode_shlibpath_var_F77=no
23223       case $host_os in
23224       solaris2.[0-5] | solaris2.[0-5].*) ;;
23225       *)
23226         # The compiler driver will combine and reorder linker options,
23227         # but understands `-z linker_flag'.  GCC discards it without `$wl',
23228         # but is careful enough not to reorder.
23229         # Supported since Solaris 2.6 (maybe 2.5.1?)
23230         if test "$GCC" = yes; then
23231           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23232         else
23233           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23234         fi
23235         ;;
23236       esac
23237       link_all_deplibs_F77=yes
23238       ;;
23239
23240     sunos4*)
23241       if test "x$host_vendor" = xsequent; then
23242         # Use $CC to link under sequent, because it throws in some extra .o
23243         # files that make .init and .fini sections work.
23244         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23245       else
23246         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23247       fi
23248       hardcode_libdir_flag_spec_F77='-L$libdir'
23249       hardcode_direct_F77=yes
23250       hardcode_minus_L_F77=yes
23251       hardcode_shlibpath_var_F77=no
23252       ;;
23253
23254     sysv4)
23255       case $host_vendor in
23256         sni)
23257           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23258           hardcode_direct_F77=yes # is this really true???
23259         ;;
23260         siemens)
23261           ## LD is ld it makes a PLAMLIB
23262           ## CC just makes a GrossModule.
23263           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23264           reload_cmds_F77='$CC -r -o $output$reload_objs'
23265           hardcode_direct_F77=no
23266         ;;
23267         motorola)
23268           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23269           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23270         ;;
23271       esac
23272       runpath_var='LD_RUN_PATH'
23273       hardcode_shlibpath_var_F77=no
23274       ;;
23275
23276     sysv4.3*)
23277       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23278       hardcode_shlibpath_var_F77=no
23279       export_dynamic_flag_spec_F77='-Bexport'
23280       ;;
23281
23282     sysv4*MP*)
23283       if test -d /usr/nec; then
23284         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23285         hardcode_shlibpath_var_F77=no
23286         runpath_var=LD_RUN_PATH
23287         hardcode_runpath_var=yes
23288         ld_shlibs_F77=yes
23289       fi
23290       ;;
23291
23292     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23293       no_undefined_flag_F77='${wl}-z,text'
23294       archive_cmds_need_lc_F77=no
23295       hardcode_shlibpath_var_F77=no
23296       runpath_var='LD_RUN_PATH'
23297
23298       if test "$GCC" = yes; then
23299         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23300         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23301       else
23302         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23303         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23304       fi
23305       ;;
23306
23307     sysv5* | sco3.2v5* | sco5v6*)
23308       # Note: We can NOT use -z defs as we might desire, because we do not
23309       # link with -lc, and that would cause any symbols used from libc to
23310       # always be unresolved, which means just about no library would
23311       # ever link correctly.  If we're not using GNU ld we use -z text
23312       # though, which does catch some bad symbols but isn't as heavy-handed
23313       # as -z defs.
23314       no_undefined_flag_F77='${wl}-z,text'
23315       allow_undefined_flag_F77='${wl}-z,nodefs'
23316       archive_cmds_need_lc_F77=no
23317       hardcode_shlibpath_var_F77=no
23318       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23319       hardcode_libdir_separator_F77=':'
23320       link_all_deplibs_F77=yes
23321       export_dynamic_flag_spec_F77='${wl}-Bexport'
23322       runpath_var='LD_RUN_PATH'
23323
23324       if test "$GCC" = yes; then
23325         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23326         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23327       else
23328         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23329         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23330       fi
23331       ;;
23332
23333     uts4*)
23334       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23335       hardcode_libdir_flag_spec_F77='-L$libdir'
23336       hardcode_shlibpath_var_F77=no
23337       ;;
23338
23339     *)
23340       ld_shlibs_F77=no
23341       ;;
23342     esac
23343   fi
23344
23345 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23346 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23347 test "$ld_shlibs_F77" = no && can_build_shared=no
23348
23349 #
23350 # Do we need to explicitly link libc?
23351 #
23352 case "x$archive_cmds_need_lc_F77" in
23353 x|xyes)
23354   # Assume -lc should be added
23355   archive_cmds_need_lc_F77=yes
23356
23357   if test "$enable_shared" = yes && test "$GCC" = yes; then
23358     case $archive_cmds_F77 in
23359     *'~'*)
23360       # FIXME: we may have to deal with multi-command sequences.
23361       ;;
23362     '$CC '*)
23363       # Test whether the compiler implicitly links with -lc since on some
23364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23365       # to ld, don't add -lc before -lgcc.
23366       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23368       $rm conftest*
23369       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23370
23371       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23372   (eval $ac_compile) 2>&5
23373   ac_status=$?
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } 2>conftest.err; then
23376         soname=conftest
23377         lib=conftest
23378         libobjs=conftest.$ac_objext
23379         deplibs=
23380         wl=$lt_prog_compiler_wl_F77
23381         pic_flag=$lt_prog_compiler_pic_F77
23382         compiler_flags=-v
23383         linker_flags=-v
23384         verstring=
23385         output_objdir=.
23386         libname=conftest
23387         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23388         allow_undefined_flag_F77=
23389         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23390   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }
23394         then
23395           archive_cmds_need_lc_F77=no
23396         else
23397           archive_cmds_need_lc_F77=yes
23398         fi
23399         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23400       else
23401         cat conftest.err 1>&5
23402       fi
23403       $rm conftest*
23404       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23405 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23406       ;;
23407     esac
23408   fi
23409   ;;
23410 esac
23411
23412 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23413 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23414 library_names_spec=
23415 libname_spec='lib$name'
23416 soname_spec=
23417 shrext_cmds=".so"
23418 postinstall_cmds=
23419 postuninstall_cmds=
23420 finish_cmds=
23421 finish_eval=
23422 shlibpath_var=
23423 shlibpath_overrides_runpath=unknown
23424 version_type=none
23425 dynamic_linker="$host_os ld.so"
23426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23427
23428 need_lib_prefix=unknown
23429 hardcode_into_libs=no
23430
23431 # when you set need_version to no, make sure it does not cause -set_version
23432 # flags to be left without arguments
23433 need_version=unknown
23434
23435 case $host_os in
23436 aix3*)
23437   version_type=linux
23438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23439   shlibpath_var=LIBPATH
23440
23441   # AIX 3 has no versioning support, so we append a major version to the name.
23442   soname_spec='${libname}${release}${shared_ext}$major'
23443   ;;
23444
23445 aix[4-9]*)
23446   version_type=linux
23447   need_lib_prefix=no
23448   need_version=no
23449   hardcode_into_libs=yes
23450   if test "$host_cpu" = ia64; then
23451     # AIX 5 supports IA64
23452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23453     shlibpath_var=LD_LIBRARY_PATH
23454   else
23455     # With GCC up to 2.95.x, collect2 would create an import file
23456     # for dependence libraries.  The import file would start with
23457     # the line `#! .'.  This would cause the generated library to
23458     # depend on `.', always an invalid library.  This was fixed in
23459     # development snapshots of GCC prior to 3.0.
23460     case $host_os in
23461       aix4 | aix4.[01] | aix4.[01].*)
23462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23463            echo ' yes '
23464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23465         :
23466       else
23467         can_build_shared=no
23468       fi
23469       ;;
23470     esac
23471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23472     # soname into executable. Probably we can add versioning support to
23473     # collect2, so additional links can be useful in future.
23474     if test "$aix_use_runtimelinking" = yes; then
23475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23476       # instead of lib<name>.a to let people know that these are not
23477       # typical AIX shared libraries.
23478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23479     else
23480       # We preserve .a as extension for shared libraries through AIX4.2
23481       # and later when we are not doing run time linking.
23482       library_names_spec='${libname}${release}.a $libname.a'
23483       soname_spec='${libname}${release}${shared_ext}$major'
23484     fi
23485     shlibpath_var=LIBPATH
23486   fi
23487   ;;
23488
23489 amigaos*)
23490   library_names_spec='$libname.ixlibrary $libname.a'
23491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23492   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'
23493   ;;
23494
23495 beos*)
23496   library_names_spec='${libname}${shared_ext}'
23497   dynamic_linker="$host_os ld.so"
23498   shlibpath_var=LIBRARY_PATH
23499   ;;
23500
23501 bsdi[45]*)
23502   version_type=linux
23503   need_version=no
23504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505   soname_spec='${libname}${release}${shared_ext}$major'
23506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23507   shlibpath_var=LD_LIBRARY_PATH
23508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23510   # the default ld.so.conf also contains /usr/contrib/lib and
23511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23512   # libtool to hard-code these into programs
23513   ;;
23514
23515 cygwin* | mingw* | pw32*)
23516   version_type=windows
23517   shrext_cmds=".dll"
23518   need_version=no
23519   need_lib_prefix=no
23520
23521   case $GCC,$host_os in
23522   yes,cygwin* | yes,mingw* | yes,pw32*)
23523     library_names_spec='$libname.dll.a'
23524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23525     postinstall_cmds='base_file=`basename \${file}`~
23526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23527       dldir=$destdir/`dirname \$dlpath`~
23528       test -d \$dldir || mkdir -p \$dldir~
23529       $install_prog $dir/$dlname \$dldir/$dlname~
23530       chmod a+x \$dldir/$dlname'
23531     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23532       dlpath=$dir/\$dldll~
23533        $rm \$dlpath'
23534     shlibpath_overrides_runpath=yes
23535
23536     case $host_os in
23537     cygwin*)
23538       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23539       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23540       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23541       ;;
23542     mingw*)
23543       # MinGW DLLs use traditional 'lib' prefix
23544       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23545       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23546       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23547         # It is most probably a Windows format PATH printed by
23548         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23549         # path with ; separators, and with drive letters. We can handle the
23550         # drive letters (cygwin fileutils understands them), so leave them,
23551         # especially as we might pass files found there to a mingw objdump,
23552         # which wouldn't understand a cygwinified path. Ahh.
23553         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23554       else
23555         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23556       fi
23557       ;;
23558     pw32*)
23559       # pw32 DLLs use 'pw' prefix rather than 'lib'
23560       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23561       ;;
23562     esac
23563     ;;
23564
23565   *)
23566     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23567     ;;
23568   esac
23569   dynamic_linker='Win32 ld.exe'
23570   # FIXME: first we should search . and the directory the executable is in
23571   shlibpath_var=PATH
23572   ;;
23573
23574 darwin* | rhapsody*)
23575   dynamic_linker="$host_os dyld"
23576   version_type=darwin
23577   need_lib_prefix=no
23578   need_version=no
23579   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23580   soname_spec='${libname}${release}${major}$shared_ext'
23581   shlibpath_overrides_runpath=yes
23582   shlibpath_var=DYLD_LIBRARY_PATH
23583   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23584
23585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23586   ;;
23587
23588 dgux*)
23589   version_type=linux
23590   need_lib_prefix=no
23591   need_version=no
23592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23593   soname_spec='${libname}${release}${shared_ext}$major'
23594   shlibpath_var=LD_LIBRARY_PATH
23595   ;;
23596
23597 freebsd1*)
23598   dynamic_linker=no
23599   ;;
23600
23601 freebsd* | dragonfly*)
23602   # DragonFly does not have aout.  When/if they implement a new
23603   # versioning mechanism, adjust this.
23604   if test -x /usr/bin/objformat; then
23605     objformat=`/usr/bin/objformat`
23606   else
23607     case $host_os in
23608     freebsd[123]*) objformat=aout ;;
23609     *) objformat=elf ;;
23610     esac
23611   fi
23612   version_type=freebsd-$objformat
23613   case $version_type in
23614     freebsd-elf*)
23615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23616       need_version=no
23617       need_lib_prefix=no
23618       ;;
23619     freebsd-*)
23620       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23621       need_version=yes
23622       ;;
23623   esac
23624   shlibpath_var=LD_LIBRARY_PATH
23625   case $host_os in
23626   freebsd2*)
23627     shlibpath_overrides_runpath=yes
23628     ;;
23629   freebsd3.[01]* | freebsdelf3.[01]*)
23630     shlibpath_overrides_runpath=yes
23631     hardcode_into_libs=yes
23632     ;;
23633   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23634   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23635     shlibpath_overrides_runpath=no
23636     hardcode_into_libs=yes
23637     ;;
23638   *) # from 4.6 on, and DragonFly
23639     shlibpath_overrides_runpath=yes
23640     hardcode_into_libs=yes
23641     ;;
23642   esac
23643   ;;
23644
23645 gnu*)
23646   version_type=linux
23647   need_lib_prefix=no
23648   need_version=no
23649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23650   soname_spec='${libname}${release}${shared_ext}$major'
23651   shlibpath_var=LD_LIBRARY_PATH
23652   hardcode_into_libs=yes
23653   ;;
23654
23655 hpux9* | hpux10* | hpux11*)
23656   # Give a soname corresponding to the major version so that dld.sl refuses to
23657   # link against other versions.
23658   version_type=sunos
23659   need_lib_prefix=no
23660   need_version=no
23661   case $host_cpu in
23662   ia64*)
23663     shrext_cmds='.so'
23664     hardcode_into_libs=yes
23665     dynamic_linker="$host_os dld.so"
23666     shlibpath_var=LD_LIBRARY_PATH
23667     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23669     soname_spec='${libname}${release}${shared_ext}$major'
23670     if test "X$HPUX_IA64_MODE" = X32; then
23671       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23672     else
23673       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23674     fi
23675     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23676     ;;
23677    hppa*64*)
23678      shrext_cmds='.sl'
23679      hardcode_into_libs=yes
23680      dynamic_linker="$host_os dld.sl"
23681      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23682      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23683      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23684      soname_spec='${libname}${release}${shared_ext}$major'
23685      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23686      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23687      ;;
23688    *)
23689     shrext_cmds='.sl'
23690     dynamic_linker="$host_os dld.sl"
23691     shlibpath_var=SHLIB_PATH
23692     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23694     soname_spec='${libname}${release}${shared_ext}$major'
23695     ;;
23696   esac
23697   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23698   postinstall_cmds='chmod 555 $lib'
23699   ;;
23700
23701 interix[3-9]*)
23702   version_type=linux
23703   need_lib_prefix=no
23704   need_version=no
23705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23706   soname_spec='${libname}${release}${shared_ext}$major'
23707   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23708   shlibpath_var=LD_LIBRARY_PATH
23709   shlibpath_overrides_runpath=no
23710   hardcode_into_libs=yes
23711   ;;
23712
23713 irix5* | irix6* | nonstopux*)
23714   case $host_os in
23715     nonstopux*) version_type=nonstopux ;;
23716     *)
23717         if test "$lt_cv_prog_gnu_ld" = yes; then
23718                 version_type=linux
23719         else
23720                 version_type=irix
23721         fi ;;
23722   esac
23723   need_lib_prefix=no
23724   need_version=no
23725   soname_spec='${libname}${release}${shared_ext}$major'
23726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23727   case $host_os in
23728   irix5* | nonstopux*)
23729     libsuff= shlibsuff=
23730     ;;
23731   *)
23732     case $LD in # libtool.m4 will add one of these switches to LD
23733     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23734       libsuff= shlibsuff= libmagic=32-bit;;
23735     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23736       libsuff=32 shlibsuff=N32 libmagic=N32;;
23737     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23738       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23739     *) libsuff= shlibsuff= libmagic=never-match;;
23740     esac
23741     ;;
23742   esac
23743   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23744   shlibpath_overrides_runpath=no
23745   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23746   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23747   hardcode_into_libs=yes
23748   ;;
23749
23750 # No shared lib support for Linux oldld, aout, or coff.
23751 linux*oldld* | linux*aout* | linux*coff*)
23752   dynamic_linker=no
23753   ;;
23754
23755 # This must be Linux ELF.
23756 linux* | k*bsd*-gnu)
23757   version_type=linux
23758   need_lib_prefix=no
23759   need_version=no
23760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23761   soname_spec='${libname}${release}${shared_ext}$major'
23762   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23763   shlibpath_var=LD_LIBRARY_PATH
23764   shlibpath_overrides_runpath=no
23765   # This implies no fast_install, which is unacceptable.
23766   # Some rework will be needed to allow for fast_install
23767   # before this can be enabled.
23768   hardcode_into_libs=yes
23769
23770   # Append ld.so.conf contents to the search path
23771   if test -f /etc/ld.so.conf; then
23772     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' ' '`
23773     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23774   fi
23775
23776   # We used to test for /lib/ld.so.1 and disable shared libraries on
23777   # powerpc, because MkLinux only supported shared libraries with the
23778   # GNU dynamic linker.  Since this was broken with cross compilers,
23779   # most powerpc-linux boxes support dynamic linking these days and
23780   # people can always --disable-shared, the test was removed, and we
23781   # assume the GNU/Linux dynamic linker is in use.
23782   dynamic_linker='GNU/Linux ld.so'
23783   ;;
23784
23785 netbsdelf*-gnu)
23786   version_type=linux
23787   need_lib_prefix=no
23788   need_version=no
23789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23790   soname_spec='${libname}${release}${shared_ext}$major'
23791   shlibpath_var=LD_LIBRARY_PATH
23792   shlibpath_overrides_runpath=no
23793   hardcode_into_libs=yes
23794   dynamic_linker='NetBSD ld.elf_so'
23795   ;;
23796
23797 netbsd*)
23798   version_type=sunos
23799   need_lib_prefix=no
23800   need_version=no
23801   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23803     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23804     dynamic_linker='NetBSD (a.out) ld.so'
23805   else
23806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23807     soname_spec='${libname}${release}${shared_ext}$major'
23808     dynamic_linker='NetBSD ld.elf_so'
23809   fi
23810   shlibpath_var=LD_LIBRARY_PATH
23811   shlibpath_overrides_runpath=yes
23812   hardcode_into_libs=yes
23813   ;;
23814
23815 newsos6)
23816   version_type=linux
23817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23818   shlibpath_var=LD_LIBRARY_PATH
23819   shlibpath_overrides_runpath=yes
23820   ;;
23821
23822 nto-qnx*)
23823   version_type=linux
23824   need_lib_prefix=no
23825   need_version=no
23826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23827   soname_spec='${libname}${release}${shared_ext}$major'
23828   shlibpath_var=LD_LIBRARY_PATH
23829   shlibpath_overrides_runpath=yes
23830   ;;
23831
23832 openbsd*)
23833   version_type=sunos
23834   sys_lib_dlsearch_path_spec="/usr/lib"
23835   need_lib_prefix=no
23836   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23837   case $host_os in
23838     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23839     *)                         need_version=no  ;;
23840   esac
23841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23843   shlibpath_var=LD_LIBRARY_PATH
23844   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23845     case $host_os in
23846       openbsd2.[89] | openbsd2.[89].*)
23847         shlibpath_overrides_runpath=no
23848         ;;
23849       *)
23850         shlibpath_overrides_runpath=yes
23851         ;;
23852       esac
23853   else
23854     shlibpath_overrides_runpath=yes
23855   fi
23856   ;;
23857
23858 os2*)
23859   libname_spec='$name'
23860   shrext_cmds=".dll"
23861   need_lib_prefix=no
23862   library_names_spec='$libname${shared_ext} $libname.a'
23863   dynamic_linker='OS/2 ld.exe'
23864   shlibpath_var=LIBPATH
23865   ;;
23866
23867 osf3* | osf4* | osf5*)
23868   version_type=osf
23869   need_lib_prefix=no
23870   need_version=no
23871   soname_spec='${libname}${release}${shared_ext}$major'
23872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23873   shlibpath_var=LD_LIBRARY_PATH
23874   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23875   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23876   ;;
23877
23878 rdos*)
23879   dynamic_linker=no
23880   ;;
23881
23882 solaris*)
23883   version_type=linux
23884   need_lib_prefix=no
23885   need_version=no
23886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23887   soname_spec='${libname}${release}${shared_ext}$major'
23888   shlibpath_var=LD_LIBRARY_PATH
23889   shlibpath_overrides_runpath=yes
23890   hardcode_into_libs=yes
23891   # ldd complains unless libraries are executable
23892   postinstall_cmds='chmod +x $lib'
23893   ;;
23894
23895 sunos4*)
23896   version_type=sunos
23897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23898   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23899   shlibpath_var=LD_LIBRARY_PATH
23900   shlibpath_overrides_runpath=yes
23901   if test "$with_gnu_ld" = yes; then
23902     need_lib_prefix=no
23903   fi
23904   need_version=yes
23905   ;;
23906
23907 sysv4 | sysv4.3*)
23908   version_type=linux
23909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23910   soname_spec='${libname}${release}${shared_ext}$major'
23911   shlibpath_var=LD_LIBRARY_PATH
23912   case $host_vendor in
23913     sni)
23914       shlibpath_overrides_runpath=no
23915       need_lib_prefix=no
23916       export_dynamic_flag_spec='${wl}-Blargedynsym'
23917       runpath_var=LD_RUN_PATH
23918       ;;
23919     siemens)
23920       need_lib_prefix=no
23921       ;;
23922     motorola)
23923       need_lib_prefix=no
23924       need_version=no
23925       shlibpath_overrides_runpath=no
23926       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23927       ;;
23928   esac
23929   ;;
23930
23931 sysv4*MP*)
23932   if test -d /usr/nec ;then
23933     version_type=linux
23934     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23935     soname_spec='$libname${shared_ext}.$major'
23936     shlibpath_var=LD_LIBRARY_PATH
23937   fi
23938   ;;
23939
23940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23941   version_type=freebsd-elf
23942   need_lib_prefix=no
23943   need_version=no
23944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23945   soname_spec='${libname}${release}${shared_ext}$major'
23946   shlibpath_var=LD_LIBRARY_PATH
23947   hardcode_into_libs=yes
23948   if test "$with_gnu_ld" = yes; then
23949     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23950     shlibpath_overrides_runpath=no
23951   else
23952     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23953     shlibpath_overrides_runpath=yes
23954     case $host_os in
23955       sco3.2v5*)
23956         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23957         ;;
23958     esac
23959   fi
23960   sys_lib_dlsearch_path_spec='/usr/lib'
23961   ;;
23962
23963 uts4*)
23964   version_type=linux
23965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23966   soname_spec='${libname}${release}${shared_ext}$major'
23967   shlibpath_var=LD_LIBRARY_PATH
23968   ;;
23969
23970 *)
23971   dynamic_linker=no
23972   ;;
23973 esac
23974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23975 echo "${ECHO_T}$dynamic_linker" >&6; }
23976 test "$dynamic_linker" = no && can_build_shared=no
23977
23978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23979   echo $ECHO_N "(cached) $ECHO_C" >&6
23980 else
23981   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23982 fi
23983
23984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23985 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23989 fi
23990
23991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23992
23993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23994 if test "$GCC" = yes; then
23995   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23996 fi
23997
23998 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24000 hardcode_action_F77=
24001 if test -n "$hardcode_libdir_flag_spec_F77" || \
24002    test -n "$runpath_var_F77" || \
24003    test "X$hardcode_automatic_F77" = "Xyes" ; then
24004
24005   # We can hardcode non-existant directories.
24006   if test "$hardcode_direct_F77" != no &&
24007      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24008      # have to relink, otherwise we might link with an installed library
24009      # when we should be linking with a yet-to-be-installed one
24010      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24011      test "$hardcode_minus_L_F77" != no; then
24012     # Linking always hardcodes the temporary library directory.
24013     hardcode_action_F77=relink
24014   else
24015     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24016     hardcode_action_F77=immediate
24017   fi
24018 else
24019   # We cannot hardcode anything, or else we can only hardcode existing
24020   # directories.
24021   hardcode_action_F77=unsupported
24022 fi
24023 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24024 echo "${ECHO_T}$hardcode_action_F77" >&6; }
24025
24026 if test "$hardcode_action_F77" = relink; then
24027   # Fast installation is not supported
24028   enable_fast_install=no
24029 elif test "$shlibpath_overrides_runpath" = yes ||
24030      test "$enable_shared" = no; then
24031   # Fast installation is not necessary
24032   enable_fast_install=needless
24033 fi
24034
24035
24036 # The else clause should only fire when bootstrapping the
24037 # libtool distribution, otherwise you forgot to ship ltmain.sh
24038 # with your package, and you will get complaints that there are
24039 # no rules to generate ltmain.sh.
24040 if test -f "$ltmain"; then
24041   # See if we are running on zsh, and set the options which allow our commands through
24042   # without removal of \ escapes.
24043   if test -n "${ZSH_VERSION+set}" ; then
24044     setopt NO_GLOB_SUBST
24045   fi
24046   # Now quote all the things that may contain metacharacters while being
24047   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24048   # variables and quote the copies for generation of the libtool script.
24049   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24050     SED SHELL STRIP \
24051     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24052     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24053     deplibs_check_method reload_flag reload_cmds need_locks \
24054     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24055     lt_cv_sys_global_symbol_to_c_name_address \
24056     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24057     old_postinstall_cmds old_postuninstall_cmds \
24058     compiler_F77 \
24059     CC_F77 \
24060     LD_F77 \
24061     lt_prog_compiler_wl_F77 \
24062     lt_prog_compiler_pic_F77 \
24063     lt_prog_compiler_static_F77 \
24064     lt_prog_compiler_no_builtin_flag_F77 \
24065     export_dynamic_flag_spec_F77 \
24066     thread_safe_flag_spec_F77 \
24067     whole_archive_flag_spec_F77 \
24068     enable_shared_with_static_runtimes_F77 \
24069     old_archive_cmds_F77 \
24070     old_archive_from_new_cmds_F77 \
24071     predep_objects_F77 \
24072     postdep_objects_F77 \
24073     predeps_F77 \
24074     postdeps_F77 \
24075     compiler_lib_search_path_F77 \
24076     compiler_lib_search_dirs_F77 \
24077     archive_cmds_F77 \
24078     archive_expsym_cmds_F77 \
24079     postinstall_cmds_F77 \
24080     postuninstall_cmds_F77 \
24081     old_archive_from_expsyms_cmds_F77 \
24082     allow_undefined_flag_F77 \
24083     no_undefined_flag_F77 \
24084     export_symbols_cmds_F77 \
24085     hardcode_libdir_flag_spec_F77 \
24086     hardcode_libdir_flag_spec_ld_F77 \
24087     hardcode_libdir_separator_F77 \
24088     hardcode_automatic_F77 \
24089     module_cmds_F77 \
24090     module_expsym_cmds_F77 \
24091     lt_cv_prog_compiler_c_o_F77 \
24092     fix_srcfile_path_F77 \
24093     exclude_expsyms_F77 \
24094     include_expsyms_F77; do
24095
24096     case $var in
24097     old_archive_cmds_F77 | \
24098     old_archive_from_new_cmds_F77 | \
24099     archive_cmds_F77 | \
24100     archive_expsym_cmds_F77 | \
24101     module_cmds_F77 | \
24102     module_expsym_cmds_F77 | \
24103     old_archive_from_expsyms_cmds_F77 | \
24104     export_symbols_cmds_F77 | \
24105     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24106     postinstall_cmds | postuninstall_cmds | \
24107     old_postinstall_cmds | old_postuninstall_cmds | \
24108     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24109       # Double-quote double-evaled strings.
24110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24111       ;;
24112     *)
24113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24114       ;;
24115     esac
24116   done
24117
24118   case $lt_echo in
24119   *'\$0 --fallback-echo"')
24120     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24121     ;;
24122   esac
24123
24124 cfgfile="$ofile"
24125
24126   cat <<__EOF__ >> "$cfgfile"
24127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24128
24129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24130
24131 # Shell to use when invoking shell scripts.
24132 SHELL=$lt_SHELL
24133
24134 # Whether or not to build shared libraries.
24135 build_libtool_libs=$enable_shared
24136
24137 # Whether or not to build static libraries.
24138 build_old_libs=$enable_static
24139
24140 # Whether or not to add -lc for building shared libraries.
24141 build_libtool_need_lc=$archive_cmds_need_lc_F77
24142
24143 # Whether or not to disallow shared libs when runtime libs are static
24144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24145
24146 # Whether or not to optimize for fast installation.
24147 fast_install=$enable_fast_install
24148
24149 # The host system.
24150 host_alias=$host_alias
24151 host=$host
24152 host_os=$host_os
24153
24154 # The build system.
24155 build_alias=$build_alias
24156 build=$build
24157 build_os=$build_os
24158
24159 # An echo program that does not interpret backslashes.
24160 echo=$lt_echo
24161
24162 # The archiver.
24163 AR=$lt_AR
24164 AR_FLAGS=$lt_AR_FLAGS
24165
24166 # A C compiler.
24167 LTCC=$lt_LTCC
24168
24169 # LTCC compiler flags.
24170 LTCFLAGS=$lt_LTCFLAGS
24171
24172 # A language-specific compiler.
24173 CC=$lt_compiler_F77
24174
24175 # Is the compiler the GNU C compiler?
24176 with_gcc=$GCC_F77
24177
24178 # An ERE matcher.
24179 EGREP=$lt_EGREP
24180
24181 # The linker used to build libraries.
24182 LD=$lt_LD_F77
24183
24184 # Whether we need hard or soft links.
24185 LN_S=$lt_LN_S
24186
24187 # A BSD-compatible nm program.
24188 NM=$lt_NM
24189
24190 # A symbol stripping program
24191 STRIP=$lt_STRIP
24192
24193 # Used to examine libraries when file_magic_cmd begins "file"
24194 MAGIC_CMD=$MAGIC_CMD
24195
24196 # Used on cygwin: DLL creation program.
24197 DLLTOOL="$DLLTOOL"
24198
24199 # Used on cygwin: object dumper.
24200 OBJDUMP="$OBJDUMP"
24201
24202 # Used on cygwin: assembler.
24203 AS="$AS"
24204
24205 # The name of the directory that contains temporary libtool files.
24206 objdir=$objdir
24207
24208 # How to create reloadable object files.
24209 reload_flag=$lt_reload_flag
24210 reload_cmds=$lt_reload_cmds
24211
24212 # How to pass a linker flag through the compiler.
24213 wl=$lt_lt_prog_compiler_wl_F77
24214
24215 # Object file suffix (normally "o").
24216 objext="$ac_objext"
24217
24218 # Old archive suffix (normally "a").
24219 libext="$libext"
24220
24221 # Shared library suffix (normally ".so").
24222 shrext_cmds='$shrext_cmds'
24223
24224 # Executable file suffix (normally "").
24225 exeext="$exeext"
24226
24227 # Additional compiler flags for building library objects.
24228 pic_flag=$lt_lt_prog_compiler_pic_F77
24229 pic_mode=$pic_mode
24230
24231 # What is the maximum length of a command?
24232 max_cmd_len=$lt_cv_sys_max_cmd_len
24233
24234 # Does compiler simultaneously support -c and -o options?
24235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24236
24237 # Must we lock files when doing compilation?
24238 need_locks=$lt_need_locks
24239
24240 # Do we need the lib prefix for modules?
24241 need_lib_prefix=$need_lib_prefix
24242
24243 # Do we need a version for libraries?
24244 need_version=$need_version
24245
24246 # Whether dlopen is supported.
24247 dlopen_support=$enable_dlopen
24248
24249 # Whether dlopen of programs is supported.
24250 dlopen_self=$enable_dlopen_self
24251
24252 # Whether dlopen of statically linked programs is supported.
24253 dlopen_self_static=$enable_dlopen_self_static
24254
24255 # Compiler flag to prevent dynamic linking.
24256 link_static_flag=$lt_lt_prog_compiler_static_F77
24257
24258 # Compiler flag to turn off builtin functions.
24259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24260
24261 # Compiler flag to allow reflexive dlopens.
24262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24263
24264 # Compiler flag to generate shared objects directly from archives.
24265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24266
24267 # Compiler flag to generate thread-safe objects.
24268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24269
24270 # Library versioning type.
24271 version_type=$version_type
24272
24273 # Format of library name prefix.
24274 libname_spec=$lt_libname_spec
24275
24276 # List of archive names.  First name is the real one, the rest are links.
24277 # The last name is the one that the linker finds with -lNAME.
24278 library_names_spec=$lt_library_names_spec
24279
24280 # The coded name of the library, if different from the real name.
24281 soname_spec=$lt_soname_spec
24282
24283 # Commands used to build and install an old-style archive.
24284 RANLIB=$lt_RANLIB
24285 old_archive_cmds=$lt_old_archive_cmds_F77
24286 old_postinstall_cmds=$lt_old_postinstall_cmds
24287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24288
24289 # Create an old-style archive from a shared archive.
24290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24291
24292 # Create a temporary old-style archive to link instead of a shared archive.
24293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24294
24295 # Commands used to build and install a shared archive.
24296 archive_cmds=$lt_archive_cmds_F77
24297 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24298 postinstall_cmds=$lt_postinstall_cmds
24299 postuninstall_cmds=$lt_postuninstall_cmds
24300
24301 # Commands used to build a loadable module (assumed same as above if empty)
24302 module_cmds=$lt_module_cmds_F77
24303 module_expsym_cmds=$lt_module_expsym_cmds_F77
24304
24305 # Commands to strip libraries.
24306 old_striplib=$lt_old_striplib
24307 striplib=$lt_striplib
24308
24309 # Dependencies to place before the objects being linked to create a
24310 # shared library.
24311 predep_objects=$lt_predep_objects_F77
24312
24313 # Dependencies to place after the objects being linked to create a
24314 # shared library.
24315 postdep_objects=$lt_postdep_objects_F77
24316
24317 # Dependencies to place before the objects being linked to create a
24318 # shared library.
24319 predeps=$lt_predeps_F77
24320
24321 # Dependencies to place after the objects being linked to create a
24322 # shared library.
24323 postdeps=$lt_postdeps_F77
24324
24325 # The directories searched by this compiler when creating a shared
24326 # library
24327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
24328
24329 # The library search path used internally by the compiler when linking
24330 # a shared library.
24331 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24332
24333 # Method to check whether dependent libraries are shared objects.
24334 deplibs_check_method=$lt_deplibs_check_method
24335
24336 # Command to use when deplibs_check_method == file_magic.
24337 file_magic_cmd=$lt_file_magic_cmd
24338
24339 # Flag that allows shared libraries with undefined symbols to be built.
24340 allow_undefined_flag=$lt_allow_undefined_flag_F77
24341
24342 # Flag that forces no undefined symbols.
24343 no_undefined_flag=$lt_no_undefined_flag_F77
24344
24345 # Commands used to finish a libtool library installation in a directory.
24346 finish_cmds=$lt_finish_cmds
24347
24348 # Same as above, but a single script fragment to be evaled but not shown.
24349 finish_eval=$lt_finish_eval
24350
24351 # Take the output of nm and produce a listing of raw symbols and C names.
24352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24353
24354 # Transform the output of nm in a proper C declaration
24355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24356
24357 # Transform the output of nm in a C name address pair
24358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24359
24360 # This is the shared library runtime path variable.
24361 runpath_var=$runpath_var
24362
24363 # This is the shared library path variable.
24364 shlibpath_var=$shlibpath_var
24365
24366 # Is shlibpath searched before the hard-coded library search path?
24367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24368
24369 # How to hardcode a shared library path into an executable.
24370 hardcode_action=$hardcode_action_F77
24371
24372 # Whether we should hardcode library paths into libraries.
24373 hardcode_into_libs=$hardcode_into_libs
24374
24375 # Flag to hardcode \$libdir into a binary during linking.
24376 # This must work even if \$libdir does not exist.
24377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24378
24379 # If ld is used when linking, flag to hardcode \$libdir into
24380 # a binary during linking. This must work even if \$libdir does
24381 # not exist.
24382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24383
24384 # Whether we need a single -rpath flag with a separated argument.
24385 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24386
24387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24388 # resulting binary.
24389 hardcode_direct=$hardcode_direct_F77
24390
24391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24392 # resulting binary.
24393 hardcode_minus_L=$hardcode_minus_L_F77
24394
24395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24396 # the resulting binary.
24397 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24398
24399 # Set to yes if building a shared library automatically hardcodes DIR into the library
24400 # and all subsequent libraries and executables linked against it.
24401 hardcode_automatic=$hardcode_automatic_F77
24402
24403 # Variables whose values should be saved in libtool wrapper scripts and
24404 # restored at relink time.
24405 variables_saved_for_relink="$variables_saved_for_relink"
24406
24407 # Whether libtool must link a program against all its dependency libraries.
24408 link_all_deplibs=$link_all_deplibs_F77
24409
24410 # Compile-time system search path for libraries
24411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24412
24413 # Run-time system search path for libraries
24414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24415
24416 # Fix the shell variable \$srcfile for the compiler.
24417 fix_srcfile_path=$lt_fix_srcfile_path
24418
24419 # Set to yes if exported symbols are required.
24420 always_export_symbols=$always_export_symbols_F77
24421
24422 # The commands to list exported symbols.
24423 export_symbols_cmds=$lt_export_symbols_cmds_F77
24424
24425 # The commands to extract the exported symbol list from a shared archive.
24426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24427
24428 # Symbols that should not be listed in the preloaded symbols.
24429 exclude_expsyms=$lt_exclude_expsyms_F77
24430
24431 # Symbols that must always be exported.
24432 include_expsyms=$lt_include_expsyms_F77
24433
24434 # ### END LIBTOOL TAG CONFIG: $tagname
24435
24436 __EOF__
24437
24438
24439 else
24440   # If there is no Makefile yet, we rely on a make rule to execute
24441   # `config.status --recheck' to rerun these tests and create the
24442   # libtool script then.
24443   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24444   if test -f "$ltmain_in"; then
24445     test -f Makefile && make "$ltmain"
24446   fi
24447 fi
24448
24449
24450 ac_ext=c
24451 ac_cpp='$CPP $CPPFLAGS'
24452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24455
24456 CC="$lt_save_CC"
24457
24458         else
24459           tagname=""
24460         fi
24461         ;;
24462
24463       GCJ)
24464         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24465
24466
24467 # Source file extension for Java test sources.
24468 ac_ext=java
24469
24470 # Object file extension for compiled Java test sources.
24471 objext=o
24472 objext_GCJ=$objext
24473
24474 # Code to be used in simple compile tests
24475 lt_simple_compile_test_code="class foo {}"
24476
24477 # Code to be used in simple link tests
24478 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
24479
24480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24481
24482 # If no C compiler was specified, use CC.
24483 LTCC=${LTCC-"$CC"}
24484
24485 # If no C compiler flags were specified, use CFLAGS.
24486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24487
24488 # Allow CC to be a program name with arguments.
24489 compiler=$CC
24490
24491
24492 # save warnings/boilerplate of simple test code
24493 ac_outfile=conftest.$ac_objext
24494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24496 _lt_compiler_boilerplate=`cat conftest.err`
24497 $rm conftest*
24498
24499 ac_outfile=conftest.$ac_objext
24500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24502 _lt_linker_boilerplate=`cat conftest.err`
24503 $rm -r conftest*
24504
24505
24506 # Allow CC to be a program name with arguments.
24507 lt_save_CC="$CC"
24508 CC=${GCJ-"gcj"}
24509 compiler=$CC
24510 compiler_GCJ=$CC
24511 for cc_temp in $compiler""; do
24512   case $cc_temp in
24513     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24514     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24515     \-*) ;;
24516     *) break;;
24517   esac
24518 done
24519 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24520
24521
24522 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24523 archive_cmds_need_lc_GCJ=no
24524
24525 old_archive_cmds_GCJ=$old_archive_cmds
24526
24527
24528 lt_prog_compiler_no_builtin_flag_GCJ=
24529
24530 if test "$GCC" = yes; then
24531   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24532
24533
24534 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   lt_cv_prog_compiler_rtti_exceptions=no
24540   ac_outfile=conftest.$ac_objext
24541    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24542    lt_compiler_flag="-fno-rtti -fno-exceptions"
24543    # Insert the option either (1) after the last *FLAGS variable, or
24544    # (2) before a word containing "conftest.", or (3) at the end.
24545    # Note that $ac_compile itself does not contain backslashes and begins
24546    # with a dollar sign (not a hyphen), so the echo should work correctly.
24547    # The option is referenced via a variable to avoid confusing sed.
24548    lt_compile=`echo "$ac_compile" | $SED \
24549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551    -e 's:$: $lt_compiler_flag:'`
24552    (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
24553    (eval "$lt_compile" 2>conftest.err)
24554    ac_status=$?
24555    cat conftest.err >&5
24556    echo "$as_me:24556: \$? = $ac_status" >&5
24557    if (exit $ac_status) && test -s "$ac_outfile"; then
24558      # The compiler can only warn and ignore the option if not recognized
24559      # So say no if there are warnings other than the usual output.
24560      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24561      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24562      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24563        lt_cv_prog_compiler_rtti_exceptions=yes
24564      fi
24565    fi
24566    $rm conftest*
24567
24568 fi
24569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24571
24572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24573     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24574 else
24575     :
24576 fi
24577
24578 fi
24579
24580 lt_prog_compiler_wl_GCJ=
24581 lt_prog_compiler_pic_GCJ=
24582 lt_prog_compiler_static_GCJ=
24583
24584 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24586
24587   if test "$GCC" = yes; then
24588     lt_prog_compiler_wl_GCJ='-Wl,'
24589     lt_prog_compiler_static_GCJ='-static'
24590
24591     case $host_os in
24592       aix*)
24593       # All AIX code is PIC.
24594       if test "$host_cpu" = ia64; then
24595         # AIX 5 now supports IA64 processor
24596         lt_prog_compiler_static_GCJ='-Bstatic'
24597       fi
24598       ;;
24599
24600     amigaos*)
24601       # FIXME: we need at least 68020 code to build shared libraries, but
24602       # adding the `-m68020' flag to GCC prevents building anything better,
24603       # like `-m68040'.
24604       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24605       ;;
24606
24607     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24608       # PIC is the default for these OSes.
24609       ;;
24610
24611     mingw* | cygwin* | pw32* | os2*)
24612       # This hack is so that the source file can tell whether it is being
24613       # built for inclusion in a dll (and should export symbols for example).
24614       # Although the cygwin gcc ignores -fPIC, still need this for old-style
24615       # (--disable-auto-import) libraries
24616
24617       ;;
24618
24619     darwin* | rhapsody*)
24620       # PIC is the default on this platform
24621       # Common symbols not allowed in MH_DYLIB files
24622       lt_prog_compiler_pic_GCJ='-fno-common'
24623       ;;
24624
24625     interix[3-9]*)
24626       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24627       # Instead, we relocate shared libraries at runtime.
24628       ;;
24629
24630     msdosdjgpp*)
24631       # Just because we use GCC doesn't mean we suddenly get shared libraries
24632       # on systems that don't support them.
24633       lt_prog_compiler_can_build_shared_GCJ=no
24634       enable_shared=no
24635       ;;
24636
24637     sysv4*MP*)
24638       if test -d /usr/nec; then
24639         lt_prog_compiler_pic_GCJ=-Kconform_pic
24640       fi
24641       ;;
24642
24643     hpux*)
24644       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24645       # not for PA HP-UX.
24646       case $host_cpu in
24647       hppa*64*|ia64*)
24648         # +Z the default
24649         ;;
24650       *)
24651         lt_prog_compiler_pic_GCJ='-fPIC'
24652         ;;
24653       esac
24654       ;;
24655
24656     *)
24657       lt_prog_compiler_pic_GCJ='-fPIC'
24658       ;;
24659     esac
24660   else
24661     # PORTME Check for flag to pass linker flags through the system compiler.
24662     case $host_os in
24663     aix*)
24664       lt_prog_compiler_wl_GCJ='-Wl,'
24665       if test "$host_cpu" = ia64; then
24666         # AIX 5 now supports IA64 processor
24667         lt_prog_compiler_static_GCJ='-Bstatic'
24668       else
24669         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24670       fi
24671       ;;
24672       darwin*)
24673         # PIC is the default on this platform
24674         # Common symbols not allowed in MH_DYLIB files
24675        case $cc_basename in
24676          xlc*)
24677          lt_prog_compiler_pic_GCJ='-qnocommon'
24678          lt_prog_compiler_wl_GCJ='-Wl,'
24679          ;;
24680        esac
24681        ;;
24682
24683     mingw* | cygwin* | pw32* | os2*)
24684       # This hack is so that the source file can tell whether it is being
24685       # built for inclusion in a dll (and should export symbols for example).
24686
24687       ;;
24688
24689     hpux9* | hpux10* | hpux11*)
24690       lt_prog_compiler_wl_GCJ='-Wl,'
24691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24692       # not for PA HP-UX.
24693       case $host_cpu in
24694       hppa*64*|ia64*)
24695         # +Z the default
24696         ;;
24697       *)
24698         lt_prog_compiler_pic_GCJ='+Z'
24699         ;;
24700       esac
24701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24702       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24703       ;;
24704
24705     irix5* | irix6* | nonstopux*)
24706       lt_prog_compiler_wl_GCJ='-Wl,'
24707       # PIC (with -KPIC) is the default.
24708       lt_prog_compiler_static_GCJ='-non_shared'
24709       ;;
24710
24711     newsos6)
24712       lt_prog_compiler_pic_GCJ='-KPIC'
24713       lt_prog_compiler_static_GCJ='-Bstatic'
24714       ;;
24715
24716     linux* | k*bsd*-gnu)
24717       case $cc_basename in
24718       icc* | ecc*)
24719         lt_prog_compiler_wl_GCJ='-Wl,'
24720         lt_prog_compiler_pic_GCJ='-KPIC'
24721         lt_prog_compiler_static_GCJ='-static'
24722         ;;
24723       pgcc* | pgf77* | pgf90* | pgf95*)
24724         # Portland Group compilers (*not* the Pentium gcc compiler,
24725         # which looks to be a dead project)
24726         lt_prog_compiler_wl_GCJ='-Wl,'
24727         lt_prog_compiler_pic_GCJ='-fpic'
24728         lt_prog_compiler_static_GCJ='-Bstatic'
24729         ;;
24730       ccc*)
24731         lt_prog_compiler_wl_GCJ='-Wl,'
24732         # All Alpha code is PIC.
24733         lt_prog_compiler_static_GCJ='-non_shared'
24734         ;;
24735       *)
24736         case `$CC -V 2>&1 | sed 5q` in
24737         *Sun\ C*)
24738           # Sun C 5.9
24739           lt_prog_compiler_pic_GCJ='-KPIC'
24740           lt_prog_compiler_static_GCJ='-Bstatic'
24741           lt_prog_compiler_wl_GCJ='-Wl,'
24742           ;;
24743         *Sun\ F*)
24744           # Sun Fortran 8.3 passes all unrecognized flags to the linker
24745           lt_prog_compiler_pic_GCJ='-KPIC'
24746           lt_prog_compiler_static_GCJ='-Bstatic'
24747           lt_prog_compiler_wl_GCJ=''
24748           ;;
24749         esac
24750         ;;
24751       esac
24752       ;;
24753
24754     osf3* | osf4* | osf5*)
24755       lt_prog_compiler_wl_GCJ='-Wl,'
24756       # All OSF/1 code is PIC.
24757       lt_prog_compiler_static_GCJ='-non_shared'
24758       ;;
24759
24760     rdos*)
24761       lt_prog_compiler_static_GCJ='-non_shared'
24762       ;;
24763
24764     solaris*)
24765       lt_prog_compiler_pic_GCJ='-KPIC'
24766       lt_prog_compiler_static_GCJ='-Bstatic'
24767       case $cc_basename in
24768       f77* | f90* | f95*)
24769         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24770       *)
24771         lt_prog_compiler_wl_GCJ='-Wl,';;
24772       esac
24773       ;;
24774
24775     sunos4*)
24776       lt_prog_compiler_wl_GCJ='-Qoption ld '
24777       lt_prog_compiler_pic_GCJ='-PIC'
24778       lt_prog_compiler_static_GCJ='-Bstatic'
24779       ;;
24780
24781     sysv4 | sysv4.2uw2* | sysv4.3*)
24782       lt_prog_compiler_wl_GCJ='-Wl,'
24783       lt_prog_compiler_pic_GCJ='-KPIC'
24784       lt_prog_compiler_static_GCJ='-Bstatic'
24785       ;;
24786
24787     sysv4*MP*)
24788       if test -d /usr/nec ;then
24789         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24790         lt_prog_compiler_static_GCJ='-Bstatic'
24791       fi
24792       ;;
24793
24794     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24795       lt_prog_compiler_wl_GCJ='-Wl,'
24796       lt_prog_compiler_pic_GCJ='-KPIC'
24797       lt_prog_compiler_static_GCJ='-Bstatic'
24798       ;;
24799
24800     unicos*)
24801       lt_prog_compiler_wl_GCJ='-Wl,'
24802       lt_prog_compiler_can_build_shared_GCJ=no
24803       ;;
24804
24805     uts4*)
24806       lt_prog_compiler_pic_GCJ='-pic'
24807       lt_prog_compiler_static_GCJ='-Bstatic'
24808       ;;
24809
24810     *)
24811       lt_prog_compiler_can_build_shared_GCJ=no
24812       ;;
24813     esac
24814   fi
24815
24816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24817 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24818
24819 #
24820 # Check to make sure the PIC flag actually works.
24821 #
24822 if test -n "$lt_prog_compiler_pic_GCJ"; then
24823
24824 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24826 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
24827   echo $ECHO_N "(cached) $ECHO_C" >&6
24828 else
24829   lt_cv_prog_compiler_pic_works_GCJ=no
24830   ac_outfile=conftest.$ac_objext
24831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24832    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24833    # Insert the option either (1) after the last *FLAGS variable, or
24834    # (2) before a word containing "conftest.", or (3) at the end.
24835    # Note that $ac_compile itself does not contain backslashes and begins
24836    # with a dollar sign (not a hyphen), so the echo should work correctly.
24837    # The option is referenced via a variable to avoid confusing sed.
24838    lt_compile=`echo "$ac_compile" | $SED \
24839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24841    -e 's:$: $lt_compiler_flag:'`
24842    (eval echo "\"\$as_me:24842: $lt_compile\"" >&5)
24843    (eval "$lt_compile" 2>conftest.err)
24844    ac_status=$?
24845    cat conftest.err >&5
24846    echo "$as_me:24846: \$? = $ac_status" >&5
24847    if (exit $ac_status) && test -s "$ac_outfile"; then
24848      # The compiler can only warn and ignore the option if not recognized
24849      # So say no if there are warnings other than the usual output.
24850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24851      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24852      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24853        lt_cv_prog_compiler_pic_works_GCJ=yes
24854      fi
24855    fi
24856    $rm conftest*
24857
24858 fi
24859 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
24860 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
24861
24862 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
24863     case $lt_prog_compiler_pic_GCJ in
24864      "" | " "*) ;;
24865      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24866      esac
24867 else
24868     lt_prog_compiler_pic_GCJ=
24869      lt_prog_compiler_can_build_shared_GCJ=no
24870 fi
24871
24872 fi
24873 case $host_os in
24874   # For platforms which do not support PIC, -DPIC is meaningless:
24875   *djgpp*)
24876     lt_prog_compiler_pic_GCJ=
24877     ;;
24878   *)
24879     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24880     ;;
24881 esac
24882
24883 #
24884 # Check to make sure the static flag actually works.
24885 #
24886 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24887 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24888 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24889 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
24890   echo $ECHO_N "(cached) $ECHO_C" >&6
24891 else
24892   lt_cv_prog_compiler_static_works_GCJ=no
24893    save_LDFLAGS="$LDFLAGS"
24894    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24895    echo "$lt_simple_link_test_code" > conftest.$ac_ext
24896    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24897      # The linker can only warn and ignore the option if not recognized
24898      # So say no if there are warnings
24899      if test -s conftest.err; then
24900        # Append any errors to the config.log.
24901        cat conftest.err 1>&5
24902        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24903        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24904        if diff conftest.exp conftest.er2 >/dev/null; then
24905          lt_cv_prog_compiler_static_works_GCJ=yes
24906        fi
24907      else
24908        lt_cv_prog_compiler_static_works_GCJ=yes
24909      fi
24910    fi
24911    $rm -r conftest*
24912    LDFLAGS="$save_LDFLAGS"
24913
24914 fi
24915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24916 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24917
24918 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24919     :
24920 else
24921     lt_prog_compiler_static_GCJ=
24922 fi
24923
24924
24925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24928   echo $ECHO_N "(cached) $ECHO_C" >&6
24929 else
24930   lt_cv_prog_compiler_c_o_GCJ=no
24931    $rm -r conftest 2>/dev/null
24932    mkdir conftest
24933    cd conftest
24934    mkdir out
24935    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24936
24937    lt_compiler_flag="-o out/conftest2.$ac_objext"
24938    # Insert the option either (1) after the last *FLAGS variable, or
24939    # (2) before a word containing "conftest.", or (3) at the end.
24940    # Note that $ac_compile itself does not contain backslashes and begins
24941    # with a dollar sign (not a hyphen), so the echo should work correctly.
24942    lt_compile=`echo "$ac_compile" | $SED \
24943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24945    -e 's:$: $lt_compiler_flag:'`
24946    (eval echo "\"\$as_me:24946: $lt_compile\"" >&5)
24947    (eval "$lt_compile" 2>out/conftest.err)
24948    ac_status=$?
24949    cat out/conftest.err >&5
24950    echo "$as_me:24950: \$? = $ac_status" >&5
24951    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24952    then
24953      # The compiler can only warn and ignore the option if not recognized
24954      # So say no if there are warnings
24955      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24956      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24957      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24958        lt_cv_prog_compiler_c_o_GCJ=yes
24959      fi
24960    fi
24961    chmod u+w . 2>&5
24962    $rm conftest*
24963    # SGI C++ compiler will create directory out/ii_files/ for
24964    # template instantiation
24965    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24966    $rm out/* && rmdir out
24967    cd ..
24968    rmdir conftest
24969    $rm conftest*
24970
24971 fi
24972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24974
24975
24976 hard_links="nottested"
24977 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24978   # do not overwrite the value of need_locks provided by the user
24979   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24981   hard_links=yes
24982   $rm conftest*
24983   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24984   touch conftest.a
24985   ln conftest.a conftest.b 2>&5 || hard_links=no
24986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24987   { echo "$as_me:$LINENO: result: $hard_links" >&5
24988 echo "${ECHO_T}$hard_links" >&6; }
24989   if test "$hard_links" = no; then
24990     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24992     need_locks=warn
24993   fi
24994 else
24995   need_locks=no
24996 fi
24997
24998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
25000
25001   runpath_var=
25002   allow_undefined_flag_GCJ=
25003   enable_shared_with_static_runtimes_GCJ=no
25004   archive_cmds_GCJ=
25005   archive_expsym_cmds_GCJ=
25006   old_archive_From_new_cmds_GCJ=
25007   old_archive_from_expsyms_cmds_GCJ=
25008   export_dynamic_flag_spec_GCJ=
25009   whole_archive_flag_spec_GCJ=
25010   thread_safe_flag_spec_GCJ=
25011   hardcode_libdir_flag_spec_GCJ=
25012   hardcode_libdir_flag_spec_ld_GCJ=
25013   hardcode_libdir_separator_GCJ=
25014   hardcode_direct_GCJ=no
25015   hardcode_minus_L_GCJ=no
25016   hardcode_shlibpath_var_GCJ=unsupported
25017   link_all_deplibs_GCJ=unknown
25018   hardcode_automatic_GCJ=no
25019   module_cmds_GCJ=
25020   module_expsym_cmds_GCJ=
25021   always_export_symbols_GCJ=no
25022   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25023   # include_expsyms should be a list of space-separated symbols to be *always*
25024   # included in the symbol list
25025   include_expsyms_GCJ=
25026   # exclude_expsyms can be an extended regexp of symbols to exclude
25027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
25028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25029   # as well as any symbol that contains `d'.
25030   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25032   # platforms (ab)use it in PIC code, but their linkers get confused if
25033   # the symbol is explicitly referenced.  Since portable code cannot
25034   # rely on this symbol name, it's probably fine to never include it in
25035   # preloaded symbol tables.
25036   # Exclude shared library initialization/finalization symbols.
25037   extract_expsyms_cmds=
25038   # Just being paranoid about ensuring that cc_basename is set.
25039   for cc_temp in $compiler""; do
25040   case $cc_temp in
25041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25043     \-*) ;;
25044     *) break;;
25045   esac
25046 done
25047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25048
25049   case $host_os in
25050   cygwin* | mingw* | pw32*)
25051     # FIXME: the MSVC++ port hasn't been tested in a loooong time
25052     # When not using gcc, we currently assume that we are using
25053     # Microsoft Visual C++.
25054     if test "$GCC" != yes; then
25055       with_gnu_ld=no
25056     fi
25057     ;;
25058   interix*)
25059     # we just hope/assume this is gcc and not c89 (= MSVC++)
25060     with_gnu_ld=yes
25061     ;;
25062   openbsd*)
25063     with_gnu_ld=no
25064     ;;
25065   esac
25066
25067   ld_shlibs_GCJ=yes
25068   if test "$with_gnu_ld" = yes; then
25069     # If archive_cmds runs LD, not CC, wlarc should be empty
25070     wlarc='${wl}'
25071
25072     # Set some defaults for GNU ld with shared library support. These
25073     # are reset later if shared libraries are not supported. Putting them
25074     # here allows them to be overridden if necessary.
25075     runpath_var=LD_RUN_PATH
25076     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25077     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25078     # ancient GNU ld didn't support --whole-archive et. al.
25079     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25080         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25081       else
25082         whole_archive_flag_spec_GCJ=
25083     fi
25084     supports_anon_versioning=no
25085     case `$LD -v 2>/dev/null` in
25086       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25087       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25088       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25089       *\ 2.11.*) ;; # other 2.11 versions
25090       *) supports_anon_versioning=yes ;;
25091     esac
25092
25093     # See if GNU ld supports shared libraries.
25094     case $host_os in
25095     aix[3-9]*)
25096       # On AIX/PPC, the GNU linker is very broken
25097       if test "$host_cpu" != ia64; then
25098         ld_shlibs_GCJ=no
25099         cat <<EOF 1>&2
25100
25101 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25102 *** to be unable to reliably create shared libraries on AIX.
25103 *** Therefore, libtool is disabling shared libraries support.  If you
25104 *** really care for shared libraries, you may want to modify your PATH
25105 *** so that a non-GNU linker is found, and then restart.
25106
25107 EOF
25108       fi
25109       ;;
25110
25111     amigaos*)
25112       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)'
25113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114       hardcode_minus_L_GCJ=yes
25115
25116       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25117       # that the semantics of dynamic libraries on AmigaOS, at least up
25118       # to version 4, is to share data among multiple programs linked
25119       # with the same dynamic library.  Since this doesn't match the
25120       # behavior of shared libraries on other platforms, we can't use
25121       # them.
25122       ld_shlibs_GCJ=no
25123       ;;
25124
25125     beos*)
25126       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25127         allow_undefined_flag_GCJ=unsupported
25128         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25129         # support --undefined.  This deserves some investigation.  FIXME
25130         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25131       else
25132         ld_shlibs_GCJ=no
25133       fi
25134       ;;
25135
25136     cygwin* | mingw* | pw32*)
25137       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25138       # as there is no search path for DLLs.
25139       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25140       allow_undefined_flag_GCJ=unsupported
25141       always_export_symbols_GCJ=no
25142       enable_shared_with_static_runtimes_GCJ=yes
25143       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25144
25145       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25146         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25147         # If the export-symbols file already is a .def file (1st line
25148         # is EXPORTS), use it as is; otherwise, prepend...
25149         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25150           cp $export_symbols $output_objdir/$soname.def;
25151         else
25152           echo EXPORTS > $output_objdir/$soname.def;
25153           cat $export_symbols >> $output_objdir/$soname.def;
25154         fi~
25155         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25156       else
25157         ld_shlibs_GCJ=no
25158       fi
25159       ;;
25160
25161     interix[3-9]*)
25162       hardcode_direct_GCJ=no
25163       hardcode_shlibpath_var_GCJ=no
25164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25165       export_dynamic_flag_spec_GCJ='${wl}-E'
25166       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25167       # Instead, shared libraries are loaded at an image base (0x10000000 by
25168       # default) and relocated if they conflict, which is a slow very memory
25169       # consuming and fragmenting process.  To avoid this, we pick a random,
25170       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25171       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25172       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'
25173       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'
25174       ;;
25175
25176     gnu* | linux* | k*bsd*-gnu)
25177       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25178         tmp_addflag=
25179         case $cc_basename,$host_cpu in
25180         pgcc*)                          # Portland Group C compiler
25181           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'
25182           tmp_addflag=' $pic_flag'
25183           ;;
25184         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25185           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'
25186           tmp_addflag=' $pic_flag -Mnomain' ;;
25187         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25188           tmp_addflag=' -i_dynamic' ;;
25189         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25190           tmp_addflag=' -i_dynamic -nofor_main' ;;
25191         ifc* | ifort*)                  # Intel Fortran compiler
25192           tmp_addflag=' -nofor_main' ;;
25193         esac
25194         case `$CC -V 2>&1 | sed 5q` in
25195         *Sun\ C*)                       # Sun C 5.9
25196           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'
25197           tmp_sharedflag='-G' ;;
25198         *Sun\ F*)                       # Sun Fortran 8.3
25199           tmp_sharedflag='-G' ;;
25200         *)
25201           tmp_sharedflag='-shared' ;;
25202         esac
25203         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25204
25205         if test $supports_anon_versioning = yes; then
25206           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25207   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25208   $echo "local: *; };" >> $output_objdir/$libname.ver~
25209           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25210         fi
25211         link_all_deplibs_GCJ=no
25212       else
25213         ld_shlibs_GCJ=no
25214       fi
25215       ;;
25216
25217     netbsd* | netbsdelf*-gnu)
25218       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25219         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25220         wlarc=
25221       else
25222         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25223         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25224       fi
25225       ;;
25226
25227     solaris*)
25228       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25229         ld_shlibs_GCJ=no
25230         cat <<EOF 1>&2
25231
25232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25233 *** create shared libraries on Solaris systems.  Therefore, libtool
25234 *** is disabling shared libraries support.  We urge you to upgrade GNU
25235 *** binutils to release 2.9.1 or newer.  Another option is to modify
25236 *** your PATH or compiler configuration so that the native linker is
25237 *** used, and then restart.
25238
25239 EOF
25240       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25241         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25242         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25243       else
25244         ld_shlibs_GCJ=no
25245       fi
25246       ;;
25247
25248     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25249       case `$LD -v 2>&1` in
25250         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25251         ld_shlibs_GCJ=no
25252         cat <<_LT_EOF 1>&2
25253
25254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25255 *** reliably create shared libraries on SCO systems.  Therefore, libtool
25256 *** is disabling shared libraries support.  We urge you to upgrade GNU
25257 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25258 *** your PATH or compiler configuration so that the native linker is
25259 *** used, and then restart.
25260
25261 _LT_EOF
25262         ;;
25263         *)
25264           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25265             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25266             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25267             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25268           else
25269             ld_shlibs_GCJ=no
25270           fi
25271         ;;
25272       esac
25273       ;;
25274
25275     sunos4*)
25276       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25277       wlarc=
25278       hardcode_direct_GCJ=yes
25279       hardcode_shlibpath_var_GCJ=no
25280       ;;
25281
25282     *)
25283       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25284         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25285         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25286       else
25287         ld_shlibs_GCJ=no
25288       fi
25289       ;;
25290     esac
25291
25292     if test "$ld_shlibs_GCJ" = no; then
25293       runpath_var=
25294       hardcode_libdir_flag_spec_GCJ=
25295       export_dynamic_flag_spec_GCJ=
25296       whole_archive_flag_spec_GCJ=
25297     fi
25298   else
25299     # PORTME fill in a description of your system's linker (not GNU ld)
25300     case $host_os in
25301     aix3*)
25302       allow_undefined_flag_GCJ=unsupported
25303       always_export_symbols_GCJ=yes
25304       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'
25305       # Note: this linker hardcodes the directories in LIBPATH if there
25306       # are no directories specified by -L.
25307       hardcode_minus_L_GCJ=yes
25308       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25309         # Neither direct hardcoding nor static linking is supported with a
25310         # broken collect2.
25311         hardcode_direct_GCJ=unsupported
25312       fi
25313       ;;
25314
25315     aix[4-9]*)
25316       if test "$host_cpu" = ia64; then
25317         # On IA64, the linker does run time linking by default, so we don't
25318         # have to do anything special.
25319         aix_use_runtimelinking=no
25320         exp_sym_flag='-Bexport'
25321         no_entry_flag=""
25322       else
25323         # If we're using GNU nm, then we don't want the "-C" option.
25324         # -C means demangle to AIX nm, but means don't demangle with GNU nm
25325         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25326           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'
25327         else
25328           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'
25329         fi
25330         aix_use_runtimelinking=no
25331
25332         # Test if we are trying to use run time linking or normal
25333         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25334         # need to do runtime linking.
25335         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25336           for ld_flag in $LDFLAGS; do
25337           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25338             aix_use_runtimelinking=yes
25339             break
25340           fi
25341           done
25342           ;;
25343         esac
25344
25345         exp_sym_flag='-bexport'
25346         no_entry_flag='-bnoentry'
25347       fi
25348
25349       # When large executables or shared objects are built, AIX ld can
25350       # have problems creating the table of contents.  If linking a library
25351       # or program results in "error TOC overflow" add -mminimal-toc to
25352       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25353       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25354
25355       archive_cmds_GCJ=''
25356       hardcode_direct_GCJ=yes
25357       hardcode_libdir_separator_GCJ=':'
25358       link_all_deplibs_GCJ=yes
25359
25360       if test "$GCC" = yes; then
25361         case $host_os in aix4.[012]|aix4.[012].*)
25362         # We only want to do this on AIX 4.2 and lower, the check
25363         # below for broken collect2 doesn't work under 4.3+
25364           collect2name=`${CC} -print-prog-name=collect2`
25365           if test -f "$collect2name" && \
25366            strings "$collect2name" | grep resolve_lib_name >/dev/null
25367           then
25368           # We have reworked collect2
25369           :
25370           else
25371           # We have old collect2
25372           hardcode_direct_GCJ=unsupported
25373           # It fails to find uninstalled libraries when the uninstalled
25374           # path is not listed in the libpath.  Setting hardcode_minus_L
25375           # to unsupported forces relinking
25376           hardcode_minus_L_GCJ=yes
25377           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25378           hardcode_libdir_separator_GCJ=
25379           fi
25380           ;;
25381         esac
25382         shared_flag='-shared'
25383         if test "$aix_use_runtimelinking" = yes; then
25384           shared_flag="$shared_flag "'${wl}-G'
25385         fi
25386       else
25387         # not using gcc
25388         if test "$host_cpu" = ia64; then
25389         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25390         # chokes on -Wl,-G. The following line is correct:
25391           shared_flag='-G'
25392         else
25393           if test "$aix_use_runtimelinking" = yes; then
25394             shared_flag='${wl}-G'
25395           else
25396             shared_flag='${wl}-bM:SRE'
25397           fi
25398         fi
25399       fi
25400
25401       # It seems that -bexpall does not export symbols beginning with
25402       # underscore (_), so it is better to generate a list of symbols to export.
25403       always_export_symbols_GCJ=yes
25404       if test "$aix_use_runtimelinking" = yes; then
25405         # Warning - without using the other runtime loading flags (-brtl),
25406         # -berok will link without error, but may produce a broken library.
25407         allow_undefined_flag_GCJ='-berok'
25408        # Determine the default libpath from the value encoded in an empty executable.
25409        cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h.  */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h.  */
25415
25416 int
25417 main ()
25418 {
25419
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (ac_try="$ac_link"
25426 case "(($ac_try" in
25427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428   *) ac_try_echo=$ac_try;;
25429 esac
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431   (eval "$ac_link") 2>conftest.er1
25432   ac_status=$?
25433   grep -v '^ *+' conftest.er1 >conftest.err
25434   rm -f conftest.er1
25435   cat conftest.err >&5
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); } && {
25438          test -z "$ac_c_werror_flag" ||
25439          test ! -s conftest.err
25440        } && test -s conftest$ac_exeext &&
25441        $as_test_x conftest$ac_exeext; then
25442
25443 lt_aix_libpath_sed='
25444     /Import File Strings/,/^$/ {
25445         /^0/ {
25446             s/^0  *\(.*\)$/\1/
25447             p
25448         }
25449     }'
25450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25451 # Check for a 64-bit object if we didn't find anything.
25452 if test -z "$aix_libpath"; then
25453   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25454 fi
25455 else
25456   echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25458
25459
25460 fi
25461
25462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25463       conftest$ac_exeext conftest.$ac_ext
25464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25465
25466        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25467         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"
25468        else
25469         if test "$host_cpu" = ia64; then
25470           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25471           allow_undefined_flag_GCJ="-z nodefs"
25472           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"
25473         else
25474          # Determine the default libpath from the value encoded in an empty executable.
25475          cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481
25482 int
25483 main ()
25484 {
25485
25486   ;
25487   return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (ac_try="$ac_link"
25492 case "(($ac_try" in
25493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25494   *) ac_try_echo=$ac_try;;
25495 esac
25496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25497   (eval "$ac_link") 2>conftest.er1
25498   ac_status=$?
25499   grep -v '^ *+' conftest.er1 >conftest.err
25500   rm -f conftest.er1
25501   cat conftest.err >&5
25502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); } && {
25504          test -z "$ac_c_werror_flag" ||
25505          test ! -s conftest.err
25506        } && test -s conftest$ac_exeext &&
25507        $as_test_x conftest$ac_exeext; then
25508
25509 lt_aix_libpath_sed='
25510     /Import File Strings/,/^$/ {
25511         /^0/ {
25512             s/^0  *\(.*\)$/\1/
25513             p
25514         }
25515     }'
25516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25517 # Check for a 64-bit object if we didn't find anything.
25518 if test -z "$aix_libpath"; then
25519   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25520 fi
25521 else
25522   echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25524
25525
25526 fi
25527
25528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25529       conftest$ac_exeext conftest.$ac_ext
25530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25531
25532          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25533           # Warning - without using the other run time loading flags,
25534           # -berok will link without error, but may produce a broken library.
25535           no_undefined_flag_GCJ=' ${wl}-bernotok'
25536           allow_undefined_flag_GCJ=' ${wl}-berok'
25537           # Exported symbols can be pulled into shared objects from archives
25538           whole_archive_flag_spec_GCJ='$convenience'
25539           archive_cmds_need_lc_GCJ=yes
25540           # This is similar to how AIX traditionally builds its shared libraries.
25541           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'
25542         fi
25543       fi
25544       ;;
25545
25546     amigaos*)
25547       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)'
25548       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25549       hardcode_minus_L_GCJ=yes
25550       # see comment about different semantics on the GNU ld section
25551       ld_shlibs_GCJ=no
25552       ;;
25553
25554     bsdi[45]*)
25555       export_dynamic_flag_spec_GCJ=-rdynamic
25556       ;;
25557
25558     cygwin* | mingw* | pw32*)
25559       # When not using gcc, we currently assume that we are using
25560       # Microsoft Visual C++.
25561       # hardcode_libdir_flag_spec is actually meaningless, as there is
25562       # no search path for DLLs.
25563       hardcode_libdir_flag_spec_GCJ=' '
25564       allow_undefined_flag_GCJ=unsupported
25565       # Tell ltmain to make .lib files, not .a files.
25566       libext=lib
25567       # Tell ltmain to make .dll files, not .so files.
25568       shrext_cmds=".dll"
25569       # FIXME: Setting linknames here is a bad hack.
25570       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25571       # The linker will automatically build a .lib file if we build a DLL.
25572       old_archive_From_new_cmds_GCJ='true'
25573       # FIXME: Should let the user specify the lib program.
25574       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25575       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25576       enable_shared_with_static_runtimes_GCJ=yes
25577       ;;
25578
25579     darwin* | rhapsody*)
25580       case $host_os in
25581         rhapsody* | darwin1.[012])
25582          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25583          ;;
25584        *) # Darwin 1.3 on
25585          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25586            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25587          else
25588            case ${MACOSX_DEPLOYMENT_TARGET} in
25589              10.[012])
25590                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25591                ;;
25592              10.*)
25593                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25594                ;;
25595            esac
25596          fi
25597          ;;
25598       esac
25599       archive_cmds_need_lc_GCJ=no
25600       hardcode_direct_GCJ=no
25601       hardcode_automatic_GCJ=yes
25602       hardcode_shlibpath_var_GCJ=unsupported
25603       whole_archive_flag_spec_GCJ=''
25604       link_all_deplibs_GCJ=yes
25605     if test "$GCC" = yes ; then
25606         output_verbose_link_cmd='echo'
25607         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}"
25608         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
25609         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}"
25610         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}"
25611     else
25612       case $cc_basename in
25613         xlc*)
25614          output_verbose_link_cmd='echo'
25615          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25616          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25617           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25618          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}'
25619           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}'
25620           ;;
25621        *)
25622          ld_shlibs_GCJ=no
25623           ;;
25624       esac
25625     fi
25626       ;;
25627
25628     dgux*)
25629       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25630       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25631       hardcode_shlibpath_var_GCJ=no
25632       ;;
25633
25634     freebsd1*)
25635       ld_shlibs_GCJ=no
25636       ;;
25637
25638     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25639     # support.  Future versions do this automatically, but an explicit c++rt0.o
25640     # does not break anything, and helps significantly (at the cost of a little
25641     # extra space).
25642     freebsd2.2*)
25643       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25644       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25645       hardcode_direct_GCJ=yes
25646       hardcode_shlibpath_var_GCJ=no
25647       ;;
25648
25649     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25650     freebsd2*)
25651       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25652       hardcode_direct_GCJ=yes
25653       hardcode_minus_L_GCJ=yes
25654       hardcode_shlibpath_var_GCJ=no
25655       ;;
25656
25657     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25658     freebsd* | dragonfly*)
25659       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25660       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25661       hardcode_direct_GCJ=yes
25662       hardcode_shlibpath_var_GCJ=no
25663       ;;
25664
25665     hpux9*)
25666       if test "$GCC" = yes; then
25667         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'
25668       else
25669         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'
25670       fi
25671       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25672       hardcode_libdir_separator_GCJ=:
25673       hardcode_direct_GCJ=yes
25674
25675       # hardcode_minus_L: Not really in the search PATH,
25676       # but as the default location of the library.
25677       hardcode_minus_L_GCJ=yes
25678       export_dynamic_flag_spec_GCJ='${wl}-E'
25679       ;;
25680
25681     hpux10*)
25682       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25683         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25684       else
25685         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25686       fi
25687       if test "$with_gnu_ld" = no; then
25688         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25689         hardcode_libdir_separator_GCJ=:
25690
25691         hardcode_direct_GCJ=yes
25692         export_dynamic_flag_spec_GCJ='${wl}-E'
25693
25694         # hardcode_minus_L: Not really in the search PATH,
25695         # but as the default location of the library.
25696         hardcode_minus_L_GCJ=yes
25697       fi
25698       ;;
25699
25700     hpux11*)
25701       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25702         case $host_cpu in
25703         hppa*64*)
25704           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25705           ;;
25706         ia64*)
25707           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25708           ;;
25709         *)
25710           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25711           ;;
25712         esac
25713       else
25714         case $host_cpu in
25715         hppa*64*)
25716           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25717           ;;
25718         ia64*)
25719           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25720           ;;
25721         *)
25722           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25723           ;;
25724         esac
25725       fi
25726       if test "$with_gnu_ld" = no; then
25727         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25728         hardcode_libdir_separator_GCJ=:
25729
25730         case $host_cpu in
25731         hppa*64*|ia64*)
25732           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25733           hardcode_direct_GCJ=no
25734           hardcode_shlibpath_var_GCJ=no
25735           ;;
25736         *)
25737           hardcode_direct_GCJ=yes
25738           export_dynamic_flag_spec_GCJ='${wl}-E'
25739
25740           # hardcode_minus_L: Not really in the search PATH,
25741           # but as the default location of the library.
25742           hardcode_minus_L_GCJ=yes
25743           ;;
25744         esac
25745       fi
25746       ;;
25747
25748     irix5* | irix6* | nonstopux*)
25749       if test "$GCC" = yes; then
25750         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'
25751       else
25752         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'
25753         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25754       fi
25755       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25756       hardcode_libdir_separator_GCJ=:
25757       link_all_deplibs_GCJ=yes
25758       ;;
25759
25760     netbsd* | netbsdelf*-gnu)
25761       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25762         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25763       else
25764         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25765       fi
25766       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25767       hardcode_direct_GCJ=yes
25768       hardcode_shlibpath_var_GCJ=no
25769       ;;
25770
25771     newsos6)
25772       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25773       hardcode_direct_GCJ=yes
25774       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25775       hardcode_libdir_separator_GCJ=:
25776       hardcode_shlibpath_var_GCJ=no
25777       ;;
25778
25779     openbsd*)
25780       if test -f /usr/libexec/ld.so; then
25781         hardcode_direct_GCJ=yes
25782         hardcode_shlibpath_var_GCJ=no
25783         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25784           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25785           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25786           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25787           export_dynamic_flag_spec_GCJ='${wl}-E'
25788         else
25789           case $host_os in
25790            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25791              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25792              hardcode_libdir_flag_spec_GCJ='-R$libdir'
25793              ;;
25794            *)
25795              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25796              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25797              ;;
25798           esac
25799         fi
25800       else
25801         ld_shlibs_GCJ=no
25802       fi
25803       ;;
25804
25805     os2*)
25806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25807       hardcode_minus_L_GCJ=yes
25808       allow_undefined_flag_GCJ=unsupported
25809       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'
25810       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25811       ;;
25812
25813     osf3*)
25814       if test "$GCC" = yes; then
25815         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25816         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'
25817       else
25818         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25819         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'
25820       fi
25821       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25822       hardcode_libdir_separator_GCJ=:
25823       ;;
25824
25825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25826       if test "$GCC" = yes; then
25827         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25828         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'
25829         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25830       else
25831         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25832         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'
25833         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~
25834         $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'
25835
25836         # Both c and cxx compiler support -rpath directly
25837         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25838       fi
25839       hardcode_libdir_separator_GCJ=:
25840       ;;
25841
25842     solaris*)
25843       no_undefined_flag_GCJ=' -z text'
25844       if test "$GCC" = yes; then
25845         wlarc='${wl}'
25846         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25847         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25848           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25849       else
25850         wlarc=''
25851         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25852         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25853         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25854       fi
25855       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25856       hardcode_shlibpath_var_GCJ=no
25857       case $host_os in
25858       solaris2.[0-5] | solaris2.[0-5].*) ;;
25859       *)
25860         # The compiler driver will combine and reorder linker options,
25861         # but understands `-z linker_flag'.  GCC discards it without `$wl',
25862         # but is careful enough not to reorder.
25863         # Supported since Solaris 2.6 (maybe 2.5.1?)
25864         if test "$GCC" = yes; then
25865           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25866         else
25867           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25868         fi
25869         ;;
25870       esac
25871       link_all_deplibs_GCJ=yes
25872       ;;
25873
25874     sunos4*)
25875       if test "x$host_vendor" = xsequent; then
25876         # Use $CC to link under sequent, because it throws in some extra .o
25877         # files that make .init and .fini sections work.
25878         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25879       else
25880         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25881       fi
25882       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25883       hardcode_direct_GCJ=yes
25884       hardcode_minus_L_GCJ=yes
25885       hardcode_shlibpath_var_GCJ=no
25886       ;;
25887
25888     sysv4)
25889       case $host_vendor in
25890         sni)
25891           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25892           hardcode_direct_GCJ=yes # is this really true???
25893         ;;
25894         siemens)
25895           ## LD is ld it makes a PLAMLIB
25896           ## CC just makes a GrossModule.
25897           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25898           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25899           hardcode_direct_GCJ=no
25900         ;;
25901         motorola)
25902           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25903           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25904         ;;
25905       esac
25906       runpath_var='LD_RUN_PATH'
25907       hardcode_shlibpath_var_GCJ=no
25908       ;;
25909
25910     sysv4.3*)
25911       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25912       hardcode_shlibpath_var_GCJ=no
25913       export_dynamic_flag_spec_GCJ='-Bexport'
25914       ;;
25915
25916     sysv4*MP*)
25917       if test -d /usr/nec; then
25918         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25919         hardcode_shlibpath_var_GCJ=no
25920         runpath_var=LD_RUN_PATH
25921         hardcode_runpath_var=yes
25922         ld_shlibs_GCJ=yes
25923       fi
25924       ;;
25925
25926     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25927       no_undefined_flag_GCJ='${wl}-z,text'
25928       archive_cmds_need_lc_GCJ=no
25929       hardcode_shlibpath_var_GCJ=no
25930       runpath_var='LD_RUN_PATH'
25931
25932       if test "$GCC" = yes; then
25933         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25934         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25935       else
25936         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25937         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25938       fi
25939       ;;
25940
25941     sysv5* | sco3.2v5* | sco5v6*)
25942       # Note: We can NOT use -z defs as we might desire, because we do not
25943       # link with -lc, and that would cause any symbols used from libc to
25944       # always be unresolved, which means just about no library would
25945       # ever link correctly.  If we're not using GNU ld we use -z text
25946       # though, which does catch some bad symbols but isn't as heavy-handed
25947       # as -z defs.
25948       no_undefined_flag_GCJ='${wl}-z,text'
25949       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25950       archive_cmds_need_lc_GCJ=no
25951       hardcode_shlibpath_var_GCJ=no
25952       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25953       hardcode_libdir_separator_GCJ=':'
25954       link_all_deplibs_GCJ=yes
25955       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25956       runpath_var='LD_RUN_PATH'
25957
25958       if test "$GCC" = yes; then
25959         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25960         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25961       else
25962         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25963         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25964       fi
25965       ;;
25966
25967     uts4*)
25968       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25970       hardcode_shlibpath_var_GCJ=no
25971       ;;
25972
25973     *)
25974       ld_shlibs_GCJ=no
25975       ;;
25976     esac
25977   fi
25978
25979 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25980 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25981 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25982
25983 #
25984 # Do we need to explicitly link libc?
25985 #
25986 case "x$archive_cmds_need_lc_GCJ" in
25987 x|xyes)
25988   # Assume -lc should be added
25989   archive_cmds_need_lc_GCJ=yes
25990
25991   if test "$enable_shared" = yes && test "$GCC" = yes; then
25992     case $archive_cmds_GCJ in
25993     *'~'*)
25994       # FIXME: we may have to deal with multi-command sequences.
25995       ;;
25996     '$CC '*)
25997       # Test whether the compiler implicitly links with -lc since on some
25998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25999       # to ld, don't add -lc before -lgcc.
26000       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
26002       $rm conftest*
26003       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26004
26005       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26006   (eval $ac_compile) 2>&5
26007   ac_status=$?
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); } 2>conftest.err; then
26010         soname=conftest
26011         lib=conftest
26012         libobjs=conftest.$ac_objext
26013         deplibs=
26014         wl=$lt_prog_compiler_wl_GCJ
26015         pic_flag=$lt_prog_compiler_pic_GCJ
26016         compiler_flags=-v
26017         linker_flags=-v
26018         verstring=
26019         output_objdir=.
26020         libname=conftest
26021         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26022         allow_undefined_flag_GCJ=
26023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26024   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }
26028         then
26029           archive_cmds_need_lc_GCJ=no
26030         else
26031           archive_cmds_need_lc_GCJ=yes
26032         fi
26033         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26034       else
26035         cat conftest.err 1>&5
26036       fi
26037       $rm conftest*
26038       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26039 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
26040       ;;
26041     esac
26042   fi
26043   ;;
26044 esac
26045
26046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
26048 library_names_spec=
26049 libname_spec='lib$name'
26050 soname_spec=
26051 shrext_cmds=".so"
26052 postinstall_cmds=
26053 postuninstall_cmds=
26054 finish_cmds=
26055 finish_eval=
26056 shlibpath_var=
26057 shlibpath_overrides_runpath=unknown
26058 version_type=none
26059 dynamic_linker="$host_os ld.so"
26060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26061
26062 need_lib_prefix=unknown
26063 hardcode_into_libs=no
26064
26065 # when you set need_version to no, make sure it does not cause -set_version
26066 # flags to be left without arguments
26067 need_version=unknown
26068
26069 case $host_os in
26070 aix3*)
26071   version_type=linux
26072   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26073   shlibpath_var=LIBPATH
26074
26075   # AIX 3 has no versioning support, so we append a major version to the name.
26076   soname_spec='${libname}${release}${shared_ext}$major'
26077   ;;
26078
26079 aix[4-9]*)
26080   version_type=linux
26081   need_lib_prefix=no
26082   need_version=no
26083   hardcode_into_libs=yes
26084   if test "$host_cpu" = ia64; then
26085     # AIX 5 supports IA64
26086     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26087     shlibpath_var=LD_LIBRARY_PATH
26088   else
26089     # With GCC up to 2.95.x, collect2 would create an import file
26090     # for dependence libraries.  The import file would start with
26091     # the line `#! .'.  This would cause the generated library to
26092     # depend on `.', always an invalid library.  This was fixed in
26093     # development snapshots of GCC prior to 3.0.
26094     case $host_os in
26095       aix4 | aix4.[01] | aix4.[01].*)
26096       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26097            echo ' yes '
26098            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26099         :
26100       else
26101         can_build_shared=no
26102       fi
26103       ;;
26104     esac
26105     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26106     # soname into executable. Probably we can add versioning support to
26107     # collect2, so additional links can be useful in future.
26108     if test "$aix_use_runtimelinking" = yes; then
26109       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26110       # instead of lib<name>.a to let people know that these are not
26111       # typical AIX shared libraries.
26112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26113     else
26114       # We preserve .a as extension for shared libraries through AIX4.2
26115       # and later when we are not doing run time linking.
26116       library_names_spec='${libname}${release}.a $libname.a'
26117       soname_spec='${libname}${release}${shared_ext}$major'
26118     fi
26119     shlibpath_var=LIBPATH
26120   fi
26121   ;;
26122
26123 amigaos*)
26124   library_names_spec='$libname.ixlibrary $libname.a'
26125   # Create ${libname}_ixlibrary.a entries in /sys/libs.
26126   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'
26127   ;;
26128
26129 beos*)
26130   library_names_spec='${libname}${shared_ext}'
26131   dynamic_linker="$host_os ld.so"
26132   shlibpath_var=LIBRARY_PATH
26133   ;;
26134
26135 bsdi[45]*)
26136   version_type=linux
26137   need_version=no
26138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139   soname_spec='${libname}${release}${shared_ext}$major'
26140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26141   shlibpath_var=LD_LIBRARY_PATH
26142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26144   # the default ld.so.conf also contains /usr/contrib/lib and
26145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26146   # libtool to hard-code these into programs
26147   ;;
26148
26149 cygwin* | mingw* | pw32*)
26150   version_type=windows
26151   shrext_cmds=".dll"
26152   need_version=no
26153   need_lib_prefix=no
26154
26155   case $GCC,$host_os in
26156   yes,cygwin* | yes,mingw* | yes,pw32*)
26157     library_names_spec='$libname.dll.a'
26158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
26159     postinstall_cmds='base_file=`basename \${file}`~
26160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26161       dldir=$destdir/`dirname \$dlpath`~
26162       test -d \$dldir || mkdir -p \$dldir~
26163       $install_prog $dir/$dlname \$dldir/$dlname~
26164       chmod a+x \$dldir/$dlname'
26165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26166       dlpath=$dir/\$dldll~
26167        $rm \$dlpath'
26168     shlibpath_overrides_runpath=yes
26169
26170     case $host_os in
26171     cygwin*)
26172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26174       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26175       ;;
26176     mingw*)
26177       # MinGW DLLs use traditional 'lib' prefix
26178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26181         # It is most probably a Windows format PATH printed by
26182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
26183         # path with ; separators, and with drive letters. We can handle the
26184         # drive letters (cygwin fileutils understands them), so leave them,
26185         # especially as we might pass files found there to a mingw objdump,
26186         # which wouldn't understand a cygwinified path. Ahh.
26187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26188       else
26189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26190       fi
26191       ;;
26192     pw32*)
26193       # pw32 DLLs use 'pw' prefix rather than 'lib'
26194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26195       ;;
26196     esac
26197     ;;
26198
26199   *)
26200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26201     ;;
26202   esac
26203   dynamic_linker='Win32 ld.exe'
26204   # FIXME: first we should search . and the directory the executable is in
26205   shlibpath_var=PATH
26206   ;;
26207
26208 darwin* | rhapsody*)
26209   dynamic_linker="$host_os dyld"
26210   version_type=darwin
26211   need_lib_prefix=no
26212   need_version=no
26213   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26214   soname_spec='${libname}${release}${major}$shared_ext'
26215   shlibpath_overrides_runpath=yes
26216   shlibpath_var=DYLD_LIBRARY_PATH
26217   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26218
26219   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26220   ;;
26221
26222 dgux*)
26223   version_type=linux
26224   need_lib_prefix=no
26225   need_version=no
26226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26227   soname_spec='${libname}${release}${shared_ext}$major'
26228   shlibpath_var=LD_LIBRARY_PATH
26229   ;;
26230
26231 freebsd1*)
26232   dynamic_linker=no
26233   ;;
26234
26235 freebsd* | dragonfly*)
26236   # DragonFly does not have aout.  When/if they implement a new
26237   # versioning mechanism, adjust this.
26238   if test -x /usr/bin/objformat; then
26239     objformat=`/usr/bin/objformat`
26240   else
26241     case $host_os in
26242     freebsd[123]*) objformat=aout ;;
26243     *) objformat=elf ;;
26244     esac
26245   fi
26246   version_type=freebsd-$objformat
26247   case $version_type in
26248     freebsd-elf*)
26249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26250       need_version=no
26251       need_lib_prefix=no
26252       ;;
26253     freebsd-*)
26254       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26255       need_version=yes
26256       ;;
26257   esac
26258   shlibpath_var=LD_LIBRARY_PATH
26259   case $host_os in
26260   freebsd2*)
26261     shlibpath_overrides_runpath=yes
26262     ;;
26263   freebsd3.[01]* | freebsdelf3.[01]*)
26264     shlibpath_overrides_runpath=yes
26265     hardcode_into_libs=yes
26266     ;;
26267   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26268   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26269     shlibpath_overrides_runpath=no
26270     hardcode_into_libs=yes
26271     ;;
26272   *) # from 4.6 on, and DragonFly
26273     shlibpath_overrides_runpath=yes
26274     hardcode_into_libs=yes
26275     ;;
26276   esac
26277   ;;
26278
26279 gnu*)
26280   version_type=linux
26281   need_lib_prefix=no
26282   need_version=no
26283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26284   soname_spec='${libname}${release}${shared_ext}$major'
26285   shlibpath_var=LD_LIBRARY_PATH
26286   hardcode_into_libs=yes
26287   ;;
26288
26289 hpux9* | hpux10* | hpux11*)
26290   # Give a soname corresponding to the major version so that dld.sl refuses to
26291   # link against other versions.
26292   version_type=sunos
26293   need_lib_prefix=no
26294   need_version=no
26295   case $host_cpu in
26296   ia64*)
26297     shrext_cmds='.so'
26298     hardcode_into_libs=yes
26299     dynamic_linker="$host_os dld.so"
26300     shlibpath_var=LD_LIBRARY_PATH
26301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26303     soname_spec='${libname}${release}${shared_ext}$major'
26304     if test "X$HPUX_IA64_MODE" = X32; then
26305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26306     else
26307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26308     fi
26309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26310     ;;
26311    hppa*64*)
26312      shrext_cmds='.sl'
26313      hardcode_into_libs=yes
26314      dynamic_linker="$host_os dld.sl"
26315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26318      soname_spec='${libname}${release}${shared_ext}$major'
26319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26321      ;;
26322    *)
26323     shrext_cmds='.sl'
26324     dynamic_linker="$host_os dld.sl"
26325     shlibpath_var=SHLIB_PATH
26326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26328     soname_spec='${libname}${release}${shared_ext}$major'
26329     ;;
26330   esac
26331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26332   postinstall_cmds='chmod 555 $lib'
26333   ;;
26334
26335 interix[3-9]*)
26336   version_type=linux
26337   need_lib_prefix=no
26338   need_version=no
26339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26340   soname_spec='${libname}${release}${shared_ext}$major'
26341   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26342   shlibpath_var=LD_LIBRARY_PATH
26343   shlibpath_overrides_runpath=no
26344   hardcode_into_libs=yes
26345   ;;
26346
26347 irix5* | irix6* | nonstopux*)
26348   case $host_os in
26349     nonstopux*) version_type=nonstopux ;;
26350     *)
26351         if test "$lt_cv_prog_gnu_ld" = yes; then
26352                 version_type=linux
26353         else
26354                 version_type=irix
26355         fi ;;
26356   esac
26357   need_lib_prefix=no
26358   need_version=no
26359   soname_spec='${libname}${release}${shared_ext}$major'
26360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26361   case $host_os in
26362   irix5* | nonstopux*)
26363     libsuff= shlibsuff=
26364     ;;
26365   *)
26366     case $LD in # libtool.m4 will add one of these switches to LD
26367     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26368       libsuff= shlibsuff= libmagic=32-bit;;
26369     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26370       libsuff=32 shlibsuff=N32 libmagic=N32;;
26371     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26372       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26373     *) libsuff= shlibsuff= libmagic=never-match;;
26374     esac
26375     ;;
26376   esac
26377   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26378   shlibpath_overrides_runpath=no
26379   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26380   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26381   hardcode_into_libs=yes
26382   ;;
26383
26384 # No shared lib support for Linux oldld, aout, or coff.
26385 linux*oldld* | linux*aout* | linux*coff*)
26386   dynamic_linker=no
26387   ;;
26388
26389 # This must be Linux ELF.
26390 linux* | k*bsd*-gnu)
26391   version_type=linux
26392   need_lib_prefix=no
26393   need_version=no
26394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26395   soname_spec='${libname}${release}${shared_ext}$major'
26396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26397   shlibpath_var=LD_LIBRARY_PATH
26398   shlibpath_overrides_runpath=no
26399   # This implies no fast_install, which is unacceptable.
26400   # Some rework will be needed to allow for fast_install
26401   # before this can be enabled.
26402   hardcode_into_libs=yes
26403
26404   # Append ld.so.conf contents to the search path
26405   if test -f /etc/ld.so.conf; then
26406     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' ' '`
26407     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26408   fi
26409
26410   # We used to test for /lib/ld.so.1 and disable shared libraries on
26411   # powerpc, because MkLinux only supported shared libraries with the
26412   # GNU dynamic linker.  Since this was broken with cross compilers,
26413   # most powerpc-linux boxes support dynamic linking these days and
26414   # people can always --disable-shared, the test was removed, and we
26415   # assume the GNU/Linux dynamic linker is in use.
26416   dynamic_linker='GNU/Linux ld.so'
26417   ;;
26418
26419 netbsdelf*-gnu)
26420   version_type=linux
26421   need_lib_prefix=no
26422   need_version=no
26423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26424   soname_spec='${libname}${release}${shared_ext}$major'
26425   shlibpath_var=LD_LIBRARY_PATH
26426   shlibpath_overrides_runpath=no
26427   hardcode_into_libs=yes
26428   dynamic_linker='NetBSD ld.elf_so'
26429   ;;
26430
26431 netbsd*)
26432   version_type=sunos
26433   need_lib_prefix=no
26434   need_version=no
26435   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26437     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26438     dynamic_linker='NetBSD (a.out) ld.so'
26439   else
26440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26441     soname_spec='${libname}${release}${shared_ext}$major'
26442     dynamic_linker='NetBSD ld.elf_so'
26443   fi
26444   shlibpath_var=LD_LIBRARY_PATH
26445   shlibpath_overrides_runpath=yes
26446   hardcode_into_libs=yes
26447   ;;
26448
26449 newsos6)
26450   version_type=linux
26451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26452   shlibpath_var=LD_LIBRARY_PATH
26453   shlibpath_overrides_runpath=yes
26454   ;;
26455
26456 nto-qnx*)
26457   version_type=linux
26458   need_lib_prefix=no
26459   need_version=no
26460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26461   soname_spec='${libname}${release}${shared_ext}$major'
26462   shlibpath_var=LD_LIBRARY_PATH
26463   shlibpath_overrides_runpath=yes
26464   ;;
26465
26466 openbsd*)
26467   version_type=sunos
26468   sys_lib_dlsearch_path_spec="/usr/lib"
26469   need_lib_prefix=no
26470   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26471   case $host_os in
26472     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26473     *)                         need_version=no  ;;
26474   esac
26475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26477   shlibpath_var=LD_LIBRARY_PATH
26478   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26479     case $host_os in
26480       openbsd2.[89] | openbsd2.[89].*)
26481         shlibpath_overrides_runpath=no
26482         ;;
26483       *)
26484         shlibpath_overrides_runpath=yes
26485         ;;
26486       esac
26487   else
26488     shlibpath_overrides_runpath=yes
26489   fi
26490   ;;
26491
26492 os2*)
26493   libname_spec='$name'
26494   shrext_cmds=".dll"
26495   need_lib_prefix=no
26496   library_names_spec='$libname${shared_ext} $libname.a'
26497   dynamic_linker='OS/2 ld.exe'
26498   shlibpath_var=LIBPATH
26499   ;;
26500
26501 osf3* | osf4* | osf5*)
26502   version_type=osf
26503   need_lib_prefix=no
26504   need_version=no
26505   soname_spec='${libname}${release}${shared_ext}$major'
26506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26507   shlibpath_var=LD_LIBRARY_PATH
26508   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26509   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26510   ;;
26511
26512 rdos*)
26513   dynamic_linker=no
26514   ;;
26515
26516 solaris*)
26517   version_type=linux
26518   need_lib_prefix=no
26519   need_version=no
26520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26521   soname_spec='${libname}${release}${shared_ext}$major'
26522   shlibpath_var=LD_LIBRARY_PATH
26523   shlibpath_overrides_runpath=yes
26524   hardcode_into_libs=yes
26525   # ldd complains unless libraries are executable
26526   postinstall_cmds='chmod +x $lib'
26527   ;;
26528
26529 sunos4*)
26530   version_type=sunos
26531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26532   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26533   shlibpath_var=LD_LIBRARY_PATH
26534   shlibpath_overrides_runpath=yes
26535   if test "$with_gnu_ld" = yes; then
26536     need_lib_prefix=no
26537   fi
26538   need_version=yes
26539   ;;
26540
26541 sysv4 | sysv4.3*)
26542   version_type=linux
26543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26544   soname_spec='${libname}${release}${shared_ext}$major'
26545   shlibpath_var=LD_LIBRARY_PATH
26546   case $host_vendor in
26547     sni)
26548       shlibpath_overrides_runpath=no
26549       need_lib_prefix=no
26550       export_dynamic_flag_spec='${wl}-Blargedynsym'
26551       runpath_var=LD_RUN_PATH
26552       ;;
26553     siemens)
26554       need_lib_prefix=no
26555       ;;
26556     motorola)
26557       need_lib_prefix=no
26558       need_version=no
26559       shlibpath_overrides_runpath=no
26560       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26561       ;;
26562   esac
26563   ;;
26564
26565 sysv4*MP*)
26566   if test -d /usr/nec ;then
26567     version_type=linux
26568     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26569     soname_spec='$libname${shared_ext}.$major'
26570     shlibpath_var=LD_LIBRARY_PATH
26571   fi
26572   ;;
26573
26574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26575   version_type=freebsd-elf
26576   need_lib_prefix=no
26577   need_version=no
26578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26579   soname_spec='${libname}${release}${shared_ext}$major'
26580   shlibpath_var=LD_LIBRARY_PATH
26581   hardcode_into_libs=yes
26582   if test "$with_gnu_ld" = yes; then
26583     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26584     shlibpath_overrides_runpath=no
26585   else
26586     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26587     shlibpath_overrides_runpath=yes
26588     case $host_os in
26589       sco3.2v5*)
26590         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26591         ;;
26592     esac
26593   fi
26594   sys_lib_dlsearch_path_spec='/usr/lib'
26595   ;;
26596
26597 uts4*)
26598   version_type=linux
26599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26600   soname_spec='${libname}${release}${shared_ext}$major'
26601   shlibpath_var=LD_LIBRARY_PATH
26602   ;;
26603
26604 *)
26605   dynamic_linker=no
26606   ;;
26607 esac
26608 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26609 echo "${ECHO_T}$dynamic_linker" >&6; }
26610 test "$dynamic_linker" = no && can_build_shared=no
26611
26612 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26613   echo $ECHO_N "(cached) $ECHO_C" >&6
26614 else
26615   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26616 fi
26617
26618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26619 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26620   echo $ECHO_N "(cached) $ECHO_C" >&6
26621 else
26622   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26623 fi
26624
26625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26626
26627 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26628 if test "$GCC" = yes; then
26629   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26630 fi
26631
26632 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26633 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26634 hardcode_action_GCJ=
26635 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26636    test -n "$runpath_var_GCJ" || \
26637    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26638
26639   # We can hardcode non-existant directories.
26640   if test "$hardcode_direct_GCJ" != no &&
26641      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26642      # have to relink, otherwise we might link with an installed library
26643      # when we should be linking with a yet-to-be-installed one
26644      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26645      test "$hardcode_minus_L_GCJ" != no; then
26646     # Linking always hardcodes the temporary library directory.
26647     hardcode_action_GCJ=relink
26648   else
26649     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26650     hardcode_action_GCJ=immediate
26651   fi
26652 else
26653   # We cannot hardcode anything, or else we can only hardcode existing
26654   # directories.
26655   hardcode_action_GCJ=unsupported
26656 fi
26657 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26658 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26659
26660 if test "$hardcode_action_GCJ" = relink; then
26661   # Fast installation is not supported
26662   enable_fast_install=no
26663 elif test "$shlibpath_overrides_runpath" = yes ||
26664      test "$enable_shared" = no; then
26665   # Fast installation is not necessary
26666   enable_fast_install=needless
26667 fi
26668
26669
26670 # The else clause should only fire when bootstrapping the
26671 # libtool distribution, otherwise you forgot to ship ltmain.sh
26672 # with your package, and you will get complaints that there are
26673 # no rules to generate ltmain.sh.
26674 if test -f "$ltmain"; then
26675   # See if we are running on zsh, and set the options which allow our commands through
26676   # without removal of \ escapes.
26677   if test -n "${ZSH_VERSION+set}" ; then
26678     setopt NO_GLOB_SUBST
26679   fi
26680   # Now quote all the things that may contain metacharacters while being
26681   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26682   # variables and quote the copies for generation of the libtool script.
26683   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26684     SED SHELL STRIP \
26685     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26686     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26687     deplibs_check_method reload_flag reload_cmds need_locks \
26688     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26689     lt_cv_sys_global_symbol_to_c_name_address \
26690     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26691     old_postinstall_cmds old_postuninstall_cmds \
26692     compiler_GCJ \
26693     CC_GCJ \
26694     LD_GCJ \
26695     lt_prog_compiler_wl_GCJ \
26696     lt_prog_compiler_pic_GCJ \
26697     lt_prog_compiler_static_GCJ \
26698     lt_prog_compiler_no_builtin_flag_GCJ \
26699     export_dynamic_flag_spec_GCJ \
26700     thread_safe_flag_spec_GCJ \
26701     whole_archive_flag_spec_GCJ \
26702     enable_shared_with_static_runtimes_GCJ \
26703     old_archive_cmds_GCJ \
26704     old_archive_from_new_cmds_GCJ \
26705     predep_objects_GCJ \
26706     postdep_objects_GCJ \
26707     predeps_GCJ \
26708     postdeps_GCJ \
26709     compiler_lib_search_path_GCJ \
26710     compiler_lib_search_dirs_GCJ \
26711     archive_cmds_GCJ \
26712     archive_expsym_cmds_GCJ \
26713     postinstall_cmds_GCJ \
26714     postuninstall_cmds_GCJ \
26715     old_archive_from_expsyms_cmds_GCJ \
26716     allow_undefined_flag_GCJ \
26717     no_undefined_flag_GCJ \
26718     export_symbols_cmds_GCJ \
26719     hardcode_libdir_flag_spec_GCJ \
26720     hardcode_libdir_flag_spec_ld_GCJ \
26721     hardcode_libdir_separator_GCJ \
26722     hardcode_automatic_GCJ \
26723     module_cmds_GCJ \
26724     module_expsym_cmds_GCJ \
26725     lt_cv_prog_compiler_c_o_GCJ \
26726     fix_srcfile_path_GCJ \
26727     exclude_expsyms_GCJ \
26728     include_expsyms_GCJ; do
26729
26730     case $var in
26731     old_archive_cmds_GCJ | \
26732     old_archive_from_new_cmds_GCJ | \
26733     archive_cmds_GCJ | \
26734     archive_expsym_cmds_GCJ | \
26735     module_cmds_GCJ | \
26736     module_expsym_cmds_GCJ | \
26737     old_archive_from_expsyms_cmds_GCJ | \
26738     export_symbols_cmds_GCJ | \
26739     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26740     postinstall_cmds | postuninstall_cmds | \
26741     old_postinstall_cmds | old_postuninstall_cmds | \
26742     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26743       # Double-quote double-evaled strings.
26744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26745       ;;
26746     *)
26747       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26748       ;;
26749     esac
26750   done
26751
26752   case $lt_echo in
26753   *'\$0 --fallback-echo"')
26754     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26755     ;;
26756   esac
26757
26758 cfgfile="$ofile"
26759
26760   cat <<__EOF__ >> "$cfgfile"
26761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26762
26763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26764
26765 # Shell to use when invoking shell scripts.
26766 SHELL=$lt_SHELL
26767
26768 # Whether or not to build shared libraries.
26769 build_libtool_libs=$enable_shared
26770
26771 # Whether or not to build static libraries.
26772 build_old_libs=$enable_static
26773
26774 # Whether or not to add -lc for building shared libraries.
26775 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26776
26777 # Whether or not to disallow shared libs when runtime libs are static
26778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26779
26780 # Whether or not to optimize for fast installation.
26781 fast_install=$enable_fast_install
26782
26783 # The host system.
26784 host_alias=$host_alias
26785 host=$host
26786 host_os=$host_os
26787
26788 # The build system.
26789 build_alias=$build_alias
26790 build=$build
26791 build_os=$build_os
26792
26793 # An echo program that does not interpret backslashes.
26794 echo=$lt_echo
26795
26796 # The archiver.
26797 AR=$lt_AR
26798 AR_FLAGS=$lt_AR_FLAGS
26799
26800 # A C compiler.
26801 LTCC=$lt_LTCC
26802
26803 # LTCC compiler flags.
26804 LTCFLAGS=$lt_LTCFLAGS
26805
26806 # A language-specific compiler.
26807 CC=$lt_compiler_GCJ
26808
26809 # Is the compiler the GNU C compiler?
26810 with_gcc=$GCC_GCJ
26811
26812 # An ERE matcher.
26813 EGREP=$lt_EGREP
26814
26815 # The linker used to build libraries.
26816 LD=$lt_LD_GCJ
26817
26818 # Whether we need hard or soft links.
26819 LN_S=$lt_LN_S
26820
26821 # A BSD-compatible nm program.
26822 NM=$lt_NM
26823
26824 # A symbol stripping program
26825 STRIP=$lt_STRIP
26826
26827 # Used to examine libraries when file_magic_cmd begins "file"
26828 MAGIC_CMD=$MAGIC_CMD
26829
26830 # Used on cygwin: DLL creation program.
26831 DLLTOOL="$DLLTOOL"
26832
26833 # Used on cygwin: object dumper.
26834 OBJDUMP="$OBJDUMP"
26835
26836 # Used on cygwin: assembler.
26837 AS="$AS"
26838
26839 # The name of the directory that contains temporary libtool files.
26840 objdir=$objdir
26841
26842 # How to create reloadable object files.
26843 reload_flag=$lt_reload_flag
26844 reload_cmds=$lt_reload_cmds
26845
26846 # How to pass a linker flag through the compiler.
26847 wl=$lt_lt_prog_compiler_wl_GCJ
26848
26849 # Object file suffix (normally "o").
26850 objext="$ac_objext"
26851
26852 # Old archive suffix (normally "a").
26853 libext="$libext"
26854
26855 # Shared library suffix (normally ".so").
26856 shrext_cmds='$shrext_cmds'
26857
26858 # Executable file suffix (normally "").
26859 exeext="$exeext"
26860
26861 # Additional compiler flags for building library objects.
26862 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26863 pic_mode=$pic_mode
26864
26865 # What is the maximum length of a command?
26866 max_cmd_len=$lt_cv_sys_max_cmd_len
26867
26868 # Does compiler simultaneously support -c and -o options?
26869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26870
26871 # Must we lock files when doing compilation?
26872 need_locks=$lt_need_locks
26873
26874 # Do we need the lib prefix for modules?
26875 need_lib_prefix=$need_lib_prefix
26876
26877 # Do we need a version for libraries?
26878 need_version=$need_version
26879
26880 # Whether dlopen is supported.
26881 dlopen_support=$enable_dlopen
26882
26883 # Whether dlopen of programs is supported.
26884 dlopen_self=$enable_dlopen_self
26885
26886 # Whether dlopen of statically linked programs is supported.
26887 dlopen_self_static=$enable_dlopen_self_static
26888
26889 # Compiler flag to prevent dynamic linking.
26890 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26891
26892 # Compiler flag to turn off builtin functions.
26893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26894
26895 # Compiler flag to allow reflexive dlopens.
26896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26897
26898 # Compiler flag to generate shared objects directly from archives.
26899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26900
26901 # Compiler flag to generate thread-safe objects.
26902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26903
26904 # Library versioning type.
26905 version_type=$version_type
26906
26907 # Format of library name prefix.
26908 libname_spec=$lt_libname_spec
26909
26910 # List of archive names.  First name is the real one, the rest are links.
26911 # The last name is the one that the linker finds with -lNAME.
26912 library_names_spec=$lt_library_names_spec
26913
26914 # The coded name of the library, if different from the real name.
26915 soname_spec=$lt_soname_spec
26916
26917 # Commands used to build and install an old-style archive.
26918 RANLIB=$lt_RANLIB
26919 old_archive_cmds=$lt_old_archive_cmds_GCJ
26920 old_postinstall_cmds=$lt_old_postinstall_cmds
26921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26922
26923 # Create an old-style archive from a shared archive.
26924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26925
26926 # Create a temporary old-style archive to link instead of a shared archive.
26927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26928
26929 # Commands used to build and install a shared archive.
26930 archive_cmds=$lt_archive_cmds_GCJ
26931 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26932 postinstall_cmds=$lt_postinstall_cmds
26933 postuninstall_cmds=$lt_postuninstall_cmds
26934
26935 # Commands used to build a loadable module (assumed same as above if empty)
26936 module_cmds=$lt_module_cmds_GCJ
26937 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26938
26939 # Commands to strip libraries.
26940 old_striplib=$lt_old_striplib
26941 striplib=$lt_striplib
26942
26943 # Dependencies to place before the objects being linked to create a
26944 # shared library.
26945 predep_objects=$lt_predep_objects_GCJ
26946
26947 # Dependencies to place after the objects being linked to create a
26948 # shared library.
26949 postdep_objects=$lt_postdep_objects_GCJ
26950
26951 # Dependencies to place before the objects being linked to create a
26952 # shared library.
26953 predeps=$lt_predeps_GCJ
26954
26955 # Dependencies to place after the objects being linked to create a
26956 # shared library.
26957 postdeps=$lt_postdeps_GCJ
26958
26959 # The directories searched by this compiler when creating a shared
26960 # library
26961 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26962
26963 # The library search path used internally by the compiler when linking
26964 # a shared library.
26965 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26966
26967 # Method to check whether dependent libraries are shared objects.
26968 deplibs_check_method=$lt_deplibs_check_method
26969
26970 # Command to use when deplibs_check_method == file_magic.
26971 file_magic_cmd=$lt_file_magic_cmd
26972
26973 # Flag that allows shared libraries with undefined symbols to be built.
26974 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26975
26976 # Flag that forces no undefined symbols.
26977 no_undefined_flag=$lt_no_undefined_flag_GCJ
26978
26979 # Commands used to finish a libtool library installation in a directory.
26980 finish_cmds=$lt_finish_cmds
26981
26982 # Same as above, but a single script fragment to be evaled but not shown.
26983 finish_eval=$lt_finish_eval
26984
26985 # Take the output of nm and produce a listing of raw symbols and C names.
26986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26987
26988 # Transform the output of nm in a proper C declaration
26989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26990
26991 # Transform the output of nm in a C name address pair
26992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26993
26994 # This is the shared library runtime path variable.
26995 runpath_var=$runpath_var
26996
26997 # This is the shared library path variable.
26998 shlibpath_var=$shlibpath_var
26999
27000 # Is shlibpath searched before the hard-coded library search path?
27001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27002
27003 # How to hardcode a shared library path into an executable.
27004 hardcode_action=$hardcode_action_GCJ
27005
27006 # Whether we should hardcode library paths into libraries.
27007 hardcode_into_libs=$hardcode_into_libs
27008
27009 # Flag to hardcode \$libdir into a binary during linking.
27010 # This must work even if \$libdir does not exist.
27011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27012
27013 # If ld is used when linking, flag to hardcode \$libdir into
27014 # a binary during linking. This must work even if \$libdir does
27015 # not exist.
27016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27017
27018 # Whether we need a single -rpath flag with a separated argument.
27019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27020
27021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27022 # resulting binary.
27023 hardcode_direct=$hardcode_direct_GCJ
27024
27025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27026 # resulting binary.
27027 hardcode_minus_L=$hardcode_minus_L_GCJ
27028
27029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27030 # the resulting binary.
27031 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27032
27033 # Set to yes if building a shared library automatically hardcodes DIR into the library
27034 # and all subsequent libraries and executables linked against it.
27035 hardcode_automatic=$hardcode_automatic_GCJ
27036
27037 # Variables whose values should be saved in libtool wrapper scripts and
27038 # restored at relink time.
27039 variables_saved_for_relink="$variables_saved_for_relink"
27040
27041 # Whether libtool must link a program against all its dependency libraries.
27042 link_all_deplibs=$link_all_deplibs_GCJ
27043
27044 # Compile-time system search path for libraries
27045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27046
27047 # Run-time system search path for libraries
27048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27049
27050 # Fix the shell variable \$srcfile for the compiler.
27051 fix_srcfile_path=$lt_fix_srcfile_path
27052
27053 # Set to yes if exported symbols are required.
27054 always_export_symbols=$always_export_symbols_GCJ
27055
27056 # The commands to list exported symbols.
27057 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27058
27059 # The commands to extract the exported symbol list from a shared archive.
27060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27061
27062 # Symbols that should not be listed in the preloaded symbols.
27063 exclude_expsyms=$lt_exclude_expsyms_GCJ
27064
27065 # Symbols that must always be exported.
27066 include_expsyms=$lt_include_expsyms_GCJ
27067
27068 # ### END LIBTOOL TAG CONFIG: $tagname
27069
27070 __EOF__
27071
27072
27073 else
27074   # If there is no Makefile yet, we rely on a make rule to execute
27075   # `config.status --recheck' to rerun these tests and create the
27076   # libtool script then.
27077   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27078   if test -f "$ltmain_in"; then
27079     test -f Makefile && make "$ltmain"
27080   fi
27081 fi
27082
27083
27084 ac_ext=c
27085 ac_cpp='$CPP $CPPFLAGS'
27086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27089
27090 CC="$lt_save_CC"
27091
27092         else
27093           tagname=""
27094         fi
27095         ;;
27096
27097       RC)
27098
27099
27100 # Source file extension for RC test sources.
27101 ac_ext=rc
27102
27103 # Object file extension for compiled RC test sources.
27104 objext=o
27105 objext_RC=$objext
27106
27107 # Code to be used in simple compile tests
27108 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27109
27110 # Code to be used in simple link tests
27111 lt_simple_link_test_code="$lt_simple_compile_test_code"
27112
27113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27114
27115 # If no C compiler was specified, use CC.
27116 LTCC=${LTCC-"$CC"}
27117
27118 # If no C compiler flags were specified, use CFLAGS.
27119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27120
27121 # Allow CC to be a program name with arguments.
27122 compiler=$CC
27123
27124
27125 # save warnings/boilerplate of simple test code
27126 ac_outfile=conftest.$ac_objext
27127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27129 _lt_compiler_boilerplate=`cat conftest.err`
27130 $rm conftest*
27131
27132 ac_outfile=conftest.$ac_objext
27133 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27135 _lt_linker_boilerplate=`cat conftest.err`
27136 $rm -r conftest*
27137
27138
27139 # Allow CC to be a program name with arguments.
27140 lt_save_CC="$CC"
27141 CC=${RC-"windres"}
27142 compiler=$CC
27143 compiler_RC=$CC
27144 for cc_temp in $compiler""; do
27145   case $cc_temp in
27146     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27147     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27148     \-*) ;;
27149     *) break;;
27150   esac
27151 done
27152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27153
27154 lt_cv_prog_compiler_c_o_RC=yes
27155
27156 # The else clause should only fire when bootstrapping the
27157 # libtool distribution, otherwise you forgot to ship ltmain.sh
27158 # with your package, and you will get complaints that there are
27159 # no rules to generate ltmain.sh.
27160 if test -f "$ltmain"; then
27161   # See if we are running on zsh, and set the options which allow our commands through
27162   # without removal of \ escapes.
27163   if test -n "${ZSH_VERSION+set}" ; then
27164     setopt NO_GLOB_SUBST
27165   fi
27166   # Now quote all the things that may contain metacharacters while being
27167   # careful not to overquote the AC_SUBSTed values.  We take copies of the
27168   # variables and quote the copies for generation of the libtool script.
27169   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27170     SED SHELL STRIP \
27171     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27172     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27173     deplibs_check_method reload_flag reload_cmds need_locks \
27174     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27175     lt_cv_sys_global_symbol_to_c_name_address \
27176     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27177     old_postinstall_cmds old_postuninstall_cmds \
27178     compiler_RC \
27179     CC_RC \
27180     LD_RC \
27181     lt_prog_compiler_wl_RC \
27182     lt_prog_compiler_pic_RC \
27183     lt_prog_compiler_static_RC \
27184     lt_prog_compiler_no_builtin_flag_RC \
27185     export_dynamic_flag_spec_RC \
27186     thread_safe_flag_spec_RC \
27187     whole_archive_flag_spec_RC \
27188     enable_shared_with_static_runtimes_RC \
27189     old_archive_cmds_RC \
27190     old_archive_from_new_cmds_RC \
27191     predep_objects_RC \
27192     postdep_objects_RC \
27193     predeps_RC \
27194     postdeps_RC \
27195     compiler_lib_search_path_RC \
27196     compiler_lib_search_dirs_RC \
27197     archive_cmds_RC \
27198     archive_expsym_cmds_RC \
27199     postinstall_cmds_RC \
27200     postuninstall_cmds_RC \
27201     old_archive_from_expsyms_cmds_RC \
27202     allow_undefined_flag_RC \
27203     no_undefined_flag_RC \
27204     export_symbols_cmds_RC \
27205     hardcode_libdir_flag_spec_RC \
27206     hardcode_libdir_flag_spec_ld_RC \
27207     hardcode_libdir_separator_RC \
27208     hardcode_automatic_RC \
27209     module_cmds_RC \
27210     module_expsym_cmds_RC \
27211     lt_cv_prog_compiler_c_o_RC \
27212     fix_srcfile_path_RC \
27213     exclude_expsyms_RC \
27214     include_expsyms_RC; do
27215
27216     case $var in
27217     old_archive_cmds_RC | \
27218     old_archive_from_new_cmds_RC | \
27219     archive_cmds_RC | \
27220     archive_expsym_cmds_RC | \
27221     module_cmds_RC | \
27222     module_expsym_cmds_RC | \
27223     old_archive_from_expsyms_cmds_RC | \
27224     export_symbols_cmds_RC | \
27225     extract_expsyms_cmds | reload_cmds | finish_cmds | \
27226     postinstall_cmds | postuninstall_cmds | \
27227     old_postinstall_cmds | old_postuninstall_cmds | \
27228     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27229       # Double-quote double-evaled strings.
27230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27231       ;;
27232     *)
27233       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27234       ;;
27235     esac
27236   done
27237
27238   case $lt_echo in
27239   *'\$0 --fallback-echo"')
27240     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27241     ;;
27242   esac
27243
27244 cfgfile="$ofile"
27245
27246   cat <<__EOF__ >> "$cfgfile"
27247 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27248
27249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27250
27251 # Shell to use when invoking shell scripts.
27252 SHELL=$lt_SHELL
27253
27254 # Whether or not to build shared libraries.
27255 build_libtool_libs=$enable_shared
27256
27257 # Whether or not to build static libraries.
27258 build_old_libs=$enable_static
27259
27260 # Whether or not to add -lc for building shared libraries.
27261 build_libtool_need_lc=$archive_cmds_need_lc_RC
27262
27263 # Whether or not to disallow shared libs when runtime libs are static
27264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27265
27266 # Whether or not to optimize for fast installation.
27267 fast_install=$enable_fast_install
27268
27269 # The host system.
27270 host_alias=$host_alias
27271 host=$host
27272 host_os=$host_os
27273
27274 # The build system.
27275 build_alias=$build_alias
27276 build=$build
27277 build_os=$build_os
27278
27279 # An echo program that does not interpret backslashes.
27280 echo=$lt_echo
27281
27282 # The archiver.
27283 AR=$lt_AR
27284 AR_FLAGS=$lt_AR_FLAGS
27285
27286 # A C compiler.
27287 LTCC=$lt_LTCC
27288
27289 # LTCC compiler flags.
27290 LTCFLAGS=$lt_LTCFLAGS
27291
27292 # A language-specific compiler.
27293 CC=$lt_compiler_RC
27294
27295 # Is the compiler the GNU C compiler?
27296 with_gcc=$GCC_RC
27297
27298 # An ERE matcher.
27299 EGREP=$lt_EGREP
27300
27301 # The linker used to build libraries.
27302 LD=$lt_LD_RC
27303
27304 # Whether we need hard or soft links.
27305 LN_S=$lt_LN_S
27306
27307 # A BSD-compatible nm program.
27308 NM=$lt_NM
27309
27310 # A symbol stripping program
27311 STRIP=$lt_STRIP
27312
27313 # Used to examine libraries when file_magic_cmd begins "file"
27314 MAGIC_CMD=$MAGIC_CMD
27315
27316 # Used on cygwin: DLL creation program.
27317 DLLTOOL="$DLLTOOL"
27318
27319 # Used on cygwin: object dumper.
27320 OBJDUMP="$OBJDUMP"
27321
27322 # Used on cygwin: assembler.
27323 AS="$AS"
27324
27325 # The name of the directory that contains temporary libtool files.
27326 objdir=$objdir
27327
27328 # How to create reloadable object files.
27329 reload_flag=$lt_reload_flag
27330 reload_cmds=$lt_reload_cmds
27331
27332 # How to pass a linker flag through the compiler.
27333 wl=$lt_lt_prog_compiler_wl_RC
27334
27335 # Object file suffix (normally "o").
27336 objext="$ac_objext"
27337
27338 # Old archive suffix (normally "a").
27339 libext="$libext"
27340
27341 # Shared library suffix (normally ".so").
27342 shrext_cmds='$shrext_cmds'
27343
27344 # Executable file suffix (normally "").
27345 exeext="$exeext"
27346
27347 # Additional compiler flags for building library objects.
27348 pic_flag=$lt_lt_prog_compiler_pic_RC
27349 pic_mode=$pic_mode
27350
27351 # What is the maximum length of a command?
27352 max_cmd_len=$lt_cv_sys_max_cmd_len
27353
27354 # Does compiler simultaneously support -c and -o options?
27355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27356
27357 # Must we lock files when doing compilation?
27358 need_locks=$lt_need_locks
27359
27360 # Do we need the lib prefix for modules?
27361 need_lib_prefix=$need_lib_prefix
27362
27363 # Do we need a version for libraries?
27364 need_version=$need_version
27365
27366 # Whether dlopen is supported.
27367 dlopen_support=$enable_dlopen
27368
27369 # Whether dlopen of programs is supported.
27370 dlopen_self=$enable_dlopen_self
27371
27372 # Whether dlopen of statically linked programs is supported.
27373 dlopen_self_static=$enable_dlopen_self_static
27374
27375 # Compiler flag to prevent dynamic linking.
27376 link_static_flag=$lt_lt_prog_compiler_static_RC
27377
27378 # Compiler flag to turn off builtin functions.
27379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27380
27381 # Compiler flag to allow reflexive dlopens.
27382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27383
27384 # Compiler flag to generate shared objects directly from archives.
27385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27386
27387 # Compiler flag to generate thread-safe objects.
27388 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27389
27390 # Library versioning type.
27391 version_type=$version_type
27392
27393 # Format of library name prefix.
27394 libname_spec=$lt_libname_spec
27395
27396 # List of archive names.  First name is the real one, the rest are links.
27397 # The last name is the one that the linker finds with -lNAME.
27398 library_names_spec=$lt_library_names_spec
27399
27400 # The coded name of the library, if different from the real name.
27401 soname_spec=$lt_soname_spec
27402
27403 # Commands used to build and install an old-style archive.
27404 RANLIB=$lt_RANLIB
27405 old_archive_cmds=$lt_old_archive_cmds_RC
27406 old_postinstall_cmds=$lt_old_postinstall_cmds
27407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27408
27409 # Create an old-style archive from a shared archive.
27410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27411
27412 # Create a temporary old-style archive to link instead of a shared archive.
27413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27414
27415 # Commands used to build and install a shared archive.
27416 archive_cmds=$lt_archive_cmds_RC
27417 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27418 postinstall_cmds=$lt_postinstall_cmds
27419 postuninstall_cmds=$lt_postuninstall_cmds
27420
27421 # Commands used to build a loadable module (assumed same as above if empty)
27422 module_cmds=$lt_module_cmds_RC
27423 module_expsym_cmds=$lt_module_expsym_cmds_RC
27424
27425 # Commands to strip libraries.
27426 old_striplib=$lt_old_striplib
27427 striplib=$lt_striplib
27428
27429 # Dependencies to place before the objects being linked to create a
27430 # shared library.
27431 predep_objects=$lt_predep_objects_RC
27432
27433 # Dependencies to place after the objects being linked to create a
27434 # shared library.
27435 postdep_objects=$lt_postdep_objects_RC
27436
27437 # Dependencies to place before the objects being linked to create a
27438 # shared library.
27439 predeps=$lt_predeps_RC
27440
27441 # Dependencies to place after the objects being linked to create a
27442 # shared library.
27443 postdeps=$lt_postdeps_RC
27444
27445 # The directories searched by this compiler when creating a shared
27446 # library
27447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
27448
27449 # The library search path used internally by the compiler when linking
27450 # a shared library.
27451 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27452
27453 # Method to check whether dependent libraries are shared objects.
27454 deplibs_check_method=$lt_deplibs_check_method
27455
27456 # Command to use when deplibs_check_method == file_magic.
27457 file_magic_cmd=$lt_file_magic_cmd
27458
27459 # Flag that allows shared libraries with undefined symbols to be built.
27460 allow_undefined_flag=$lt_allow_undefined_flag_RC
27461
27462 # Flag that forces no undefined symbols.
27463 no_undefined_flag=$lt_no_undefined_flag_RC
27464
27465 # Commands used to finish a libtool library installation in a directory.
27466 finish_cmds=$lt_finish_cmds
27467
27468 # Same as above, but a single script fragment to be evaled but not shown.
27469 finish_eval=$lt_finish_eval
27470
27471 # Take the output of nm and produce a listing of raw symbols and C names.
27472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27473
27474 # Transform the output of nm in a proper C declaration
27475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27476
27477 # Transform the output of nm in a C name address pair
27478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27479
27480 # This is the shared library runtime path variable.
27481 runpath_var=$runpath_var
27482
27483 # This is the shared library path variable.
27484 shlibpath_var=$shlibpath_var
27485
27486 # Is shlibpath searched before the hard-coded library search path?
27487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27488
27489 # How to hardcode a shared library path into an executable.
27490 hardcode_action=$hardcode_action_RC
27491
27492 # Whether we should hardcode library paths into libraries.
27493 hardcode_into_libs=$hardcode_into_libs
27494
27495 # Flag to hardcode \$libdir into a binary during linking.
27496 # This must work even if \$libdir does not exist.
27497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27498
27499 # If ld is used when linking, flag to hardcode \$libdir into
27500 # a binary during linking. This must work even if \$libdir does
27501 # not exist.
27502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27503
27504 # Whether we need a single -rpath flag with a separated argument.
27505 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27506
27507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27508 # resulting binary.
27509 hardcode_direct=$hardcode_direct_RC
27510
27511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27512 # resulting binary.
27513 hardcode_minus_L=$hardcode_minus_L_RC
27514
27515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27516 # the resulting binary.
27517 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27518
27519 # Set to yes if building a shared library automatically hardcodes DIR into the library
27520 # and all subsequent libraries and executables linked against it.
27521 hardcode_automatic=$hardcode_automatic_RC
27522
27523 # Variables whose values should be saved in libtool wrapper scripts and
27524 # restored at relink time.
27525 variables_saved_for_relink="$variables_saved_for_relink"
27526
27527 # Whether libtool must link a program against all its dependency libraries.
27528 link_all_deplibs=$link_all_deplibs_RC
27529
27530 # Compile-time system search path for libraries
27531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27532
27533 # Run-time system search path for libraries
27534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27535
27536 # Fix the shell variable \$srcfile for the compiler.
27537 fix_srcfile_path=$lt_fix_srcfile_path
27538
27539 # Set to yes if exported symbols are required.
27540 always_export_symbols=$always_export_symbols_RC
27541
27542 # The commands to list exported symbols.
27543 export_symbols_cmds=$lt_export_symbols_cmds_RC
27544
27545 # The commands to extract the exported symbol list from a shared archive.
27546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27547
27548 # Symbols that should not be listed in the preloaded symbols.
27549 exclude_expsyms=$lt_exclude_expsyms_RC
27550
27551 # Symbols that must always be exported.
27552 include_expsyms=$lt_include_expsyms_RC
27553
27554 # ### END LIBTOOL TAG CONFIG: $tagname
27555
27556 __EOF__
27557
27558
27559 else
27560   # If there is no Makefile yet, we rely on a make rule to execute
27561   # `config.status --recheck' to rerun these tests and create the
27562   # libtool script then.
27563   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27564   if test -f "$ltmain_in"; then
27565     test -f Makefile && make "$ltmain"
27566   fi
27567 fi
27568
27569
27570 ac_ext=c
27571 ac_cpp='$CPP $CPPFLAGS'
27572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27575
27576 CC="$lt_save_CC"
27577
27578         ;;
27579
27580       *)
27581         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27582 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27583    { (exit 1); exit 1; }; }
27584         ;;
27585       esac
27586
27587       # Append the new tag name to the list of available tags.
27588       if test -n "$tagname" ; then
27589       available_tags="$available_tags $tagname"
27590     fi
27591     fi
27592   done
27593   IFS="$lt_save_ifs"
27594
27595   # Now substitute the updated list of available tags.
27596   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27597     mv "${ofile}T" "$ofile"
27598     chmod +x "$ofile"
27599   else
27600     rm -f "${ofile}T"
27601     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27602 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27603    { (exit 1); exit 1; }; }
27604   fi
27605 fi
27606
27607
27608
27609 # This can be used to rebuild libtool when needed
27610 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27611
27612 # Always use our own libtool.
27613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27614
27615 # Prevent multiple expansion
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27637 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
27638 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27640   echo $ECHO_N "(cached) $ECHO_C" >&6
27641 else
27642   cat >conftest.make <<\_ACEOF
27643 SHELL = /bin/sh
27644 all:
27645         @echo '@@@%%%=$(MAKE)=@@@%%%'
27646 _ACEOF
27647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
27649   *@@@%%%=?*=@@@%%%*)
27650     eval ac_cv_prog_make_${ac_make}_set=yes;;
27651   *)
27652     eval ac_cv_prog_make_${ac_make}_set=no;;
27653 esac
27654 rm -f conftest.make
27655 fi
27656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27657   { echo "$as_me:$LINENO: result: yes" >&5
27658 echo "${ECHO_T}yes" >&6; }
27659   SET_MAKE=
27660 else
27661   { echo "$as_me:$LINENO: result: no" >&5
27662 echo "${ECHO_T}no" >&6; }
27663   SET_MAKE="MAKE=${MAKE-make}"
27664 fi
27665
27666
27667 if test "$need_glib" = "yes"; then
27668         # HAVE_GLIB (aka GLIBFOUND) are a catch-all for these
27669         # three GNOME libs. Assume we have all three unless one of
27670         # the checks fails.
27671         GLIBFOUND=yes
27672
27673
27674 pkg_failed=no
27675 { echo "$as_me:$LINENO: checking for GLIB" >&5
27676 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
27677
27678 if test -n "$PKG_CONFIG"; then
27679     if test -n "$GLIB_CFLAGS"; then
27680         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
27681     else
27682         if test -n "$PKG_CONFIG" && \
27683     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27684   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27685   ac_status=$?
27686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); }; then
27688   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
27689 else
27690   pkg_failed=yes
27691 fi
27692     fi
27693 else
27694         pkg_failed=untried
27695 fi
27696 if test -n "$PKG_CONFIG"; then
27697     if test -n "$GLIB_LIBS"; then
27698         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
27699     else
27700         if test -n "$PKG_CONFIG" && \
27701     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
27702   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
27703   ac_status=$?
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); }; then
27706   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
27707 else
27708   pkg_failed=yes
27709 fi
27710     fi
27711 else
27712         pkg_failed=untried
27713 fi
27714
27715
27716
27717 if test $pkg_failed = yes; then
27718
27719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27720         _pkg_short_errors_supported=yes
27721 else
27722         _pkg_short_errors_supported=no
27723 fi
27724         if test $_pkg_short_errors_supported = yes; then
27725                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
27726         else
27727                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
27728         fi
27729         # Put the nasty error message in config.log where it belongs
27730         echo "$GLIB_PKG_ERRORS" >&5
27731
27732         { echo "$as_me:$LINENO: result: no" >&5
27733 echo "${ECHO_T}no" >&6; }
27734                 GLIBFOUND=no
27735 elif test $pkg_failed = untried; then
27736         GLIBFOUND=no
27737 else
27738         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
27739         GLIB_LIBS=$pkg_cv_GLIB_LIBS
27740         { echo "$as_me:$LINENO: result: yes" >&5
27741 echo "${ECHO_T}yes" >&6; }
27742         :
27743 fi
27744         # This check here is broken on Ubuntu 8.04: it calls glib-config,
27745         # which isn't found, but the error is not detected by configure.
27746         #if test "x${GLIBFOUND}" = "xno"; then
27747         #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
27748         #fi
27749
27750
27751 pkg_failed=no
27752 { echo "$as_me:$LINENO: checking for GTHREAD" >&5
27753 echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6; }
27754
27755 if test -n "$PKG_CONFIG"; then
27756     if test -n "$GTHREAD_CFLAGS"; then
27757         pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
27758     else
27759         if test -n "$PKG_CONFIG" && \
27760     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27761   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; then
27765   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0"" 2>/dev/null`
27766 else
27767   pkg_failed=yes
27768 fi
27769     fi
27770 else
27771         pkg_failed=untried
27772 fi
27773 if test -n "$PKG_CONFIG"; then
27774     if test -n "$GTHREAD_LIBS"; then
27775         pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
27776     else
27777         if test -n "$PKG_CONFIG" && \
27778     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gthread-2.0\"\"") >&5
27779   ($PKG_CONFIG --exists --print-errors ""gthread-2.0"") 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; then
27783   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0"" 2>/dev/null`
27784 else
27785   pkg_failed=yes
27786 fi
27787     fi
27788 else
27789         pkg_failed=untried
27790 fi
27791
27792
27793
27794 if test $pkg_failed = yes; then
27795
27796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27797         _pkg_short_errors_supported=yes
27798 else
27799         _pkg_short_errors_supported=no
27800 fi
27801         if test $_pkg_short_errors_supported = yes; then
27802                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gthread-2.0""`
27803         else
27804                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
27805         fi
27806         # Put the nasty error message in config.log where it belongs
27807         echo "$GTHREAD_PKG_ERRORS" >&5
27808
27809         { echo "$as_me:$LINENO: result: no" >&5
27810 echo "${ECHO_T}no" >&6; }
27811                 GLIBFOUND=no
27812 elif test $pkg_failed = untried; then
27813         GLIBFOUND=no
27814 else
27815         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
27816         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
27817         { echo "$as_me:$LINENO: result: yes" >&5
27818 echo "${ECHO_T}yes" >&6; }
27819         :
27820 fi
27821
27822 pkg_failed=no
27823 { echo "$as_me:$LINENO: checking for GOBJECT" >&5
27824 echo $ECHO_N "checking for GOBJECT... $ECHO_C" >&6; }
27825
27826 if test -n "$PKG_CONFIG"; then
27827     if test -n "$GOBJECT_CFLAGS"; then
27828         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
27829     else
27830         if test -n "$PKG_CONFIG" && \
27831     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27832   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27833   ac_status=$?
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); }; then
27836   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags ""gobject-2.0"" 2>/dev/null`
27837 else
27838   pkg_failed=yes
27839 fi
27840     fi
27841 else
27842         pkg_failed=untried
27843 fi
27844 if test -n "$PKG_CONFIG"; then
27845     if test -n "$GOBJECT_LIBS"; then
27846         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
27847     else
27848         if test -n "$PKG_CONFIG" && \
27849     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"gobject-2.0\"\"") >&5
27850   ($PKG_CONFIG --exists --print-errors ""gobject-2.0"") 2>&5
27851   ac_status=$?
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); }; then
27854   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs ""gobject-2.0"" 2>/dev/null`
27855 else
27856   pkg_failed=yes
27857 fi
27858     fi
27859 else
27860         pkg_failed=untried
27861 fi
27862
27863
27864
27865 if test $pkg_failed = yes; then
27866
27867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27868         _pkg_short_errors_supported=yes
27869 else
27870         _pkg_short_errors_supported=no
27871 fi
27872         if test $_pkg_short_errors_supported = yes; then
27873                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""gobject-2.0""`
27874         else
27875                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gobject-2.0""`
27876         fi
27877         # Put the nasty error message in config.log where it belongs
27878         echo "$GOBJECT_PKG_ERRORS" >&5
27879
27880         { echo "$as_me:$LINENO: result: no" >&5
27881 echo "${ECHO_T}no" >&6; }
27882                 GLIBFOUND=no
27883 elif test $pkg_failed = untried; then
27884         GLIBFOUND=no
27885 else
27886         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
27887         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
27888         { echo "$as_me:$LINENO: result: yes" >&5
27889 echo "${ECHO_T}yes" >&6; }
27890         :
27891 fi
27892
27893         if  test "x${GLIBFOUND}" = "xyes"; then
27894
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_GLIB 1
27897 _ACEOF
27898
27899         else
27900             { { echo "$as_me:$LINENO: error: not all GNOME libraries found" >&5
27901 echo "$as_me: error: not all GNOME libraries found" >&2;}
27902    { (exit 1); exit 1; }; }
27903         fi
27904         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS $GTHREAD_CFLAGS $GOBJECT_CFLAGS"
27905 fi
27906
27907 # Check for Qt if some backend needs it.
27908 if test "$need_qt_modules"; then
27909    echo "$as_me: this is autotroll.m4 serial 4" >&5
27910
27911   test x"$TROLL" != x && echo 'ViM rox emacs.'
27912
27913
27914 # Check whether --with-qt was given.
27915 if test "${with_qt+set}" = set; then
27916   withval=$with_qt; QT_PATH=$withval
27917 fi
27918
27919
27920   # this is a hack to get decent flow control with 'break'
27921   for _qt_ignored in once; do
27922
27923   # Find Qt.
27924
27925   if test -d /usr/local/Trolltech; then
27926     # Try to find the latest version.
27927     tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
27928                                               | xargs | sed 's/  */:/g'`
27929   fi
27930   # Path to which recent MacPorts (~v1.7) install Qt4.
27931   test -d /opt/local/libexec/qt4-mac/bin \
27932     && tmp_qt_paths="$tmp_qt_paths:/opt/local/libexec/qt4-mac/bin"
27933
27934   # Find qmake.
27935
27936   for ac_prog in qmake qmake-qt4 qmake-qt3
27937 do
27938   # Extract the first word of "$ac_prog", so it can be a program name with args.
27939 set dummy $ac_prog; ac_word=$2
27940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27942 if test "${ac_cv_path_QMAKE+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   case $QMAKE in
27946   [\\/]* | ?:[\\/]*)
27947   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
27948   ;;
27949   *)
27950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27951 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
27952 for as_dir in $as_dummy
27953 do
27954   IFS=$as_save_IFS
27955   test -z "$as_dir" && as_dir=.
27956   for ac_exec_ext in '' $ac_executable_extensions; do
27957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27958     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
27959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27960     break 2
27961   fi
27962 done
27963 done
27964 IFS=$as_save_IFS
27965
27966   ;;
27967 esac
27968 fi
27969 QMAKE=$ac_cv_path_QMAKE
27970 if test -n "$QMAKE"; then
27971   { echo "$as_me:$LINENO: result: $QMAKE" >&5
27972 echo "${ECHO_T}$QMAKE" >&6; }
27973 else
27974   { echo "$as_me:$LINENO: result: no" >&5
27975 echo "${ECHO_T}no" >&6; }
27976 fi
27977
27978
27979   test -n "$QMAKE" && break
27980 done
27981 test -n "$QMAKE" || QMAKE="missing"
27982
27983   if test x"$QMAKE" = xmissing; then
27984     { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
27985 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
27986    { (exit 1); exit 1; }; }
27987     break
27988   fi
27989
27990   # Find moc (Meta Object Compiler).
27991
27992   for ac_prog in moc moc-qt4 moc-qt3
27993 do
27994   # Extract the first word of "$ac_prog", so it can be a program name with args.
27995 set dummy $ac_prog; ac_word=$2
27996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27998 if test "${ac_cv_path_MOC+set}" = set; then
27999   echo $ECHO_N "(cached) $ECHO_C" >&6
28000 else
28001   case $MOC in
28002   [\\/]* | ?:[\\/]*)
28003   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
28004   ;;
28005   *)
28006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28007 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28008 for as_dir in $as_dummy
28009 do
28010   IFS=$as_save_IFS
28011   test -z "$as_dir" && as_dir=.
28012   for ac_exec_ext in '' $ac_executable_extensions; do
28013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28014     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
28015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28016     break 2
28017   fi
28018 done
28019 done
28020 IFS=$as_save_IFS
28021
28022   ;;
28023 esac
28024 fi
28025 MOC=$ac_cv_path_MOC
28026 if test -n "$MOC"; then
28027   { echo "$as_me:$LINENO: result: $MOC" >&5
28028 echo "${ECHO_T}$MOC" >&6; }
28029 else
28030   { echo "$as_me:$LINENO: result: no" >&5
28031 echo "${ECHO_T}no" >&6; }
28032 fi
28033
28034
28035   test -n "$MOC" && break
28036 done
28037 test -n "$MOC" || MOC="missing"
28038
28039   if test x"$MOC" = xmissing; then
28040     { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
28041 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
28042    { (exit 1); exit 1; }; }
28043     break
28044   fi
28045
28046   # Find uic (User Interface Compiler).
28047
28048   for ac_prog in uic uic-qt4 uic-qt3 uic3
28049 do
28050   # Extract the first word of "$ac_prog", so it can be a program name with args.
28051 set dummy $ac_prog; ac_word=$2
28052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28054 if test "${ac_cv_path_UIC+set}" = set; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057   case $UIC in
28058   [\\/]* | ?:[\\/]*)
28059   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
28060   ;;
28061   *)
28062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28063 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28064 for as_dir in $as_dummy
28065 do
28066   IFS=$as_save_IFS
28067   test -z "$as_dir" && as_dir=.
28068   for ac_exec_ext in '' $ac_executable_extensions; do
28069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28070     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
28071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28072     break 2
28073   fi
28074 done
28075 done
28076 IFS=$as_save_IFS
28077
28078   ;;
28079 esac
28080 fi
28081 UIC=$ac_cv_path_UIC
28082 if test -n "$UIC"; then
28083   { echo "$as_me:$LINENO: result: $UIC" >&5
28084 echo "${ECHO_T}$UIC" >&6; }
28085 else
28086   { echo "$as_me:$LINENO: result: no" >&5
28087 echo "${ECHO_T}no" >&6; }
28088 fi
28089
28090
28091   test -n "$UIC" && break
28092 done
28093 test -n "$UIC" || UIC="missing"
28094
28095   if test x"$UIC" = xmissing; then
28096     { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
28097 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
28098    { (exit 1); exit 1; }; }
28099     break
28100   fi
28101
28102   # Find rcc (Qt Resource Compiler).
28103
28104   for ac_prog in rcc
28105 do
28106   # Extract the first word of "$ac_prog", so it can be a program name with args.
28107 set dummy $ac_prog; ac_word=$2
28108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28110 if test "${ac_cv_path_RCC+set}" = set; then
28111   echo $ECHO_N "(cached) $ECHO_C" >&6
28112 else
28113   case $RCC in
28114   [\\/]* | ?:[\\/]*)
28115   ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
28116   ;;
28117   *)
28118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28119 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
28120 for as_dir in $as_dummy
28121 do
28122   IFS=$as_save_IFS
28123   test -z "$as_dir" && as_dir=.
28124   for ac_exec_ext in '' $ac_executable_extensions; do
28125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28126     ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
28127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28128     break 2
28129   fi
28130 done
28131 done
28132 IFS=$as_save_IFS
28133
28134   ;;
28135 esac
28136 fi
28137 RCC=$ac_cv_path_RCC
28138 if test -n "$RCC"; then
28139   { echo "$as_me:$LINENO: result: $RCC" >&5
28140 echo "${ECHO_T}$RCC" >&6; }
28141 else
28142   { echo "$as_me:$LINENO: result: no" >&5
28143 echo "${ECHO_T}no" >&6; }
28144 fi
28145
28146
28147   test -n "$RCC" && break
28148 done
28149 test -n "$RCC" || RCC="false"
28150
28151   if test x"$UIC" = xfalse; then
28152     { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
28153   Try using --with-qt." >&5
28154 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH.\
28155   Try using --with-qt." >&2;}
28156   fi
28157
28158   { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
28159 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
28160   at_darwin=no
28161   at_qmake_args=
28162   case $host_os in
28163     darwin*)
28164       at_darwin=yes
28165       at_qmake_args='-spec macx-g++'
28166       ;;
28167   esac
28168   { echo "$as_me:$LINENO: result: $at_darwin" >&5
28169 echo "${ECHO_T}$at_darwin" >&6; }
28170
28171   # If we don't know the path to Qt, guess it from the path to qmake.
28172   if test x"$QT_PATH" = x; then
28173     QT_PATH=`dirname "$QMAKE"`
28174   fi
28175   if test x"$QT_PATH" = x; then
28176     { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
28177 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
28178    { (exit 1); exit 1; }; }
28179     break
28180   fi
28181
28182
28183   # Get ready to build a test-app with Qt.
28184   if mkdir conftest.dir && cd conftest.dir; then :; else
28185     { { echo "$as_me:$LINENO: error: Cannot mkdir conftest.dir or cd to that directory." >&5
28186 echo "$as_me: error: Cannot mkdir conftest.dir or cd to that directory." >&2;}
28187    { (exit 1); exit 1; }; }
28188     break
28189   fi
28190
28191   cat >conftest.h <<_ASEOF
28192 #include <QObject>
28193
28194 class Foo: public QObject
28195 {
28196   Q_OBJECT;
28197 public:
28198   Foo();
28199   ~Foo() {}
28200 public Q_SLOTS:
28201   void setValue(int value);
28202 Q_SIGNALS:
28203   void valueChanged(int newValue);
28204 private:
28205   int value_;
28206 };
28207 _ASEOF
28208
28209   cat >conftest.cpp <<_ASEOF
28210 #include "conftest.h"
28211 Foo::Foo()
28212   : value_ (42)
28213 {
28214   connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
28215 }
28216
28217 void Foo::setValue(int value)
28218 {
28219   value_ = value;
28220 }
28221
28222 int main()
28223 {
28224   Foo f;
28225 }
28226 _ASEOF
28227   if $QMAKE -project; then :; else
28228     { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
28229 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
28230    { (exit 1); exit 1; }; }
28231     break
28232   fi
28233
28234   # Find the .pro file generated by qmake.
28235   pro_file='conftest.dir.pro'
28236   test -f $pro_file || pro_file=`echo *.pro`
28237   if test -f "$pro_file"; then :; else
28238     { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
28239 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
28240    { (exit 1); exit 1; }; }
28241     break
28242   fi
28243
28244  # Tweak the value of QT in the .pro file for -gui $need_qt_modules.
28245
28246   qt_conf=''
28247   for at_mod in -gui $need_qt_modules; do
28248     at_mod=`echo "$at_mod" | sed 's/^-//; tough
28249                                   s/^+//; beef
28250                                   :ough
28251                                   s/^/QT -= /;n
28252                                   :eef
28253                                   s/^/QT += /'`
28254     qt_conf="$qt_conf
28255 $at_mod"
28256   done
28257   echo "$qt_conf" | sed 1d >>"$pro_file"
28258
28259
28260  # Tweak the value of CONFIG in the .pro file for $qt_config.
28261
28262   qt_conf=''
28263   for at_mod in $qt_config; do
28264     at_mod=`echo "$at_mod" | sed 's/^-//; tough
28265                                   s/^+//; beef
28266                                   :ough
28267                                   s/^/CONFIG -= /;n
28268                                   :eef
28269                                   s/^/CONFIG += /'`
28270     qt_conf="$qt_conf
28271 $at_mod"
28272   done
28273   echo "$qt_conf" | sed 1d >>"$pro_file"
28274
28275
28276  # Add the extra-settings the user wants to set in the .pro
28277   echo "$qt_misc" >>"$pro_file"
28278
28279
28280   echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
28281   sed 's/^/| /' "$pro_file" >&5
28282
28283   if $QMAKE $at_qmake_args; then :; else
28284     { { echo "$as_me:$LINENO: error: Calling $QMAKE $at_qmake_args failed." >&5
28285 echo "$as_me: error: Calling $QMAKE $at_qmake_args failed." >&2;}
28286    { (exit 1); exit 1; }; }
28287     break
28288   fi
28289
28290   # QMake has a very annoying misfeature: sometimes it generates Makefiles
28291   # where all the references to the files from the Qt installation are
28292   # relative.  We can't use them as-is because if we take, say, a
28293   # -I../../usr/include/Qt from that Makefile, the flag is invalid as soon
28294   # as we use it in another (sub) directory.  So what this perl pass does is
28295   # that it rewrite all relative paths to absolute paths.  Another problem
28296   # when building on Cygwin is that QMake mixes paths with blackslashes and
28297   # forward slashes and paths must be handled with extra care because of the
28298   # stupid Windows drive letters.
28299   echo "$as_me:$LINENO: fixing the Makefiles:" Makefile* >&5
28300   cat >fixmk.pl <<\EOF
28301 use strict;
28302 use Cwd qw(cwd abs_path);
28303 # This variable is useful on Cygwin for the following reason: Say that you are
28304 # in `/' (that is, in fact you are in C:/cygwin, or something like that) if you
28305 # `cd ..' then obviously you remain in `/' (that is in C:/cygwin).  QMake
28306 # generates paths that are relative to C:/ (or another driver letter, whatever)
28307 # so the trick to get the `..' resolved properly is to prepend the absolute
28308 # path of the current working directory in a Windows-style.  C:/cygwin/../ will
28309 # properly become C:/.
28310 my $d = "";
28311 my $r2a = 0;
28312 my $b2f = 0;
28313
28314 my $cygwin = 0;
28315 if ($^O eq "cygwin") {
28316   $cygwin = 1;
28317   $d = cwd();
28318   $d = `cygpath --mixed '$d'`;
28319   chomp($d);
28320   $d .= "/";
28321 }
28322
28323 sub rel2abs($)
28324 {
28325   my $p = $d . shift;
28326   # print "r2a p=$p";
28327   -e $p || return $p;
28328   if ($cygwin) {
28329     $p = `cygpath --mixed '$p'`;
28330     chomp($p);
28331   }
28332   else {
28333     # Do not use abs_path on Cygwin: it incorrectly resolves the paths that are
28334     # relative to C:/ rather than `/'.
28335     $p = abs_path($p);
28336   }
28337   # print " -> $p\n";
28338   ++$r2a;
28339   return $p;
28340 }
28341
28342 # Only useful on Cygwin.
28343 sub back2forward($)
28344 {
28345   my $p = shift;
28346   # print "b2f p=$p";
28347   -e $p || return $p;
28348   $p = `cygpath --mixed '$p'`;
28349   chomp($p);
28350   # print " -> $p\n";
28351   ++$b2f;
28352   return $p;
28353 }
28354
28355 foreach my $mk (@ARGV)
28356 {
28357   next if $mk =~ /~$/;
28358   open(MK, $mk) or die("open $mk: $!");
28359   # print "mk=$mk\n";
28360   my $file = join("", <MK>);
28361   close(MK) or die("close $mk: $!");
28362   rename $mk, $mk . "~" or die("rename $mk: $!");
28363   $file =~ s{(?:\.\.[\\/])+(?:[^"'\s:]+)}{rel2abs($&)}gse;
28364   $file =~ s{(?:[a-zA-Z]:[\\/])?(?:[^"\s]+\\[^"\s:]+)+}
28365             {back2forward($&)}gse if $cygwin;
28366   open(MK, ">", $mk) or die("open >$mk: $!");
28367   print MK $file;
28368   close(MK) or die("close >$mk: $!");
28369   print "$mk: updated $r2a relative paths and $b2f backslash-style paths\n";
28370   $r2a = 0;
28371   $b2f = 0;
28372 }
28373 EOF
28374
28375   perl >&5 -w fixmk.pl Makefile* ||
28376   { echo "$as_me:$LINENO: WARNING: failed to fix the Makefiles generated by $QMAKE" >&5
28377 echo "$as_me: WARNING: failed to fix the Makefiles generated by $QMAKE" >&2;}
28378   rm -f fixmk.pl
28379
28380   # Try to compile a simple Qt app.
28381   { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
28382 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
28383 if test "${at_cv_qt_build+set}" = set; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386   at_cv_qt_build=ko
28387   : ${MAKE=make}
28388
28389   if $MAKE >&5 2>&1; then
28390     at_cv_qt_build='ok, looks like Qt 4'
28391   else
28392     echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
28393 instead" >&5
28394     sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
28395     if $MAKE >&5 2>&1; then
28396       at_cv_qt_build='ok, looks like Qt 3'
28397     else
28398       # Sometimes (such as on Debian) build will fail because Qt hasn't been
28399       # installed in debug mode and qmake tries (by default) to build apps in
28400       # debug mode => Try again in release mode.
28401       echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
28402             >&5
28403
28404        # Tweak the value of CONFIG in the .pro file for +release.
28405
28406   qt_conf=''
28407   for at_mod in +release; do
28408     at_mod=`echo "$at_mod" | sed 's/^-//; tough
28409                                   s/^+//; beef
28410                                   :ough
28411                                   s/^/CONFIG -= /;n
28412                                   :eef
28413                                   s/^/CONFIG += /'`
28414     qt_conf="$qt_conf
28415 $at_mod"
28416   done
28417   echo "$qt_conf" | sed 1d >>"$pro_file"
28418
28419
28420       sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
28421       if $MAKE >&5 2>&1; then
28422         at_cv_qt_build='ok, looks like Qt 4, release mode forced'
28423       else
28424         echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
28425 instead" >&5
28426         sed 's/<QObject>/<qobject.h>/' conftest.h >tmp.h && mv tmp.h conftest.h
28427         if $MAKE >&5 2>&1; then
28428           at_cv_qt_build='ok, looks like Qt 3, release mode forced'
28429         else
28430           at_cv_qt_build=ko
28431           echo "$as_me:$LINENO: failed program was:" >&5
28432           sed 's/^/| /' conftest.h >&5
28433           echo "$as_me:$LINENO: failed program was:" >&5
28434           sed 's/^/| /' conftest.cpp >&5
28435         fi # if make with Qt3-style #include and release mode forced.
28436       fi # if make with Qt4-style #include and release mode forced.
28437     fi # if make with Qt3-style #include.
28438   fi # if make with Qt4-style #include.
28439
28440 fi
28441 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
28442 echo "${ECHO_T}$at_cv_qt_build" >&6; }
28443   if test x"$at_cv_qt_build" = xko; then
28444     { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
28445 echo "$as_me: error: Cannot build a test Qt program" >&2;}
28446    { (exit 1); exit 1; }; }
28447     break
28448   fi
28449   QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/[^0-9]*//g'`
28450
28451
28452   # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
28453   # It starts by removing the beginning of the line, removing references to
28454   # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
28455   # all variable uses by QT_.
28456   qt_sed_filter='s///;
28457                  s/$(SUBLIBS)//g;
28458                  s/^ *//;
28459                  s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
28460
28461   # Find the Makefile (qmake happens to generate a fake Makefile which invokes
28462   # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
28463   # Makefile.Release. The reason is that the main difference is that release
28464   # uses -Os and debug -g. We can override -Os by passing another -O but we
28465   # usually don't override -g.
28466   if test -f Makefile.Release; then
28467     at_mfile='Makefile.Release'
28468   else
28469     at_mfile='Makefile'
28470   fi
28471   if test -f $at_mfile; then :; else
28472     { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
28473 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
28474    { (exit 1); exit 1; }; }
28475     break
28476   fi
28477
28478   # Find the DEFINES of Qt (should have been named CPPFLAGS).
28479   { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
28480 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
28481 if test "${at_cv_env_QT_DEFINES+set}" = set; then
28482   echo $ECHO_N "(cached) $ECHO_C" >&6
28483 else
28484   at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28485 fi
28486 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
28487 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
28488   QT_DEFINES=$at_cv_env_QT_DEFINES
28489
28490
28491   # Find the CFLAGS of Qt (We can use Qt in C?!)
28492   { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
28493 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
28494 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
28495   echo $ECHO_N "(cached) $ECHO_C" >&6
28496 else
28497   at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28498 fi
28499 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
28500 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
28501   QT_CFLAGS=$at_cv_env_QT_CFLAGS
28502
28503
28504   # Find the CXXFLAGS of Qt.
28505   { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
28506 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
28507 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
28508   echo $ECHO_N "(cached) $ECHO_C" >&6
28509 else
28510   at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28511 fi
28512 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
28513 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
28514   QT_CXXFLAGS=$at_cv_env_QT_CXXFLAGS
28515
28516
28517   # Find the INCPATH of Qt.
28518   { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
28519 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
28520 if test "${at_cv_env_QT_INCPATH+set}" = set; then
28521   echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523   at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28524 fi
28525 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
28526 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
28527   QT_INCPATH=$at_cv_env_QT_INCPATH
28528
28529
28530   QT_CPPFLAGS="$at_cv_env_QT_DEFINES $at_cv_env_QT_INCPATH"
28531
28532
28533   # Find the LFLAGS of Qt (Should have been named LDFLAGS)
28534   { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
28535 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
28536 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
28537   echo $ECHO_N "(cached) $ECHO_C" >&6
28538 else
28539   at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Z=]*=/!d;$qt_sed_filter" $at_mfile`
28540 fi
28541 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
28542 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
28543   QT_LFLAGS=$at_cv_env_QT_LDFLAGS
28544
28545   QT_LDFLAGS=$at_cv_env_QT_LDFLAGS
28546
28547
28548   # Find the LIBS of Qt.
28549   { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
28550 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
28551 if test "${at_cv_env_QT_LIBS+set}" = set; then
28552   echo $ECHO_N "(cached) $ECHO_C" >&6
28553 else
28554   at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
28555    if test x$at_darwin = xyes; then
28556      # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
28557      # -F properly. The "bug" has been fixed on 22 October 2006
28558      # by Peter O'Gorman but we provide backward compatibility here.
28559      at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
28560                              | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
28561    fi
28562
28563 fi
28564 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
28565 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
28566   QT_LIBS=$at_cv_env_QT_LIBS
28567
28568
28569   cd .. && rm -rf conftest.dir
28570
28571   # Run the user code
28572
28573
28574   done  # end hack (useless for to be able to use break)
28575
28576 fi
28577
28578 # determine from where we can get a SHA-256 implementation
28579 have_sha="no"
28580 if test "$GLIBFOUND" = "yes"; then
28581    # only use glib if we need it anyway, also has to be at lease 2.16
28582
28583 pkg_failed=no
28584 { echo "$as_me:$LINENO: checking for GLIB216" >&5
28585 echo $ECHO_N "checking for GLIB216... $ECHO_C" >&6; }
28586
28587 if test -n "$PKG_CONFIG"; then
28588     if test -n "$GLIB216_CFLAGS"; then
28589         pkg_cv_GLIB216_CFLAGS="$GLIB216_CFLAGS"
28590     else
28591         if test -n "$PKG_CONFIG" && \
28592     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
28593   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; then
28597   pkg_cv_GLIB216_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
28598 else
28599   pkg_failed=yes
28600 fi
28601     fi
28602 else
28603         pkg_failed=untried
28604 fi
28605 if test -n "$PKG_CONFIG"; then
28606     if test -n "$GLIB216_LIBS"; then
28607         pkg_cv_GLIB216_LIBS="$GLIB216_LIBS"
28608     else
28609         if test -n "$PKG_CONFIG" && \
28610     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\"") >&5
28611   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; then
28615   pkg_cv_GLIB216_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
28616 else
28617   pkg_failed=yes
28618 fi
28619     fi
28620 else
28621         pkg_failed=untried
28622 fi
28623
28624
28625
28626 if test $pkg_failed = yes; then
28627
28628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28629         _pkg_short_errors_supported=yes
28630 else
28631         _pkg_short_errors_supported=no
28632 fi
28633         if test $_pkg_short_errors_supported = yes; then
28634                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
28635         else
28636                 GLIB216_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
28637         fi
28638         # Put the nasty error message in config.log where it belongs
28639         echo "$GLIB216_PKG_ERRORS" >&5
28640
28641         { echo "$as_me:$LINENO: result: no" >&5
28642 echo "${ECHO_T}no" >&6; }
28643                 true
28644 elif test $pkg_failed = untried; then
28645         true
28646 else
28647         GLIB216_CFLAGS=$pkg_cv_GLIB216_CFLAGS
28648         GLIB216_LIBS=$pkg_cv_GLIB216_LIBS
28649         { echo "$as_me:$LINENO: result: yes" >&5
28650 echo "${ECHO_T}yes" >&6; }
28651
28652 cat >>confdefs.h <<\_ACEOF
28653 #define USE_SHA256 1
28654 _ACEOF
28655
28656                       have_sha="glib"
28657 fi
28658 fi
28659 if test "$have_sha" = "no"; then
28660    # Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc
28661    # file and a simple API.
28662
28663 pkg_failed=no
28664 { echo "$as_me:$LINENO: checking for NSS" >&5
28665 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28666
28667 if test -n "$PKG_CONFIG"; then
28668     if test -n "$NSS_CFLAGS"; then
28669         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28670     else
28671         if test -n "$PKG_CONFIG" && \
28672     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
28673   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; then
28677   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags ""nss"" 2>/dev/null`
28678 else
28679   pkg_failed=yes
28680 fi
28681     fi
28682 else
28683         pkg_failed=untried
28684 fi
28685 if test -n "$PKG_CONFIG"; then
28686     if test -n "$NSS_LIBS"; then
28687         pkg_cv_NSS_LIBS="$NSS_LIBS"
28688     else
28689         if test -n "$PKG_CONFIG" && \
28690     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"nss\"\"") >&5
28691   ($PKG_CONFIG --exists --print-errors ""nss"") 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; then
28695   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs ""nss"" 2>/dev/null`
28696 else
28697   pkg_failed=yes
28698 fi
28699     fi
28700 else
28701         pkg_failed=untried
28702 fi
28703
28704
28705
28706 if test $pkg_failed = yes; then
28707
28708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28709         _pkg_short_errors_supported=yes
28710 else
28711         _pkg_short_errors_supported=no
28712 fi
28713         if test $_pkg_short_errors_supported = yes; then
28714                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""nss""`
28715         else
28716                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""nss""`
28717         fi
28718         # Put the nasty error message in config.log where it belongs
28719         echo "$NSS_PKG_ERRORS" >&5
28720
28721         { echo "$as_me:$LINENO: result: no" >&5
28722 echo "${ECHO_T}no" >&6; }
28723                 true
28724 elif test $pkg_failed = untried; then
28725         true
28726 else
28727         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28728         NSS_LIBS=$pkg_cv_NSS_LIBS
28729         { echo "$as_me:$LINENO: result: yes" >&5
28730 echo "${ECHO_T}yes" >&6; }
28731
28732 cat >>confdefs.h <<\_ACEOF
28733 #define USE_SHA256 2
28734 _ACEOF
28735
28736                       have_sha="nss"
28737 fi
28738 fi
28739
28740  if test "$enable_shared" == "yes"; then
28741   ENABLE_MODULES_TRUE=
28742   ENABLE_MODULES_FALSE='#'
28743 else
28744   ENABLE_MODULES_TRUE='#'
28745   ENABLE_MODULES_FALSE=
28746 fi
28747
28748 if test "$enable_shared" == "yes"; then
28749
28750 cat >>confdefs.h <<\_ACEOF
28751 #define ENABLE_MODULES 1
28752 _ACEOF
28753
28754 fi
28755
28756
28757
28758
28759 if test "$host" == "arm-apple-darwin"; then
28760
28761 cat >>confdefs.h <<\_ACEOF
28762 #define IPHONE 1
28763 _ACEOF
28764
28765    DEVICE_TYPE=iPhone
28766 fi
28767
28768 if test "$enable_evolution_compatibility" == "yes"; then
28769
28770 cat >>confdefs.h <<\_ACEOF
28771 #define EVOLUTION_COMPATIBILITY 1
28772 _ACEOF
28773
28774 fi
28775  if test "$enable_evolution_compatibility" == "yes"; then
28776   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
28777   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
28778 else
28779   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
28780   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
28781 fi
28782
28783
28784 if test "$enable_developer_mode" == "yes"; then
28785 backendsearchdir="`pwd`/src/backends/"
28786 else
28787 backendsearchdir='$(libdir)'/syncevolution/backends/
28788 fi
28789
28790 backenddir='$(libdir)'/syncevolution/backends
28791
28792
28793
28794
28795 cat >>confdefs.h <<_ACEOF
28796 #define DEVICE_TYPE "$DEVICE_TYPE"
28797 _ACEOF
28798
28799
28800
28801
28802
28803 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
28804 do
28805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28810   echo $ECHO_N "(cached) $ECHO_C" >&6
28811 fi
28812 ac_res=`eval echo '${'$as_ac_Header'}'`
28813                { echo "$as_me:$LINENO: result: $ac_res" >&5
28814 echo "${ECHO_T}$ac_res" >&6; }
28815 else
28816   # Is the header compilable?
28817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28819 cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825 $ac_includes_default
28826 #include <$ac_header>
28827 _ACEOF
28828 rm -f conftest.$ac_objext
28829 if { (ac_try="$ac_compile"
28830 case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_compile") 2>conftest.er1
28836   ac_status=$?
28837   grep -v '^ *+' conftest.er1 >conftest.err
28838   rm -f conftest.er1
28839   cat conftest.err >&5
28840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); } && {
28842          test -z "$ac_c_werror_flag" ||
28843          test ! -s conftest.err
28844        } && test -s conftest.$ac_objext; then
28845   ac_header_compiler=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ac_header_compiler=no
28851 fi
28852
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28855 echo "${ECHO_T}$ac_header_compiler" >&6; }
28856
28857 # Is the header present?
28858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28860 cat >conftest.$ac_ext <<_ACEOF
28861 /* confdefs.h.  */
28862 _ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h.  */
28866 #include <$ac_header>
28867 _ACEOF
28868 if { (ac_try="$ac_cpp conftest.$ac_ext"
28869 case "(($ac_try" in
28870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871   *) ac_try_echo=$ac_try;;
28872 esac
28873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } >/dev/null && {
28881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28882          test ! -s conftest.err
28883        }; then
28884   ac_header_preproc=yes
28885 else
28886   echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28888
28889   ac_header_preproc=no
28890 fi
28891
28892 rm -f conftest.err conftest.$ac_ext
28893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894 echo "${ECHO_T}$ac_header_preproc" >&6; }
28895
28896 # So?  What about this header?
28897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28898   yes:no: )
28899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28903     ac_header_preproc=yes
28904     ;;
28905   no:yes:* )
28906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28918
28919     ;;
28920 esac
28921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28924   echo $ECHO_N "(cached) $ECHO_C" >&6
28925 else
28926   eval "$as_ac_Header=\$ac_header_preproc"
28927 fi
28928 ac_res=`eval echo '${'$as_ac_Header'}'`
28929                { echo "$as_me:$LINENO: result: $ac_res" >&5
28930 echo "${ECHO_T}$ac_res" >&6; }
28931
28932 fi
28933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28934   cat >>confdefs.h <<_ACEOF
28935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28936 _ACEOF
28937
28938 fi
28939
28940 done
28941
28942
28943
28944 cat >>confdefs.h <<\_ACEOF
28945 #define SYNTHESIS 1
28946 _ACEOF
28947
28948
28949 # fallback for lack of --with-docdir support in older automake
28950 if test ! "$docdir"; then
28951    docdir = ${datadir}/doc/syncevolution
28952
28953 fi
28954
28955 # Check whether --enable-dbus-timeout-hack was given.
28956 if test "${enable_dbus_timeout_hack+set}" = set; then
28957   enableval=$enable_dbus_timeout_hack; enable_dbus_timeout_hack=$enableval
28958 else
28959   if test $enable_ebook = "yes" || test $enable_ecal = "yes"; then
28960                   enable_dbus_timeout_hack="yes"
28961                fi
28962 fi
28963
28964 if test "$enable_dbus_timeout_hack" = "yes"; then
28965
28966 cat >>confdefs.h <<\_ACEOF
28967 #define ENABLE_DBUS_TIMEOUT_HACK 1
28968 _ACEOF
28969
28970 fi
28971
28972 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"
28973
28974 cat >confcache <<\_ACEOF
28975 # This file is a shell script that caches the results of configure
28976 # tests run on this system so they can be shared between configure
28977 # scripts and configure runs, see configure's option --config-cache.
28978 # It is not useful on other systems.  If it contains results you don't
28979 # want to keep, you may remove or edit it.
28980 #
28981 # config.status only pays attention to the cache file if you give it
28982 # the --recheck option to rerun configure.
28983 #
28984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28986 # following values.
28987
28988 _ACEOF
28989
28990 # The following way of writing the cache mishandles newlines in values,
28991 # but we know of no workaround that is simple, portable, and efficient.
28992 # So, we kill variables containing newlines.
28993 # Ultrix sh set writes to stderr and can't be redirected directly,
28994 # and sets the high bit in the cache file unless we assign to the vars.
28995 (
28996   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28997     eval ac_val=\$$ac_var
28998     case $ac_val in #(
28999     *${as_nl}*)
29000       case $ac_var in #(
29001       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29002 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29003       esac
29004       case $ac_var in #(
29005       _ | IFS | as_nl) ;; #(
29006       *) $as_unset $ac_var ;;
29007       esac ;;
29008     esac
29009   done
29010
29011   (set) 2>&1 |
29012     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29013     *${as_nl}ac_space=\ *)
29014       # `set' does not quote correctly, so add quotes (double-quote
29015       # substitution turns \\\\ into \\, and sed turns \\ into \).
29016       sed -n \
29017         "s/'/'\\\\''/g;
29018           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29019       ;; #(
29020     *)
29021       # `set' quotes correctly as required by POSIX, so do not add quotes.
29022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29023       ;;
29024     esac |
29025     sort
29026 ) |
29027   sed '
29028      /^ac_cv_env_/b end
29029      t clear
29030      :clear
29031      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29032      t end
29033      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29034      :end' >>confcache
29035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29036   if test -w "$cache_file"; then
29037     test "x$cache_file" != "x/dev/null" &&
29038       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29039 echo "$as_me: updating cache $cache_file" >&6;}
29040     cat confcache >$cache_file
29041   else
29042     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29043 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29044   fi
29045 fi
29046 rm -f confcache
29047
29048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29049 # Let make expand exec_prefix.
29050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29051
29052 DEFS=-DHAVE_CONFIG_H
29053
29054 ac_libobjs=
29055 ac_ltlibobjs=
29056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29057   # 1. Remove the extension, and $U if already installed.
29058   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29059   ac_i=`echo "$ac_i" | sed "$ac_script"`
29060   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29061   #    will be set to the directory where LIBOBJS objects are built.
29062   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29063   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29064 done
29065 LIBOBJS=$ac_libobjs
29066
29067 LTLIBOBJS=$ac_ltlibobjs
29068
29069
29070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29071   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29072 Usually this means the macro was only invoked conditionally." >&5
29073 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29074 Usually this means the macro was only invoked conditionally." >&2;}
29075    { (exit 1); exit 1; }; }
29076 fi
29077 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29078   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29079 Usually this means the macro was only invoked conditionally." >&5
29080 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29081 Usually this means the macro was only invoked conditionally." >&2;}
29082    { (exit 1); exit 1; }; }
29083 fi
29084 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
29085   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
29086 Usually this means the macro was only invoked conditionally." >&5
29087 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
29088 Usually this means the macro was only invoked conditionally." >&2;}
29089    { (exit 1); exit 1; }; }
29090 fi
29091 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
29092   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTING\" was never defined.
29093 Usually this means the macro was only invoked conditionally." >&5
29094 echo "$as_me: error: conditional \"ENABLE_TESTING\" was never defined.
29095 Usually this means the macro was only invoked conditionally." >&2;}
29096    { (exit 1); exit 1; }; }
29097 fi
29098 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
29099   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OBEX\" was never defined.
29100 Usually this means the macro was only invoked conditionally." >&5
29101 echo "$as_me: error: conditional \"ENABLE_OBEX\" was never defined.
29102 Usually this means the macro was only invoked conditionally." >&2;}
29103    { (exit 1); exit 1; }; }
29104 fi
29105 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
29106   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
29107 Usually this means the macro was only invoked conditionally." >&5
29108 echo "$as_me: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
29109 Usually this means the macro was only invoked conditionally." >&2;}
29110    { (exit 1); exit 1; }; }
29111 fi
29112 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
29113   { { echo "$as_me:$LINENO: error: conditional \"COND_GUI\" was never defined.
29114 Usually this means the macro was only invoked conditionally." >&5
29115 echo "$as_me: error: conditional \"COND_GUI\" was never defined.
29116 Usually this means the macro was only invoked conditionally." >&2;}
29117    { (exit 1); exit 1; }; }
29118 fi
29119 if test -z "${COND_CORE_TRUE}" && test -z "${COND_CORE_FALSE}"; then
29120   { { echo "$as_me:$LINENO: error: conditional \"COND_CORE\" was never defined.
29121 Usually this means the macro was only invoked conditionally." >&5
29122 echo "$as_me: error: conditional \"COND_CORE\" was never defined.
29123 Usually this means the macro was only invoked conditionally." >&2;}
29124    { (exit 1); exit 1; }; }
29125 fi
29126 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
29127   { { echo "$as_me:$LINENO: error: conditional \"COND_DBUS\" was never defined.
29128 Usually this means the macro was only invoked conditionally." >&5
29129 echo "$as_me: error: conditional \"COND_DBUS\" was never defined.
29130 Usually this means the macro was only invoked conditionally." >&2;}
29131    { (exit 1); exit 1; }; }
29132 fi
29133
29134   ac_config_commands="$ac_config_commands po/stamp-it"
29135
29136
29137 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29138   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29139 Usually this means the macro was only invoked conditionally." >&5
29140 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29141 Usually this means the macro was only invoked conditionally." >&2;}
29142    { (exit 1); exit 1; }; }
29143 fi
29144 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
29145   { { echo "$as_me:$LINENO: error: conditional \"COND_MAN_PAGES\" was never defined.
29146 Usually this means the macro was only invoked conditionally." >&5
29147 echo "$as_me: error: conditional \"COND_MAN_PAGES\" was never defined.
29148 Usually this means the macro was only invoked conditionally." >&2;}
29149    { (exit 1); exit 1; }; }
29150 fi
29151 if test -z "${COND_HTML_README_TRUE}" && test -z "${COND_HTML_README_FALSE}"; then
29152   { { echo "$as_me:$LINENO: error: conditional \"COND_HTML_README\" was never defined.
29153 Usually this means the macro was only invoked conditionally." >&5
29154 echo "$as_me: error: conditional \"COND_HTML_README\" was never defined.
29155 Usually this means the macro was only invoked conditionally." >&2;}
29156    { (exit 1); exit 1; }; }
29157 fi
29158 if test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_TRUE}" && test -z "${ENABLE_GNOME_BLUETOOTH_PANEL_FALSE}"; then
29159   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
29160 Usually this means the macro was only invoked conditionally." >&5
29161 echo "$as_me: error: conditional \"ENABLE_GNOME_BLUETOOTH_PANEL\" was never defined.
29162 Usually this means the macro was only invoked conditionally." >&2;}
29163    { (exit 1); exit 1; }; }
29164 fi
29165 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
29166   { { echo "$as_me:$LINENO: error: conditional \"COND_DOC\" was never defined.
29167 Usually this means the macro was only invoked conditionally." >&5
29168 echo "$as_me: error: conditional \"COND_DOC\" was never defined.
29169 Usually this means the macro was only invoked conditionally." >&2;}
29170    { (exit 1); exit 1; }; }
29171 fi
29172 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
29173   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
29174 Usually this means the macro was only invoked conditionally." >&5
29175 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
29176 Usually this means the macro was only invoked conditionally." >&2;}
29177    { (exit 1); exit 1; }; }
29178 fi
29179 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29180   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29181 Usually this means the macro was only invoked conditionally." >&5
29182 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29183 Usually this means the macro was only invoked conditionally." >&2;}
29184    { (exit 1); exit 1; }; }
29185 fi
29186 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
29187   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
29188 Usually this means the macro was only invoked conditionally." >&5
29189 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
29190 Usually this means the macro was only invoked conditionally." >&2;}
29191    { (exit 1); exit 1; }; }
29192 fi
29193 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
29194   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
29195 Usually this means the macro was only invoked conditionally." >&5
29196 echo "$as_me: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
29197 Usually this means the macro was only invoked conditionally." >&2;}
29198    { (exit 1); exit 1; }; }
29199 fi
29200
29201 : ${CONFIG_STATUS=./config.status}
29202 ac_clean_files_save=$ac_clean_files
29203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29206 cat >$CONFIG_STATUS <<_ACEOF
29207 #! $SHELL
29208 # Generated by $as_me.
29209 # Run this file to recreate the current configuration.
29210 # Compiler output produced by configure, useful for debugging
29211 # configure, is in config.log if it exists.
29212
29213 debug=false
29214 ac_cs_recheck=false
29215 ac_cs_silent=false
29216 SHELL=\${CONFIG_SHELL-$SHELL}
29217 _ACEOF
29218
29219 cat >>$CONFIG_STATUS <<\_ACEOF
29220 ## --------------------- ##
29221 ## M4sh Initialization.  ##
29222 ## --------------------- ##
29223
29224 # Be more Bourne compatible
29225 DUALCASE=1; export DUALCASE # for MKS sh
29226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29227   emulate sh
29228   NULLCMD=:
29229   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29230   # is contrary to our usage.  Disable this feature.
29231   alias -g '${1+"$@"}'='"$@"'
29232   setopt NO_GLOB_SUBST
29233 else
29234   case `(set -o) 2>/dev/null` in
29235   *posix*) set -o posix ;;
29236 esac
29237
29238 fi
29239
29240
29241
29242
29243 # PATH needs CR
29244 # Avoid depending upon Character Ranges.
29245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29248 as_cr_digits='0123456789'
29249 as_cr_alnum=$as_cr_Letters$as_cr_digits
29250
29251 # The user is always right.
29252 if test "${PATH_SEPARATOR+set}" != set; then
29253   echo "#! /bin/sh" >conf$$.sh
29254   echo  "exit 0"   >>conf$$.sh
29255   chmod +x conf$$.sh
29256   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29257     PATH_SEPARATOR=';'
29258   else
29259     PATH_SEPARATOR=:
29260   fi
29261   rm -f conf$$.sh
29262 fi
29263
29264 # Support unset when possible.
29265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29266   as_unset=unset
29267 else
29268   as_unset=false
29269 fi
29270
29271
29272 # IFS
29273 # We need space, tab and new line, in precisely that order.  Quoting is
29274 # there to prevent editors from complaining about space-tab.
29275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29276 # splitting by setting IFS to empty value.)
29277 as_nl='
29278 '
29279 IFS=" ""        $as_nl"
29280
29281 # Find who we are.  Look in the path if we contain no directory separator.
29282 case $0 in
29283   *[\\/]* ) as_myself=$0 ;;
29284   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285 for as_dir in $PATH
29286 do
29287   IFS=$as_save_IFS
29288   test -z "$as_dir" && as_dir=.
29289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29290 done
29291 IFS=$as_save_IFS
29292
29293      ;;
29294 esac
29295 # We did not find ourselves, most probably we were run as `sh COMMAND'
29296 # in which case we are not to be found in the path.
29297 if test "x$as_myself" = x; then
29298   as_myself=$0
29299 fi
29300 if test ! -f "$as_myself"; then
29301   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29302   { (exit 1); exit 1; }
29303 fi
29304
29305 # Work around bugs in pre-3.0 UWIN ksh.
29306 for as_var in ENV MAIL MAILPATH
29307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29308 done
29309 PS1='$ '
29310 PS2='> '
29311 PS4='+ '
29312
29313 # NLS nuisances.
29314 for as_var in \
29315   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29316   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29317   LC_TELEPHONE LC_TIME
29318 do
29319   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29320     eval $as_var=C; export $as_var
29321   else
29322     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29323   fi
29324 done
29325
29326 # Required to use basename.
29327 if expr a : '\(a\)' >/dev/null 2>&1 &&
29328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29329   as_expr=expr
29330 else
29331   as_expr=false
29332 fi
29333
29334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29335   as_basename=basename
29336 else
29337   as_basename=false
29338 fi
29339
29340
29341 # Name of the executable.
29342 as_me=`$as_basename -- "$0" ||
29343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29344          X"$0" : 'X\(//\)$' \| \
29345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29346 echo X/"$0" |
29347     sed '/^.*\/\([^/][^/]*\)\/*$/{
29348             s//\1/
29349             q
29350           }
29351           /^X\/\(\/\/\)$/{
29352             s//\1/
29353             q
29354           }
29355           /^X\/\(\/\).*/{
29356             s//\1/
29357             q
29358           }
29359           s/.*/./; q'`
29360
29361 # CDPATH.
29362 $as_unset CDPATH
29363
29364
29365
29366   as_lineno_1=$LINENO
29367   as_lineno_2=$LINENO
29368   test "x$as_lineno_1" != "x$as_lineno_2" &&
29369   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29370
29371   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29372   # uniformly replaced by the line number.  The first 'sed' inserts a
29373   # line-number line after each line using $LINENO; the second 'sed'
29374   # does the real work.  The second script uses 'N' to pair each
29375   # line-number line with the line containing $LINENO, and appends
29376   # trailing '-' during substitution so that $LINENO is not a special
29377   # case at line end.
29378   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29379   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29380   # E. McMahon (1931-1989) for sed's syntax.  :-)
29381   sed -n '
29382     p
29383     /[$]LINENO/=
29384   ' <$as_myself |
29385     sed '
29386       s/[$]LINENO.*/&-/
29387       t lineno
29388       b
29389       :lineno
29390       N
29391       :loop
29392       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29393       t loop
29394       s/-\n.*//
29395     ' >$as_me.lineno &&
29396   chmod +x "$as_me.lineno" ||
29397     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29398    { (exit 1); exit 1; }; }
29399
29400   # Don't try to exec as it changes $[0], causing all sort of problems
29401   # (the dirname of $[0] is not the place where we might find the
29402   # original and so on.  Autoconf is especially sensitive to this).
29403   . "./$as_me.lineno"
29404   # Exit status is that of the last command.
29405   exit
29406 }
29407
29408
29409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29410   as_dirname=dirname
29411 else
29412   as_dirname=false
29413 fi
29414
29415 ECHO_C= ECHO_N= ECHO_T=
29416 case `echo -n x` in
29417 -n*)
29418   case `echo 'x\c'` in
29419   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29420   *)   ECHO_C='\c';;
29421   esac;;
29422 *)
29423   ECHO_N='-n';;
29424 esac
29425
29426 if expr a : '\(a\)' >/dev/null 2>&1 &&
29427    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29428   as_expr=expr
29429 else
29430   as_expr=false
29431 fi
29432
29433 rm -f conf$$ conf$$.exe conf$$.file
29434 if test -d conf$$.dir; then
29435   rm -f conf$$.dir/conf$$.file
29436 else
29437   rm -f conf$$.dir
29438   mkdir conf$$.dir
29439 fi
29440 echo >conf$$.file
29441 if ln -s conf$$.file conf$$ 2>/dev/null; then
29442   as_ln_s='ln -s'
29443   # ... but there are two gotchas:
29444   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29445   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29446   # In both cases, we have to default to `cp -p'.
29447   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29448     as_ln_s='cp -p'
29449 elif ln conf$$.file conf$$ 2>/dev/null; then
29450   as_ln_s=ln
29451 else
29452   as_ln_s='cp -p'
29453 fi
29454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29455 rmdir conf$$.dir 2>/dev/null
29456
29457 if mkdir -p . 2>/dev/null; then
29458   as_mkdir_p=:
29459 else
29460   test -d ./-p && rmdir ./-p
29461   as_mkdir_p=false
29462 fi
29463
29464 if test -x / >/dev/null 2>&1; then
29465   as_test_x='test -x'
29466 else
29467   if ls -dL / >/dev/null 2>&1; then
29468     as_ls_L_option=L
29469   else
29470     as_ls_L_option=
29471   fi
29472   as_test_x='
29473     eval sh -c '\''
29474       if test -d "$1"; then
29475         test -d "$1/.";
29476       else
29477         case $1 in
29478         -*)set "./$1";;
29479         esac;
29480         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29481         ???[sx]*):;;*)false;;esac;fi
29482     '\'' sh
29483   '
29484 fi
29485 as_executable_p=$as_test_x
29486
29487 # Sed expression to map a string onto a valid CPP name.
29488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29489
29490 # Sed expression to map a string onto a valid variable name.
29491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29492
29493
29494 exec 6>&1
29495
29496 # Save the log message, to keep $[0] and so on meaningful, and to
29497 # report actual input values of CONFIG_FILES etc. instead of their
29498 # values after options handling.
29499 ac_log="
29500 This file was extended by syncevolution $as_me 1.1, which was
29501 generated by GNU Autoconf 2.61.  Invocation command line was
29502
29503   CONFIG_FILES    = $CONFIG_FILES
29504   CONFIG_HEADERS  = $CONFIG_HEADERS
29505   CONFIG_LINKS    = $CONFIG_LINKS
29506   CONFIG_COMMANDS = $CONFIG_COMMANDS
29507   $ $0 $@
29508
29509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29510 "
29511
29512 _ACEOF
29513
29514 cat >>$CONFIG_STATUS <<_ACEOF
29515 # Files that config.status was made for.
29516 config_files="$ac_config_files"
29517 config_headers="$ac_config_headers"
29518 config_commands="$ac_config_commands"
29519
29520 _ACEOF
29521
29522 cat >>$CONFIG_STATUS <<\_ACEOF
29523 ac_cs_usage="\
29524 \`$as_me' instantiates files from templates according to the
29525 current configuration.
29526
29527 Usage: $0 [OPTIONS] [FILE]...
29528
29529   -h, --help       print this help, then exit
29530   -V, --version    print version number and configuration settings, then exit
29531   -q, --quiet      do not print progress messages
29532   -d, --debug      don't remove temporary files
29533       --recheck    update $as_me by reconfiguring in the same conditions
29534   --file=FILE[:TEMPLATE]
29535                    instantiate the configuration file FILE
29536   --header=FILE[:TEMPLATE]
29537                    instantiate the configuration header FILE
29538
29539 Configuration files:
29540 $config_files
29541
29542 Configuration headers:
29543 $config_headers
29544
29545 Configuration commands:
29546 $config_commands
29547
29548 Report bugs to <bug-autoconf@gnu.org>."
29549
29550 _ACEOF
29551 cat >>$CONFIG_STATUS <<_ACEOF
29552 ac_cs_version="\\
29553 syncevolution config.status 1.1
29554 configured by $0, generated by GNU Autoconf 2.61,
29555   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29556
29557 Copyright (C) 2006 Free Software Foundation, Inc.
29558 This config.status script is free software; the Free Software Foundation
29559 gives unlimited permission to copy, distribute and modify it."
29560
29561 ac_pwd='$ac_pwd'
29562 srcdir='$srcdir'
29563 INSTALL='$INSTALL'
29564 MKDIR_P='$MKDIR_P'
29565 _ACEOF
29566
29567 cat >>$CONFIG_STATUS <<\_ACEOF
29568 # If no file are specified by the user, then we need to provide default
29569 # value.  By we need to know if files were specified by the user.
29570 ac_need_defaults=:
29571 while test $# != 0
29572 do
29573   case $1 in
29574   --*=*)
29575     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29576     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29577     ac_shift=:
29578     ;;
29579   *)
29580     ac_option=$1
29581     ac_optarg=$2
29582     ac_shift=shift
29583     ;;
29584   esac
29585
29586   case $ac_option in
29587   # Handling of the options.
29588   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29589     ac_cs_recheck=: ;;
29590   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29591     echo "$ac_cs_version"; exit ;;
29592   --debug | --debu | --deb | --de | --d | -d )
29593     debug=: ;;
29594   --file | --fil | --fi | --f )
29595     $ac_shift
29596     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29597     ac_need_defaults=false;;
29598   --header | --heade | --head | --hea )
29599     $ac_shift
29600     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29601     ac_need_defaults=false;;
29602   --he | --h)
29603     # Conflict between --help and --header
29604     { echo "$as_me: error: ambiguous option: $1
29605 Try \`$0 --help' for more information." >&2
29606    { (exit 1); exit 1; }; };;
29607   --help | --hel | -h )
29608     echo "$ac_cs_usage"; exit ;;
29609   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29610   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29611     ac_cs_silent=: ;;
29612
29613   # This is an error.
29614   -*) { echo "$as_me: error: unrecognized option: $1
29615 Try \`$0 --help' for more information." >&2
29616    { (exit 1); exit 1; }; } ;;
29617
29618   *) ac_config_targets="$ac_config_targets $1"
29619      ac_need_defaults=false ;;
29620
29621   esac
29622   shift
29623 done
29624
29625 ac_configure_extra_args=
29626
29627 if $ac_cs_silent; then
29628   exec 6>/dev/null
29629   ac_configure_extra_args="$ac_configure_extra_args --silent"
29630 fi
29631
29632 _ACEOF
29633 cat >>$CONFIG_STATUS <<_ACEOF
29634 if \$ac_cs_recheck; then
29635   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29636   CONFIG_SHELL=$SHELL
29637   export CONFIG_SHELL
29638   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29639 fi
29640
29641 _ACEOF
29642 cat >>$CONFIG_STATUS <<\_ACEOF
29643 exec 5>>config.log
29644 {
29645   echo
29646   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29647 ## Running $as_me. ##
29648 _ASBOX
29649   echo "$ac_log"
29650 } >&5
29651
29652 _ACEOF
29653 cat >>$CONFIG_STATUS <<_ACEOF
29654 #
29655 # INIT-COMMANDS
29656 #
29657 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29658
29659
29660 _ACEOF
29661
29662 cat >>$CONFIG_STATUS <<\_ACEOF
29663
29664 # Handling of arguments.
29665 for ac_config_target in $ac_config_targets
29666 do
29667   case $ac_config_target in
29668     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29669     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29670     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29671     "src/gnome-bluetooth/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome-bluetooth/Makefile" ;;
29672     "src/backends/addressbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
29673     "src/backends/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
29674     "src/backends/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
29675     "src/backends/kcalextended/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/kcalextended/Makefile" ;;
29676     "src/backends/maemo/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/maemo/Makefile" ;;
29677     "src/backends/qtcontacts/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/qtcontacts/Makefile" ;;
29678     "src/backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
29679     "src/backends/xmlrpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/xmlrpc/Makefile" ;;
29680     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29681     "src/dbus/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/interfaces/Makefile" ;;
29682     "src/gdbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdbus/Makefile" ;;
29683     "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
29684     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29685     "src/syncevo/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/Makefile" ;;
29686     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
29687     "src/syncevo/configs/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/configs/Makefile" ;;
29688     "src/synthesis-includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/synthesis-includes/Makefile" ;;
29689     "src/gtk-ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-ui/Makefile" ;;
29690     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29691     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29692     "src/dbus/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/syncevo-dbus.pc" ;;
29693     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
29694
29695   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29697    { (exit 1); exit 1; }; };;
29698   esac
29699 done
29700
29701
29702 # If the user did not use the arguments to specify the items to instantiate,
29703 # then the envvar interface is used.  Set only those that are not.
29704 # We use the long form for the default assignment because of an extremely
29705 # bizarre bug on SunOS 4.1.3.
29706 if $ac_need_defaults; then
29707   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29708   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29709   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29710 fi
29711
29712 # Have a temporary directory for convenience.  Make it in the build tree
29713 # simply because there is no reason against having it here, and in addition,
29714 # creating and moving files from /tmp can sometimes cause problems.
29715 # Hook for its removal unless debugging.
29716 # Note that there is a small window in which the directory will not be cleaned:
29717 # after its creation but before its name has been assigned to `$tmp'.
29718 $debug ||
29719 {
29720   tmp=
29721   trap 'exit_status=$?
29722   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29723 ' 0
29724   trap '{ (exit 1); exit 1; }' 1 2 13 15
29725 }
29726 # Create a (secure) tmp directory for tmp files.
29727
29728 {
29729   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29730   test -n "$tmp" && test -d "$tmp"
29731 }  ||
29732 {
29733   tmp=./conf$$-$RANDOM
29734   (umask 077 && mkdir "$tmp")
29735 } ||
29736 {
29737    echo "$me: cannot create a temporary directory in ." >&2
29738    { (exit 1); exit 1; }
29739 }
29740
29741 #
29742 # Set up the sed scripts for CONFIG_FILES section.
29743 #
29744
29745 # No need to generate the scripts if there are no CONFIG_FILES.
29746 # This happens for instance when ./config.status config.h
29747 if test -n "$CONFIG_FILES"; then
29748
29749 _ACEOF
29750
29751
29752
29753 ac_delim='%!_!# '
29754 for ac_last_try in false false false false false :; do
29755   cat >conf$$subs.sed <<_ACEOF
29756 SHELL!$SHELL$ac_delim
29757 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29758 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29759 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29760 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29761 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29762 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29763 exec_prefix!$exec_prefix$ac_delim
29764 prefix!$prefix$ac_delim
29765 program_transform_name!$program_transform_name$ac_delim
29766 bindir!$bindir$ac_delim
29767 sbindir!$sbindir$ac_delim
29768 libexecdir!$libexecdir$ac_delim
29769 datarootdir!$datarootdir$ac_delim
29770 datadir!$datadir$ac_delim
29771 sysconfdir!$sysconfdir$ac_delim
29772 sharedstatedir!$sharedstatedir$ac_delim
29773 localstatedir!$localstatedir$ac_delim
29774 includedir!$includedir$ac_delim
29775 oldincludedir!$oldincludedir$ac_delim
29776 docdir!$docdir$ac_delim
29777 infodir!$infodir$ac_delim
29778 htmldir!$htmldir$ac_delim
29779 dvidir!$dvidir$ac_delim
29780 pdfdir!$pdfdir$ac_delim
29781 psdir!$psdir$ac_delim
29782 libdir!$libdir$ac_delim
29783 localedir!$localedir$ac_delim
29784 mandir!$mandir$ac_delim
29785 DEFS!$DEFS$ac_delim
29786 ECHO_C!$ECHO_C$ac_delim
29787 ECHO_N!$ECHO_N$ac_delim
29788 ECHO_T!$ECHO_T$ac_delim
29789 LIBS!$LIBS$ac_delim
29790 build_alias!$build_alias$ac_delim
29791 host_alias!$host_alias$ac_delim
29792 target_alias!$target_alias$ac_delim
29793 STABLE_VERSION!$STABLE_VERSION$ac_delim
29794 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29795 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29796 INSTALL_DATA!$INSTALL_DATA$ac_delim
29797 am__isrc!$am__isrc$ac_delim
29798 CYGPATH_W!$CYGPATH_W$ac_delim
29799 PACKAGE!$PACKAGE$ac_delim
29800 VERSION!$VERSION$ac_delim
29801 ACLOCAL!$ACLOCAL$ac_delim
29802 AUTOCONF!$AUTOCONF$ac_delim
29803 AUTOMAKE!$AUTOMAKE$ac_delim
29804 AUTOHEADER!$AUTOHEADER$ac_delim
29805 MAKEINFO!$MAKEINFO$ac_delim
29806 install_sh!$install_sh$ac_delim
29807 STRIP!$STRIP$ac_delim
29808 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29809 mkdir_p!$mkdir_p$ac_delim
29810 AWK!$AWK$ac_delim
29811 SET_MAKE!$SET_MAKE$ac_delim
29812 am__leading_dot!$am__leading_dot$ac_delim
29813 AMTAR!$AMTAR$ac_delim
29814 am__tar!$am__tar$ac_delim
29815 am__untar!$am__untar$ac_delim
29816 MODIFY_SYNCCOMPARE!$MODIFY_SYNCCOMPARE$ac_delim
29817 CC!$CC$ac_delim
29818 CFLAGS!$CFLAGS$ac_delim
29819 LDFLAGS!$LDFLAGS$ac_delim
29820 CPPFLAGS!$CPPFLAGS$ac_delim
29821 ac_ct_CC!$ac_ct_CC$ac_delim
29822 EXEEXT!$EXEEXT$ac_delim
29823 OBJEXT!$OBJEXT$ac_delim
29824 DEPDIR!$DEPDIR$ac_delim
29825 am__include!$am__include$ac_delim
29826 am__quote!$am__quote$ac_delim
29827 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29828 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29829 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29830 CCDEPMODE!$CCDEPMODE$ac_delim
29831 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29832 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29833 CPP!$CPP$ac_delim
29834 GREP!$GREP$ac_delim
29835 EGREP!$EGREP$ac_delim
29836 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
29837 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
29838 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
29839 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
29840 ENABLE_TESTING_TRUE!$ENABLE_TESTING_TRUE$ac_delim
29841 ENABLE_TESTING_FALSE!$ENABLE_TESTING_FALSE$ac_delim
29842 CORE_LDADD_DEP!$CORE_LDADD_DEP$ac_delim
29843 PKG_CONFIG!$PKG_CONFIG$ac_delim
29844 LIBSOUP_CFLAGS!$LIBSOUP_CFLAGS$ac_delim
29845 LIBSOUP_LIBS!$LIBSOUP_LIBS$ac_delim
29846 LIBOPENOBEX_CFLAGS!$LIBOPENOBEX_CFLAGS$ac_delim
29847 LIBOPENOBEX_LIBS!$LIBOPENOBEX_LIBS$ac_delim
29848 BLUEZ_CFLAGS!$BLUEZ_CFLAGS$ac_delim
29849 BLUEZ_LIBS!$BLUEZ_LIBS$ac_delim
29850 ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_delim
29851 ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim
29852 ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim
29853 _ACEOF
29854
29855   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29856     break
29857   elif $ac_last_try; then
29858     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29860    { (exit 1); exit 1; }; }
29861   else
29862     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29863   fi
29864 done
29865
29866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29867 if test -n "$ac_eof"; then
29868   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29869   ac_eof=`expr $ac_eof + 1`
29870 fi
29871
29872 cat >>$CONFIG_STATUS <<_ACEOF
29873 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29875 _ACEOF
29876 sed '
29877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29878 s/^/s,@/; s/!/@,|#_!!_#|/
29879 :n
29880 t n
29881 s/'"$ac_delim"'$/,g/; t
29882 s/$/\\/; p
29883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29884 ' >>$CONFIG_STATUS <conf$$subs.sed
29885 rm -f conf$$subs.sed
29886 cat >>$CONFIG_STATUS <<_ACEOF
29887 CEOF$ac_eof
29888 _ACEOF
29889
29890
29891 ac_delim='%!_!# '
29892 for ac_last_try in false false false false false :; do
29893   cat >conf$$subs.sed <<_ACEOF
29894 ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim
29895 TRANSPORT_LIBS!$TRANSPORT_LIBS$ac_delim
29896 TRANSPORT_CFLAGS!$TRANSPORT_CFLAGS$ac_delim
29897 XSLT!$XSLT$ac_delim
29898 COND_GUI_TRUE!$COND_GUI_TRUE$ac_delim
29899 COND_GUI_FALSE!$COND_GUI_FALSE$ac_delim
29900 COND_CORE_TRUE!$COND_CORE_TRUE$ac_delim
29901 COND_CORE_FALSE!$COND_CORE_FALSE$ac_delim
29902 COND_DBUS_TRUE!$COND_DBUS_TRUE$ac_delim
29903 COND_DBUS_FALSE!$COND_DBUS_FALSE$ac_delim
29904 KEYRING_CFLAGS!$KEYRING_CFLAGS$ac_delim
29905 KEYRING_LIBS!$KEYRING_LIBS$ac_delim
29906 KEYRING_2_20_CFLAGS!$KEYRING_2_20_CFLAGS$ac_delim
29907 KEYRING_2_20_LIBS!$KEYRING_2_20_LIBS$ac_delim
29908 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
29909 DBUS_LIBS!$DBUS_LIBS$ac_delim
29910 LIBNOTIFY_CFLAGS!$LIBNOTIFY_CFLAGS$ac_delim
29911 LIBNOTIFY_LIBS!$LIBNOTIFY_LIBS$ac_delim
29912 DBUS_GLIB_CFLAGS!$DBUS_GLIB_CFLAGS$ac_delim
29913 DBUS_GLIB_LIBS!$DBUS_GLIB_LIBS$ac_delim
29914 LIBEXECDIR!$LIBEXECDIR$ac_delim
29915 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
29916 USE_NLS!$USE_NLS$ac_delim
29917 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
29918 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
29919 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
29920 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
29921 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
29922 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
29923 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
29924 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
29925 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
29926 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
29927 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
29928 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
29929 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
29930 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
29931 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
29932 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
29933 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
29934 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
29935 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
29936 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
29937 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
29938 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
29939 XGETTEXT!$XGETTEXT$ac_delim
29940 MSGMERGE!$MSGMERGE$ac_delim
29941 MSGFMT!$MSGFMT$ac_delim
29942 GMSGFMT!$GMSGFMT$ac_delim
29943 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
29944 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
29945 DATADIRNAME!$DATADIRNAME$ac_delim
29946 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
29947 CATALOGS!$CATALOGS$ac_delim
29948 CATOBJEXT!$CATOBJEXT$ac_delim
29949 GMOFILES!$GMOFILES$ac_delim
29950 INSTOBJEXT!$INSTOBJEXT$ac_delim
29951 INTLLIBS!$INTLLIBS$ac_delim
29952 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
29953 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
29954 POFILES!$POFILES$ac_delim
29955 POSUB!$POSUB$ac_delim
29956 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
29957 DBUS_BINDING_TOOL!$DBUS_BINDING_TOOL$ac_delim
29958 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
29959 MX_GTK_0_99_1_CFLAGS!$MX_GTK_0_99_1_CFLAGS$ac_delim
29960 MX_GTK_0_99_1_LIBS!$MX_GTK_0_99_1_LIBS$ac_delim
29961 UNIQUE_CFLAGS!$UNIQUE_CFLAGS$ac_delim
29962 UNIQUE_LIBS!$UNIQUE_LIBS$ac_delim
29963 GTK_2_18_CFLAGS!$GTK_2_18_CFLAGS$ac_delim
29964 GTK_2_18_LIBS!$GTK_2_18_LIBS$ac_delim
29965 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
29966 GUI_LIBS!$GUI_LIBS$ac_delim
29967 GTK_BUILDER_CONV!$GTK_BUILDER_CONV$ac_delim
29968 SYNCEVOLUTION_LOCALEDIR!$SYNCEVOLUTION_LOCALEDIR$ac_delim
29969 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
29970 GUI_PROGRAMS!$GUI_PROGRAMS$ac_delim
29971 GUI_DESKTOP_FILES!$GUI_DESKTOP_FILES$ac_delim
29972 CXX!$CXX$ac_delim
29973 CXXFLAGS!$CXXFLAGS$ac_delim
29974 ac_ct_CXX!$ac_ct_CXX$ac_delim
29975 CXXDEPMODE!$CXXDEPMODE$ac_delim
29976 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29977 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29978 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
29979 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
29980 RST2MAN!$RST2MAN$ac_delim
29981 COND_MAN_PAGES_TRUE!$COND_MAN_PAGES_TRUE$ac_delim
29982 COND_MAN_PAGES_FALSE!$COND_MAN_PAGES_FALSE$ac_delim
29983 RST2HTML!$RST2HTML$ac_delim
29984 COND_HTML_README_TRUE!$COND_HTML_README_TRUE$ac_delim
29985 COND_HTML_README_FALSE!$COND_HTML_README_FALSE$ac_delim
29986 SYNTHESIS_SRC!$SYNTHESIS_SRC$ac_delim
29987 SYNTHESIS_CFLAGS!$SYNTHESIS_CFLAGS$ac_delim
29988 SYNTHESIS_LIBS!$SYNTHESIS_LIBS$ac_delim
29989 SYNTHESIS!$SYNTHESIS$ac_delim
29990 SYNTHESIS_SUBDIR!$SYNTHESIS_SUBDIR$ac_delim
29991 _ACEOF
29992
29993   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29994     break
29995   elif $ac_last_try; then
29996     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29998    { (exit 1); exit 1; }; }
29999   else
30000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30001   fi
30002 done
30003
30004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30005 if test -n "$ac_eof"; then
30006   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30007   ac_eof=`expr $ac_eof + 1`
30008 fi
30009
30010 cat >>$CONFIG_STATUS <<_ACEOF
30011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30013 _ACEOF
30014 sed '
30015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30016 s/^/s,@/; s/!/@,|#_!!_#|/
30017 :n
30018 t n
30019 s/'"$ac_delim"'$/,g/; t
30020 s/$/\\/; p
30021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30022 ' >>$CONFIG_STATUS <conf$$subs.sed
30023 rm -f conf$$subs.sed
30024 cat >>$CONFIG_STATUS <<_ACEOF
30025 CEOF$ac_eof
30026 _ACEOF
30027
30028
30029 ac_delim='%!_!# '
30030 for ac_last_try in false false false false false :; do
30031   cat >conf$$subs.sed <<_ACEOF
30032 SYNTHESIS_SUBDIR_INCLUDES!$SYNTHESIS_SUBDIR_INCLUDES$ac_delim
30033 SYNTHESIS_DEP!$SYNTHESIS_DEP$ac_delim
30034 SYNTHESIS_ENGINE!$SYNTHESIS_ENGINE$ac_delim
30035 SYNTHESIS_LIB!$SYNTHESIS_LIB$ac_delim
30036 SYNTHESISSRC!$SYNTHESISSRC$ac_delim
30037 SYNCSOURCES!$SYNCSOURCES$ac_delim
30038 BACKEND_DEFINES!$BACKEND_DEFINES$ac_delim
30039 BACKEND_CPPFLAGS!$BACKEND_CPPFLAGS$ac_delim
30040 GNOMEBLUETOOTH_CFLAGS!$GNOMEBLUETOOTH_CFLAGS$ac_delim
30041 GNOMEBLUETOOTH_LIBS!$GNOMEBLUETOOTH_LIBS$ac_delim
30042 GNOMEBLUETOOTH_DIR!$GNOMEBLUETOOTH_DIR$ac_delim
30043 ENABLE_GNOME_BLUETOOTH_PANEL_TRUE!$ENABLE_GNOME_BLUETOOTH_PANEL_TRUE$ac_delim
30044 ENABLE_GNOME_BLUETOOTH_PANEL_FALSE!$ENABLE_GNOME_BLUETOOTH_PANEL_FALSE$ac_delim
30045 COND_DOC_TRUE!$COND_DOC_TRUE$ac_delim
30046 COND_DOC_FALSE!$COND_DOC_FALSE$ac_delim
30047 ADDRESSBOOK_CFLAGS!$ADDRESSBOOK_CFLAGS$ac_delim
30048 ADDRESSBOOK_LIBS!$ADDRESSBOOK_LIBS$ac_delim
30049 EPACKAGE_CFLAGS!$EPACKAGE_CFLAGS$ac_delim
30050 EPACKAGE_LIBS!$EPACKAGE_LIBS$ac_delim
30051 ECAL_CFLAGS!$ECAL_CFLAGS$ac_delim
30052 ECAL_LIBS!$ECAL_LIBS$ac_delim
30053 EBOOK_CFLAGS!$EBOOK_CFLAGS$ac_delim
30054 EBOOK_LIBS!$EBOOK_LIBS$ac_delim
30055 ENABLE_ECAL_TRUE!$ENABLE_ECAL_TRUE$ac_delim
30056 ENABLE_ECAL_FALSE!$ENABLE_ECAL_FALSE$ac_delim
30057 LIBICAL_AVAILABLE_CFLAGS!$LIBICAL_AVAILABLE_CFLAGS$ac_delim
30058 LIBICAL_AVAILABLE_LIBS!$LIBICAL_AVAILABLE_LIBS$ac_delim
30059 FILE_CFLAGS!$FILE_CFLAGS$ac_delim
30060 FILE_LIBS!$FILE_LIBS$ac_delim
30061 KCALEXTENDED_CFLAGS!$KCALEXTENDED_CFLAGS$ac_delim
30062 KCALEXTENDED_LIBS!$KCALEXTENDED_LIBS$ac_delim
30063 MCALB_CFLAGS!$MCALB_CFLAGS$ac_delim
30064 MCALB_LIBS!$MCALB_LIBS$ac_delim
30065 QT_CONTACTS_LIBS!$QT_CONTACTS_LIBS$ac_delim
30066 SQLITE_CFLAGS!$SQLITE_CFLAGS$ac_delim
30067 SQLITE_LIBS!$SQLITE_LIBS$ac_delim
30068 XMLRPC_CFLAGS!$XMLRPC_CFLAGS$ac_delim
30069 XMLRPC_LIBS!$XMLRPC_LIBS$ac_delim
30070 build!$build$ac_delim
30071 build_cpu!$build_cpu$ac_delim
30072 build_vendor!$build_vendor$ac_delim
30073 build_os!$build_os$ac_delim
30074 host!$host$ac_delim
30075 host_cpu!$host_cpu$ac_delim
30076 host_vendor!$host_vendor$ac_delim
30077 host_os!$host_os$ac_delim
30078 SED!$SED$ac_delim
30079 LN_S!$LN_S$ac_delim
30080 ECHO!$ECHO$ac_delim
30081 AR!$AR$ac_delim
30082 RANLIB!$RANLIB$ac_delim
30083 DSYMUTIL!$DSYMUTIL$ac_delim
30084 NMEDIT!$NMEDIT$ac_delim
30085 CXXCPP!$CXXCPP$ac_delim
30086 F77!$F77$ac_delim
30087 FFLAGS!$FFLAGS$ac_delim
30088 ac_ct_F77!$ac_ct_F77$ac_delim
30089 LIBTOOL!$LIBTOOL$ac_delim
30090 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
30091 GLIB_LIBS!$GLIB_LIBS$ac_delim
30092 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
30093 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
30094 GOBJECT_CFLAGS!$GOBJECT_CFLAGS$ac_delim
30095 GOBJECT_LIBS!$GOBJECT_LIBS$ac_delim
30096 QT_PATH!$QT_PATH$ac_delim
30097 QMAKE!$QMAKE$ac_delim
30098 MOC!$MOC$ac_delim
30099 UIC!$UIC$ac_delim
30100 RCC!$RCC$ac_delim
30101 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
30102 QT_DEFINES!$QT_DEFINES$ac_delim
30103 QT_CFLAGS!$QT_CFLAGS$ac_delim
30104 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
30105 QT_INCPATH!$QT_INCPATH$ac_delim
30106 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
30107 QT_LFLAGS!$QT_LFLAGS$ac_delim
30108 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
30109 QT_LIBS!$QT_LIBS$ac_delim
30110 GLIB216_CFLAGS!$GLIB216_CFLAGS$ac_delim
30111 GLIB216_LIBS!$GLIB216_LIBS$ac_delim
30112 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
30113 NSS_LIBS!$NSS_LIBS$ac_delim
30114 ENABLE_MODULES_TRUE!$ENABLE_MODULES_TRUE$ac_delim
30115 ENABLE_MODULES_FALSE!$ENABLE_MODULES_FALSE$ac_delim
30116 SYNCEVOLUTION_LDADD!$SYNCEVOLUTION_LDADD$ac_delim
30117 SYNCEVOLUTION_CXXFLAGS!$SYNCEVOLUTION_CXXFLAGS$ac_delim
30118 ENABLE_EVOLUTION_COMPATIBILITY_TRUE!$ENABLE_EVOLUTION_COMPATIBILITY_TRUE$ac_delim
30119 ENABLE_EVOLUTION_COMPATIBILITY_FALSE!$ENABLE_EVOLUTION_COMPATIBILITY_FALSE$ac_delim
30120 backenddir!$backenddir$ac_delim
30121 backendsearchdir!$backendsearchdir$ac_delim
30122 LIBOBJS!$LIBOBJS$ac_delim
30123 LTLIBOBJS!$LTLIBOBJS$ac_delim
30124 _ACEOF
30125
30126   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
30127     break
30128   elif $ac_last_try; then
30129     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30131    { (exit 1); exit 1; }; }
30132   else
30133     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30134   fi
30135 done
30136
30137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30138 if test -n "$ac_eof"; then
30139   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30140   ac_eof=`expr $ac_eof + 1`
30141 fi
30142
30143 cat >>$CONFIG_STATUS <<_ACEOF
30144 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30146 _ACEOF
30147 sed '
30148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30149 s/^/s,@/; s/!/@,|#_!!_#|/
30150 :n
30151 t n
30152 s/'"$ac_delim"'$/,g/; t
30153 s/$/\\/; p
30154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30155 ' >>$CONFIG_STATUS <conf$$subs.sed
30156 rm -f conf$$subs.sed
30157 cat >>$CONFIG_STATUS <<_ACEOF
30158 :end
30159 s/|#_!!_#|//g
30160 CEOF$ac_eof
30161 _ACEOF
30162
30163
30164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30166 # trailing colons and then remove the whole line if VPATH becomes empty
30167 # (actually we leave an empty line to preserve line numbers).
30168 if test "x$srcdir" = x.; then
30169   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30170 s/:*\$(srcdir):*/:/
30171 s/:*\${srcdir}:*/:/
30172 s/:*@srcdir@:*/:/
30173 s/^\([^=]*=[     ]*\):*/\1/
30174 s/:*$//
30175 s/^[^=]*=[       ]*$//
30176 }'
30177 fi
30178
30179 cat >>$CONFIG_STATUS <<\_ACEOF
30180 fi # test -n "$CONFIG_FILES"
30181
30182
30183 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30184 do
30185   case $ac_tag in
30186   :[FHLC]) ac_mode=$ac_tag; continue;;
30187   esac
30188   case $ac_mode$ac_tag in
30189   :[FHL]*:*);;
30190   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30191 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30192    { (exit 1); exit 1; }; };;
30193   :[FH]-) ac_tag=-:-;;
30194   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30195   esac
30196   ac_save_IFS=$IFS
30197   IFS=:
30198   set x $ac_tag
30199   IFS=$ac_save_IFS
30200   shift
30201   ac_file=$1
30202   shift
30203
30204   case $ac_mode in
30205   :L) ac_source=$1;;
30206   :[FH])
30207     ac_file_inputs=
30208     for ac_f
30209     do
30210       case $ac_f in
30211       -) ac_f="$tmp/stdin";;
30212       *) # Look for the file first in the build tree, then in the source tree
30213          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30214          # because $ac_f cannot contain `:'.
30215          test -f "$ac_f" ||
30216            case $ac_f in
30217            [\\/$]*) false;;
30218            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30219            esac ||
30220            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30221 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30222    { (exit 1); exit 1; }; };;
30223       esac
30224       ac_file_inputs="$ac_file_inputs $ac_f"
30225     done
30226
30227     # Let's still pretend it is `configure' which instantiates (i.e., don't
30228     # use $as_me), people would be surprised to read:
30229     #    /* config.h.  Generated by config.status.  */
30230     configure_input="Generated from "`IFS=:
30231           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30232     if test x"$ac_file" != x-; then
30233       configure_input="$ac_file.  $configure_input"
30234       { echo "$as_me:$LINENO: creating $ac_file" >&5
30235 echo "$as_me: creating $ac_file" >&6;}
30236     fi
30237
30238     case $ac_tag in
30239     *:-:* | *:-) cat >"$tmp/stdin";;
30240     esac
30241     ;;
30242   esac
30243
30244   ac_dir=`$as_dirname -- "$ac_file" ||
30245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30246          X"$ac_file" : 'X\(//\)[^/]' \| \
30247          X"$ac_file" : 'X\(//\)$' \| \
30248          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30249 echo X"$ac_file" |
30250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30251             s//\1/
30252             q
30253           }
30254           /^X\(\/\/\)[^/].*/{
30255             s//\1/
30256             q
30257           }
30258           /^X\(\/\/\)$/{
30259             s//\1/
30260             q
30261           }
30262           /^X\(\/\).*/{
30263             s//\1/
30264             q
30265           }
30266           s/.*/./; q'`
30267   { as_dir="$ac_dir"
30268   case $as_dir in #(
30269   -*) as_dir=./$as_dir;;
30270   esac
30271   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30272     as_dirs=
30273     while :; do
30274       case $as_dir in #(
30275       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30276       *) as_qdir=$as_dir;;
30277       esac
30278       as_dirs="'$as_qdir' $as_dirs"
30279       as_dir=`$as_dirname -- "$as_dir" ||
30280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30281          X"$as_dir" : 'X\(//\)[^/]' \| \
30282          X"$as_dir" : 'X\(//\)$' \| \
30283          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30284 echo X"$as_dir" |
30285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30286             s//\1/
30287             q
30288           }
30289           /^X\(\/\/\)[^/].*/{
30290             s//\1/
30291             q
30292           }
30293           /^X\(\/\/\)$/{
30294             s//\1/
30295             q
30296           }
30297           /^X\(\/\).*/{
30298             s//\1/
30299             q
30300           }
30301           s/.*/./; q'`
30302       test -d "$as_dir" && break
30303     done
30304     test -z "$as_dirs" || eval "mkdir $as_dirs"
30305   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30307    { (exit 1); exit 1; }; }; }
30308   ac_builddir=.
30309
30310 case "$ac_dir" in
30311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30312 *)
30313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30314   # A ".." for each directory in $ac_dir_suffix.
30315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30316   case $ac_top_builddir_sub in
30317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30319   esac ;;
30320 esac
30321 ac_abs_top_builddir=$ac_pwd
30322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30323 # for backward compatibility:
30324 ac_top_builddir=$ac_top_build_prefix
30325
30326 case $srcdir in
30327   .)  # We are building in place.
30328     ac_srcdir=.
30329     ac_top_srcdir=$ac_top_builddir_sub
30330     ac_abs_top_srcdir=$ac_pwd ;;
30331   [\\/]* | ?:[\\/]* )  # Absolute name.
30332     ac_srcdir=$srcdir$ac_dir_suffix;
30333     ac_top_srcdir=$srcdir
30334     ac_abs_top_srcdir=$srcdir ;;
30335   *) # Relative name.
30336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30337     ac_top_srcdir=$ac_top_build_prefix$srcdir
30338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30339 esac
30340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30341
30342
30343   case $ac_mode in
30344   :F)
30345   #
30346   # CONFIG_FILE
30347   #
30348
30349   case $INSTALL in
30350   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30351   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30352   esac
30353   ac_MKDIR_P=$MKDIR_P
30354   case $MKDIR_P in
30355   [\\/$]* | ?:[\\/]* ) ;;
30356   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30357   esac
30358 _ACEOF
30359
30360 cat >>$CONFIG_STATUS <<\_ACEOF
30361 # If the template does not know about datarootdir, expand it.
30362 # FIXME: This hack should be removed a few years after 2.60.
30363 ac_datarootdir_hack=; ac_datarootdir_seen=
30364
30365 case `sed -n '/datarootdir/ {
30366   p
30367   q
30368 }
30369 /@datadir@/p
30370 /@docdir@/p
30371 /@infodir@/p
30372 /@localedir@/p
30373 /@mandir@/p
30374 ' $ac_file_inputs` in
30375 *datarootdir*) ac_datarootdir_seen=yes;;
30376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30377   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30378 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30379 _ACEOF
30380 cat >>$CONFIG_STATUS <<_ACEOF
30381   ac_datarootdir_hack='
30382   s&@datadir@&$datadir&g
30383   s&@docdir@&$docdir&g
30384   s&@infodir@&$infodir&g
30385   s&@localedir@&$localedir&g
30386   s&@mandir@&$mandir&g
30387     s&\\\${datarootdir}&$datarootdir&g' ;;
30388 esac
30389 _ACEOF
30390
30391 # Neutralize VPATH when `$srcdir' = `.'.
30392 # Shell code in configure.ac might set extrasub.
30393 # FIXME: do we really want to maintain this feature?
30394 cat >>$CONFIG_STATUS <<_ACEOF
30395   sed "$ac_vpsub
30396 $extrasub
30397 _ACEOF
30398 cat >>$CONFIG_STATUS <<\_ACEOF
30399 :t
30400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30401 s&@configure_input@&$configure_input&;t t
30402 s&@top_builddir@&$ac_top_builddir_sub&;t t
30403 s&@srcdir@&$ac_srcdir&;t t
30404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30405 s&@top_srcdir@&$ac_top_srcdir&;t t
30406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30407 s&@builddir@&$ac_builddir&;t t
30408 s&@abs_builddir@&$ac_abs_builddir&;t t
30409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30410 s&@INSTALL@&$ac_INSTALL&;t t
30411 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30412 $ac_datarootdir_hack
30413 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30414
30415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30416   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30417   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30418   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30419 which seems to be undefined.  Please make sure it is defined." >&5
30420 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30421 which seems to be undefined.  Please make sure it is defined." >&2;}
30422
30423   rm -f "$tmp/stdin"
30424   case $ac_file in
30425   -) cat "$tmp/out"; rm -f "$tmp/out";;
30426   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30427   esac
30428  ;;
30429   :H)
30430   #
30431   # CONFIG_HEADER
30432   #
30433 _ACEOF
30434
30435 # Transform confdefs.h into a sed script `conftest.defines', that
30436 # substitutes the proper values into config.h.in to produce config.h.
30437 rm -f conftest.defines conftest.tail
30438 # First, append a space to every undef/define line, to ease matching.
30439 echo 's/$/ /' >conftest.defines
30440 # Then, protect against being on the right side of a sed subst, or in
30441 # an unquoted here document, in config.status.  If some macros were
30442 # called several times there might be several #defines for the same
30443 # symbol, which is useless.  But do not sort them, since the last
30444 # AC_DEFINE must be honored.
30445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30446 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30447 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30448 # PARAMS is the parameter list in the macro definition--in most cases, it's
30449 # just an empty string.
30450 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30451 ac_dB='\\)[      (].*,\\1define\\2'
30452 ac_dC=' '
30453 ac_dD=' ,'
30454
30455 uniq confdefs.h |
30456   sed -n '
30457         t rset
30458         :rset
30459         s/^[     ]*#[    ]*define[       ][      ]*//
30460         t ok
30461         d
30462         :ok
30463         s/[\\&,]/\\&/g
30464         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30465         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30466   ' >>conftest.defines
30467
30468 # Remove the space that was appended to ease matching.
30469 # Then replace #undef with comments.  This is necessary, for
30470 # example, in the case of _POSIX_SOURCE, which is predefined and required
30471 # on some systems where configure will not decide to define it.
30472 # (The regexp can be short, since the line contains either #define or #undef.)
30473 echo 's/ $//
30474 s,^[     #]*u.*,/* & */,' >>conftest.defines
30475
30476 # Break up conftest.defines:
30477 ac_max_sed_lines=50
30478
30479 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30480 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30481 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30482 # et cetera.
30483 ac_in='$ac_file_inputs'
30484 ac_out='"$tmp/out1"'
30485 ac_nxt='"$tmp/out2"'
30486
30487 while :
30488 do
30489   # Write a here document:
30490     cat >>$CONFIG_STATUS <<_ACEOF
30491     # First, check the format of the line:
30492     cat >"\$tmp/defines.sed" <<\\CEOF
30493 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30494 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30495 b
30496 :def
30497 _ACEOF
30498   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30499   echo 'CEOF
30500     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30501   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30502   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30503   grep . conftest.tail >/dev/null || break
30504   rm -f conftest.defines
30505   mv conftest.tail conftest.defines
30506 done
30507 rm -f conftest.defines conftest.tail
30508
30509 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30510 cat >>$CONFIG_STATUS <<\_ACEOF
30511   if test x"$ac_file" != x-; then
30512     echo "/* $configure_input  */" >"$tmp/config.h"
30513     cat "$ac_result" >>"$tmp/config.h"
30514     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30515       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30516 echo "$as_me: $ac_file is unchanged" >&6;}
30517     else
30518       rm -f $ac_file
30519       mv "$tmp/config.h" $ac_file
30520     fi
30521   else
30522     echo "/* $configure_input  */"
30523     cat "$ac_result"
30524   fi
30525   rm -f "$tmp/out12"
30526 # Compute $ac_file's index in $config_headers.
30527 _am_arg=$ac_file
30528 _am_stamp_count=1
30529 for _am_header in $config_headers :; do
30530   case $_am_header in
30531     $_am_arg | $_am_arg:* )
30532       break ;;
30533     * )
30534       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30535   esac
30536 done
30537 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30538 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30539          X"$_am_arg" : 'X\(//\)[^/]' \| \
30540          X"$_am_arg" : 'X\(//\)$' \| \
30541          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30542 echo X"$_am_arg" |
30543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30544             s//\1/
30545             q
30546           }
30547           /^X\(\/\/\)[^/].*/{
30548             s//\1/
30549             q
30550           }
30551           /^X\(\/\/\)$/{
30552             s//\1/
30553             q
30554           }
30555           /^X\(\/\).*/{
30556             s//\1/
30557             q
30558           }
30559           s/.*/./; q'`/stamp-h$_am_stamp_count
30560  ;;
30561
30562   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30563 echo "$as_me: executing $ac_file commands" >&6;}
30564  ;;
30565   esac
30566
30567
30568   case $ac_file$ac_mode in
30569     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30570   # Strip MF so we end up with the name of the file.
30571   mf=`echo "$mf" | sed -e 's/:.*$//'`
30572   # Check whether this is an Automake generated Makefile or not.
30573   # We used to match only the files named `Makefile.in', but
30574   # some people rename them; so instead we look at the file content.
30575   # Grep'ing the first line is not enough: some people post-process
30576   # each Makefile.in and add a new line on top of each file to say so.
30577   # Grep'ing the whole file is not good either: AIX grep has a line
30578   # limit of 2048, but all sed's we know have understand at least 4000.
30579   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30580     dirpart=`$as_dirname -- "$mf" ||
30581 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30582          X"$mf" : 'X\(//\)[^/]' \| \
30583          X"$mf" : 'X\(//\)$' \| \
30584          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30585 echo X"$mf" |
30586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30587             s//\1/
30588             q
30589           }
30590           /^X\(\/\/\)[^/].*/{
30591             s//\1/
30592             q
30593           }
30594           /^X\(\/\/\)$/{
30595             s//\1/
30596             q
30597           }
30598           /^X\(\/\).*/{
30599             s//\1/
30600             q
30601           }
30602           s/.*/./; q'`
30603   else
30604     continue
30605   fi
30606   # Extract the definition of DEPDIR, am__include, and am__quote
30607   # from the Makefile without running `make'.
30608   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30609   test -z "$DEPDIR" && continue
30610   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30611   test -z "am__include" && continue
30612   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30613   # When using ansi2knr, U may be empty or an underscore; expand it
30614   U=`sed -n 's/^U = //p' < "$mf"`
30615   # Find all dependency output files, they are included files with
30616   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30617   # simplest approach to changing $(DEPDIR) to its actual value in the
30618   # expansion.
30619   for file in `sed -n "
30620     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30621        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30622     # Make sure the directory exists.
30623     test -f "$dirpart/$file" && continue
30624     fdir=`$as_dirname -- "$file" ||
30625 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30626          X"$file" : 'X\(//\)[^/]' \| \
30627          X"$file" : 'X\(//\)$' \| \
30628          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30629 echo X"$file" |
30630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30631             s//\1/
30632             q
30633           }
30634           /^X\(\/\/\)[^/].*/{
30635             s//\1/
30636             q
30637           }
30638           /^X\(\/\/\)$/{
30639             s//\1/
30640             q
30641           }
30642           /^X\(\/\).*/{
30643             s//\1/
30644             q
30645           }
30646           s/.*/./; q'`
30647     { as_dir=$dirpart/$fdir
30648   case $as_dir in #(
30649   -*) as_dir=./$as_dir;;
30650   esac
30651   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30652     as_dirs=
30653     while :; do
30654       case $as_dir in #(
30655       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30656       *) as_qdir=$as_dir;;
30657       esac
30658       as_dirs="'$as_qdir' $as_dirs"
30659       as_dir=`$as_dirname -- "$as_dir" ||
30660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30661          X"$as_dir" : 'X\(//\)[^/]' \| \
30662          X"$as_dir" : 'X\(//\)$' \| \
30663          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30664 echo X"$as_dir" |
30665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30666             s//\1/
30667             q
30668           }
30669           /^X\(\/\/\)[^/].*/{
30670             s//\1/
30671             q
30672           }
30673           /^X\(\/\/\)$/{
30674             s//\1/
30675             q
30676           }
30677           /^X\(\/\).*/{
30678             s//\1/
30679             q
30680           }
30681           s/.*/./; q'`
30682       test -d "$as_dir" && break
30683     done
30684     test -z "$as_dirs" || eval "mkdir $as_dirs"
30685   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30686 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30687    { (exit 1); exit 1; }; }; }
30688     # echo "creating $dirpart/$file"
30689     echo '# dummy' > "$dirpart/$file"
30690   done
30691 done
30692  ;;
30693     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
30694         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
30695       esac ;;
30696     "po/stamp-it":C)
30697     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
30698        { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
30699 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
30700    { (exit 1); exit 1; }; }
30701     fi
30702     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
30703     >"po/stamp-it.tmp"
30704     sed '/^#/d
30705          s/^[[].*] *//
30706          /^[    ]*$/d
30707         '"s|^|  $ac_top_srcdir/|" \
30708       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
30709
30710     sed '/^POTFILES =/,/[^\\]$/ {
30711                 /^POTFILES =/!d
30712                 r po/POTFILES
30713           }
30714          ' "po/Makefile.in" >"po/Makefile"
30715     rm -f "po/Makefile.tmp"
30716     mv "po/stamp-it.tmp" "po/stamp-it"
30717    ;;
30718
30719   esac
30720 done # for ac_tag
30721
30722
30723 { (exit 0); exit 0; }
30724 _ACEOF
30725 chmod +x $CONFIG_STATUS
30726 ac_clean_files=$ac_clean_files_save
30727
30728
30729 # configure is writing to config.log, and then calls config.status.
30730 # config.status does its own redirection, appending to config.log.
30731 # Unfortunately, on DOS this fails, as config.log is still kept open
30732 # by configure, so config.status won't be able to write to it; its
30733 # output is simply discarded.  So we exec the FD to /dev/null,
30734 # effectively closing config.log, so it can be properly (re)opened and
30735 # appended to by config.status.  When coming back to configure, we
30736 # need to make the FD available again.
30737 if test "$no_create" != yes; then
30738   ac_cs_success=:
30739   ac_config_status_args=
30740   test "$silent" = yes &&
30741     ac_config_status_args="$ac_config_status_args --quiet"
30742   exec 5>/dev/null
30743   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30744   exec 5>>config.log
30745   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30746   # would make configure fail if this is the last instruction.
30747   $ac_cs_success || { (exit 1); exit 1; }
30748 fi
30749
30750
30751 echo
30752 echo CONFIGURATION SUMMARY
30753 echo "Core SyncEvolution: $enable_core"
30754 for backend in $BACKENDS; do
30755     eval echo $backend: \${enable_${backend}}
30756 done
30757 echo "DBus service: $enable_dbus_service"
30758 echo "GNOME keyring: $enable_gnome_keyring"
30759 echo "UI (DBus client): $enable_gui"
30760 echo "Bluetooth transport: $have_bluetooth"
30761 echo "GNOME Bluetooth panel plugin: $enable_gnome_bluetooth_panel"
30762 echo "SHA-256: $have_sha"
30763 echo "API documentation: $enable_doc"
30764 echo "D-Bus Timeout Hack: $enable_dbus_timeout_hack"
30765 echo