Set license using %license
[platform/upstream/libical.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libical 1.00.
4 #
5 # Report bugs to <http://freeassociation.sf.net/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://freeassociation.sf.net/ about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libical'
592 PACKAGE_TARNAME='libical'
593 PACKAGE_VERSION='1.00'
594 PACKAGE_STRING='libical 1.00'
595 PACKAGE_BUGREPORT='http://freeassociation.sf.net/'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_default_prefix=/usr/local/libical
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 PY_CFLAGS
640 HAVE_SWIG_FALSE
641 HAVE_SWIG_TRUE
642 swig_val
643 HAVE_PYTHON_FALSE
644 HAVE_PYTHON_TRUE
645 pkgpyexecdir
646 pyexecdir
647 pkgpythondir
648 pythondir
649 PYTHON_PLATFORM
650 PYTHON_EXEC_PREFIX
651 PYTHON_PREFIX
652 PYTHON_VERSION
653 PYTHON
654 WITH_JAVA_FALSE
655 WITH_JAVA_TRUE
656 JAVA_PLATFORM
657 JAVAH
658 JAVAC
659 JAVA
660 JAR
661 WITH_CXX_BINDINGS_FALSE
662 WITH_CXX_BINDINGS_TRUE
663 PTHREAD_LIBS
664 HAVE_PTHREAD_FALSE
665 HAVE_PTHREAD_TRUE
666 PERL
667 DEV_FALSE
668 DEV_TRUE
669 WITH_BDB4_FALSE
670 WITH_BDB4_TRUE
671 BDB_VERSION
672 BDB_LIB
673 BDB_DIR_LIB
674 BDB_DIR_INCLUDE
675 BDB_DIR
676 ZONE_INFO
677 OS_WIN32_FALSE
678 OS_WIN32_TRUE
679 CXXCPP
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 ac_ct_AR
689 AR
690 DLLTOOL
691 OBJDUMP
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 LIBTOOL
701 LN_S
702 LEXLIB
703 LEX_OUTPUT_ROOT
704 LEX
705 am__fastdepCXX_FALSE
706 am__fastdepCXX_TRUE
707 CXXDEPMODE
708 ac_ct_CXX
709 CXXFLAGS
710 CXX
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 YFLAGS
729 YACC
730 MAINT
731 MAINTAINER_MODE_FALSE
732 MAINTAINER_MODE_TRUE
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
738 AWK
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_os
757 target_vendor
758 target_cpu
759 target
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_maintainer_mode
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 with_builtintz
819 with_bdb4
820 with_bdb4_dir
821 with_backtrace
822 with_devel
823 enable_reentrant
824 enable_icalerrors_are_fatal
825 enable_cxx
826 enable_java
827 enable_python
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 YACC
833 YFLAGS
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CXX
840 CXXFLAGS
841 CCC
842 CPP
843 CXXCPP
844 PYTHON'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899   # If the previous option needs an argument, assign it.
900   if test -n "$ac_prev"; then
901     eval $ac_prev=\$ac_option
902     ac_prev=
903     continue
904   fi
905
906   case $ac_option in
907   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908   *=)   ac_optarg= ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error $? "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error $? "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error $? "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316   as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321   ac_srcdir_defaulted=yes
1322   # Try the directory containing this script, then the parent directory.
1323   ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325          X"$as_myself" : 'X\(//\)[^/]' \| \
1326          X"$as_myself" : 'X\(//\)$' \| \
1327          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)[^/].*/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\).*/{
1342             s//\1/
1343             q
1344           }
1345           s/.*/./; q'`
1346   srcdir=$ac_confdir
1347   if test ! -r "$srcdir/$ac_unique_file"; then
1348     srcdir=..
1349   fi
1350 else
1351   ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360         pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363   srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_env_${ac_var}_value=\$${ac_var}
1374   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382   # Omit some internal or obsolete options to make the list less imposing.
1383   # This message is too long to be a string in the A/UX 3.1 sh.
1384   cat <<_ACEOF
1385 \`configure' configures libical 1.00 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395   -h, --help              display this help and exit
1396       --help=short        display options specific to this package
1397       --help=recursive    display the short help of all the included packages
1398   -V, --version           display version information and exit
1399   -q, --quiet, --silent   do not print \`checking ...' messages
1400       --cache-file=FILE   cache test results in FILE [disabled]
1401   -C, --config-cache      alias for \`--cache-file=config.cache'
1402   -n, --no-create         do not create output files
1403       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406   --prefix=PREFIX         install architecture-independent files in PREFIX
1407                           [$ac_default_prefix]
1408   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                           [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419   --bindir=DIR            user executables [EPREFIX/bin]
1420   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421   --libexecdir=DIR        program executables [EPREFIX/libexec]
1422   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425   --libdir=DIR            object code libraries [EPREFIX/lib]
1426   --includedir=DIR        C header files [PREFIX/include]
1427   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430   --infodir=DIR           info documentation [DATAROOTDIR/info]
1431   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432   --mandir=DIR            man documentation [DATAROOTDIR/man]
1433   --docdir=DIR            documentation root [DATAROOTDIR/doc/libical]
1434   --htmldir=DIR           html documentation [DOCDIR]
1435   --dvidir=DIR            dvi documentation [DOCDIR]
1436   --pdfdir=DIR            pdf documentation [DOCDIR]
1437   --psdir=DIR             ps documentation [DOCDIR]
1438 _ACEOF
1439
1440   cat <<\_ACEOF
1441
1442 Program names:
1443   --program-prefix=PREFIX            prepend PREFIX to installed program names
1444   --program-suffix=SUFFIX            append SUFFIX to installed program names
1445   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1446
1447 System types:
1448   --build=BUILD     configure for building on BUILD [guessed]
1449   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450   --target=TARGET   configure for building compilers for TARGET [HOST]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455   case $ac_init_help in
1456      short | recursive ) echo "Configuration of libical 1.00:";;
1457    esac
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-option-checking  ignore unrecognized --enable/--with options
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --enable-maintainer-mode
1465                           enable make rules and dependencies not useful (and
1466                           sometimes confusing) to the casual installer
1467   --enable-dependency-tracking
1468                           do not reject slow dependency extractors
1469   --disable-dependency-tracking
1470                           speeds up one-time build
1471   --enable-shared[=PKGS]  build shared libraries [default=yes]
1472   --enable-static[=PKGS]  build static libraries [default=yes]
1473   --enable-fast-install[=PKGS]
1474                           optimize for fast installation [default=yes]
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476   --enable-reentrant      define _REENTRANT to enable reentrant system calls
1477   --enable-icalerrors-are-fatal      define ICAL_ERRORS_ARE_FATAL to make icalerror_* calls fatal
1478   --enable-cxx           Enable C++ bindings
1479   --enable-java          Enable Java bindings
1480   --enable-python         Enable python bindings
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1486                           both]
1487   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1488   --with-sysroot=DIR Search for dependent libraries within DIR
1489                         (or the compiler's sysroot if not specified).
1490   --with-builtintz             deliver our own zonefiles?
1491   --with-bdb4             Add support for Berkeley DB 4.0
1492   --with-bdb4-dir=PATH    Use PATH as location of BerkeleyDB 4.0
1493   --with-backtrace        enable backtrace dumps in the syslog
1494   --with-devel            Add development options
1495
1496 Some influential environment variables:
1497   YACC        The `Yet Another Compiler Compiler' implementation to use.
1498               Defaults to the first program found out of: `bison -y', `byacc',
1499               `yacc'.
1500   YFLAGS      The list of arguments that will be passed by default to $YACC.
1501               This script will default YFLAGS to the empty string to avoid a
1502               default value of `-d' given by some make applications.
1503   CC          C compiler command
1504   CFLAGS      C compiler flags
1505   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506               nonstandard directory <lib dir>
1507   LIBS        libraries to pass to the linker, e.g. -l<library>
1508   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509               you have headers in a nonstandard directory <include dir>
1510   CXX         C++ compiler command
1511   CXXFLAGS    C++ compiler flags
1512   CPP         C preprocessor
1513   CXXCPP      C++ preprocessor
1514   PYTHON      the Python interpreter
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <http://freeassociation.sf.net/>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" ||
1528       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529       continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 libical configure 1.00
1583 generated by GNU Autoconf 2.69
1584
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext
1603   if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_compile") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest.$ac_objext; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627         ac_retval=1
1628 fi
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_cxx_try_compile LINENO
1635 # ----------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_cxx_try_compile ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   rm -f conftest.$ac_objext
1641   if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_compile") 2>conftest.err
1649   ac_status=$?
1650   if test -s conftest.err; then
1651     grep -v '^ *+' conftest.err >conftest.er1
1652     cat conftest.er1 >&5
1653     mv -f conftest.er1 conftest.err
1654   fi
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; } && {
1657          test -z "$ac_cxx_werror_flag" ||
1658          test ! -s conftest.err
1659        } && test -s conftest.$ac_objext; then :
1660   ac_retval=0
1661 else
1662   $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665         ac_retval=1
1666 fi
1667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668   as_fn_set_status $ac_retval
1669
1670 } # ac_fn_cxx_try_compile
1671
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_link ()
1676 {
1677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678   rm -f conftest.$ac_objext conftest$ac_exeext
1679   if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_link") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } && {
1695          test -z "$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        } && test -s conftest$ac_exeext && {
1698          test "$cross_compiling" = yes ||
1699          test -x conftest$ac_exeext
1700        }; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710   # interfere with the next link command; also delete a directory that is
1711   # left behind by Apple's compiler.  We do this before executing the actions.
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_link
1717
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736   eval "$3=yes"
1737 else
1738   eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_header_compile
1748
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_cpp ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763   ac_status=$?
1764   if test -s conftest.err; then
1765     grep -v '^ *+' conftest.err >conftest.er1
1766     cat conftest.er1 >&5
1767     mv -f conftest.er1 conftest.err
1768   fi
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } > conftest.i && {
1771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772          test ! -s conftest.err
1773        }; then :
1774   ac_retval=0
1775 else
1776   $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779     ac_retval=1
1780 fi
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_cpp
1785
1786 # ac_fn_c_try_run LINENO
1787 # ----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1789 # that executables *can* be run.
1790 ac_fn_c_try_run ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>&5
1801   ac_status=$?
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804   { { case "(($ac_try" in
1805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806   *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810   (eval "$ac_try") 2>&5
1811   ac_status=$?
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; }; }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: program exited with status $ac_status" >&5
1817        $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820        ac_retval=$ac_status
1821 fi
1822   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824   as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_run
1827
1828 # ac_fn_c_check_func LINENO FUNC VAR
1829 # ----------------------------------
1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831 ac_fn_c_check_func ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837   $as_echo_n "(cached) " >&6
1838 else
1839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h.  */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1843 #define $2 innocuous_$2
1844
1845 /* System header to define __stub macros and hopefully few prototypes,
1846     which can conflict with char $2 (); below.
1847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848     <limits.h> exists even on freestanding compilers.  */
1849
1850 #ifdef __STDC__
1851 # include <limits.h>
1852 #else
1853 # include <assert.h>
1854 #endif
1855
1856 #undef $2
1857
1858 /* Override any GCC internal prototype to avoid an error.
1859    Use char because int might match the return type of a GCC
1860    builtin and then its argument prototype would still apply.  */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 ();
1865 /* The GNU C library defines this for functions which it implements
1866     to always fail with ENOSYS.  Some functions are actually named
1867     something starting with __ and the normal name is an alias.  */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1871
1872 int
1873 main ()
1874 {
1875 return $2 ();
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"; then :
1881   eval "$3=yes"
1882 else
1883   eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext \
1886     conftest$ac_exeext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_func
1894
1895 # ac_fn_cxx_try_cpp LINENO
1896 # ------------------------
1897 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_cpp ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   if { { ac_try="$ac_cpp conftest.$ac_ext"
1902 case "(($ac_try" in
1903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904   *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909   ac_status=$?
1910   if test -s conftest.err; then
1911     grep -v '^ *+' conftest.err >conftest.er1
1912     cat conftest.er1 >&5
1913     mv -f conftest.er1 conftest.err
1914   fi
1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916   test $ac_status = 0; } > conftest.i && {
1917          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1918          test ! -s conftest.err
1919        }; then :
1920   ac_retval=0
1921 else
1922   $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925     ac_retval=1
1926 fi
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928   as_fn_set_status $ac_retval
1929
1930 } # ac_fn_cxx_try_cpp
1931
1932 # ac_fn_cxx_try_link LINENO
1933 # -------------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_cxx_try_link ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   rm -f conftest.$ac_objext conftest$ac_exeext
1939   if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942   *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946   (eval "$ac_link") 2>conftest.err
1947   ac_status=$?
1948   if test -s conftest.err; then
1949     grep -v '^ *+' conftest.err >conftest.er1
1950     cat conftest.er1 >&5
1951     mv -f conftest.er1 conftest.err
1952   fi
1953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954   test $ac_status = 0; } && {
1955          test -z "$ac_cxx_werror_flag" ||
1956          test ! -s conftest.err
1957        } && test -s conftest$ac_exeext && {
1958          test "$cross_compiling" = yes ||
1959          test -x conftest$ac_exeext
1960        }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966         ac_retval=1
1967 fi
1968   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970   # interfere with the next link command; also delete a directory that is
1971   # left behind by Apple's compiler.  We do this before executing the actions.
1972   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974   as_fn_set_status $ac_retval
1975
1976 } # ac_fn_cxx_try_link
1977
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR
1982 # accordingly.
1983 ac_fn_c_check_header_mongrel ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   if eval \${$3+:} false; then :
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990   $as_echo_n "(cached) " >&6
1991 fi
1992 eval ac_res=\$$3
1993                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 else
1996   # Is the header compilable?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998 $as_echo_n "checking $2 usability... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005   ac_header_compiler=yes
2006 else
2007   ac_header_compiler=no
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011 $as_echo "$ac_header_compiler" >&6; }
2012
2013 # Is the header present?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015 $as_echo_n "checking $2 presence... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021   ac_header_preproc=yes
2022 else
2023   ac_header_preproc=no
2024 fi
2025 rm -f conftest.err conftest.i conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027 $as_echo "$ac_header_preproc" >&6; }
2028
2029 # So?  What about this header?
2030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031   yes:no: )
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036     ;;
2037   no:yes:* )
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2041 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2045 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 ( $as_echo "## --------------------------------------------- ##
2049 ## Report this to http://freeassociation.sf.net/ ##
2050 ## --------------------------------------------- ##"
2051      ) | sed "s/^/$as_me: WARNING:     /" >&2
2052     ;;
2053 esac
2054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057   $as_echo_n "(cached) " >&6
2058 else
2059   eval "$3=\$ac_header_compiler"
2060 fi
2061 eval ac_res=\$$3
2062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 fi
2065   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_header_mongrel
2068
2069 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070 # -------------------------------------------
2071 # Tests whether TYPE exists after having included INCLUDES, setting cache
2072 # variable VAR accordingly.
2073 ac_fn_c_check_type ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079   $as_echo_n "(cached) " >&6
2080 else
2081   eval "$3=no"
2082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 if (sizeof ($2))
2089          return 0;
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 int
2099 main ()
2100 {
2101 if (sizeof (($2)))
2102             return 0;
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108
2109 else
2110   eval "$3=yes"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_type
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2125
2126 It was created by libical $as_me 1.00, which was
2127 generated by GNU Autoconf 2.69.  Invocation command line was
2128
2129   $ $0 $@
2130
2131 _ACEOF
2132 exec 5>>config.log
2133 {
2134 cat <<_ASUNAME
2135 ## --------- ##
2136 ## Platform. ##
2137 ## --------- ##
2138
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2144
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2147
2148 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2149 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2152 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2153 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2154 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2155
2156 _ASUNAME
2157
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163     $as_echo "PATH: $as_dir"
2164   done
2165 IFS=$as_save_IFS
2166
2167 } >&5
2168
2169 cat >&5 <<_ACEOF
2170
2171
2172 ## ----------- ##
2173 ## Core tests. ##
2174 ## ----------- ##
2175
2176 _ACEOF
2177
2178
2179 # Keep a trace of the command line.
2180 # Strip out --no-create and --no-recursion so they do not pile up.
2181 # Strip out --silent because we don't want to record it for future runs.
2182 # Also quote any args containing shell meta-characters.
2183 # Make two passes to allow for proper duplicate-argument suppression.
2184 ac_configure_args=
2185 ac_configure_args0=
2186 ac_configure_args1=
2187 ac_must_keep_next=false
2188 for ac_pass in 1 2
2189 do
2190   for ac_arg
2191   do
2192     case $ac_arg in
2193     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195     | -silent | --silent | --silen | --sile | --sil)
2196       continue ;;
2197     *\'*)
2198       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2199     esac
2200     case $ac_pass in
2201     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2202     2)
2203       as_fn_append ac_configure_args1 " '$ac_arg'"
2204       if test $ac_must_keep_next = true; then
2205         ac_must_keep_next=false # Got value, back to normal.
2206       else
2207         case $ac_arg in
2208           *=* | --config-cache | -C | -disable-* | --disable-* \
2209           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211           | -with-* | --with-* | -without-* | --without-* | --x)
2212             case "$ac_configure_args0 " in
2213               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2214             esac
2215             ;;
2216           -* ) ac_must_keep_next=true ;;
2217         esac
2218       fi
2219       as_fn_append ac_configure_args " '$ac_arg'"
2220       ;;
2221     esac
2222   done
2223 done
2224 { ac_configure_args0=; unset ac_configure_args0;}
2225 { ac_configure_args1=; unset ac_configure_args1;}
2226
2227 # When interrupted or exit'd, cleanup temporary files, and complete
2228 # config.log.  We remove comments because anyway the quotes in there
2229 # would cause problems or look ugly.
2230 # WARNING: Use '\'' to represent an apostrophe within the trap.
2231 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2232 trap 'exit_status=$?
2233   # Save into config.log some information that might help in debugging.
2234   {
2235     echo
2236
2237     $as_echo "## ---------------- ##
2238 ## Cache variables. ##
2239 ## ---------------- ##"
2240     echo
2241     # The following way of writing the cache mishandles newlines in values,
2242 (
2243   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2244     eval ac_val=\$$ac_var
2245     case $ac_val in #(
2246     *${as_nl}*)
2247       case $ac_var in #(
2248       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2249 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2250       esac
2251       case $ac_var in #(
2252       _ | IFS | as_nl) ;; #(
2253       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2254       *) { eval $ac_var=; unset $ac_var;} ;;
2255       esac ;;
2256     esac
2257   done
2258   (set) 2>&1 |
2259     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2260     *${as_nl}ac_space=\ *)
2261       sed -n \
2262         "s/'\''/'\''\\\\'\'''\''/g;
2263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2264       ;; #(
2265     *)
2266       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2267       ;;
2268     esac |
2269     sort
2270 )
2271     echo
2272
2273     $as_echo "## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##"
2276     echo
2277     for ac_var in $ac_subst_vars
2278     do
2279       eval ac_val=\$$ac_var
2280       case $ac_val in
2281       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282       esac
2283       $as_echo "$ac_var='\''$ac_val'\''"
2284     done | sort
2285     echo
2286
2287     if test -n "$ac_subst_files"; then
2288       $as_echo "## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##"
2291       echo
2292       for ac_var in $ac_subst_files
2293       do
2294         eval ac_val=\$$ac_var
2295         case $ac_val in
2296         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297         esac
2298         $as_echo "$ac_var='\''$ac_val'\''"
2299       done | sort
2300       echo
2301     fi
2302
2303     if test -s confdefs.h; then
2304       $as_echo "## ----------- ##
2305 ## confdefs.h. ##
2306 ## ----------- ##"
2307       echo
2308       cat confdefs.h
2309       echo
2310     fi
2311     test "$ac_signal" != 0 &&
2312       $as_echo "$as_me: caught signal $ac_signal"
2313     $as_echo "$as_me: exit $exit_status"
2314   } >&5
2315   rm -f core *.core core.conftest.* &&
2316     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317     exit $exit_status
2318 ' 0
2319 for ac_signal in 1 2 13 15; do
2320   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 done
2322 ac_signal=0
2323
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2326
2327 $as_echo "/* confdefs.h */" > confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_URL "$PACKAGE_URL"
2353 _ACEOF
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2358 ac_site_file1=NONE
2359 ac_site_file2=NONE
2360 if test -n "$CONFIG_SITE"; then
2361   # We do not want a PATH search for config.site.
2362   case $CONFIG_SITE in #((
2363     -*)  ac_site_file1=./$CONFIG_SITE;;
2364     */*) ac_site_file1=$CONFIG_SITE;;
2365     *)   ac_site_file1=./$CONFIG_SITE;;
2366   esac
2367 elif test "x$prefix" != xNONE; then
2368   ac_site_file1=$prefix/share/config.site
2369   ac_site_file2=$prefix/etc/config.site
2370 else
2371   ac_site_file1=$ac_default_prefix/share/config.site
2372   ac_site_file2=$ac_default_prefix/etc/config.site
2373 fi
2374 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2375 do
2376   test "x$ac_site_file" = xNONE && continue
2377   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2379 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380     sed 's/^/| /' "$ac_site_file" >&5
2381     . "$ac_site_file" \
2382       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 as_fn_error $? "failed to load site script $ac_site_file
2385 See \`config.log' for more details" "$LINENO" 5; }
2386   fi
2387 done
2388
2389 if test -r "$cache_file"; then
2390   # Some versions of bash will fail to source /dev/null (special files
2391   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2392   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2394 $as_echo "$as_me: loading cache $cache_file" >&6;}
2395     case $cache_file in
2396       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2397       *)                      . "./$cache_file";;
2398     esac
2399   fi
2400 else
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2402 $as_echo "$as_me: creating cache $cache_file" >&6;}
2403   >$cache_file
2404 fi
2405
2406 # Check that the precious variables saved in the cache have kept the same
2407 # value.
2408 ac_cache_corrupted=false
2409 for ac_var in $ac_precious_vars; do
2410   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2411   eval ac_new_set=\$ac_env_${ac_var}_set
2412   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2413   eval ac_new_val=\$ac_env_${ac_var}_value
2414   case $ac_old_set,$ac_new_set in
2415     set,)
2416       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2418       ac_cache_corrupted=: ;;
2419     ,set)
2420       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2422       ac_cache_corrupted=: ;;
2423     ,);;
2424     *)
2425       if test "x$ac_old_val" != "x$ac_new_val"; then
2426         # differences in whitespace do not lead to failure.
2427         ac_old_val_w=`echo x $ac_old_val`
2428         ac_new_val_w=`echo x $ac_new_val`
2429         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2430           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2432           ac_cache_corrupted=:
2433         else
2434           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2436           eval $ac_var=\$ac_old_val
2437         fi
2438         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2439 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2440         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2441 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2442       fi;;
2443   esac
2444   # Pass precious variables to config.status.
2445   if test "$ac_new_set" = set; then
2446     case $ac_new_val in
2447     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2448     *) ac_arg=$ac_var=$ac_new_val ;;
2449     esac
2450     case " $ac_configure_args " in
2451       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2452       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2453     esac
2454   fi
2455 done
2456 if $ac_cache_corrupted; then
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2461   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2462 fi
2463 ## -------------------- ##
2464 ## Main body of script. ##
2465 ## -------------------- ##
2466
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474 ac_aux_dir=
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476   if test -f "$ac_dir/install-sh"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/install-sh -c"
2479     break
2480   elif test -f "$ac_dir/install.sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install.sh -c"
2483     break
2484   elif test -f "$ac_dir/shtool"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/shtool install -c"
2487     break
2488   fi
2489 done
2490 if test -z "$ac_aux_dir"; then
2491   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 fi
2493
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2501
2502
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508 $as_echo_n "checking build system type... " >&6; }
2509 if ${ac_cv_build+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522 $as_echo "$ac_cv_build" >&6; }
2523 case $ac_cv_build in
2524 *-*-*) ;;
2525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2526 esac
2527 build=$ac_cv_build
2528 ac_save_IFS=$IFS; IFS='-'
2529 set x $ac_cv_build
2530 shift
2531 build_cpu=$1
2532 build_vendor=$2
2533 shift; shift
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2536 build_os=$*
2537 IFS=$ac_save_IFS
2538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542 $as_echo_n "checking host system type... " >&6; }
2543 if ${ac_cv_host+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test "x$host_alias" = x; then
2547   ac_cv_host=$ac_cv_build
2548 else
2549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2550     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2551 fi
2552
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555 $as_echo "$ac_cv_host" >&6; }
2556 case $ac_cv_host in
2557 *-*-*) ;;
2558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2559 esac
2560 host=$ac_cv_host
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_host
2563 shift
2564 host_cpu=$1
2565 host_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 host_os=$*
2570 IFS=$ac_save_IFS
2571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575 $as_echo_n "checking target system type... " >&6; }
2576 if ${ac_cv_target+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test "x$target_alias" = x; then
2580   ac_cv_target=$ac_cv_host
2581 else
2582   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2583     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2584 fi
2585
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588 $as_echo "$ac_cv_target" >&6; }
2589 case $ac_cv_target in
2590 *-*-*) ;;
2591 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2592 esac
2593 target=$ac_cv_target
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_target
2596 shift
2597 target_cpu=$1
2598 target_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 target_os=$*
2603 IFS=$ac_save_IFS
2604 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2605
2606
2607 # The aliases save the names the user supplied, while $host etc.
2608 # will get canonicalized.
2609 test -n "$target_alias" &&
2610   test "$program_prefix$program_suffix$program_transform_name" = \
2611     NONENONEs,x,x, &&
2612   program_prefix=${target_alias}-
2613
2614 am__api_version='1.12'
2615
2616 # Find a good install program.  We prefer a C program (faster),
2617 # so one script is as good as another.  But avoid the broken or
2618 # incompatible versions:
2619 # SysV /etc/install, /usr/sbin/install
2620 # SunOS /usr/etc/install
2621 # IRIX /sbin/install
2622 # AIX /bin/install
2623 # AmigaOS /C/install, which installs bootblocks on floppy discs
2624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2627 # OS/2's system install, which has a completely different semantic
2628 # ./install, which can be erroneously created by make from ./install.sh.
2629 # Reject install programs that cannot install multiple files.
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2631 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2632 if test -z "$INSTALL"; then
2633 if ${ac_cv_path_install+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     # Account for people who put trailing slashes in PATH elements.
2642 case $as_dir/ in #((
2643   ./ | .// | /[cC]/* | \
2644   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2645   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2646   /usr/ucb/* ) ;;
2647   *)
2648     # OSF1 and SCO ODT 3.0 have their own names for install.
2649     # Don't use installbsd from OSF since it installs stuff as root
2650     # by default.
2651     for ac_prog in ginstall scoinst install; do
2652       for ac_exec_ext in '' $ac_executable_extensions; do
2653         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2654           if test $ac_prog = install &&
2655             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2656             # AIX install.  It has an incompatible calling convention.
2657             :
2658           elif test $ac_prog = install &&
2659             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660             # program-specific install script used by HP pwplus--don't use.
2661             :
2662           else
2663             rm -rf conftest.one conftest.two conftest.dir
2664             echo one > conftest.one
2665             echo two > conftest.two
2666             mkdir conftest.dir
2667             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2668               test -s conftest.one && test -s conftest.two &&
2669               test -s conftest.dir/conftest.one &&
2670               test -s conftest.dir/conftest.two
2671             then
2672               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2673               break 3
2674             fi
2675           fi
2676         fi
2677       done
2678     done
2679     ;;
2680 esac
2681
2682   done
2683 IFS=$as_save_IFS
2684
2685 rm -rf conftest.one conftest.two conftest.dir
2686
2687 fi
2688   if test "${ac_cv_path_install+set}" = set; then
2689     INSTALL=$ac_cv_path_install
2690   else
2691     # As a last resort, use the slow shell script.  Don't cache a
2692     # value for INSTALL within a source directory, because that will
2693     # break other packages using the cache if that directory is
2694     # removed, or if the value is a relative name.
2695     INSTALL=$ac_install_sh
2696   fi
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2699 $as_echo "$INSTALL" >&6; }
2700
2701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2702 # It thinks the first close brace ends the variable substitution.
2703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2704
2705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2706
2707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2708
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2710 $as_echo_n "checking whether build environment is sane... " >&6; }
2711 # Reject unsafe characters in $srcdir or the absolute working directory
2712 # name.  Accept space and tab only in the latter.
2713 am_lf='
2714 '
2715 case `pwd` in
2716   *[\\\"\#\$\&\'\`$am_lf]*)
2717     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2718 esac
2719 case $srcdir in
2720   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2721     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2722 esac
2723
2724 # Do 'set' in a subshell so we don't clobber the current shell's
2725 # arguments.  Must try -L first in case configure is actually a
2726 # symlink; some systems play weird games with the mod time of symlinks
2727 # (eg FreeBSD returns the mod time of the symlink's containing
2728 # directory).
2729 if (
2730    am_has_slept=no
2731    for am_try in 1 2; do
2732      echo "timestamp, slept: $am_has_slept" > conftest.file
2733      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2734      if test "$*" = "X"; then
2735         # -L didn't work.
2736         set X `ls -t "$srcdir/configure" conftest.file`
2737      fi
2738      if test "$*" != "X $srcdir/configure conftest.file" \
2739         && test "$*" != "X conftest.file $srcdir/configure"; then
2740
2741         # If neither matched, then we have a broken ls.  This can happen
2742         # if, for instance, CONFIG_SHELL is bash and it inherits a
2743         # broken ls alias from the environment.  This has actually
2744         # happened.  Such a system could not be considered "sane".
2745         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2746   alias in your environment" "$LINENO" 5
2747      fi
2748      if test "$2" = conftest.file || test $am_try -eq 2; then
2749        break
2750      fi
2751      # Just in case.
2752      sleep 1
2753      am_has_slept=yes
2754    done
2755    test "$2" = conftest.file
2756    )
2757 then
2758    # Ok.
2759    :
2760 else
2761    as_fn_error $? "newly created file is older than distributed files!
2762 Check your system clock" "$LINENO" 5
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766 # If we didn't sleep, we still need to ensure time stamps of config.status and
2767 # generated files are strictly newer.
2768 am_sleep_pid=
2769 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2770   ( sleep 1 ) &
2771   am_sleep_pid=$!
2772 fi
2773
2774 rm -f conftest.file
2775
2776 test "$program_prefix" != NONE &&
2777   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2778 # Use a double $ so make ignores it.
2779 test "$program_suffix" != NONE &&
2780   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2781 # Double any \ or $.
2782 # By default was `s,x,x', remove it if useless.
2783 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2784 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2785
2786 # expand $ac_aux_dir to an absolute path
2787 am_aux_dir=`cd $ac_aux_dir && pwd`
2788
2789 if test x"${MISSING+set}" != xset; then
2790   case $am_aux_dir in
2791   *\ * | *\     *)
2792     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2793   *)
2794     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2795   esac
2796 fi
2797 # Use eval to expand $SHELL
2798 if eval "$MISSING --run true"; then
2799   am_missing_run="$MISSING --run "
2800 else
2801   am_missing_run=
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2803 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2804 fi
2805
2806 if test x"${install_sh}" != xset; then
2807   case $am_aux_dir in
2808   *\ * | *\     *)
2809     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2810   *)
2811     install_sh="\${SHELL} $am_aux_dir/install-sh"
2812   esac
2813 fi
2814
2815 # Installed binaries are usually stripped using 'strip' when the user
2816 # run "make install-strip".  However 'strip' might not be the right
2817 # tool to use in cross-compilation environments, therefore Automake
2818 # will honor the 'STRIP' environment variable to overrule this program.
2819 if test "$cross_compiling" != no; then
2820   if test -n "$ac_tool_prefix"; then
2821   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}strip; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_STRIP+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$STRIP"; then
2829   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 STRIP=$ac_cv_prog_STRIP
2849 if test -n "$STRIP"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2851 $as_echo "$STRIP" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858 fi
2859 if test -z "$ac_cv_prog_STRIP"; then
2860   ac_ct_STRIP=$STRIP
2861   # Extract the first word of "strip", so it can be a program name with args.
2862 set dummy strip; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2866   $as_echo_n "(cached) " >&6
2867 else
2868   if test -n "$ac_ct_STRIP"; then
2869   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
2875   test -z "$as_dir" && as_dir=.
2876     for ac_exec_ext in '' $ac_executable_extensions; do
2877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878     ac_cv_prog_ac_ct_STRIP="strip"
2879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880     break 2
2881   fi
2882 done
2883   done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2889 if test -n "$ac_ct_STRIP"; then
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2891 $as_echo "$ac_ct_STRIP" >&6; }
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897   if test "x$ac_ct_STRIP" = x; then
2898     STRIP=":"
2899   else
2900     case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     STRIP=$ac_ct_STRIP
2907   fi
2908 else
2909   STRIP="$ac_cv_prog_STRIP"
2910 fi
2911
2912 fi
2913 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2916 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2917 if test -z "$MKDIR_P"; then
2918   if ${ac_cv_path_mkdir+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926     for ac_prog in mkdir gmkdir; do
2927          for ac_exec_ext in '' $ac_executable_extensions; do
2928            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2929            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2930              'mkdir (GNU coreutils) '* | \
2931              'mkdir (coreutils) '* | \
2932              'mkdir (fileutils) '4.1*)
2933                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2934                break 3;;
2935            esac
2936          done
2937        done
2938   done
2939 IFS=$as_save_IFS
2940
2941 fi
2942
2943   test -d ./--version && rmdir ./--version
2944   if test "${ac_cv_path_mkdir+set}" = set; then
2945     MKDIR_P="$ac_cv_path_mkdir -p"
2946   else
2947     # As a last resort, use the slow shell script.  Don't cache a
2948     # value for MKDIR_P within a source directory, because that will
2949     # break other packages using the cache if that directory is
2950     # removed, or if the value is a relative name.
2951     MKDIR_P="$ac_install_sh -d"
2952   fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2955 $as_echo "$MKDIR_P" >&6; }
2956
2957 for ac_prog in gawk mawk nawk awk
2958 do
2959   # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_AWK+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$AWK"; then
2967   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976     ac_cv_prog_AWK="$ac_prog"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 AWK=$ac_cv_prog_AWK
2987 if test -n "$AWK"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2989 $as_echo "$AWK" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996   test -n "$AWK" && break
2997 done
2998
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3000 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3001 set x ${MAKE-make}
3002 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3003 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   cat >conftest.make <<\_ACEOF
3007 SHELL = /bin/sh
3008 all:
3009         @echo '@@@%%%=$(MAKE)=@@@%%%'
3010 _ACEOF
3011 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3013   *@@@%%%=?*=@@@%%%*)
3014     eval ac_cv_prog_make_${ac_make}_set=yes;;
3015   *)
3016     eval ac_cv_prog_make_${ac_make}_set=no;;
3017 esac
3018 rm -f conftest.make
3019 fi
3020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3022 $as_echo "yes" >&6; }
3023   SET_MAKE=
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027   SET_MAKE="MAKE=${MAKE-make}"
3028 fi
3029
3030 rm -rf .tst 2>/dev/null
3031 mkdir .tst 2>/dev/null
3032 if test -d .tst; then
3033   am__leading_dot=.
3034 else
3035   am__leading_dot=_
3036 fi
3037 rmdir .tst 2>/dev/null
3038
3039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3040   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3041   # is not polluted with repeated "-I."
3042   am__isrc=' -I$(srcdir)'
3043   # test to see if srcdir already configured
3044   if test -f $srcdir/config.status; then
3045     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3046   fi
3047 fi
3048
3049 # test whether we have cygpath
3050 if test -z "$CYGPATH_W"; then
3051   if (cygpath --version) >/dev/null 2>/dev/null; then
3052     CYGPATH_W='cygpath -w'
3053   else
3054     CYGPATH_W=echo
3055   fi
3056 fi
3057
3058
3059 # Define the identity of the package.
3060  PACKAGE='libical'
3061  VERSION='1.00'
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE "$PACKAGE"
3066 _ACEOF
3067
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define VERSION "$VERSION"
3071 _ACEOF
3072
3073 # Some tools Automake needs.
3074
3075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076
3077
3078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079
3080
3081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082
3083
3084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085
3086
3087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088
3089 # For better backward compatibility.  To be removed once Automake 1.9.x
3090 # dies out for good.  For more background, see:
3091 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3092 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3093 mkdir_p='$(MKDIR_P)'
3094
3095 # We need awk for the "check" target.  The system "awk" is bad on
3096 # some platforms.
3097 # Always define AMTAR for backward compatibility.  Yes, it's still used
3098 # in the wild :-(  We should find a proper way to deprecate it ...
3099 AMTAR='$${TAR-tar}'
3100
3101 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3102
3103
3104
3105
3106
3107
3108 ac_config_headers="$ac_config_headers config.h"
3109
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3113 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3114     # Check whether --enable-maintainer-mode was given.
3115 if test "${enable_maintainer_mode+set}" = set; then :
3116   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3117 else
3118   USE_MAINTAINER_MODE=no
3119 fi
3120
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3122 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3123    if test $USE_MAINTAINER_MODE = yes; then
3124   MAINTAINER_MODE_TRUE=
3125   MAINTAINER_MODE_FALSE='#'
3126 else
3127   MAINTAINER_MODE_TRUE='#'
3128   MAINTAINER_MODE_FALSE=
3129 fi
3130
3131   MAINT=$MAINTAINER_MODE_TRUE
3132
3133
3134
3135 for ac_prog in 'bison -y' byacc
3136 do
3137   # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_YACC+:} false; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$YACC"; then
3145   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154     ac_cv_prog_YACC="$ac_prog"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 YACC=$ac_cv_prog_YACC
3165 if test -n "$YACC"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3167 $as_echo "$YACC" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174   test -n "$YACC" && break
3175 done
3176 test -n "$YACC" || YACC="yacc"
3177
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 if test -n "$ac_tool_prefix"; then
3184   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$CC"; then
3192   ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 if test -z "$ac_cv_prog_CC"; then
3223   ac_ct_CC=$CC
3224   # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   if test -n "$ac_ct_CC"; then
3232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239     for ac_exec_ext in '' $ac_executable_extensions; do
3240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_CC="gcc"
3242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246   done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260   if test "x$ac_ct_CC" = x; then
3261     CC=""
3262   else
3263     case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269     CC=$ac_ct_CC
3270   fi
3271 else
3272   CC="$ac_cv_prog_CC"
3273 fi
3274
3275 if test -z "$CC"; then
3276           if test -n "$ac_tool_prefix"; then
3277     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292     for ac_exec_ext in '' $ac_executable_extensions; do
3293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294     ac_cv_prog_CC="${ac_tool_prefix}cc"
3295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299   done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314   fi
3315 fi
3316 if test -z "$CC"; then
3317   # Extract the first word of "cc", so it can be a program name with args.
3318 set dummy cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$CC"; then
3325   ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327   ac_prog_rejected=no
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336        ac_prog_rejected=yes
3337        continue
3338      fi
3339     ac_cv_prog_CC="cc"
3340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344   done
3345 IFS=$as_save_IFS
3346
3347 if test $ac_prog_rejected = yes; then
3348   # We found a bogon in the path, so make sure we never use it.
3349   set dummy $ac_cv_prog_CC
3350   shift
3351   if test $# != 0; then
3352     # We chose a different compiler from the bogus one.
3353     # However, it has the same basename, so the bogon will be chosen
3354     # first if we set CC to just the basename; use the full file name.
3355     shift
3356     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3357   fi
3358 fi
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$CC"; then
3373   if test -n "$ac_tool_prefix"; then
3374   for ac_prog in cl.exe
3375   do
3376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$CC"; then
3384   ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413     test -n "$CC" && break
3414   done
3415 fi
3416 if test -z "$CC"; then
3417   ac_ct_CC=$CC
3418   for ac_prog in cl.exe
3419 do
3420   # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$ac_ct_CC"; then
3428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_ac_ct_CC="$ac_prog"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   test -n "$ac_ct_CC" && break
3458 done
3459
3460   if test "x$ac_ct_CC" = x; then
3461     CC=""
3462   else
3463     case $cross_compiling:$ac_tool_warned in
3464 yes:)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3468 esac
3469     CC=$ac_ct_CC
3470   fi
3471 fi
3472
3473 fi
3474
3475
3476 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "no acceptable C compiler found in \$PATH
3479 See \`config.log' for more details" "$LINENO" 5; }
3480
3481 # Provide some information about the compiler.
3482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3483 set X $ac_compile
3484 ac_compiler=$2
3485 for ac_option in --version -v -V -qversion; do
3486   { { ac_try="$ac_compiler $ac_option >&5"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494   ac_status=$?
3495   if test -s conftest.err; then
3496     sed '10a\
3497 ... rest of stderr output deleted ...
3498          10q' conftest.err >conftest.er1
3499     cat conftest.er1 >&5
3500   fi
3501   rm -f conftest.er1 conftest.err
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }
3504 done
3505
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 ac_clean_files_save=$ac_clean_files
3518 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3519 # Try to create an executable without -o first, disregard a.out.
3520 # It will help us diagnose broken compilers, and finding out an intuition
3521 # of exeext.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3523 $as_echo_n "checking whether the C compiler works... " >&6; }
3524 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3525
3526 # The possible output files:
3527 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3528
3529 ac_rmfiles=
3530 for ac_file in $ac_files
3531 do
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535   esac
3536 done
3537 rm -f $ac_rmfiles
3538
3539 if { { ac_try="$ac_link_default"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_link_default") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3553 # so that the user can short-circuit this test for compilers unknown to
3554 # Autoconf.
3555 for ac_file in $ac_files ''
3556 do
3557   test -f "$ac_file" || continue
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3560         ;;
3561     [ab].out )
3562         # We found the default executable, but exeext='' is most
3563         # certainly right.
3564         break;;
3565     *.* )
3566         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3567         then :; else
3568            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569         fi
3570         # We set ac_cv_exeext here because the later test for it is not
3571         # safe: cross compilers may not add the suffix if given an `-o'
3572         # argument, so we may need to know it at that point already.
3573         # Even if this section looks crufty: it has the advantage of
3574         # actually working.
3575         break;;
3576     * )
3577         break;;
3578   esac
3579 done
3580 test "$ac_cv_exeext" = no && ac_cv_exeext=
3581
3582 else
3583   ac_file=''
3584 fi
3585 if test -z "$ac_file"; then :
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error 77 "C compiler cannot create executables
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3600 $as_echo_n "checking for C compiler default output file name... " >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3602 $as_echo "$ac_file" >&6; }
3603 ac_exeext=$ac_cv_exeext
3604
3605 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3606 ac_clean_files=$ac_clean_files_save
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625   test -f "$ac_file" || continue
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629           break;;
3630     * ) break;;
3631   esac
3632 done
3633 else
3634   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 fi
3639 rm -f conftest conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3642
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648 #include <stdio.h>
3649 int
3650 main ()
3651 {
3652 FILE *f = fopen ("conftest.out", "w");
3653  return ferror (f) || fclose (f) != 0;
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 ac_clean_files="$ac_clean_files conftest.out"
3660 # Check that the compiler produces executables we can run.  If not, either
3661 # the compiler is broken, or we cross compile.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3663 $as_echo_n "checking whether we are cross compiling... " >&6; }
3664 if test "$cross_compiling" != yes; then
3665   { { ac_try="$ac_link"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672   (eval "$ac_link") 2>&5
3673   ac_status=$?
3674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675   test $ac_status = 0; }
3676   if { ac_try='./conftest$ac_cv_exeext'
3677   { { case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; }; then
3687     cross_compiling=no
3688   else
3689     if test "$cross_compiling" = maybe; then
3690         cross_compiling=yes
3691     else
3692         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot run C compiled programs.
3695 If you meant to cross compile, use \`--host'.
3696 See \`config.log' for more details" "$LINENO" 5; }
3697     fi
3698   fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3701 $as_echo "$cross_compiling" >&6; }
3702
3703 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3704 ac_clean_files=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3706 $as_echo_n "checking for suffix of object files... " >&6; }
3707 if ${ac_cv_objext+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.o conftest.obj
3722 if { { ac_try="$ac_compile"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_compile") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }; then :
3733   for ac_file in conftest.o conftest.obj conftest.*; do
3734   test -f "$ac_file" || continue;
3735   case $ac_file in
3736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3737     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3738        break;;
3739   esac
3740 done
3741 else
3742   $as_echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3753 $as_echo "$ac_cv_objext" >&6; }
3754 OBJEXT=$ac_cv_objext
3755 ac_objext=$OBJEXT
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3758 if ${ac_cv_c_compiler_gnu+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767 #ifndef __GNUC__
3768        choke me
3769 #endif
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_compiler_gnu=yes
3777 else
3778   ac_compiler_gnu=no
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3787   GCC=yes
3788 else
3789   GCC=
3790 fi
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if ${ac_cv_prog_cc_g+:} false; then :
3796   $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h.  */
3804
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814   ac_cv_prog_cc_g=yes
3815 else
3816   CFLAGS=""
3817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829
3830 else
3831   ac_c_werror_flag=$ac_save_c_werror_flag
3832          CFLAGS="-g"
3833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845   ac_cv_prog_cc_g=yes
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852    ac_c_werror_flag=$ac_save_c_werror_flag
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3855 $as_echo "$ac_cv_prog_cc_g" >&6; }
3856 if test "$ac_test_CFLAGS" = set; then
3857   CFLAGS=$ac_save_CFLAGS
3858 elif test $ac_cv_prog_cc_g = yes; then
3859   if test "$GCC" = yes; then
3860     CFLAGS="-g -O2"
3861   else
3862     CFLAGS="-g"
3863   fi
3864 else
3865   if test "$GCC" = yes; then
3866     CFLAGS="-O2"
3867   else
3868     CFLAGS=
3869   fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3873 if ${ac_cv_prog_cc_c89+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_cv_prog_cc_c89=no
3877 ac_save_CC=$CC
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdarg.h>
3881 #include <stdio.h>
3882 struct stat;
3883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3884 struct buf { int x; };
3885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3886 static char *e (p, i)
3887      char **p;
3888      int i;
3889 {
3890   return p[i];
3891 }
3892 static char *f (char * (*g) (char **, int), char **p, ...)
3893 {
3894   char *s;
3895   va_list v;
3896   va_start (v,p);
3897   s = g (p, va_arg (v,int));
3898   va_end (v);
3899   return s;
3900 }
3901
3902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3903    function prototypes and stuff, but not '\xHH' hex character constants.
3904    These don't provoke an error unfortunately, instead are silently treated
3905    as 'x'.  The following induces an error, until -std is added to get
3906    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3907    array size at least.  It's necessary to write '\x00'==0 to get something
3908    that's true only with -std.  */
3909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3910
3911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3912    inside strings and character constants.  */
3913 #define FOO(x) 'x'
3914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3915
3916 int test (int i, double x);
3917 struct s1 {int (*f) (int a);};
3918 struct s2 {int (*f) (double a);};
3919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3920 int argc;
3921 char **argv;
3922 int
3923 main ()
3924 {
3925 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3931         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3932 do
3933   CC="$ac_save_CC $ac_arg"
3934   if ac_fn_c_try_compile "$LINENO"; then :
3935   ac_cv_prog_cc_c89=$ac_arg
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext
3938   test "x$ac_cv_prog_cc_c89" != "xno" && break
3939 done
3940 rm -f conftest.$ac_ext
3941 CC=$ac_save_CC
3942
3943 fi
3944 # AC_CACHE_VAL
3945 case "x$ac_cv_prog_cc_c89" in
3946   x)
3947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3948 $as_echo "none needed" >&6; } ;;
3949   xno)
3950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3951 $as_echo "unsupported" >&6; } ;;
3952   *)
3953     CC="$CC $ac_cv_prog_cc_c89"
3954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 esac
3957 if test "x$ac_cv_prog_cc_c89" != xno; then :
3958
3959 fi
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 DEPDIR="${am__leading_dot}deps"
3967
3968 ac_config_commands="$ac_config_commands depfiles"
3969
3970
3971 am_make=${MAKE-make}
3972 cat > confinc << 'END'
3973 am__doit:
3974         @echo this is the am__doit target
3975 .PHONY: am__doit
3976 END
3977 # If we don't find an include directive, just comment out the code.
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3979 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3980 am__include="#"
3981 am__quote=
3982 _am_result=none
3983 # First try GNU make style include.
3984 echo "include confinc" > confmf
3985 # Ignore all kinds of additional output from 'make'.
3986 case `$am_make -s -f confmf 2> /dev/null` in #(
3987 *the\ am__doit\ target*)
3988   am__include=include
3989   am__quote=
3990   _am_result=GNU
3991   ;;
3992 esac
3993 # Now try BSD make style include.
3994 if test "$am__include" = "#"; then
3995    echo '.include "confinc"' > confmf
3996    case `$am_make -s -f confmf 2> /dev/null` in #(
3997    *the\ am__doit\ target*)
3998      am__include=.include
3999      am__quote="\""
4000      _am_result=BSD
4001      ;;
4002    esac
4003 fi
4004
4005
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4007 $as_echo "$_am_result" >&6; }
4008 rm -f confinc confmf
4009
4010 # Check whether --enable-dependency-tracking was given.
4011 if test "${enable_dependency_tracking+set}" = set; then :
4012   enableval=$enable_dependency_tracking;
4013 fi
4014
4015 if test "x$enable_dependency_tracking" != xno; then
4016   am_depcomp="$ac_aux_dir/depcomp"
4017   AMDEPBACKSLASH='\'
4018   am__nodep='_no'
4019 fi
4020  if test "x$enable_dependency_tracking" != xno; then
4021   AMDEP_TRUE=
4022   AMDEP_FALSE='#'
4023 else
4024   AMDEP_TRUE='#'
4025   AMDEP_FALSE=
4026 fi
4027
4028
4029
4030 depcc="$CC"   am_compiler_list=
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4033 $as_echo_n "checking dependency style of $depcc... " >&6; }
4034 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4038   # We make a subdir and do the tests there.  Otherwise we can end up
4039   # making bogus files that we don't know about and never remove.  For
4040   # instance it was reported that on HP-UX the gcc test will end up
4041   # making a dummy file named 'D' -- because '-MD' means "put the output
4042   # in D".
4043   rm -rf conftest.dir
4044   mkdir conftest.dir
4045   # Copy depcomp to subdir because otherwise we won't find it if we're
4046   # using a relative directory.
4047   cp "$am_depcomp" conftest.dir
4048   cd conftest.dir
4049   # We will build objects and dependencies in a subdirectory because
4050   # it helps to detect inapplicable dependency modes.  For instance
4051   # both Tru64's cc and ICC support -MD to output dependencies as a
4052   # side effect of compilation, but ICC will put the dependencies in
4053   # the current directory while Tru64 will put them in the object
4054   # directory.
4055   mkdir sub
4056
4057   am_cv_CC_dependencies_compiler_type=none
4058   if test "$am_compiler_list" = ""; then
4059      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4060   fi
4061   am__universal=false
4062   case " $depcc " in #(
4063      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4064      esac
4065
4066   for depmode in $am_compiler_list; do
4067     # Setup a source with many dependencies, because some compilers
4068     # like to wrap large dependency lists on column 80 (with \), and
4069     # we should not choose a depcomp mode which is confused by this.
4070     #
4071     # We need to recreate these files for each test, as the compiler may
4072     # overwrite some of them when testing with obscure command lines.
4073     # This happens at least with the AIX C compiler.
4074     : > sub/conftest.c
4075     for i in 1 2 3 4 5 6; do
4076       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4077       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4078       # Solaris 10 /bin/sh.
4079       echo '/* dummy */' > sub/conftst$i.h
4080     done
4081     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4082
4083     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4084     # mode.  It turns out that the SunPro C++ compiler does not properly
4085     # handle '-M -o', and we need to detect this.  Also, some Intel
4086     # versions had trouble with output in subdirs.
4087     am__obj=sub/conftest.${OBJEXT-o}
4088     am__minus_obj="-o $am__obj"
4089     case $depmode in
4090     gcc)
4091       # This depmode causes a compiler race in universal mode.
4092       test "$am__universal" = false || continue
4093       ;;
4094     nosideeffect)
4095       # After this tag, mechanisms are not by side-effect, so they'll
4096       # only be used when explicitly requested.
4097       if test "x$enable_dependency_tracking" = xyes; then
4098         continue
4099       else
4100         break
4101       fi
4102       ;;
4103     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4104       # This compiler won't grok '-c -o', but also, the minuso test has
4105       # not run yet.  These depmodes are late enough in the game, and
4106       # so weak that their functioning should not be impacted.
4107       am__obj=conftest.${OBJEXT-o}
4108       am__minus_obj=
4109       ;;
4110     none) break ;;
4111     esac
4112     if depmode=$depmode \
4113        source=sub/conftest.c object=$am__obj \
4114        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4115        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4116          >/dev/null 2>conftest.err &&
4117        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4118        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4119        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4120        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4121       # icc doesn't choke on unknown options, it will just issue warnings
4122       # or remarks (even with -Werror).  So we grep stderr for any message
4123       # that says an option was ignored or not supported.
4124       # When given -MP, icc 7.0 and 7.1 complain thusly:
4125       #   icc: Command line warning: ignoring option '-M'; no argument required
4126       # The diagnosis changed in icc 8.0:
4127       #   icc: Command line remark: option '-MP' not supported
4128       if (grep 'ignoring option' conftest.err ||
4129           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4130         am_cv_CC_dependencies_compiler_type=$depmode
4131         break
4132       fi
4133     fi
4134   done
4135
4136   cd ..
4137   rm -rf conftest.dir
4138 else
4139   am_cv_CC_dependencies_compiler_type=none
4140 fi
4141
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4144 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4145 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4146
4147  if
4148   test "x$enable_dependency_tracking" != xno \
4149   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4150   am__fastdepCC_TRUE=
4151   am__fastdepCC_FALSE='#'
4152 else
4153   am__fastdepCC_TRUE='#'
4154   am__fastdepCC_FALSE=
4155 fi
4156
4157
4158 ac_ext=cpp
4159 ac_cpp='$CXXCPP $CPPFLAGS'
4160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4163 if test -z "$CXX"; then
4164   if test -n "$CCC"; then
4165     CXX=$CCC
4166   else
4167     if test -n "$ac_tool_prefix"; then
4168   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4169   do
4170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CXX+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$CXX"; then
4178   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 CXX=$ac_cv_prog_CXX
4198 if test -n "$CXX"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4200 $as_echo "$CXX" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207     test -n "$CXX" && break
4208   done
4209 fi
4210 if test -z "$CXX"; then
4211   ac_ct_CXX=$CXX
4212   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4213 do
4214   # Extract the first word of "$ac_prog", so it can be a program name with args.
4215 set dummy $ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -n "$ac_ct_CXX"; then
4222   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_CXX="$ac_prog"
4232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236   done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4242 if test -n "$ac_ct_CXX"; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4244 $as_echo "$ac_ct_CXX" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251   test -n "$ac_ct_CXX" && break
4252 done
4253
4254   if test "x$ac_ct_CXX" = x; then
4255     CXX="g++"
4256   else
4257     case $cross_compiling:$ac_tool_warned in
4258 yes:)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263     CXX=$ac_ct_CXX
4264   fi
4265 fi
4266
4267   fi
4268 fi
4269 # Provide some information about the compiler.
4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4271 set X $ac_compile
4272 ac_compiler=$2
4273 for ac_option in --version -v -V -qversion; do
4274   { { ac_try="$ac_compiler $ac_option >&5"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4282   ac_status=$?
4283   if test -s conftest.err; then
4284     sed '10a\
4285 ... rest of stderr output deleted ...
4286          10q' conftest.err >conftest.er1
4287     cat conftest.er1 >&5
4288   fi
4289   rm -f conftest.er1 conftest.err
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; }
4292 done
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4296 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306        choke me
4307 #endif
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4314   ac_compiler_gnu=yes
4315 else
4316   ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4323 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325   GXX=yes
4326 else
4327   GXX=
4328 fi
4329 ac_test_CXXFLAGS=${CXXFLAGS+set}
4330 ac_save_CXXFLAGS=$CXXFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4332 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4333 if ${ac_cv_prog_cxx_g+:} false; then :
4334   $as_echo_n "(cached) " >&6
4335 else
4336   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4337    ac_cxx_werror_flag=yes
4338    ac_cv_prog_cxx_g=no
4339    CXXFLAGS="-g"
4340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352   ac_cv_prog_cxx_g=yes
4353 else
4354   CXXFLAGS=""
4355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_cxx_try_compile "$LINENO"; then :
4367
4368 else
4369   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4370          CXXFLAGS="-g"
4371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_cxx_try_compile "$LINENO"; then :
4383   ac_cv_prog_cxx_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4393 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4394 if test "$ac_test_CXXFLAGS" = set; then
4395   CXXFLAGS=$ac_save_CXXFLAGS
4396 elif test $ac_cv_prog_cxx_g = yes; then
4397   if test "$GXX" = yes; then
4398     CXXFLAGS="-g -O2"
4399   else
4400     CXXFLAGS="-g"
4401   fi
4402 else
4403   if test "$GXX" = yes; then
4404     CXXFLAGS="-O2"
4405   else
4406     CXXFLAGS=
4407   fi
4408 fi
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415 depcc="$CXX"  am_compiler_list=
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4418 $as_echo_n "checking dependency style of $depcc... " >&6; }
4419 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423   # We make a subdir and do the tests there.  Otherwise we can end up
4424   # making bogus files that we don't know about and never remove.  For
4425   # instance it was reported that on HP-UX the gcc test will end up
4426   # making a dummy file named 'D' -- because '-MD' means "put the output
4427   # in D".
4428   rm -rf conftest.dir
4429   mkdir conftest.dir
4430   # Copy depcomp to subdir because otherwise we won't find it if we're
4431   # using a relative directory.
4432   cp "$am_depcomp" conftest.dir
4433   cd conftest.dir
4434   # We will build objects and dependencies in a subdirectory because
4435   # it helps to detect inapplicable dependency modes.  For instance
4436   # both Tru64's cc and ICC support -MD to output dependencies as a
4437   # side effect of compilation, but ICC will put the dependencies in
4438   # the current directory while Tru64 will put them in the object
4439   # directory.
4440   mkdir sub
4441
4442   am_cv_CXX_dependencies_compiler_type=none
4443   if test "$am_compiler_list" = ""; then
4444      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4445   fi
4446   am__universal=false
4447   case " $depcc " in #(
4448      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4449      esac
4450
4451   for depmode in $am_compiler_list; do
4452     # Setup a source with many dependencies, because some compilers
4453     # like to wrap large dependency lists on column 80 (with \), and
4454     # we should not choose a depcomp mode which is confused by this.
4455     #
4456     # We need to recreate these files for each test, as the compiler may
4457     # overwrite some of them when testing with obscure command lines.
4458     # This happens at least with the AIX C compiler.
4459     : > sub/conftest.c
4460     for i in 1 2 3 4 5 6; do
4461       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463       # Solaris 10 /bin/sh.
4464       echo '/* dummy */' > sub/conftst$i.h
4465     done
4466     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4467
4468     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469     # mode.  It turns out that the SunPro C++ compiler does not properly
4470     # handle '-M -o', and we need to detect this.  Also, some Intel
4471     # versions had trouble with output in subdirs.
4472     am__obj=sub/conftest.${OBJEXT-o}
4473     am__minus_obj="-o $am__obj"
4474     case $depmode in
4475     gcc)
4476       # This depmode causes a compiler race in universal mode.
4477       test "$am__universal" = false || continue
4478       ;;
4479     nosideeffect)
4480       # After this tag, mechanisms are not by side-effect, so they'll
4481       # only be used when explicitly requested.
4482       if test "x$enable_dependency_tracking" = xyes; then
4483         continue
4484       else
4485         break
4486       fi
4487       ;;
4488     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489       # This compiler won't grok '-c -o', but also, the minuso test has
4490       # not run yet.  These depmodes are late enough in the game, and
4491       # so weak that their functioning should not be impacted.
4492       am__obj=conftest.${OBJEXT-o}
4493       am__minus_obj=
4494       ;;
4495     none) break ;;
4496     esac
4497     if depmode=$depmode \
4498        source=sub/conftest.c object=$am__obj \
4499        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501          >/dev/null 2>conftest.err &&
4502        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506       # icc doesn't choke on unknown options, it will just issue warnings
4507       # or remarks (even with -Werror).  So we grep stderr for any message
4508       # that says an option was ignored or not supported.
4509       # When given -MP, icc 7.0 and 7.1 complain thusly:
4510       #   icc: Command line warning: ignoring option '-M'; no argument required
4511       # The diagnosis changed in icc 8.0:
4512       #   icc: Command line remark: option '-MP' not supported
4513       if (grep 'ignoring option' conftest.err ||
4514           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515         am_cv_CXX_dependencies_compiler_type=$depmode
4516         break
4517       fi
4518     fi
4519   done
4520
4521   cd ..
4522   rm -rf conftest.dir
4523 else
4524   am_cv_CXX_dependencies_compiler_type=none
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4529 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4530 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4531
4532  if
4533   test "x$enable_dependency_tracking" != xno \
4534   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4535   am__fastdepCXX_TRUE=
4536   am__fastdepCXX_FALSE='#'
4537 else
4538   am__fastdepCXX_TRUE='#'
4539   am__fastdepCXX_FALSE=
4540 fi
4541
4542
4543
4544 for ac_prog in flex lex
4545 do
4546   # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_LEX+:} false; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   if test -n "$LEX"; then
4554   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_prog_LEX="$ac_prog"
4564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568   done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 LEX=$ac_cv_prog_LEX
4574 if test -n "$LEX"; then
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4576 $as_echo "$LEX" >&6; }
4577 else
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582
4583   test -n "$LEX" && break
4584 done
4585 test -n "$LEX" || LEX=":"
4586
4587 if test "x$LEX" != "x:"; then
4588   cat >conftest.l <<_ACEOF
4589 %%
4590 a { ECHO; }
4591 b { REJECT; }
4592 c { yymore (); }
4593 d { yyless (1); }
4594 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4595     yyless ((input () != 0)); }
4596 f { unput (yytext[0]); }
4597 . { BEGIN INITIAL; }
4598 %%
4599 #ifdef YYTEXT_POINTER
4600 extern char *yytext;
4601 #endif
4602 int
4603 main (void)
4604 {
4605   return ! yylex () + ! yywrap ();
4606 }
4607 _ACEOF
4608 { { ac_try="$LEX conftest.l"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615   (eval "$LEX conftest.l") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618   test $ac_status = 0; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4620 $as_echo_n "checking lex output file root... " >&6; }
4621 if ${ac_cv_prog_lex_root+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624
4625 if test -f lex.yy.c; then
4626   ac_cv_prog_lex_root=lex.yy
4627 elif test -f lexyy.c; then
4628   ac_cv_prog_lex_root=lexyy
4629 else
4630   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4631 fi
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4634 $as_echo "$ac_cv_prog_lex_root" >&6; }
4635 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4636
4637 if test -z "${LEXLIB+set}"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4639 $as_echo_n "checking lex library... " >&6; }
4640 if ${ac_cv_lib_lex+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643
4644     ac_save_LIBS=$LIBS
4645     ac_cv_lib_lex='none needed'
4646     for ac_lib in '' -lfl -ll; do
4647       LIBS="$ac_lib $ac_save_LIBS"
4648       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650 `cat $LEX_OUTPUT_ROOT.c`
4651 _ACEOF
4652 if ac_fn_c_try_link "$LINENO"; then :
4653   ac_cv_lib_lex=$ac_lib
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext \
4656     conftest$ac_exeext conftest.$ac_ext
4657       test "$ac_cv_lib_lex" != 'none needed' && break
4658     done
4659     LIBS=$ac_save_LIBS
4660
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4663 $as_echo "$ac_cv_lib_lex" >&6; }
4664   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4665 fi
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4669 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4670 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   # POSIX says lex can declare yytext either as a pointer or an array; the
4674 # default is implementation-dependent.  Figure out which it is, since
4675 # not all implementations provide the %pointer and %array declarations.
4676 ac_cv_prog_lex_yytext_pointer=no
4677 ac_save_LIBS=$LIBS
4678 LIBS="$LEXLIB $ac_save_LIBS"
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681
4682   #define YYTEXT_POINTER 1
4683 `cat $LEX_OUTPUT_ROOT.c`
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686   ac_cv_prog_lex_yytext_pointer=yes
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext \
4689     conftest$ac_exeext conftest.$ac_ext
4690 LIBS=$ac_save_LIBS
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4694 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4695 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4696
4697 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4698
4699 fi
4700 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4701
4702 fi
4703 if test "$LEX" = :; then
4704   LEX=${am_missing_run}flex
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4707 $as_echo_n "checking whether ln -s works... " >&6; }
4708 LN_S=$as_ln_s
4709 if test "$LN_S" = "ln -s"; then
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711 $as_echo "yes" >&6; }
4712 else
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4714 $as_echo "no, using $LN_S" >&6; }
4715 fi
4716
4717
4718
4719 case `pwd` in
4720   *\ * | *\     *)
4721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4722 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4723 esac
4724
4725
4726
4727 macro_version='2.4.2'
4728 macro_revision='1.3337'
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 ltmain="$ac_aux_dir/ltmain.sh"
4743
4744 # Backslashify metacharacters that are still active within
4745 # double-quoted strings.
4746 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4747
4748 # Same as above, but do not quote variable references.
4749 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4750
4751 # Sed substitution to delay expansion of an escaped shell variable in a
4752 # double_quote_subst'ed string.
4753 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4754
4755 # Sed substitution to delay expansion of an escaped single quote.
4756 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4757
4758 # Sed substitution to avoid accidental globbing in evaled expressions
4759 no_glob_subst='s/\*/\\\*/g'
4760
4761 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4762 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4763 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4766 $as_echo_n "checking how to print strings... " >&6; }
4767 # Test print first, because it will be a builtin if present.
4768 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4769    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4770   ECHO='print -r --'
4771 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4772   ECHO='printf %s\n'
4773 else
4774   # Use this function as a fallback that always works.
4775   func_fallback_echo ()
4776   {
4777     eval 'cat <<_LTECHO_EOF
4778 $1
4779 _LTECHO_EOF'
4780   }
4781   ECHO='func_fallback_echo'
4782 fi
4783
4784 # func_echo_all arg...
4785 # Invoke $ECHO with all args, space-separated.
4786 func_echo_all ()
4787 {
4788     $ECHO ""
4789 }
4790
4791 case "$ECHO" in
4792   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4793 $as_echo "printf" >&6; } ;;
4794   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4795 $as_echo "print -r" >&6; } ;;
4796   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4797 $as_echo "cat" >&6; } ;;
4798 esac
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815 if ${ac_cv_path_SED+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819      for ac_i in 1 2 3 4 5 6 7; do
4820        ac_script="$ac_script$as_nl$ac_script"
4821      done
4822      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823      { ac_script=; unset ac_script;}
4824      if test -z "$SED"; then
4825   ac_path_SED_found=false
4826   # Loop through the user's path and test for each of PROGNAME-LIST
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_prog in sed gsed; do
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835       as_fn_executable_p "$ac_path_SED" || continue
4836 # Check for GNU ac_path_SED and select it if it is found.
4837   # Check for GNU $ac_path_SED
4838 case `"$ac_path_SED" --version 2>&1` in
4839 *GNU*)
4840   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841 *)
4842   ac_count=0
4843   $as_echo_n 0123456789 >"conftest.in"
4844   while :
4845   do
4846     cat "conftest.in" "conftest.in" >"conftest.tmp"
4847     mv "conftest.tmp" "conftest.in"
4848     cp "conftest.in" "conftest.nl"
4849     $as_echo '' >> "conftest.nl"
4850     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852     as_fn_arith $ac_count + 1 && ac_count=$as_val
4853     if test $ac_count -gt ${ac_path_SED_max-0}; then
4854       # Best one so far, save it but keep looking for a better one
4855       ac_cv_path_SED="$ac_path_SED"
4856       ac_path_SED_max=$ac_count
4857     fi
4858     # 10*(2^10) chars as input seems more than enough
4859     test $ac_count -gt 10 && break
4860   done
4861   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864       $ac_path_SED_found && break 3
4865     done
4866   done
4867   done
4868 IFS=$as_save_IFS
4869   if test -z "$ac_cv_path_SED"; then
4870     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871   fi
4872 else
4873   ac_cv_path_SED=$SED
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878 $as_echo "$ac_cv_path_SED" >&6; }
4879  SED="$ac_cv_path_SED"
4880   rm -f conftest.sed
4881
4882 test -z "$SED" && SED=sed
4883 Xsed="$SED -e 1s/^X//"
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4897 if ${ac_cv_path_GREP+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -z "$GREP"; then
4901   ac_path_GREP_found=false
4902   # Loop through the user's path and test for each of PROGNAME-LIST
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_prog in grep ggrep; do
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4911       as_fn_executable_p "$ac_path_GREP" || continue
4912 # Check for GNU ac_path_GREP and select it if it is found.
4913   # Check for GNU $ac_path_GREP
4914 case `"$ac_path_GREP" --version 2>&1` in
4915 *GNU*)
4916   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4917 *)
4918   ac_count=0
4919   $as_echo_n 0123456789 >"conftest.in"
4920   while :
4921   do
4922     cat "conftest.in" "conftest.in" >"conftest.tmp"
4923     mv "conftest.tmp" "conftest.in"
4924     cp "conftest.in" "conftest.nl"
4925     $as_echo 'GREP' >> "conftest.nl"
4926     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928     as_fn_arith $ac_count + 1 && ac_count=$as_val
4929     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4930       # Best one so far, save it but keep looking for a better one
4931       ac_cv_path_GREP="$ac_path_GREP"
4932       ac_path_GREP_max=$ac_count
4933     fi
4934     # 10*(2^10) chars as input seems more than enough
4935     test $ac_count -gt 10 && break
4936   done
4937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 esac
4939
4940       $ac_path_GREP_found && break 3
4941     done
4942   done
4943   done
4944 IFS=$as_save_IFS
4945   if test -z "$ac_cv_path_GREP"; then
4946     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4947   fi
4948 else
4949   ac_cv_path_GREP=$GREP
4950 fi
4951
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4954 $as_echo "$ac_cv_path_GREP" >&6; }
4955  GREP="$ac_cv_path_GREP"
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4959 $as_echo_n "checking for egrep... " >&6; }
4960 if ${ac_cv_path_EGREP+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4964    then ac_cv_path_EGREP="$GREP -E"
4965    else
4966      if test -z "$EGREP"; then
4967   ac_path_EGREP_found=false
4968   # Loop through the user's path and test for each of PROGNAME-LIST
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_prog in egrep; do
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4977       as_fn_executable_p "$ac_path_EGREP" || continue
4978 # Check for GNU ac_path_EGREP and select it if it is found.
4979   # Check for GNU $ac_path_EGREP
4980 case `"$ac_path_EGREP" --version 2>&1` in
4981 *GNU*)
4982   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4983 *)
4984   ac_count=0
4985   $as_echo_n 0123456789 >"conftest.in"
4986   while :
4987   do
4988     cat "conftest.in" "conftest.in" >"conftest.tmp"
4989     mv "conftest.tmp" "conftest.in"
4990     cp "conftest.in" "conftest.nl"
4991     $as_echo 'EGREP' >> "conftest.nl"
4992     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994     as_fn_arith $ac_count + 1 && ac_count=$as_val
4995     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4996       # Best one so far, save it but keep looking for a better one
4997       ac_cv_path_EGREP="$ac_path_EGREP"
4998       ac_path_EGREP_max=$ac_count
4999     fi
5000     # 10*(2^10) chars as input seems more than enough
5001     test $ac_count -gt 10 && break
5002   done
5003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5004 esac
5005
5006       $ac_path_EGREP_found && break 3
5007     done
5008   done
5009   done
5010 IFS=$as_save_IFS
5011   if test -z "$ac_cv_path_EGREP"; then
5012     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5013   fi
5014 else
5015   ac_cv_path_EGREP=$EGREP
5016 fi
5017
5018    fi
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5021 $as_echo "$ac_cv_path_EGREP" >&6; }
5022  EGREP="$ac_cv_path_EGREP"
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5026 $as_echo_n "checking for fgrep... " >&6; }
5027 if ${ac_cv_path_FGREP+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5031    then ac_cv_path_FGREP="$GREP -F"
5032    else
5033      if test -z "$FGREP"; then
5034   ac_path_FGREP_found=false
5035   # Loop through the user's path and test for each of PROGNAME-LIST
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041     for ac_prog in fgrep; do
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5044       as_fn_executable_p "$ac_path_FGREP" || continue
5045 # Check for GNU ac_path_FGREP and select it if it is found.
5046   # Check for GNU $ac_path_FGREP
5047 case `"$ac_path_FGREP" --version 2>&1` in
5048 *GNU*)
5049   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5050 *)
5051   ac_count=0
5052   $as_echo_n 0123456789 >"conftest.in"
5053   while :
5054   do
5055     cat "conftest.in" "conftest.in" >"conftest.tmp"
5056     mv "conftest.tmp" "conftest.in"
5057     cp "conftest.in" "conftest.nl"
5058     $as_echo 'FGREP' >> "conftest.nl"
5059     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061     as_fn_arith $ac_count + 1 && ac_count=$as_val
5062     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5063       # Best one so far, save it but keep looking for a better one
5064       ac_cv_path_FGREP="$ac_path_FGREP"
5065       ac_path_FGREP_max=$ac_count
5066     fi
5067     # 10*(2^10) chars as input seems more than enough
5068     test $ac_count -gt 10 && break
5069   done
5070   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073       $ac_path_FGREP_found && break 3
5074     done
5075   done
5076   done
5077 IFS=$as_save_IFS
5078   if test -z "$ac_cv_path_FGREP"; then
5079     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080   fi
5081 else
5082   ac_cv_path_FGREP=$FGREP
5083 fi
5084
5085    fi
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5088 $as_echo "$ac_cv_path_FGREP" >&6; }
5089  FGREP="$ac_cv_path_FGREP"
5090
5091
5092 test -z "$GREP" && GREP=grep
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112 # Check whether --with-gnu-ld was given.
5113 if test "${with_gnu_ld+set}" = set; then :
5114   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5115 else
5116   with_gnu_ld=no
5117 fi
5118
5119 ac_prog=ld
5120 if test "$GCC" = yes; then
5121   # Check if gcc -print-prog-name=ld gives a path.
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5123 $as_echo_n "checking for ld used by $CC... " >&6; }
5124   case $host in
5125   *-*-mingw*)
5126     # gcc leaves a trailing carriage return which upsets mingw
5127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5128   *)
5129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5130   esac
5131   case $ac_prog in
5132     # Accept absolute paths.
5133     [\\/]* | ?:[\\/]*)
5134       re_direlt='/[^/][^/]*/\.\./'
5135       # Canonicalize the pathname of ld
5136       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5137       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5138         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5139       done
5140       test -z "$LD" && LD="$ac_prog"
5141       ;;
5142   "")
5143     # If it fails, then pretend we aren't using GCC.
5144     ac_prog=ld
5145     ;;
5146   *)
5147     # If it is relative, then search for the first ld in PATH.
5148     with_gnu_ld=unknown
5149     ;;
5150   esac
5151 elif test "$with_gnu_ld" = yes; then
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5153 $as_echo_n "checking for GNU ld... " >&6; }
5154 else
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5156 $as_echo_n "checking for non-GNU ld... " >&6; }
5157 fi
5158 if ${lt_cv_path_LD+:} false; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   if test -z "$LD"; then
5162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5163   for ac_dir in $PATH; do
5164     IFS="$lt_save_ifs"
5165     test -z "$ac_dir" && ac_dir=.
5166     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5167       lt_cv_path_LD="$ac_dir/$ac_prog"
5168       # Check to see if the program is GNU ld.  I'd rather use --version,
5169       # but apparently some variants of GNU ld only accept -v.
5170       # Break only if it was the GNU/non-GNU ld that we prefer.
5171       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5172       *GNU* | *'with BFD'*)
5173         test "$with_gnu_ld" != no && break
5174         ;;
5175       *)
5176         test "$with_gnu_ld" != yes && break
5177         ;;
5178       esac
5179     fi
5180   done
5181   IFS="$lt_save_ifs"
5182 else
5183   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5184 fi
5185 fi
5186
5187 LD="$lt_cv_path_LD"
5188 if test -n "$LD"; then
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5190 $as_echo "$LD" >&6; }
5191 else
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5197 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5198 if ${lt_cv_prog_gnu_ld+:} false; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5202 case `$LD -v 2>&1 </dev/null` in
5203 *GNU* | *'with BFD'*)
5204   lt_cv_prog_gnu_ld=yes
5205   ;;
5206 *)
5207   lt_cv_prog_gnu_ld=no
5208   ;;
5209 esac
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5212 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5213 with_gnu_ld=$lt_cv_prog_gnu_ld
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5224 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5225 if ${lt_cv_path_NM+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$NM"; then
5229   # Let the user override the test.
5230   lt_cv_path_NM="$NM"
5231 else
5232   lt_nm_to_check="${ac_tool_prefix}nm"
5233   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5234     lt_nm_to_check="$lt_nm_to_check nm"
5235   fi
5236   for lt_tmp_nm in $lt_nm_to_check; do
5237     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5238     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5239       IFS="$lt_save_ifs"
5240       test -z "$ac_dir" && ac_dir=.
5241       tmp_nm="$ac_dir/$lt_tmp_nm"
5242       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5243         # Check to see if the nm accepts a BSD-compat flag.
5244         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5245         #   nm: unknown option "B" ignored
5246         # Tru64's nm complains that /dev/null is an invalid object file
5247         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5248         */dev/null* | *'Invalid file or object type'*)
5249           lt_cv_path_NM="$tmp_nm -B"
5250           break
5251           ;;
5252         *)
5253           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5254           */dev/null*)
5255             lt_cv_path_NM="$tmp_nm -p"
5256             break
5257             ;;
5258           *)
5259             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5260             continue # so that we can try to find one that supports BSD flags
5261             ;;
5262           esac
5263           ;;
5264         esac
5265       fi
5266     done
5267     IFS="$lt_save_ifs"
5268   done
5269   : ${lt_cv_path_NM=no}
5270 fi
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5273 $as_echo "$lt_cv_path_NM" >&6; }
5274 if test "$lt_cv_path_NM" != "no"; then
5275   NM="$lt_cv_path_NM"
5276 else
5277   # Didn't find any BSD compatible name lister, look for dumpbin.
5278   if test -n "$DUMPBIN"; then :
5279     # Let the user override the test.
5280   else
5281     if test -n "$ac_tool_prefix"; then
5282   for ac_prog in dumpbin "link -dump"
5283   do
5284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_DUMPBIN+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   if test -n "$DUMPBIN"; then
5292   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308
5309 fi
5310 fi
5311 DUMPBIN=$ac_cv_prog_DUMPBIN
5312 if test -n "$DUMPBIN"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5314 $as_echo "$DUMPBIN" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321     test -n "$DUMPBIN" && break
5322   done
5323 fi
5324 if test -z "$DUMPBIN"; then
5325   ac_ct_DUMPBIN=$DUMPBIN
5326   for ac_prog in dumpbin "link -dump"
5327 do
5328   # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   if test -n "$ac_ct_DUMPBIN"; then
5336   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350   done
5351 IFS=$as_save_IFS
5352
5353 fi
5354 fi
5355 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5356 if test -n "$ac_ct_DUMPBIN"; then
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5358 $as_echo "$ac_ct_DUMPBIN" >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365   test -n "$ac_ct_DUMPBIN" && break
5366 done
5367
5368   if test "x$ac_ct_DUMPBIN" = x; then
5369     DUMPBIN=":"
5370   else
5371     case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377     DUMPBIN=$ac_ct_DUMPBIN
5378   fi
5379 fi
5380
5381     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5382     *COFF*)
5383       DUMPBIN="$DUMPBIN -symbols"
5384       ;;
5385     *)
5386       DUMPBIN=:
5387       ;;
5388     esac
5389   fi
5390
5391   if test "$DUMPBIN" != ":"; then
5392     NM="$DUMPBIN"
5393   fi
5394 fi
5395 test -z "$NM" && NM=nm
5396
5397
5398
5399
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5403 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5404 if ${lt_cv_nm_interface+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   lt_cv_nm_interface="BSD nm"
5408   echo "int some_variable = 0;" > conftest.$ac_ext
5409   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5410   (eval "$ac_compile" 2>conftest.err)
5411   cat conftest.err >&5
5412   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5413   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5414   cat conftest.err >&5
5415   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5416   cat conftest.out >&5
5417   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5418     lt_cv_nm_interface="MS dumpbin"
5419   fi
5420   rm -f conftest*
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5423 $as_echo "$lt_cv_nm_interface" >&6; }
5424
5425 # find the maximum length of command line arguments
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5427 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5428 if ${lt_cv_sys_max_cmd_len+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431     i=0
5432   teststring="ABCD"
5433
5434   case $build_os in
5435   msdosdjgpp*)
5436     # On DJGPP, this test can blow up pretty badly due to problems in libc
5437     # (any single argument exceeding 2000 bytes causes a buffer overrun
5438     # during glob expansion).  Even if it were fixed, the result of this
5439     # check would be larger than it should be.
5440     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5441     ;;
5442
5443   gnu*)
5444     # Under GNU Hurd, this test is not required because there is
5445     # no limit to the length of command line arguments.
5446     # Libtool will interpret -1 as no limit whatsoever
5447     lt_cv_sys_max_cmd_len=-1;
5448     ;;
5449
5450   cygwin* | mingw* | cegcc*)
5451     # On Win9x/ME, this test blows up -- it succeeds, but takes
5452     # about 5 minutes as the teststring grows exponentially.
5453     # Worse, since 9x/ME are not pre-emptively multitasking,
5454     # you end up with a "frozen" computer, even though with patience
5455     # the test eventually succeeds (with a max line length of 256k).
5456     # Instead, let's just punt: use the minimum linelength reported by
5457     # all of the supported platforms: 8192 (on NT/2K/XP).
5458     lt_cv_sys_max_cmd_len=8192;
5459     ;;
5460
5461   mint*)
5462     # On MiNT this can take a long time and run out of memory.
5463     lt_cv_sys_max_cmd_len=8192;
5464     ;;
5465
5466   amigaos*)
5467     # On AmigaOS with pdksh, this test takes hours, literally.
5468     # So we just punt and use a minimum line length of 8192.
5469     lt_cv_sys_max_cmd_len=8192;
5470     ;;
5471
5472   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5473     # This has been around since 386BSD, at least.  Likely further.
5474     if test -x /sbin/sysctl; then
5475       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5476     elif test -x /usr/sbin/sysctl; then
5477       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5478     else
5479       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5480     fi
5481     # And add a safety zone
5482     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484     ;;
5485
5486   interix*)
5487     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5488     lt_cv_sys_max_cmd_len=196608
5489     ;;
5490
5491   os2*)
5492     # The test takes a long time on OS/2.
5493     lt_cv_sys_max_cmd_len=8192
5494     ;;
5495
5496   osf*)
5497     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5498     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5499     # nice to cause kernel panics so lets avoid the loop below.
5500     # First set a reasonable default.
5501     lt_cv_sys_max_cmd_len=16384
5502     #
5503     if test -x /sbin/sysconfig; then
5504       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5505         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5506       esac
5507     fi
5508     ;;
5509   sco3.2v5*)
5510     lt_cv_sys_max_cmd_len=102400
5511     ;;
5512   sysv5* | sco5v6* | sysv4.2uw2*)
5513     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5514     if test -n "$kargmax"; then
5515       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5516     else
5517       lt_cv_sys_max_cmd_len=32768
5518     fi
5519     ;;
5520   *)
5521     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5522     if test -n "$lt_cv_sys_max_cmd_len"; then
5523       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5525     else
5526       # Make teststring a little bigger before we do anything with it.
5527       # a 1K string should be a reasonable start.
5528       for i in 1 2 3 4 5 6 7 8 ; do
5529         teststring=$teststring$teststring
5530       done
5531       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532       # If test is not a shell built-in, we'll probably end up computing a
5533       # maximum length that is only half of the actual maximum length, but
5534       # we can't tell.
5535       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5536                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5537               test $i != 17 # 1/2 MB should be enough
5538       do
5539         i=`expr $i + 1`
5540         teststring=$teststring$teststring
5541       done
5542       # Only check the string length outside the loop.
5543       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5544       teststring=
5545       # Add a significant safety factor because C++ compilers can tack on
5546       # massive amounts of additional arguments before passing them to the
5547       # linker.  It appears as though 1/2 is a usable value.
5548       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549     fi
5550     ;;
5551   esac
5552
5553 fi
5554
5555 if test -n $lt_cv_sys_max_cmd_len ; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5557 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5560 $as_echo "none" >&6; }
5561 fi
5562 max_cmd_len=$lt_cv_sys_max_cmd_len
5563
5564
5565
5566
5567
5568
5569 : ${CP="cp -f"}
5570 : ${MV="mv -f"}
5571 : ${RM="rm -f"}
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5574 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5575 # Try some XSI features
5576 xsi_shell=no
5577 ( _lt_dummy="a/b/c"
5578   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5579       = c,a/b,b/c, \
5580     && eval 'test $(( 1 + 1 )) -eq 2 \
5581     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5582   && xsi_shell=yes
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5584 $as_echo "$xsi_shell" >&6; }
5585
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5588 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5589 lt_shell_append=no
5590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5591     >/dev/null 2>&1 \
5592   && lt_shell_append=yes
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5594 $as_echo "$lt_shell_append" >&6; }
5595
5596
5597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5598   lt_unset=unset
5599 else
5600   lt_unset=false
5601 fi
5602
5603
5604
5605
5606
5607 # test EBCDIC or ASCII
5608 case `echo X|tr X '\101'` in
5609  A) # ASCII based system
5610     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5611   lt_SP2NL='tr \040 \012'
5612   lt_NL2SP='tr \015\012 \040\040'
5613   ;;
5614  *) # EBCDIC based system
5615   lt_SP2NL='tr \100 \n'
5616   lt_NL2SP='tr \r\n \100\100'
5617   ;;
5618 esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5630 if ${lt_cv_to_host_file_cmd+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   case $host in
5634   *-*-mingw* )
5635     case $build in
5636       *-*-mingw* ) # actually msys
5637         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5638         ;;
5639       *-*-cygwin* )
5640         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5641         ;;
5642       * ) # otherwise, assume *nix
5643         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5644         ;;
5645     esac
5646     ;;
5647   *-*-cygwin* )
5648     case $build in
5649       *-*-mingw* ) # actually msys
5650         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5651         ;;
5652       *-*-cygwin* )
5653         lt_cv_to_host_file_cmd=func_convert_file_noop
5654         ;;
5655       * ) # otherwise, assume *nix
5656         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5657         ;;
5658     esac
5659     ;;
5660   * ) # unhandled hosts (and "normal" native builds)
5661     lt_cv_to_host_file_cmd=func_convert_file_noop
5662     ;;
5663 esac
5664
5665 fi
5666
5667 to_host_file_cmd=$lt_cv_to_host_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5677 if ${lt_cv_to_tool_file_cmd+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   #assume ordinary cross tools, or native build.
5681 lt_cv_to_tool_file_cmd=func_convert_file_noop
5682 case $host in
5683   *-*-mingw* )
5684     case $build in
5685       *-*-mingw* ) # actually msys
5686         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5687         ;;
5688     esac
5689     ;;
5690 esac
5691
5692 fi
5693
5694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5704 if ${lt_cv_ld_reload_flag+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   lt_cv_ld_reload_flag='-r'
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5711 reload_flag=$lt_cv_ld_reload_flag
5712 case $reload_flag in
5713 "" | " "*) ;;
5714 *) reload_flag=" $reload_flag" ;;
5715 esac
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717 case $host_os in
5718   cygwin* | mingw* | pw32* | cegcc*)
5719     if test "$GCC" != yes; then
5720       reload_cmds=false
5721     fi
5722     ;;
5723   darwin*)
5724     if test "$GCC" = yes; then
5725       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5726     else
5727       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5728     fi
5729     ;;
5730 esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 if test -n "$ac_tool_prefix"; then
5741   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_OBJDUMP+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$OBJDUMP"; then
5749   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 OBJDUMP=$ac_cv_prog_OBJDUMP
5769 if test -n "$OBJDUMP"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5771 $as_echo "$OBJDUMP" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778 fi
5779 if test -z "$ac_cv_prog_OBJDUMP"; then
5780   ac_ct_OBJDUMP=$OBJDUMP
5781   # Extract the first word of "objdump", so it can be a program name with args.
5782 set dummy objdump; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   if test -n "$ac_ct_OBJDUMP"; then
5789   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796     for ac_exec_ext in '' $ac_executable_extensions; do
5797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803   done
5804 IFS=$as_save_IFS
5805
5806 fi
5807 fi
5808 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5809 if test -n "$ac_ct_OBJDUMP"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5811 $as_echo "$ac_ct_OBJDUMP" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817   if test "x$ac_ct_OBJDUMP" = x; then
5818     OBJDUMP="false"
5819   else
5820     case $cross_compiling:$ac_tool_warned in
5821 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5825 esac
5826     OBJDUMP=$ac_ct_OBJDUMP
5827   fi
5828 else
5829   OBJDUMP="$ac_cv_prog_OBJDUMP"
5830 fi
5831
5832 test -z "$OBJDUMP" && OBJDUMP=objdump
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844 if ${lt_cv_deplibs_check_method+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   lt_cv_file_magic_cmd='$MAGIC_CMD'
5848 lt_cv_file_magic_test_file=
5849 lt_cv_deplibs_check_method='unknown'
5850 # Need to set the preceding variable on all platforms that support
5851 # interlibrary dependencies.
5852 # 'none' -- dependencies not supported.
5853 # `unknown' -- same as none, but documents that we really don't know.
5854 # 'pass_all' -- all dependencies passed with no checks.
5855 # 'test_compile' -- check by making test program.
5856 # 'file_magic [[regex]]' -- check by looking for files in library path
5857 # which responds to the $file_magic_cmd with a given extended regex.
5858 # If you have `file' or equivalent on your system and you're not sure
5859 # whether `pass_all' will *always* work, you probably want this one.
5860
5861 case $host_os in
5862 aix[4-9]*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 beos*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 bsdi[45]*)
5871   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872   lt_cv_file_magic_cmd='/usr/bin/file -L'
5873   lt_cv_file_magic_test_file=/shlib/libc.so
5874   ;;
5875
5876 cygwin*)
5877   # func_win32_libid is a shell function defined in ltmain.sh
5878   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5879   lt_cv_file_magic_cmd='func_win32_libid'
5880   ;;
5881
5882 mingw* | pw32*)
5883   # Base MSYS/MinGW do not provide the 'file' command needed by
5884   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5885   # unless we find 'file', for example because we are cross-compiling.
5886   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5887   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5888     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889     lt_cv_file_magic_cmd='func_win32_libid'
5890   else
5891     # Keep this pattern in sync with the one in func_win32_libid.
5892     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5893     lt_cv_file_magic_cmd='$OBJDUMP -f'
5894   fi
5895   ;;
5896
5897 cegcc*)
5898   # use the weaker test based on 'objdump'. See mingw*.
5899   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5900   lt_cv_file_magic_cmd='$OBJDUMP -f'
5901   ;;
5902
5903 darwin* | rhapsody*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 freebsd* | dragonfly*)
5908   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5909     case $host_cpu in
5910     i*86 )
5911       # Not sure whether the presence of OpenBSD here was a mistake.
5912       # Let's accept both of them until this is cleared up.
5913       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5914       lt_cv_file_magic_cmd=/usr/bin/file
5915       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5916       ;;
5917     esac
5918   else
5919     lt_cv_deplibs_check_method=pass_all
5920   fi
5921   ;;
5922
5923 gnu*)
5924   lt_cv_deplibs_check_method=pass_all
5925   ;;
5926
5927 haiku*)
5928   lt_cv_deplibs_check_method=pass_all
5929   ;;
5930
5931 hpux10.20* | hpux11*)
5932   lt_cv_file_magic_cmd=/usr/bin/file
5933   case $host_cpu in
5934   ia64*)
5935     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5936     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5937     ;;
5938   hppa*64*)
5939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5940     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5941     ;;
5942   *)
5943     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5944     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5945     ;;
5946   esac
5947   ;;
5948
5949 interix[3-9]*)
5950   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5951   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5952   ;;
5953
5954 irix5* | irix6* | nonstopux*)
5955   case $LD in
5956   *-32|*"-32 ") libmagic=32-bit;;
5957   *-n32|*"-n32 ") libmagic=N32;;
5958   *-64|*"-64 ") libmagic=64-bit;;
5959   *) libmagic=never-match;;
5960   esac
5961   lt_cv_deplibs_check_method=pass_all
5962   ;;
5963
5964 # This must be glibc/ELF.
5965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5966   lt_cv_deplibs_check_method=pass_all
5967   ;;
5968
5969 netbsd*)
5970   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972   else
5973     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5974   fi
5975   ;;
5976
5977 newos6*)
5978   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5979   lt_cv_file_magic_cmd=/usr/bin/file
5980   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5981   ;;
5982
5983 *nto* | *qnx*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 openbsd*)
5988   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5990   else
5991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992   fi
5993   ;;
5994
5995 osf3* | osf4* | osf5*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 rdos*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 solaris*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 sysv4 | sysv4.3*)
6012   case $host_vendor in
6013   motorola)
6014     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]'
6015     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6016     ;;
6017   ncr)
6018     lt_cv_deplibs_check_method=pass_all
6019     ;;
6020   sequent)
6021     lt_cv_file_magic_cmd='/bin/file'
6022     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6023     ;;
6024   sni)
6025     lt_cv_file_magic_cmd='/bin/file'
6026     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6027     lt_cv_file_magic_test_file=/lib/libc.so
6028     ;;
6029   siemens)
6030     lt_cv_deplibs_check_method=pass_all
6031     ;;
6032   pc)
6033     lt_cv_deplibs_check_method=pass_all
6034     ;;
6035   esac
6036   ;;
6037
6038 tpf*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041 esac
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6045 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6046
6047 file_magic_glob=
6048 want_nocaseglob=no
6049 if test "$build" = "$host"; then
6050   case $host_os in
6051   mingw* | pw32*)
6052     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6053       want_nocaseglob=yes
6054     else
6055       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6056     fi
6057     ;;
6058   esac
6059 fi
6060
6061 file_magic_cmd=$lt_cv_file_magic_cmd
6062 deplibs_check_method=$lt_cv_deplibs_check_method
6063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 if test -n "$ac_tool_prefix"; then
6087   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_DLLTOOL+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$DLLTOOL"; then
6095   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 DLLTOOL=$ac_cv_prog_DLLTOOL
6115 if test -n "$DLLTOOL"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6117 $as_echo "$DLLTOOL" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$ac_cv_prog_DLLTOOL"; then
6126   ac_ct_DLLTOOL=$DLLTOOL
6127   # Extract the first word of "dlltool", so it can be a program name with args.
6128 set dummy dlltool; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$ac_ct_DLLTOOL"; then
6135   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_exec_ext in '' $ac_executable_extensions; do
6143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149   done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6155 if test -n "$ac_ct_DLLTOOL"; then
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6157 $as_echo "$ac_ct_DLLTOOL" >&6; }
6158 else
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163   if test "x$ac_ct_DLLTOOL" = x; then
6164     DLLTOOL="false"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172     DLLTOOL=$ac_ct_DLLTOOL
6173   fi
6174 else
6175   DLLTOOL="$ac_cv_prog_DLLTOOL"
6176 fi
6177
6178 test -z "$DLLTOOL" && DLLTOOL=dlltool
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6190 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6191 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   lt_cv_sharedlib_from_linklib_cmd='unknown'
6195
6196 case $host_os in
6197 cygwin* | mingw* | pw32* | cegcc*)
6198   # two different shell functions defined in ltmain.sh
6199   # decide which to use based on capabilities of $DLLTOOL
6200   case `$DLLTOOL --help 2>&1` in
6201   *--identify-strict*)
6202     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6203     ;;
6204   *)
6205     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6206     ;;
6207   esac
6208   ;;
6209 *)
6210   # fallback: assume linklib IS sharedlib
6211   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6212   ;;
6213 esac
6214
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6217 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6218 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6219 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6220
6221
6222
6223
6224
6225
6226
6227 if test -n "$ac_tool_prefix"; then
6228   for ac_prog in ar
6229   do
6230     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_AR+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$AR"; then
6238   ac_cv_prog_AR="$AR" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 AR=$ac_cv_prog_AR
6258 if test -n "$AR"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6260 $as_echo "$AR" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267     test -n "$AR" && break
6268   done
6269 fi
6270 if test -z "$AR"; then
6271   ac_ct_AR=$AR
6272   for ac_prog in ar
6273 do
6274   # Extract the first word of "$ac_prog", so it can be a program name with args.
6275 set dummy $ac_prog; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$ac_ct_AR"; then
6282   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291     ac_cv_prog_ac_ct_AR="$ac_prog"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302 if test -n "$ac_ct_AR"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6304 $as_echo "$ac_ct_AR" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311   test -n "$ac_ct_AR" && break
6312 done
6313
6314   if test "x$ac_ct_AR" = x; then
6315     AR="false"
6316   else
6317     case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323     AR=$ac_ct_AR
6324   fi
6325 fi
6326
6327 : ${AR=ar}
6328 : ${AR_FLAGS=cru}
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6341 $as_echo_n "checking for archiver @FILE support... " >&6; }
6342 if ${lt_cv_ar_at_file+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   lt_cv_ar_at_file=no
6346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348
6349 int
6350 main ()
6351 {
6352
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358   echo conftest.$ac_objext > conftest.lst
6359       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6360       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6361   (eval $lt_ar_try) 2>&5
6362   ac_status=$?
6363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364   test $ac_status = 0; }
6365       if test "$ac_status" -eq 0; then
6366         # Ensure the archiver fails upon bogus file names.
6367         rm -f conftest.$ac_objext libconftest.a
6368         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6369   (eval $lt_ar_try) 2>&5
6370   ac_status=$?
6371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372   test $ac_status = 0; }
6373         if test "$ac_status" -ne 0; then
6374           lt_cv_ar_at_file=@
6375         fi
6376       fi
6377       rm -f conftest.* libconftest.a
6378
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6384 $as_echo "$lt_cv_ar_at_file" >&6; }
6385
6386 if test "x$lt_cv_ar_at_file" = xno; then
6387   archiver_list_spec=
6388 else
6389   archiver_list_spec=$lt_cv_ar_at_file
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$STRIP"; then
6407   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 STRIP=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_STRIP"; then
6438   ac_ct_STRIP=$STRIP
6439   # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$ac_ct_STRIP"; then
6447   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_prog_ac_ct_STRIP="strip"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475   if test "x$ac_ct_STRIP" = x; then
6476     STRIP=":"
6477   else
6478     case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484     STRIP=$ac_ct_STRIP
6485   fi
6486 else
6487   STRIP="$ac_cv_prog_STRIP"
6488 fi
6489
6490 test -z "$STRIP" && STRIP=:
6491
6492
6493
6494
6495
6496
6497 if test -n "$ac_tool_prefix"; then
6498   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$RANLIB"; then
6506   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 RANLIB=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537   ac_ct_RANLIB=$RANLIB
6538   # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   if test -n "$ac_ct_RANLIB"; then
6546   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553     for ac_exec_ext in '' $ac_executable_extensions; do
6554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555     ac_cv_prog_ac_ct_RANLIB="ranlib"
6556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560   done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6569 else
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574   if test "x$ac_ct_RANLIB" = x; then
6575     RANLIB=":"
6576   else
6577     case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583     RANLIB=$ac_ct_RANLIB
6584   fi
6585 else
6586   RANLIB="$ac_cv_prog_RANLIB"
6587 fi
6588
6589 test -z "$RANLIB" && RANLIB=:
6590
6591
6592
6593
6594
6595
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds='chmod 644 $oldlib'
6599 old_postuninstall_cmds=
6600
6601 if test -n "$RANLIB"; then
6602   case $host_os in
6603   openbsd*)
6604     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6605     ;;
6606   *)
6607     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6608     ;;
6609   esac
6610   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6611 fi
6612
6613 case $host_os in
6614   darwin*)
6615     lock_old_archive_extraction=yes ;;
6616   *)
6617     lock_old_archive_extraction=no ;;
6618 esac
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 # If no C compiler was specified, use CC.
6659 LTCC=${LTCC-"$CC"}
6660
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
6664 # Allow CC to be a program name with arguments.
6665 compiler=$CC
6666
6667
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6677
6678 # Character class describing NM global symbol codes.
6679 symcode='[BCDEGRST]'
6680
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6683
6684 # Define system-specific variables.
6685 case $host_os in
6686 aix*)
6687   symcode='[BCDT]'
6688   ;;
6689 cygwin* | mingw* | pw32* | cegcc*)
6690   symcode='[ABCDGISTW]'
6691   ;;
6692 hpux*)
6693   if test "$host_cpu" = ia64; then
6694     symcode='[ABCDEGRST]'
6695   fi
6696   ;;
6697 irix* | nonstopux*)
6698   symcode='[BCDEGRST]'
6699   ;;
6700 osf*)
6701   symcode='[BCDEGQRST]'
6702   ;;
6703 solaris*)
6704   symcode='[BDRT]'
6705   ;;
6706 sco3.2v5*)
6707   symcode='[DT]'
6708   ;;
6709 sysv4.2uw2*)
6710   symcode='[DT]'
6711   ;;
6712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6713   symcode='[ABDT]'
6714   ;;
6715 sysv4)
6716   symcode='[DFNSTU]'
6717   ;;
6718 esac
6719
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU* | *'with BFD'*)
6723   symcode='[ABCDGIRSTW]' ;;
6724 esac
6725
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6733 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6734
6735 # Handle CRLF in mingw tool chain
6736 opt_cr=
6737 case $build_os in
6738 mingw*)
6739   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6740   ;;
6741 esac
6742
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx in "" "_"; do
6745
6746   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747   symxfrm="\\1 $ac_symprfx\\2 \\2"
6748
6749   # Write the raw and C identifiers.
6750   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751     # Fake it for dumpbin and say T for any non-static function
6752     # and D for any global variable.
6753     # Also find C++ and __fastcall symbols from MSVC++,
6754     # which start with @ or ?.
6755     lt_cv_sys_global_symbol_pipe="$AWK '"\
6756 "     {last_section=section; section=\$ 3};"\
6757 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6758 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759 "     \$ 0!~/External *\|/{next};"\
6760 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761 "     {if(hide[section]) next};"\
6762 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766 "     ' prfx=^$ac_symprfx"
6767   else
6768     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6769   fi
6770   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6771
6772   # Check to see that the pipe works correctly.
6773   pipe_works=no
6774
6775   rm -f conftest*
6776   cat > conftest.$ac_ext <<_LT_EOF
6777 #ifdef __cplusplus
6778 extern "C" {
6779 #endif
6780 char nm_test_var;
6781 void nm_test_func(void);
6782 void nm_test_func(void){}
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786 int main(){nm_test_var='a';nm_test_func();return(0);}
6787 _LT_EOF
6788
6789   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790   (eval $ac_compile) 2>&5
6791   ac_status=$?
6792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793   test $ac_status = 0; }; then
6794     # Now try to grab the symbols.
6795     nlist=conftest.nm
6796     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6797   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6798   ac_status=$?
6799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800   test $ac_status = 0; } && test -s "$nlist"; then
6801       # Try sorting and uniquifying the output.
6802       if sort "$nlist" | uniq > "$nlist"T; then
6803         mv -f "$nlist"T "$nlist"
6804       else
6805         rm -f "$nlist"T
6806       fi
6807
6808       # Make sure that we snagged all the symbols we need.
6809       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6810         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6811           cat <<_LT_EOF > conftest.$ac_ext
6812 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6813 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6814 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6815    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6816 # define LT_DLSYM_CONST
6817 #elif defined(__osf__)
6818 /* This system does not cope well with relocations in const data.  */
6819 # define LT_DLSYM_CONST
6820 #else
6821 # define LT_DLSYM_CONST const
6822 #endif
6823
6824 #ifdef __cplusplus
6825 extern "C" {
6826 #endif
6827
6828 _LT_EOF
6829           # Now generate the symbol file.
6830           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6831
6832           cat <<_LT_EOF >> conftest.$ac_ext
6833
6834 /* The mapping between symbol names and symbols.  */
6835 LT_DLSYM_CONST struct {
6836   const char *name;
6837   void       *address;
6838 }
6839 lt__PROGRAM__LTX_preloaded_symbols[] =
6840 {
6841   { "@PROGRAM@", (void *) 0 },
6842 _LT_EOF
6843           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6844           cat <<\_LT_EOF >> conftest.$ac_ext
6845   {0, (void *) 0}
6846 };
6847
6848 /* This works around a problem in FreeBSD linker */
6849 #ifdef FREEBSD_WORKAROUND
6850 static const void *lt_preloaded_setup() {
6851   return lt__PROGRAM__LTX_preloaded_symbols;
6852 }
6853 #endif
6854
6855 #ifdef __cplusplus
6856 }
6857 #endif
6858 _LT_EOF
6859           # Now try linking the two files.
6860           mv conftest.$ac_objext conftstm.$ac_objext
6861           lt_globsym_save_LIBS=$LIBS
6862           lt_globsym_save_CFLAGS=$CFLAGS
6863           LIBS="conftstm.$ac_objext"
6864           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6865           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6866   (eval $ac_link) 2>&5
6867   ac_status=$?
6868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6870             pipe_works=yes
6871           fi
6872           LIBS=$lt_globsym_save_LIBS
6873           CFLAGS=$lt_globsym_save_CFLAGS
6874         else
6875           echo "cannot find nm_test_func in $nlist" >&5
6876         fi
6877       else
6878         echo "cannot find nm_test_var in $nlist" >&5
6879       fi
6880     else
6881       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6882     fi
6883   else
6884     echo "$progname: failed program was:" >&5
6885     cat conftest.$ac_ext >&5
6886   fi
6887   rm -rf conftest* conftst*
6888
6889   # Do not use the global_symbol_pipe unless it works.
6890   if test "$pipe_works" = yes; then
6891     break
6892   else
6893     lt_cv_sys_global_symbol_pipe=
6894   fi
6895 done
6896
6897 fi
6898
6899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6900   lt_cv_sys_global_symbol_to_cdecl=
6901 fi
6902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6904 $as_echo "failed" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6907 $as_echo "ok" >&6; }
6908 fi
6909
6910 # Response file support.
6911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6912   nm_file_list_spec='@'
6913 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6914   nm_file_list_spec='@'
6915 fi
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6944 $as_echo_n "checking for sysroot... " >&6; }
6945
6946 # Check whether --with-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then :
6948   withval=$with_sysroot;
6949 else
6950   with_sysroot=no
6951 fi
6952
6953
6954 lt_sysroot=
6955 case ${with_sysroot} in #(
6956  yes)
6957    if test "$GCC" = yes; then
6958      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6959    fi
6960    ;; #(
6961  /*)
6962    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6963    ;; #(
6964  no|'')
6965    ;; #(
6966  *)
6967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6968 $as_echo "${with_sysroot}" >&6; }
6969    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6970    ;;
6971 esac
6972
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6974 $as_echo "${lt_sysroot:-no}" >&6; }
6975
6976
6977
6978
6979
6980 # Check whether --enable-libtool-lock was given.
6981 if test "${enable_libtool_lock+set}" = set; then :
6982   enableval=$enable_libtool_lock;
6983 fi
6984
6985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6986
6987 # Some flags need to be propagated to the compiler or linker for good
6988 # libtool support.
6989 case $host in
6990 ia64-*-hpux*)
6991   # Find out which ABI we are using.
6992   echo 'int i;' > conftest.$ac_ext
6993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994   (eval $ac_compile) 2>&5
6995   ac_status=$?
6996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997   test $ac_status = 0; }; then
6998     case `/usr/bin/file conftest.$ac_objext` in
6999       *ELF-32*)
7000         HPUX_IA64_MODE="32"
7001         ;;
7002       *ELF-64*)
7003         HPUX_IA64_MODE="64"
7004         ;;
7005     esac
7006   fi
7007   rm -rf conftest*
7008   ;;
7009 *-*-irix6*)
7010   # Find out which ABI we are using.
7011   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013   (eval $ac_compile) 2>&5
7014   ac_status=$?
7015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016   test $ac_status = 0; }; then
7017     if test "$lt_cv_prog_gnu_ld" = yes; then
7018       case `/usr/bin/file conftest.$ac_objext` in
7019         *32-bit*)
7020           LD="${LD-ld} -melf32bsmip"
7021           ;;
7022         *N32*)
7023           LD="${LD-ld} -melf32bmipn32"
7024           ;;
7025         *64-bit*)
7026           LD="${LD-ld} -melf64bmip"
7027         ;;
7028       esac
7029     else
7030       case `/usr/bin/file conftest.$ac_objext` in
7031         *32-bit*)
7032           LD="${LD-ld} -32"
7033           ;;
7034         *N32*)
7035           LD="${LD-ld} -n32"
7036           ;;
7037         *64-bit*)
7038           LD="${LD-ld} -64"
7039           ;;
7040       esac
7041     fi
7042   fi
7043   rm -rf conftest*
7044   ;;
7045
7046 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7047 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7048   # Find out which ABI we are using.
7049   echo 'int i;' > conftest.$ac_ext
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     case `/usr/bin/file conftest.o` in
7056       *32-bit*)
7057         case $host in
7058           x86_64-*kfreebsd*-gnu)
7059             LD="${LD-ld} -m elf_i386_fbsd"
7060             ;;
7061           x86_64-*linux*)
7062             LD="${LD-ld} -m elf_i386"
7063             ;;
7064           ppc64-*linux*|powerpc64-*linux*)
7065             LD="${LD-ld} -m elf32ppclinux"
7066             ;;
7067           s390x-*linux*)
7068             LD="${LD-ld} -m elf_s390"
7069             ;;
7070           sparc64-*linux*)
7071             LD="${LD-ld} -m elf32_sparc"
7072             ;;
7073         esac
7074         ;;
7075       *64-bit*)
7076         case $host in
7077           x86_64-*kfreebsd*-gnu)
7078             LD="${LD-ld} -m elf_x86_64_fbsd"
7079             ;;
7080           x86_64-*linux*)
7081             LD="${LD-ld} -m elf_x86_64"
7082             ;;
7083           ppc*-*linux*|powerpc*-*linux*)
7084             LD="${LD-ld} -m elf64ppc"
7085             ;;
7086           s390*-*linux*|s390*-*tpf*)
7087             LD="${LD-ld} -m elf64_s390"
7088             ;;
7089           sparc*-*linux*)
7090             LD="${LD-ld} -m elf64_sparc"
7091             ;;
7092         esac
7093         ;;
7094     esac
7095   fi
7096   rm -rf conftest*
7097   ;;
7098
7099 *-*-sco3.2v5*)
7100   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7101   SAVE_CFLAGS="$CFLAGS"
7102   CFLAGS="$CFLAGS -belf"
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7104 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7105 if ${lt_cv_cc_needs_belf+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116
7117 int
7118 main ()
7119 {
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_link "$LINENO"; then :
7126   lt_cv_cc_needs_belf=yes
7127 else
7128   lt_cv_cc_needs_belf=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext \
7131     conftest$ac_exeext conftest.$ac_ext
7132      ac_ext=c
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7140 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7141   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7142     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7143     CFLAGS="$SAVE_CFLAGS"
7144   fi
7145   ;;
7146 *-*solaris*)
7147   # Find out which ABI we are using.
7148   echo 'int i;' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     case `/usr/bin/file conftest.o` in
7155     *64-bit*)
7156       case $lt_cv_prog_gnu_ld in
7157       yes*)
7158         case $host in
7159         i?86-*-solaris*)
7160           LD="${LD-ld} -m elf_x86_64"
7161           ;;
7162         sparc*-*-solaris*)
7163           LD="${LD-ld} -m elf64_sparc"
7164           ;;
7165         esac
7166         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7167         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7168           LD="${LD-ld}_sol2"
7169         fi
7170         ;;
7171       *)
7172         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7173           LD="${LD-ld} -64"
7174         fi
7175         ;;
7176       esac
7177       ;;
7178     esac
7179   fi
7180   rm -rf conftest*
7181   ;;
7182 esac
7183
7184 need_locks="$enable_libtool_lock"
7185
7186 if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}mt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$MANIFEST_TOOL"; then
7195   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7215 if test -n "$MANIFEST_TOOL"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7217 $as_echo "$MANIFEST_TOOL" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7226   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7227   # Extract the first word of "mt", so it can be a program name with args.
7228 set dummy mt; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_MANIFEST_TOOL"; then
7235   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7255 if test -n "$ac_ct_MANIFEST_TOOL"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7257 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7264     MANIFEST_TOOL=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7273   fi
7274 else
7275   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7276 fi
7277
7278 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7280 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7281 if ${lt_cv_path_mainfest_tool+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   lt_cv_path_mainfest_tool=no
7285   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7286   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7287   cat conftest.err >&5
7288   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7289     lt_cv_path_mainfest_tool=yes
7290   fi
7291   rm -f conftest*
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7294 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7295 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7296   MANIFEST_TOOL=:
7297 fi
7298
7299
7300
7301
7302
7303
7304   case $host_os in
7305     rhapsody* | darwin*)
7306     if test -n "$ac_tool_prefix"; then
7307   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$DSYMUTIL"; then
7315   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7335 if test -n "$DSYMUTIL"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7337 $as_echo "$DSYMUTIL" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343
7344 fi
7345 if test -z "$ac_cv_prog_DSYMUTIL"; then
7346   ac_ct_DSYMUTIL=$DSYMUTIL
7347   # Extract the first word of "dsymutil", so it can be a program name with args.
7348 set dummy dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$ac_ct_DSYMUTIL"; then
7355   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7377 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383   if test "x$ac_ct_DSYMUTIL" = x; then
7384     DSYMUTIL=":"
7385   else
7386     case $cross_compiling:$ac_tool_warned in
7387 yes:)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7391 esac
7392     DSYMUTIL=$ac_ct_DSYMUTIL
7393   fi
7394 else
7395   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7396 fi
7397
7398     if test -n "$ac_tool_prefix"; then
7399   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_NMEDIT+:} false; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   if test -n "$NMEDIT"; then
7407   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 NMEDIT=$ac_cv_prog_NMEDIT
7427 if test -n "$NMEDIT"; then
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7429 $as_echo "$NMEDIT" >&6; }
7430 else
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435
7436 fi
7437 if test -z "$ac_cv_prog_NMEDIT"; then
7438   ac_ct_NMEDIT=$NMEDIT
7439   # Extract the first word of "nmedit", so it can be a program name with args.
7440 set dummy nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$ac_ct_NMEDIT"; then
7447   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7467 if test -n "$ac_ct_NMEDIT"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7469 $as_echo "$ac_ct_NMEDIT" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475   if test "x$ac_ct_NMEDIT" = x; then
7476     NMEDIT=":"
7477   else
7478     case $cross_compiling:$ac_tool_warned in
7479 yes:)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484     NMEDIT=$ac_ct_NMEDIT
7485   fi
7486 else
7487   NMEDIT="$ac_cv_prog_NMEDIT"
7488 fi
7489
7490     if test -n "$ac_tool_prefix"; then
7491   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_LIPO+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   if test -n "$LIPO"; then
7499   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 LIPO=$ac_cv_prog_LIPO
7519 if test -n "$LIPO"; then
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7521 $as_echo "$LIPO" >&6; }
7522 else
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528 fi
7529 if test -z "$ac_cv_prog_LIPO"; then
7530   ac_ct_LIPO=$LIPO
7531   # Extract the first word of "lipo", so it can be a program name with args.
7532 set dummy lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   if test -n "$ac_ct_LIPO"; then
7539   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548     ac_cv_prog_ac_ct_LIPO="lipo"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7559 if test -n "$ac_ct_LIPO"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7561 $as_echo "$ac_ct_LIPO" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567   if test "x$ac_ct_LIPO" = x; then
7568     LIPO=":"
7569   else
7570     case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576     LIPO=$ac_ct_LIPO
7577   fi
7578 else
7579   LIPO="$ac_cv_prog_LIPO"
7580 fi
7581
7582     if test -n "$ac_tool_prefix"; then
7583   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}otool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_OTOOL+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$OTOOL"; then
7591   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 OTOOL=$ac_cv_prog_OTOOL
7611 if test -n "$OTOOL"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7613 $as_echo "$OTOOL" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620 fi
7621 if test -z "$ac_cv_prog_OTOOL"; then
7622   ac_ct_OTOOL=$OTOOL
7623   # Extract the first word of "otool", so it can be a program name with args.
7624 set dummy otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$ac_ct_OTOOL"; then
7631   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640     ac_cv_prog_ac_ct_OTOOL="otool"
7641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7651 if test -n "$ac_ct_OTOOL"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7653 $as_echo "$ac_ct_OTOOL" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659   if test "x$ac_ct_OTOOL" = x; then
7660     OTOOL=":"
7661   else
7662     case $cross_compiling:$ac_tool_warned in
7663 yes:)
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7667 esac
7668     OTOOL=$ac_ct_OTOOL
7669   fi
7670 else
7671   OTOOL="$ac_cv_prog_OTOOL"
7672 fi
7673
7674     if test -n "$ac_tool_prefix"; then
7675   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_OTOOL64+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$OTOOL64"; then
7683   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 OTOOL64=$ac_cv_prog_OTOOL64
7703 if test -n "$OTOOL64"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7705 $as_echo "$OTOOL64" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 fi
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714   ac_ct_OTOOL64=$OTOOL64
7715   # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$ac_ct_OTOOL64"; then
7723   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_ac_ct_OTOOL64="otool64"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7745 $as_echo "$ac_ct_OTOOL64" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751   if test "x$ac_ct_OTOOL64" = x; then
7752     OTOOL64=":"
7753   else
7754     case $cross_compiling:$ac_tool_warned in
7755 yes:)
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7759 esac
7760     OTOOL64=$ac_ct_OTOOL64
7761   fi
7762 else
7763   OTOOL64="$ac_cv_prog_OTOOL64"
7764 fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7793 $as_echo_n "checking for -single_module linker flag... " >&6; }
7794 if ${lt_cv_apple_cc_single_mod+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   lt_cv_apple_cc_single_mod=no
7798       if test -z "${LT_MULTI_MODULE}"; then
7799         # By default we will add the -single_module flag. You can override
7800         # by either setting the environment variable LT_MULTI_MODULE
7801         # non-empty at configure time, or by adding -multi_module to the
7802         # link flags.
7803         rm -rf libconftest.dylib*
7804         echo "int foo(void){return 1;}" > conftest.c
7805         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7806 -dynamiclib -Wl,-single_module conftest.c" >&5
7807         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7809         _lt_result=$?
7810         # If there is a non-empty error log, and "single_module"
7811         # appears in it, assume the flag caused a linker warning
7812         if test -s conftest.err && $GREP single_module conftest.err; then
7813           cat conftest.err >&5
7814         # Otherwise, if the output was created with a 0 exit code from
7815         # the compiler, it worked.
7816         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7817           lt_cv_apple_cc_single_mod=yes
7818         else
7819           cat conftest.err >&5
7820         fi
7821         rm -rf libconftest.dylib*
7822         rm -f conftest.*
7823       fi
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7827
7828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7829 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7830 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   lt_cv_ld_exported_symbols_list=no
7834       save_LDFLAGS=$LDFLAGS
7835       echo "_main" > conftest.sym
7836       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849   lt_cv_ld_exported_symbols_list=yes
7850 else
7851   lt_cv_ld_exported_symbols_list=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext \
7854     conftest$ac_exeext conftest.$ac_ext
7855         LDFLAGS="$save_LDFLAGS"
7856
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7860
7861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7862 $as_echo_n "checking for -force_load linker flag... " >&6; }
7863 if ${lt_cv_ld_force_load+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   lt_cv_ld_force_load=no
7867       cat > conftest.c << _LT_EOF
7868 int forced_loaded() { return 2;}
7869 _LT_EOF
7870       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7871       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7872       echo "$AR cru libconftest.a conftest.o" >&5
7873       $AR cru libconftest.a conftest.o 2>&5
7874       echo "$RANLIB libconftest.a" >&5
7875       $RANLIB libconftest.a 2>&5
7876       cat > conftest.c << _LT_EOF
7877 int main() { return 0;}
7878 _LT_EOF
7879       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7880       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7881       _lt_result=$?
7882       if test -s conftest.err && $GREP force_load conftest.err; then
7883         cat conftest.err >&5
7884       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7885         lt_cv_ld_force_load=yes
7886       else
7887         cat conftest.err >&5
7888       fi
7889         rm -f conftest.err libconftest.a conftest conftest.c
7890         rm -rf conftest.dSYM
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7894 $as_echo "$lt_cv_ld_force_load" >&6; }
7895     case $host_os in
7896     rhapsody* | darwin1.[012])
7897       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7898     darwin1.*)
7899       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7900     darwin*) # darwin 5.x on
7901       # if running on 10.5 or later, the deployment target defaults
7902       # to the OS version, if on x86, and 10.4, the deployment
7903       # target defaults to 10.4. Don't you love it?
7904       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7905         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7906           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907         10.[012]*)
7908           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7909         10.*)
7910           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911       esac
7912     ;;
7913   esac
7914     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7915       _lt_dar_single_mod='$single_module'
7916     fi
7917     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7918       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7919     else
7920       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7921     fi
7922     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7923       _lt_dsymutil='~$DSYMUTIL $lib || :'
7924     else
7925       _lt_dsymutil=
7926     fi
7927     ;;
7928   esac
7929
7930 ac_ext=c
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7937 # On Suns, sometimes $CPP names a directory.
7938 if test -n "$CPP" && test -d "$CPP"; then
7939   CPP=
7940 fi
7941 if test -z "$CPP"; then
7942   if ${ac_cv_prog_CPP+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945       # Double quotes because CPP needs to be expanded
7946     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7947     do
7948       ac_preproc_ok=false
7949 for ac_c_preproc_warn_flag in '' yes
7950 do
7951   # Use a header file that comes with gcc, so configuring glibc
7952   # with a fresh cross-compiler works.
7953   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954   # <limits.h> exists even on freestanding compilers.
7955   # On the NeXT, cc -E runs the code through the compiler's parser,
7956   # not just through cpp. "Syntax error" is here to catch this case.
7957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h.  */
7959 #ifdef __STDC__
7960 # include <limits.h>
7961 #else
7962 # include <assert.h>
7963 #endif
7964                      Syntax error
7965 _ACEOF
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7967
7968 else
7969   # Broken: fails on valid input.
7970 continue
7971 fi
7972 rm -f conftest.err conftest.i conftest.$ac_ext
7973
7974   # OK, works on sane cases.  Now check whether nonexistent headers
7975   # can be detected and how.
7976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h.  */
7978 #include <ac_nonexistent.h>
7979 _ACEOF
7980 if ac_fn_c_try_cpp "$LINENO"; then :
7981   # Broken: success on invalid input.
7982 continue
7983 else
7984   # Passes both tests.
7985 ac_preproc_ok=:
7986 break
7987 fi
7988 rm -f conftest.err conftest.i conftest.$ac_ext
7989
7990 done
7991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7992 rm -f conftest.i conftest.err conftest.$ac_ext
7993 if $ac_preproc_ok; then :
7994   break
7995 fi
7996
7997     done
7998     ac_cv_prog_CPP=$CPP
7999
8000 fi
8001   CPP=$ac_cv_prog_CPP
8002 else
8003   ac_cv_prog_CPP=$CPP
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8006 $as_echo "$CPP" >&6; }
8007 ac_preproc_ok=false
8008 for ac_c_preproc_warn_flag in '' yes
8009 do
8010   # Use a header file that comes with gcc, so configuring glibc
8011   # with a fresh cross-compiler works.
8012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8013   # <limits.h> exists even on freestanding compilers.
8014   # On the NeXT, cc -E runs the code through the compiler's parser,
8015   # not just through cpp. "Syntax error" is here to catch this case.
8016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h.  */
8018 #ifdef __STDC__
8019 # include <limits.h>
8020 #else
8021 # include <assert.h>
8022 #endif
8023                      Syntax error
8024 _ACEOF
8025 if ac_fn_c_try_cpp "$LINENO"; then :
8026
8027 else
8028   # Broken: fails on valid input.
8029 continue
8030 fi
8031 rm -f conftest.err conftest.i conftest.$ac_ext
8032
8033   # OK, works on sane cases.  Now check whether nonexistent headers
8034   # can be detected and how.
8035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h.  */
8037 #include <ac_nonexistent.h>
8038 _ACEOF
8039 if ac_fn_c_try_cpp "$LINENO"; then :
8040   # Broken: success on invalid input.
8041 continue
8042 else
8043   # Passes both tests.
8044 ac_preproc_ok=:
8045 break
8046 fi
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8048
8049 done
8050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8051 rm -f conftest.i conftest.err conftest.$ac_ext
8052 if $ac_preproc_ok; then :
8053
8054 else
8055   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8057 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8058 See \`config.log' for more details" "$LINENO" 5; }
8059 fi
8060
8061 ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8069 $as_echo_n "checking for ANSI C header files... " >&6; }
8070 if ${ac_cv_header_stdc+:} false; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075 #include <stdlib.h>
8076 #include <stdarg.h>
8077 #include <string.h>
8078 #include <float.h>
8079
8080 int
8081 main ()
8082 {
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089   ac_cv_header_stdc=yes
8090 else
8091   ac_cv_header_stdc=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094
8095 if test $ac_cv_header_stdc = yes; then
8096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099 #include <string.h>
8100
8101 _ACEOF
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103   $EGREP "memchr" >/dev/null 2>&1; then :
8104
8105 else
8106   ac_cv_header_stdc=no
8107 fi
8108 rm -f conftest*
8109
8110 fi
8111
8112 if test $ac_cv_header_stdc = yes; then
8113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h.  */
8116 #include <stdlib.h>
8117
8118 _ACEOF
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120   $EGREP "free" >/dev/null 2>&1; then :
8121
8122 else
8123   ac_cv_header_stdc=no
8124 fi
8125 rm -f conftest*
8126
8127 fi
8128
8129 if test $ac_cv_header_stdc = yes; then
8130   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8131   if test "$cross_compiling" = yes; then :
8132   :
8133 else
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136 #include <ctype.h>
8137 #include <stdlib.h>
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 #else
8142 # define ISLOWER(c) \
8143                    (('a' <= (c) && (c) <= 'i') \
8144                      || ('j' <= (c) && (c) <= 'r') \
8145                      || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #endif
8148
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 int
8151 main ()
8152 {
8153   int i;
8154   for (i = 0; i < 256; i++)
8155     if (XOR (islower (i), ISLOWER (i))
8156         || toupper (i) != TOUPPER (i))
8157       return 2;
8158   return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_run "$LINENO"; then :
8162
8163 else
8164   ac_cv_header_stdc=no
8165 fi
8166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8167   conftest.$ac_objext conftest.beam conftest.$ac_ext
8168 fi
8169
8170 fi
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8173 $as_echo "$ac_cv_header_stdc" >&6; }
8174 if test $ac_cv_header_stdc = yes; then
8175
8176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8177
8178 fi
8179
8180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8182                   inttypes.h stdint.h unistd.h
8183 do :
8184   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8186 "
8187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8188   cat >>confdefs.h <<_ACEOF
8189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197 for ac_header in dlfcn.h
8198 do :
8199   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8200 "
8201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8202   cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DLFCN_H 1
8204 _ACEOF
8205
8206 fi
8207
8208 done
8209
8210
8211
8212
8213 func_stripname_cnf ()
8214 {
8215   case ${2} in
8216   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8217   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8218   esac
8219 } # func_stripname_cnf
8220
8221
8222
8223
8224
8225 # Set options
8226
8227
8228
8229         enable_dlopen=no
8230
8231
8232   enable_win32_dll=no
8233
8234
8235             # Check whether --enable-shared was given.
8236 if test "${enable_shared+set}" = set; then :
8237   enableval=$enable_shared; p=${PACKAGE-default}
8238     case $enableval in
8239     yes) enable_shared=yes ;;
8240     no) enable_shared=no ;;
8241     *)
8242       enable_shared=no
8243       # Look at the argument we got.  We use all the common list separators.
8244       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245       for pkg in $enableval; do
8246         IFS="$lt_save_ifs"
8247         if test "X$pkg" = "X$p"; then
8248           enable_shared=yes
8249         fi
8250       done
8251       IFS="$lt_save_ifs"
8252       ;;
8253     esac
8254 else
8255   enable_shared=yes
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266   # Check whether --enable-static was given.
8267 if test "${enable_static+set}" = set; then :
8268   enableval=$enable_static; p=${PACKAGE-default}
8269     case $enableval in
8270     yes) enable_static=yes ;;
8271     no) enable_static=no ;;
8272     *)
8273      enable_static=no
8274       # Look at the argument we got.  We use all the common list separators.
8275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276       for pkg in $enableval; do
8277         IFS="$lt_save_ifs"
8278         if test "X$pkg" = "X$p"; then
8279           enable_static=yes
8280         fi
8281       done
8282       IFS="$lt_save_ifs"
8283       ;;
8284     esac
8285 else
8286   enable_static=yes
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 # Check whether --with-pic was given.
8299 if test "${with_pic+set}" = set; then :
8300   withval=$with_pic; lt_p=${PACKAGE-default}
8301     case $withval in
8302     yes|no) pic_mode=$withval ;;
8303     *)
8304       pic_mode=default
8305       # Look at the argument we got.  We use all the common list separators.
8306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307       for lt_pkg in $withval; do
8308         IFS="$lt_save_ifs"
8309         if test "X$lt_pkg" = "X$lt_p"; then
8310           pic_mode=yes
8311         fi
8312       done
8313       IFS="$lt_save_ifs"
8314       ;;
8315     esac
8316 else
8317   pic_mode=default
8318 fi
8319
8320
8321 test -z "$pic_mode" && pic_mode=default
8322
8323
8324
8325
8326
8327
8328
8329   # Check whether --enable-fast-install was given.
8330 if test "${enable_fast_install+set}" = set; then :
8331   enableval=$enable_fast_install; p=${PACKAGE-default}
8332     case $enableval in
8333     yes) enable_fast_install=yes ;;
8334     no) enable_fast_install=no ;;
8335     *)
8336       enable_fast_install=no
8337       # Look at the argument we got.  We use all the common list separators.
8338       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8339       for pkg in $enableval; do
8340         IFS="$lt_save_ifs"
8341         if test "X$pkg" = "X$p"; then
8342           enable_fast_install=yes
8343         fi
8344       done
8345       IFS="$lt_save_ifs"
8346       ;;
8347     esac
8348 else
8349   enable_fast_install=yes
8350 fi
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362 # This can be used to rebuild libtool when needed
8363 LIBTOOL_DEPS="$ltmain"
8364
8365 # Always use our own libtool.
8366 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 test -z "$LN_S" && LN_S="ln -s"
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 if test -n "${ZSH_VERSION+set}" ; then
8413    setopt NO_GLOB_SUBST
8414 fi
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8417 $as_echo_n "checking for objdir... " >&6; }
8418 if ${lt_cv_objdir+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   rm -f .libs 2>/dev/null
8422 mkdir .libs 2>/dev/null
8423 if test -d .libs; then
8424   lt_cv_objdir=.libs
8425 else
8426   # MS-DOS does not allow filenames that begin with a dot.
8427   lt_cv_objdir=_libs
8428 fi
8429 rmdir .libs 2>/dev/null
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8432 $as_echo "$lt_cv_objdir" >&6; }
8433 objdir=$lt_cv_objdir
8434
8435
8436
8437
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define LT_OBJDIR "$lt_cv_objdir/"
8441 _ACEOF
8442
8443
8444
8445
8446 case $host_os in
8447 aix3*)
8448   # AIX sometimes has problems with the GCC collect2 program.  For some
8449   # reason, if we set the COLLECT_NAMES environment variable, the problems
8450   # vanish in a puff of smoke.
8451   if test "X${COLLECT_NAMES+set}" != Xset; then
8452     COLLECT_NAMES=
8453     export COLLECT_NAMES
8454   fi
8455   ;;
8456 esac
8457
8458 # Global variables:
8459 ofile=libtool
8460 can_build_shared=yes
8461
8462 # All known linkers require a `.a' archive for static linking (except MSVC,
8463 # which needs '.lib').
8464 libext=a
8465
8466 with_gnu_ld="$lt_cv_prog_gnu_ld"
8467
8468 old_CC="$CC"
8469 old_CFLAGS="$CFLAGS"
8470
8471 # Set sane defaults for various variables
8472 test -z "$CC" && CC=cc
8473 test -z "$LTCC" && LTCC=$CC
8474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8475 test -z "$LD" && LD=ld
8476 test -z "$ac_objext" && ac_objext=o
8477
8478 for cc_temp in $compiler""; do
8479   case $cc_temp in
8480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482     \-*) ;;
8483     *) break;;
8484   esac
8485 done
8486 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8487
8488
8489 # Only perform the check for file, if the check method requires it
8490 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8491 case $deplibs_check_method in
8492 file_magic*)
8493   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8496 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   case $MAGIC_CMD in
8500 [\\/*] |  ?:[\\/]*)
8501   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8502   ;;
8503 *)
8504   lt_save_MAGIC_CMD="$MAGIC_CMD"
8505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507   for ac_dir in $ac_dummy; do
8508     IFS="$lt_save_ifs"
8509     test -z "$ac_dir" && ac_dir=.
8510     if test -f $ac_dir/${ac_tool_prefix}file; then
8511       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512       if test -n "$file_magic_test_file"; then
8513         case $deplibs_check_method in
8514         "file_magic "*)
8515           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518             $EGREP "$file_magic_regex" > /dev/null; then
8519             :
8520           else
8521             cat <<_LT_EOF 1>&2
8522
8523 *** Warning: the command libtool uses to detect shared libraries,
8524 *** $file_magic_cmd, produces output that libtool cannot recognize.
8525 *** The result is that libtool may fail to recognize shared libraries
8526 *** as such.  This will affect the creation of libtool libraries that
8527 *** depend on shared libraries, but programs linked with such libtool
8528 *** libraries will work regardless of this problem.  Nevertheless, you
8529 *** may want to report the problem to your system manager and/or to
8530 *** bug-libtool@gnu.org
8531
8532 _LT_EOF
8533           fi ;;
8534         esac
8535       fi
8536       break
8537     fi
8538   done
8539   IFS="$lt_save_ifs"
8540   MAGIC_CMD="$lt_save_MAGIC_CMD"
8541   ;;
8542 esac
8543 fi
8544
8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546 if test -n "$MAGIC_CMD"; then
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8548 $as_echo "$MAGIC_CMD" >&6; }
8549 else
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553
8554
8555
8556
8557
8558 if test -z "$lt_cv_path_MAGIC_CMD"; then
8559   if test -n "$ac_tool_prefix"; then
8560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8561 $as_echo_n "checking for file... " >&6; }
8562 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8563   $as_echo_n "(cached) " >&6
8564 else
8565   case $MAGIC_CMD in
8566 [\\/*] |  ?:[\\/]*)
8567   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8568   ;;
8569 *)
8570   lt_save_MAGIC_CMD="$MAGIC_CMD"
8571   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8573   for ac_dir in $ac_dummy; do
8574     IFS="$lt_save_ifs"
8575     test -z "$ac_dir" && ac_dir=.
8576     if test -f $ac_dir/file; then
8577       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8578       if test -n "$file_magic_test_file"; then
8579         case $deplibs_check_method in
8580         "file_magic "*)
8581           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8582           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8583           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8584             $EGREP "$file_magic_regex" > /dev/null; then
8585             :
8586           else
8587             cat <<_LT_EOF 1>&2
8588
8589 *** Warning: the command libtool uses to detect shared libraries,
8590 *** $file_magic_cmd, produces output that libtool cannot recognize.
8591 *** The result is that libtool may fail to recognize shared libraries
8592 *** as such.  This will affect the creation of libtool libraries that
8593 *** depend on shared libraries, but programs linked with such libtool
8594 *** libraries will work regardless of this problem.  Nevertheless, you
8595 *** may want to report the problem to your system manager and/or to
8596 *** bug-libtool@gnu.org
8597
8598 _LT_EOF
8599           fi ;;
8600         esac
8601       fi
8602       break
8603     fi
8604   done
8605   IFS="$lt_save_ifs"
8606   MAGIC_CMD="$lt_save_MAGIC_CMD"
8607   ;;
8608 esac
8609 fi
8610
8611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612 if test -n "$MAGIC_CMD"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8614 $as_echo "$MAGIC_CMD" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621   else
8622     MAGIC_CMD=:
8623   fi
8624 fi
8625
8626   fi
8627   ;;
8628 esac
8629
8630 # Use C for the default configuration in the libtool script
8631
8632 lt_save_CC="$CC"
8633 ac_ext=c
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638
8639
8640 # Source file extension for C test sources.
8641 ac_ext=c
8642
8643 # Object file extension for compiled C test sources.
8644 objext=o
8645 objext=$objext
8646
8647 # Code to be used in simple compile tests
8648 lt_simple_compile_test_code="int some_variable = 0;"
8649
8650 # Code to be used in simple link tests
8651 lt_simple_link_test_code='int main(){return(0);}'
8652
8653
8654
8655
8656
8657
8658
8659 # If no C compiler was specified, use CC.
8660 LTCC=${LTCC-"$CC"}
8661
8662 # If no C compiler flags were specified, use CFLAGS.
8663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8664
8665 # Allow CC to be a program name with arguments.
8666 compiler=$CC
8667
8668 # Save the default compiler, since it gets overwritten when the other
8669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8670 compiler_DEFAULT=$CC
8671
8672 # save warnings/boilerplate of simple test code
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676 _lt_compiler_boilerplate=`cat conftest.err`
8677 $RM conftest*
8678
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682 _lt_linker_boilerplate=`cat conftest.err`
8683 $RM -r conftest*
8684
8685
8686 if test -n "$compiler"; then
8687
8688 lt_prog_compiler_no_builtin_flag=
8689
8690 if test "$GCC" = yes; then
8691   case $cc_basename in
8692   nvcc*)
8693     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8694   *)
8695     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8696   esac
8697
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8699 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8700 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   lt_cv_prog_compiler_rtti_exceptions=no
8704    ac_outfile=conftest.$ac_objext
8705    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8706    lt_compiler_flag="-fno-rtti -fno-exceptions"
8707    # Insert the option either (1) after the last *FLAGS variable, or
8708    # (2) before a word containing "conftest.", or (3) at the end.
8709    # Note that $ac_compile itself does not contain backslashes and begins
8710    # with a dollar sign (not a hyphen), so the echo should work correctly.
8711    # The option is referenced via a variable to avoid confusing sed.
8712    lt_compile=`echo "$ac_compile" | $SED \
8713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8715    -e 's:$: $lt_compiler_flag:'`
8716    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8717    (eval "$lt_compile" 2>conftest.err)
8718    ac_status=$?
8719    cat conftest.err >&5
8720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721    if (exit $ac_status) && test -s "$ac_outfile"; then
8722      # The compiler can only warn and ignore the option if not recognized
8723      # So say no if there are warnings other than the usual output.
8724      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8725      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8726      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8727        lt_cv_prog_compiler_rtti_exceptions=yes
8728      fi
8729    fi
8730    $RM conftest*
8731
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8734 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8735
8736 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8737     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8738 else
8739     :
8740 fi
8741
8742 fi
8743
8744
8745
8746
8747
8748
8749   lt_prog_compiler_wl=
8750 lt_prog_compiler_pic=
8751 lt_prog_compiler_static=
8752
8753
8754   if test "$GCC" = yes; then
8755     lt_prog_compiler_wl='-Wl,'
8756     lt_prog_compiler_static='-static'
8757
8758     case $host_os in
8759       aix*)
8760       # All AIX code is PIC.
8761       if test "$host_cpu" = ia64; then
8762         # AIX 5 now supports IA64 processor
8763         lt_prog_compiler_static='-Bstatic'
8764       fi
8765       ;;
8766
8767     amigaos*)
8768       case $host_cpu in
8769       powerpc)
8770             # see comment about AmigaOS4 .so support
8771             lt_prog_compiler_pic='-fPIC'
8772         ;;
8773       m68k)
8774             # FIXME: we need at least 68020 code to build shared libraries, but
8775             # adding the `-m68020' flag to GCC prevents building anything better,
8776             # like `-m68040'.
8777             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8778         ;;
8779       esac
8780       ;;
8781
8782     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8783       # PIC is the default for these OSes.
8784       ;;
8785
8786     mingw* | cygwin* | pw32* | os2* | cegcc*)
8787       # This hack is so that the source file can tell whether it is being
8788       # built for inclusion in a dll (and should export symbols for example).
8789       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8790       # (--disable-auto-import) libraries
8791       lt_prog_compiler_pic='-DDLL_EXPORT'
8792       ;;
8793
8794     darwin* | rhapsody*)
8795       # PIC is the default on this platform
8796       # Common symbols not allowed in MH_DYLIB files
8797       lt_prog_compiler_pic='-fno-common'
8798       ;;
8799
8800     haiku*)
8801       # PIC is the default for Haiku.
8802       # The "-static" flag exists, but is broken.
8803       lt_prog_compiler_static=
8804       ;;
8805
8806     hpux*)
8807       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8808       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8809       # sets the default TLS model and affects inlining.
8810       case $host_cpu in
8811       hppa*64*)
8812         # +Z the default
8813         ;;
8814       *)
8815         lt_prog_compiler_pic='-fPIC'
8816         ;;
8817       esac
8818       ;;
8819
8820     interix[3-9]*)
8821       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8822       # Instead, we relocate shared libraries at runtime.
8823       ;;
8824
8825     msdosdjgpp*)
8826       # Just because we use GCC doesn't mean we suddenly get shared libraries
8827       # on systems that don't support them.
8828       lt_prog_compiler_can_build_shared=no
8829       enable_shared=no
8830       ;;
8831
8832     *nto* | *qnx*)
8833       # QNX uses GNU C++, but need to define -shared option too, otherwise
8834       # it will coredump.
8835       lt_prog_compiler_pic='-fPIC -shared'
8836       ;;
8837
8838     sysv4*MP*)
8839       if test -d /usr/nec; then
8840         lt_prog_compiler_pic=-Kconform_pic
8841       fi
8842       ;;
8843
8844     *)
8845       lt_prog_compiler_pic='-fPIC'
8846       ;;
8847     esac
8848
8849     case $cc_basename in
8850     nvcc*) # Cuda Compiler Driver 2.2
8851       lt_prog_compiler_wl='-Xlinker '
8852       if test -n "$lt_prog_compiler_pic"; then
8853         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8854       fi
8855       ;;
8856     esac
8857   else
8858     # PORTME Check for flag to pass linker flags through the system compiler.
8859     case $host_os in
8860     aix*)
8861       lt_prog_compiler_wl='-Wl,'
8862       if test "$host_cpu" = ia64; then
8863         # AIX 5 now supports IA64 processor
8864         lt_prog_compiler_static='-Bstatic'
8865       else
8866         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8867       fi
8868       ;;
8869
8870     mingw* | cygwin* | pw32* | os2* | cegcc*)
8871       # This hack is so that the source file can tell whether it is being
8872       # built for inclusion in a dll (and should export symbols for example).
8873       lt_prog_compiler_pic='-DDLL_EXPORT'
8874       ;;
8875
8876     hpux9* | hpux10* | hpux11*)
8877       lt_prog_compiler_wl='-Wl,'
8878       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8879       # not for PA HP-UX.
8880       case $host_cpu in
8881       hppa*64*|ia64*)
8882         # +Z the default
8883         ;;
8884       *)
8885         lt_prog_compiler_pic='+Z'
8886         ;;
8887       esac
8888       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8889       lt_prog_compiler_static='${wl}-a ${wl}archive'
8890       ;;
8891
8892     irix5* | irix6* | nonstopux*)
8893       lt_prog_compiler_wl='-Wl,'
8894       # PIC (with -KPIC) is the default.
8895       lt_prog_compiler_static='-non_shared'
8896       ;;
8897
8898     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8899       case $cc_basename in
8900       # old Intel for x86_64 which still supported -KPIC.
8901       ecc*)
8902         lt_prog_compiler_wl='-Wl,'
8903         lt_prog_compiler_pic='-KPIC'
8904         lt_prog_compiler_static='-static'
8905         ;;
8906       # icc used to be incompatible with GCC.
8907       # ICC 10 doesn't accept -KPIC any more.
8908       icc* | ifort*)
8909         lt_prog_compiler_wl='-Wl,'
8910         lt_prog_compiler_pic='-fPIC'
8911         lt_prog_compiler_static='-static'
8912         ;;
8913       # Lahey Fortran 8.1.
8914       lf95*)
8915         lt_prog_compiler_wl='-Wl,'
8916         lt_prog_compiler_pic='--shared'
8917         lt_prog_compiler_static='--static'
8918         ;;
8919       nagfor*)
8920         # NAG Fortran compiler
8921         lt_prog_compiler_wl='-Wl,-Wl,,'
8922         lt_prog_compiler_pic='-PIC'
8923         lt_prog_compiler_static='-Bstatic'
8924         ;;
8925       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8926         # Portland Group compilers (*not* the Pentium gcc compiler,
8927         # which looks to be a dead project)
8928         lt_prog_compiler_wl='-Wl,'
8929         lt_prog_compiler_pic='-fpic'
8930         lt_prog_compiler_static='-Bstatic'
8931         ;;
8932       ccc*)
8933         lt_prog_compiler_wl='-Wl,'
8934         # All Alpha code is PIC.
8935         lt_prog_compiler_static='-non_shared'
8936         ;;
8937       xl* | bgxl* | bgf* | mpixl*)
8938         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8939         lt_prog_compiler_wl='-Wl,'
8940         lt_prog_compiler_pic='-qpic'
8941         lt_prog_compiler_static='-qstaticlink'
8942         ;;
8943       *)
8944         case `$CC -V 2>&1 | sed 5q` in
8945         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8946           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8947           lt_prog_compiler_pic='-KPIC'
8948           lt_prog_compiler_static='-Bstatic'
8949           lt_prog_compiler_wl=''
8950           ;;
8951         *Sun\ F* | *Sun*Fortran*)
8952           lt_prog_compiler_pic='-KPIC'
8953           lt_prog_compiler_static='-Bstatic'
8954           lt_prog_compiler_wl='-Qoption ld '
8955           ;;
8956         *Sun\ C*)
8957           # Sun C 5.9
8958           lt_prog_compiler_pic='-KPIC'
8959           lt_prog_compiler_static='-Bstatic'
8960           lt_prog_compiler_wl='-Wl,'
8961           ;;
8962         *Intel*\ [CF]*Compiler*)
8963           lt_prog_compiler_wl='-Wl,'
8964           lt_prog_compiler_pic='-fPIC'
8965           lt_prog_compiler_static='-static'
8966           ;;
8967         *Portland\ Group*)
8968           lt_prog_compiler_wl='-Wl,'
8969           lt_prog_compiler_pic='-fpic'
8970           lt_prog_compiler_static='-Bstatic'
8971           ;;
8972         esac
8973         ;;
8974       esac
8975       ;;
8976
8977     newsos6)
8978       lt_prog_compiler_pic='-KPIC'
8979       lt_prog_compiler_static='-Bstatic'
8980       ;;
8981
8982     *nto* | *qnx*)
8983       # QNX uses GNU C++, but need to define -shared option too, otherwise
8984       # it will coredump.
8985       lt_prog_compiler_pic='-fPIC -shared'
8986       ;;
8987
8988     osf3* | osf4* | osf5*)
8989       lt_prog_compiler_wl='-Wl,'
8990       # All OSF/1 code is PIC.
8991       lt_prog_compiler_static='-non_shared'
8992       ;;
8993
8994     rdos*)
8995       lt_prog_compiler_static='-non_shared'
8996       ;;
8997
8998     solaris*)
8999       lt_prog_compiler_pic='-KPIC'
9000       lt_prog_compiler_static='-Bstatic'
9001       case $cc_basename in
9002       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9003         lt_prog_compiler_wl='-Qoption ld ';;
9004       *)
9005         lt_prog_compiler_wl='-Wl,';;
9006       esac
9007       ;;
9008
9009     sunos4*)
9010       lt_prog_compiler_wl='-Qoption ld '
9011       lt_prog_compiler_pic='-PIC'
9012       lt_prog_compiler_static='-Bstatic'
9013       ;;
9014
9015     sysv4 | sysv4.2uw2* | sysv4.3*)
9016       lt_prog_compiler_wl='-Wl,'
9017       lt_prog_compiler_pic='-KPIC'
9018       lt_prog_compiler_static='-Bstatic'
9019       ;;
9020
9021     sysv4*MP*)
9022       if test -d /usr/nec ;then
9023         lt_prog_compiler_pic='-Kconform_pic'
9024         lt_prog_compiler_static='-Bstatic'
9025       fi
9026       ;;
9027
9028     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9029       lt_prog_compiler_wl='-Wl,'
9030       lt_prog_compiler_pic='-KPIC'
9031       lt_prog_compiler_static='-Bstatic'
9032       ;;
9033
9034     unicos*)
9035       lt_prog_compiler_wl='-Wl,'
9036       lt_prog_compiler_can_build_shared=no
9037       ;;
9038
9039     uts4*)
9040       lt_prog_compiler_pic='-pic'
9041       lt_prog_compiler_static='-Bstatic'
9042       ;;
9043
9044     *)
9045       lt_prog_compiler_can_build_shared=no
9046       ;;
9047     esac
9048   fi
9049
9050 case $host_os in
9051   # For platforms which do not support PIC, -DPIC is meaningless:
9052   *djgpp*)
9053     lt_prog_compiler_pic=
9054     ;;
9055   *)
9056     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9057     ;;
9058 esac
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9061 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9062 if ${lt_cv_prog_compiler_pic+:} false; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9068 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9069 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9070
9071 #
9072 # Check to make sure the PIC flag actually works.
9073 #
9074 if test -n "$lt_prog_compiler_pic"; then
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9076 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9077 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   lt_cv_prog_compiler_pic_works=no
9081    ac_outfile=conftest.$ac_objext
9082    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9084    # Insert the option either (1) after the last *FLAGS variable, or
9085    # (2) before a word containing "conftest.", or (3) at the end.
9086    # Note that $ac_compile itself does not contain backslashes and begins
9087    # with a dollar sign (not a hyphen), so the echo should work correctly.
9088    # The option is referenced via a variable to avoid confusing sed.
9089    lt_compile=`echo "$ac_compile" | $SED \
9090    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092    -e 's:$: $lt_compiler_flag:'`
9093    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9094    (eval "$lt_compile" 2>conftest.err)
9095    ac_status=$?
9096    cat conftest.err >&5
9097    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098    if (exit $ac_status) && test -s "$ac_outfile"; then
9099      # The compiler can only warn and ignore the option if not recognized
9100      # So say no if there are warnings other than the usual output.
9101      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9102      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9104        lt_cv_prog_compiler_pic_works=yes
9105      fi
9106    fi
9107    $RM conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9111 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9112
9113 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9114     case $lt_prog_compiler_pic in
9115      "" | " "*) ;;
9116      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9117      esac
9118 else
9119     lt_prog_compiler_pic=
9120      lt_prog_compiler_can_build_shared=no
9121 fi
9122
9123 fi
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135 #
9136 # Check to make sure the static flag actually works.
9137 #
9138 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9140 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9141 if ${lt_cv_prog_compiler_static_works+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   lt_cv_prog_compiler_static_works=no
9145    save_LDFLAGS="$LDFLAGS"
9146    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9147    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9148    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9149      # The linker can only warn and ignore the option if not recognized
9150      # So say no if there are warnings
9151      if test -s conftest.err; then
9152        # Append any errors to the config.log.
9153        cat conftest.err 1>&5
9154        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9155        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156        if diff conftest.exp conftest.er2 >/dev/null; then
9157          lt_cv_prog_compiler_static_works=yes
9158        fi
9159      else
9160        lt_cv_prog_compiler_static_works=yes
9161      fi
9162    fi
9163    $RM -r conftest*
9164    LDFLAGS="$save_LDFLAGS"
9165
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9168 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9169
9170 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9171     :
9172 else
9173     lt_prog_compiler_static=
9174 fi
9175
9176
9177
9178
9179
9180
9181
9182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9184 if ${lt_cv_prog_compiler_c_o+:} false; then :
9185   $as_echo_n "(cached) " >&6
9186 else
9187   lt_cv_prog_compiler_c_o=no
9188    $RM -r conftest 2>/dev/null
9189    mkdir conftest
9190    cd conftest
9191    mkdir out
9192    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9193
9194    lt_compiler_flag="-o out/conftest2.$ac_objext"
9195    # Insert the option either (1) after the last *FLAGS variable, or
9196    # (2) before a word containing "conftest.", or (3) at the end.
9197    # Note that $ac_compile itself does not contain backslashes and begins
9198    # with a dollar sign (not a hyphen), so the echo should work correctly.
9199    lt_compile=`echo "$ac_compile" | $SED \
9200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9202    -e 's:$: $lt_compiler_flag:'`
9203    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9204    (eval "$lt_compile" 2>out/conftest.err)
9205    ac_status=$?
9206    cat out/conftest.err >&5
9207    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9209    then
9210      # The compiler can only warn and ignore the option if not recognized
9211      # So say no if there are warnings
9212      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9213      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9214      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9215        lt_cv_prog_compiler_c_o=yes
9216      fi
9217    fi
9218    chmod u+w . 2>&5
9219    $RM conftest*
9220    # SGI C++ compiler will create directory out/ii_files/ for
9221    # template instantiation
9222    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9223    $RM out/* && rmdir out
9224    cd ..
9225    $RM -r conftest
9226    $RM conftest*
9227
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9231
9232
9233
9234
9235
9236
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9238 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9239 if ${lt_cv_prog_compiler_c_o+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   lt_cv_prog_compiler_c_o=no
9243    $RM -r conftest 2>/dev/null
9244    mkdir conftest
9245    cd conftest
9246    mkdir out
9247    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9248
9249    lt_compiler_flag="-o out/conftest2.$ac_objext"
9250    # Insert the option either (1) after the last *FLAGS variable, or
9251    # (2) before a word containing "conftest.", or (3) at the end.
9252    # Note that $ac_compile itself does not contain backslashes and begins
9253    # with a dollar sign (not a hyphen), so the echo should work correctly.
9254    lt_compile=`echo "$ac_compile" | $SED \
9255    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9257    -e 's:$: $lt_compiler_flag:'`
9258    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9259    (eval "$lt_compile" 2>out/conftest.err)
9260    ac_status=$?
9261    cat out/conftest.err >&5
9262    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9264    then
9265      # The compiler can only warn and ignore the option if not recognized
9266      # So say no if there are warnings
9267      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9268      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9269      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9270        lt_cv_prog_compiler_c_o=yes
9271      fi
9272    fi
9273    chmod u+w . 2>&5
9274    $RM conftest*
9275    # SGI C++ compiler will create directory out/ii_files/ for
9276    # template instantiation
9277    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9278    $RM out/* && rmdir out
9279    cd ..
9280    $RM -r conftest
9281    $RM conftest*
9282
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9285 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9286
9287
9288
9289
9290 hard_links="nottested"
9291 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9292   # do not overwrite the value of need_locks provided by the user
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9294 $as_echo_n "checking if we can lock with hard links... " >&6; }
9295   hard_links=yes
9296   $RM conftest*
9297   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9298   touch conftest.a
9299   ln conftest.a conftest.b 2>&5 || hard_links=no
9300   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9302 $as_echo "$hard_links" >&6; }
9303   if test "$hard_links" = no; then
9304     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9305 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9306     need_locks=warn
9307   fi
9308 else
9309   need_locks=no
9310 fi
9311
9312
9313
9314
9315
9316
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9319
9320   runpath_var=
9321   allow_undefined_flag=
9322   always_export_symbols=no
9323   archive_cmds=
9324   archive_expsym_cmds=
9325   compiler_needs_object=no
9326   enable_shared_with_static_runtimes=no
9327   export_dynamic_flag_spec=
9328   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9329   hardcode_automatic=no
9330   hardcode_direct=no
9331   hardcode_direct_absolute=no
9332   hardcode_libdir_flag_spec=
9333   hardcode_libdir_separator=
9334   hardcode_minus_L=no
9335   hardcode_shlibpath_var=unsupported
9336   inherit_rpath=no
9337   link_all_deplibs=unknown
9338   module_cmds=
9339   module_expsym_cmds=
9340   old_archive_from_new_cmds=
9341   old_archive_from_expsyms_cmds=
9342   thread_safe_flag_spec=
9343   whole_archive_flag_spec=
9344   # include_expsyms should be a list of space-separated symbols to be *always*
9345   # included in the symbol list
9346   include_expsyms=
9347   # exclude_expsyms can be an extended regexp of symbols to exclude
9348   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9349   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9350   # as well as any symbol that contains `d'.
9351   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9352   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9353   # platforms (ab)use it in PIC code, but their linkers get confused if
9354   # the symbol is explicitly referenced.  Since portable code cannot
9355   # rely on this symbol name, it's probably fine to never include it in
9356   # preloaded symbol tables.
9357   # Exclude shared library initialization/finalization symbols.
9358   extract_expsyms_cmds=
9359
9360   case $host_os in
9361   cygwin* | mingw* | pw32* | cegcc*)
9362     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9363     # When not using gcc, we currently assume that we are using
9364     # Microsoft Visual C++.
9365     if test "$GCC" != yes; then
9366       with_gnu_ld=no
9367     fi
9368     ;;
9369   interix*)
9370     # we just hope/assume this is gcc and not c89 (= MSVC++)
9371     with_gnu_ld=yes
9372     ;;
9373   openbsd*)
9374     with_gnu_ld=no
9375     ;;
9376   esac
9377
9378   ld_shlibs=yes
9379
9380   # On some targets, GNU ld is compatible enough with the native linker
9381   # that we're better off using the native interface for both.
9382   lt_use_gnu_ld_interface=no
9383   if test "$with_gnu_ld" = yes; then
9384     case $host_os in
9385       aix*)
9386         # The AIX port of GNU ld has always aspired to compatibility
9387         # with the native linker.  However, as the warning in the GNU ld
9388         # block says, versions before 2.19.5* couldn't really create working
9389         # shared libraries, regardless of the interface used.
9390         case `$LD -v 2>&1` in
9391           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9392           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9393           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9394           *)
9395             lt_use_gnu_ld_interface=yes
9396             ;;
9397         esac
9398         ;;
9399       *)
9400         lt_use_gnu_ld_interface=yes
9401         ;;
9402     esac
9403   fi
9404
9405   if test "$lt_use_gnu_ld_interface" = yes; then
9406     # If archive_cmds runs LD, not CC, wlarc should be empty
9407     wlarc='${wl}'
9408
9409     # Set some defaults for GNU ld with shared library support. These
9410     # are reset later if shared libraries are not supported. Putting them
9411     # here allows them to be overridden if necessary.
9412     runpath_var=LD_RUN_PATH
9413     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414     export_dynamic_flag_spec='${wl}--export-dynamic'
9415     # ancient GNU ld didn't support --whole-archive et. al.
9416     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9417       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9418     else
9419       whole_archive_flag_spec=
9420     fi
9421     supports_anon_versioning=no
9422     case `$LD -v 2>&1` in
9423       *GNU\ gold*) supports_anon_versioning=yes ;;
9424       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9425       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9426       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9427       *\ 2.11.*) ;; # other 2.11 versions
9428       *) supports_anon_versioning=yes ;;
9429     esac
9430
9431     # See if GNU ld supports shared libraries.
9432     case $host_os in
9433     aix[3-9]*)
9434       # On AIX/PPC, the GNU linker is very broken
9435       if test "$host_cpu" != ia64; then
9436         ld_shlibs=no
9437         cat <<_LT_EOF 1>&2
9438
9439 *** Warning: the GNU linker, at least up to release 2.19, is reported
9440 *** to be unable to reliably create shared libraries on AIX.
9441 *** Therefore, libtool is disabling shared libraries support.  If you
9442 *** really care for shared libraries, you may want to install binutils
9443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9444 *** You will then need to restart the configuration process.
9445
9446 _LT_EOF
9447       fi
9448       ;;
9449
9450     amigaos*)
9451       case $host_cpu in
9452       powerpc)
9453             # see comment about AmigaOS4 .so support
9454             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455             archive_expsym_cmds=''
9456         ;;
9457       m68k)
9458             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)'
9459             hardcode_libdir_flag_spec='-L$libdir'
9460             hardcode_minus_L=yes
9461         ;;
9462       esac
9463       ;;
9464
9465     beos*)
9466       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467         allow_undefined_flag=unsupported
9468         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9469         # support --undefined.  This deserves some investigation.  FIXME
9470         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     cygwin* | mingw* | pw32* | cegcc*)
9477       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9478       # as there is no search path for DLLs.
9479       hardcode_libdir_flag_spec='-L$libdir'
9480       export_dynamic_flag_spec='${wl}--export-all-symbols'
9481       allow_undefined_flag=unsupported
9482       always_export_symbols=no
9483       enable_shared_with_static_runtimes=yes
9484       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9485       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9486
9487       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9488         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9489         # If the export-symbols file already is a .def file (1st line
9490         # is EXPORTS), use it as is; otherwise, prepend...
9491         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9492           cp $export_symbols $output_objdir/$soname.def;
9493         else
9494           echo EXPORTS > $output_objdir/$soname.def;
9495           cat $export_symbols >> $output_objdir/$soname.def;
9496         fi~
9497         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9498       else
9499         ld_shlibs=no
9500       fi
9501       ;;
9502
9503     haiku*)
9504       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505       link_all_deplibs=yes
9506       ;;
9507
9508     interix[3-9]*)
9509       hardcode_direct=no
9510       hardcode_shlibpath_var=no
9511       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9512       export_dynamic_flag_spec='${wl}-E'
9513       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9514       # Instead, shared libraries are loaded at an image base (0x10000000 by
9515       # default) and relocated if they conflict, which is a slow very memory
9516       # consuming and fragmenting process.  To avoid this, we pick a random,
9517       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9518       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9519       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9520       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'
9521       ;;
9522
9523     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9524       tmp_diet=no
9525       if test "$host_os" = linux-dietlibc; then
9526         case $cc_basename in
9527           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9528         esac
9529       fi
9530       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9531          && test "$tmp_diet" = no
9532       then
9533         tmp_addflag=' $pic_flag'
9534         tmp_sharedflag='-shared'
9535         case $cc_basename,$host_cpu in
9536         pgcc*)                          # Portland Group C compiler
9537           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9538           tmp_addflag=' $pic_flag'
9539           ;;
9540         pgf77* | pgf90* | pgf95* | pgfortran*)
9541                                         # Portland Group f77 and f90 compilers
9542           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9543           tmp_addflag=' $pic_flag -Mnomain' ;;
9544         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9545           tmp_addflag=' -i_dynamic' ;;
9546         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9547           tmp_addflag=' -i_dynamic -nofor_main' ;;
9548         ifc* | ifort*)                  # Intel Fortran compiler
9549           tmp_addflag=' -nofor_main' ;;
9550         lf95*)                          # Lahey Fortran 8.1
9551           whole_archive_flag_spec=
9552           tmp_sharedflag='--shared' ;;
9553         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9554           tmp_sharedflag='-qmkshrobj'
9555           tmp_addflag= ;;
9556         nvcc*)  # Cuda Compiler Driver 2.2
9557           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9558           compiler_needs_object=yes
9559           ;;
9560         esac
9561         case `$CC -V 2>&1 | sed 5q` in
9562         *Sun\ C*)                       # Sun C 5.9
9563           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9564           compiler_needs_object=yes
9565           tmp_sharedflag='-G' ;;
9566         *Sun\ F*)                       # Sun Fortran 8.3
9567           tmp_sharedflag='-G' ;;
9568         esac
9569         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570
9571         if test "x$supports_anon_versioning" = xyes; then
9572           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9573             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9574             echo "local: *; };" >> $output_objdir/$libname.ver~
9575             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9576         fi
9577
9578         case $cc_basename in
9579         xlf* | bgf* | bgxlf* | mpixlf*)
9580           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9581           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9582           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9584           if test "x$supports_anon_versioning" = xyes; then
9585             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9586               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9587               echo "local: *; };" >> $output_objdir/$libname.ver~
9588               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9589           fi
9590           ;;
9591         esac
9592       else
9593         ld_shlibs=no
9594       fi
9595       ;;
9596
9597     netbsd*)
9598       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9600         wlarc=
9601       else
9602         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604       fi
9605       ;;
9606
9607     solaris*)
9608       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9609         ld_shlibs=no
9610         cat <<_LT_EOF 1>&2
9611
9612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9613 *** create shared libraries on Solaris systems.  Therefore, libtool
9614 *** is disabling shared libraries support.  We urge you to upgrade GNU
9615 *** binutils to release 2.9.1 or newer.  Another option is to modify
9616 *** your PATH or compiler configuration so that the native linker is
9617 *** used, and then restart.
9618
9619 _LT_EOF
9620       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9623       else
9624         ld_shlibs=no
9625       fi
9626       ;;
9627
9628     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9629       case `$LD -v 2>&1` in
9630         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9631         ld_shlibs=no
9632         cat <<_LT_EOF 1>&2
9633
9634 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9635 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9636 *** is disabling shared libraries support.  We urge you to upgrade GNU
9637 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9638 *** your PATH or compiler configuration so that the native linker is
9639 *** used, and then restart.
9640
9641 _LT_EOF
9642         ;;
9643         *)
9644           # For security reasons, it is highly recommended that you always
9645           # use absolute paths for naming shared libraries, and exclude the
9646           # DT_RUNPATH tag from executables and libraries.  But doing so
9647           # requires that you compile everything twice, which is a pain.
9648           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9652           else
9653             ld_shlibs=no
9654           fi
9655         ;;
9656       esac
9657       ;;
9658
9659     sunos4*)
9660       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9661       wlarc=
9662       hardcode_direct=yes
9663       hardcode_shlibpath_var=no
9664       ;;
9665
9666     *)
9667       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9670       else
9671         ld_shlibs=no
9672       fi
9673       ;;
9674     esac
9675
9676     if test "$ld_shlibs" = no; then
9677       runpath_var=
9678       hardcode_libdir_flag_spec=
9679       export_dynamic_flag_spec=
9680       whole_archive_flag_spec=
9681     fi
9682   else
9683     # PORTME fill in a description of your system's linker (not GNU ld)
9684     case $host_os in
9685     aix3*)
9686       allow_undefined_flag=unsupported
9687       always_export_symbols=yes
9688       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'
9689       # Note: this linker hardcodes the directories in LIBPATH if there
9690       # are no directories specified by -L.
9691       hardcode_minus_L=yes
9692       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9693         # Neither direct hardcoding nor static linking is supported with a
9694         # broken collect2.
9695         hardcode_direct=unsupported
9696       fi
9697       ;;
9698
9699     aix[4-9]*)
9700       if test "$host_cpu" = ia64; then
9701         # On IA64, the linker does run time linking by default, so we don't
9702         # have to do anything special.
9703         aix_use_runtimelinking=no
9704         exp_sym_flag='-Bexport'
9705         no_entry_flag=""
9706       else
9707         # If we're using GNU nm, then we don't want the "-C" option.
9708         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9709         # Also, AIX nm treats weak defined symbols like other global
9710         # defined symbols, whereas GNU nm marks them as "W".
9711         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9712           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9713         else
9714           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'
9715         fi
9716         aix_use_runtimelinking=no
9717
9718         # Test if we are trying to use run time linking or normal
9719         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720         # need to do runtime linking.
9721         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9722           for ld_flag in $LDFLAGS; do
9723           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9724             aix_use_runtimelinking=yes
9725             break
9726           fi
9727           done
9728           ;;
9729         esac
9730
9731         exp_sym_flag='-bexport'
9732         no_entry_flag='-bnoentry'
9733       fi
9734
9735       # When large executables or shared objects are built, AIX ld can
9736       # have problems creating the table of contents.  If linking a library
9737       # or program results in "error TOC overflow" add -mminimal-toc to
9738       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9739       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9740
9741       archive_cmds=''
9742       hardcode_direct=yes
9743       hardcode_direct_absolute=yes
9744       hardcode_libdir_separator=':'
9745       link_all_deplibs=yes
9746       file_list_spec='${wl}-f,'
9747
9748       if test "$GCC" = yes; then
9749         case $host_os in aix4.[012]|aix4.[012].*)
9750         # We only want to do this on AIX 4.2 and lower, the check
9751         # below for broken collect2 doesn't work under 4.3+
9752           collect2name=`${CC} -print-prog-name=collect2`
9753           if test -f "$collect2name" &&
9754            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9755           then
9756           # We have reworked collect2
9757           :
9758           else
9759           # We have old collect2
9760           hardcode_direct=unsupported
9761           # It fails to find uninstalled libraries when the uninstalled
9762           # path is not listed in the libpath.  Setting hardcode_minus_L
9763           # to unsupported forces relinking
9764           hardcode_minus_L=yes
9765           hardcode_libdir_flag_spec='-L$libdir'
9766           hardcode_libdir_separator=
9767           fi
9768           ;;
9769         esac
9770         shared_flag='-shared'
9771         if test "$aix_use_runtimelinking" = yes; then
9772           shared_flag="$shared_flag "'${wl}-G'
9773         fi
9774       else
9775         # not using gcc
9776         if test "$host_cpu" = ia64; then
9777         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778         # chokes on -Wl,-G. The following line is correct:
9779           shared_flag='-G'
9780         else
9781           if test "$aix_use_runtimelinking" = yes; then
9782             shared_flag='${wl}-G'
9783           else
9784             shared_flag='${wl}-bM:SRE'
9785           fi
9786         fi
9787       fi
9788
9789       export_dynamic_flag_spec='${wl}-bexpall'
9790       # It seems that -bexpall does not export symbols beginning with
9791       # underscore (_), so it is better to generate a list of symbols to export.
9792       always_export_symbols=yes
9793       if test "$aix_use_runtimelinking" = yes; then
9794         # Warning - without using the other runtime loading flags (-brtl),
9795         # -berok will link without error, but may produce a broken library.
9796         allow_undefined_flag='-berok'
9797         # Determine the default libpath from the value encoded in an
9798         # empty executable.
9799         if test "${lt_cv_aix_libpath+set}" = set; then
9800   aix_libpath=$lt_cv_aix_libpath
9801 else
9802   if ${lt_cv_aix_libpath_+:} false; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807
9808 int
9809 main ()
9810 {
9811
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817
9818   lt_aix_libpath_sed='
9819       /Import File Strings/,/^$/ {
9820           /^0/ {
9821               s/^0  *\([^ ]*\) *$/\1/
9822               p
9823           }
9824       }'
9825   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826   # Check for a 64-bit object if we didn't find anything.
9827   if test -z "$lt_cv_aix_libpath_"; then
9828     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829   fi
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832     conftest$ac_exeext conftest.$ac_ext
9833   if test -z "$lt_cv_aix_libpath_"; then
9834     lt_cv_aix_libpath_="/usr/lib:/lib"
9835   fi
9836
9837 fi
9838
9839   aix_libpath=$lt_cv_aix_libpath_
9840 fi
9841
9842         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9844       else
9845         if test "$host_cpu" = ia64; then
9846           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9847           allow_undefined_flag="-z nodefs"
9848           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"
9849         else
9850          # Determine the default libpath from the value encoded in an
9851          # empty executable.
9852          if test "${lt_cv_aix_libpath+set}" = set; then
9853   aix_libpath=$lt_cv_aix_libpath
9854 else
9855   if ${lt_cv_aix_libpath_+:} false; then :
9856   $as_echo_n "(cached) " >&6
9857 else
9858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h.  */
9860
9861 int
9862 main ()
9863 {
9864
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870
9871   lt_aix_libpath_sed='
9872       /Import File Strings/,/^$/ {
9873           /^0/ {
9874               s/^0  *\([^ ]*\) *$/\1/
9875               p
9876           }
9877       }'
9878   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879   # Check for a 64-bit object if we didn't find anything.
9880   if test -z "$lt_cv_aix_libpath_"; then
9881     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882   fi
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext \
9885     conftest$ac_exeext conftest.$ac_ext
9886   if test -z "$lt_cv_aix_libpath_"; then
9887     lt_cv_aix_libpath_="/usr/lib:/lib"
9888   fi
9889
9890 fi
9891
9892   aix_libpath=$lt_cv_aix_libpath_
9893 fi
9894
9895          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896           # Warning - without using the other run time loading flags,
9897           # -berok will link without error, but may produce a broken library.
9898           no_undefined_flag=' ${wl}-bernotok'
9899           allow_undefined_flag=' ${wl}-berok'
9900           if test "$with_gnu_ld" = yes; then
9901             # We only use this code for GNU lds that support --whole-archive.
9902             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9903           else
9904             # Exported symbols can be pulled into shared objects from archives
9905             whole_archive_flag_spec='$convenience'
9906           fi
9907           archive_cmds_need_lc=yes
9908           # This is similar to how AIX traditionally builds its shared libraries.
9909           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'
9910         fi
9911       fi
9912       ;;
9913
9914     amigaos*)
9915       case $host_cpu in
9916       powerpc)
9917             # see comment about AmigaOS4 .so support
9918             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9919             archive_expsym_cmds=''
9920         ;;
9921       m68k)
9922             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)'
9923             hardcode_libdir_flag_spec='-L$libdir'
9924             hardcode_minus_L=yes
9925         ;;
9926       esac
9927       ;;
9928
9929     bsdi[45]*)
9930       export_dynamic_flag_spec=-rdynamic
9931       ;;
9932
9933     cygwin* | mingw* | pw32* | cegcc*)
9934       # When not using gcc, we currently assume that we are using
9935       # Microsoft Visual C++.
9936       # hardcode_libdir_flag_spec is actually meaningless, as there is
9937       # no search path for DLLs.
9938       case $cc_basename in
9939       cl*)
9940         # Native MSVC
9941         hardcode_libdir_flag_spec=' '
9942         allow_undefined_flag=unsupported
9943         always_export_symbols=yes
9944         file_list_spec='@'
9945         # Tell ltmain to make .lib files, not .a files.
9946         libext=lib
9947         # Tell ltmain to make .dll files, not .so files.
9948         shrext_cmds=".dll"
9949         # FIXME: Setting linknames here is a bad hack.
9950         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9951         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9952             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9953           else
9954             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9955           fi~
9956           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9957           linknames='
9958         # The linker will not automatically build a static lib if we build a DLL.
9959         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9960         enable_shared_with_static_runtimes=yes
9961         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9962         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9963         # Don't use ranlib
9964         old_postinstall_cmds='chmod 644 $oldlib'
9965         postlink_cmds='lt_outputfile="@OUTPUT@"~
9966           lt_tool_outputfile="@TOOL_OUTPUT@"~
9967           case $lt_outputfile in
9968             *.exe|*.EXE) ;;
9969             *)
9970               lt_outputfile="$lt_outputfile.exe"
9971               lt_tool_outputfile="$lt_tool_outputfile.exe"
9972               ;;
9973           esac~
9974           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9975             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9976             $RM "$lt_outputfile.manifest";
9977           fi'
9978         ;;
9979       *)
9980         # Assume MSVC wrapper
9981         hardcode_libdir_flag_spec=' '
9982         allow_undefined_flag=unsupported
9983         # Tell ltmain to make .lib files, not .a files.
9984         libext=lib
9985         # Tell ltmain to make .dll files, not .so files.
9986         shrext_cmds=".dll"
9987         # FIXME: Setting linknames here is a bad hack.
9988         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9989         # The linker will automatically build a .lib file if we build a DLL.
9990         old_archive_from_new_cmds='true'
9991         # FIXME: Should let the user specify the lib program.
9992         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9993         enable_shared_with_static_runtimes=yes
9994         ;;
9995       esac
9996       ;;
9997
9998     darwin* | rhapsody*)
9999
10000
10001   archive_cmds_need_lc=no
10002   hardcode_direct=no
10003   hardcode_automatic=yes
10004   hardcode_shlibpath_var=unsupported
10005   if test "$lt_cv_ld_force_load" = "yes"; then
10006     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10007
10008   else
10009     whole_archive_flag_spec=''
10010   fi
10011   link_all_deplibs=yes
10012   allow_undefined_flag="$_lt_dar_allow_undefined"
10013   case $cc_basename in
10014      ifort*) _lt_dar_can_shared=yes ;;
10015      *) _lt_dar_can_shared=$GCC ;;
10016   esac
10017   if test "$_lt_dar_can_shared" = "yes"; then
10018     output_verbose_link_cmd=func_echo_all
10019     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10020     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10021     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}"
10022     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}"
10023
10024   else
10025   ld_shlibs=no
10026   fi
10027
10028       ;;
10029
10030     dgux*)
10031       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032       hardcode_libdir_flag_spec='-L$libdir'
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10037     # support.  Future versions do this automatically, but an explicit c++rt0.o
10038     # does not break anything, and helps significantly (at the cost of a little
10039     # extra space).
10040     freebsd2.2*)
10041       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10042       hardcode_libdir_flag_spec='-R$libdir'
10043       hardcode_direct=yes
10044       hardcode_shlibpath_var=no
10045       ;;
10046
10047     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10048     freebsd2.*)
10049       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10050       hardcode_direct=yes
10051       hardcode_minus_L=yes
10052       hardcode_shlibpath_var=no
10053       ;;
10054
10055     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10056     freebsd* | dragonfly*)
10057       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10058       hardcode_libdir_flag_spec='-R$libdir'
10059       hardcode_direct=yes
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     hpux9*)
10064       if test "$GCC" = yes; then
10065         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10066       else
10067         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'
10068       fi
10069       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070       hardcode_libdir_separator=:
10071       hardcode_direct=yes
10072
10073       # hardcode_minus_L: Not really in the search PATH,
10074       # but as the default location of the library.
10075       hardcode_minus_L=yes
10076       export_dynamic_flag_spec='${wl}-E'
10077       ;;
10078
10079     hpux10*)
10080       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10081         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10082       else
10083         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10084       fi
10085       if test "$with_gnu_ld" = no; then
10086         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10087         hardcode_libdir_separator=:
10088         hardcode_direct=yes
10089         hardcode_direct_absolute=yes
10090         export_dynamic_flag_spec='${wl}-E'
10091         # hardcode_minus_L: Not really in the search PATH,
10092         # but as the default location of the library.
10093         hardcode_minus_L=yes
10094       fi
10095       ;;
10096
10097     hpux11*)
10098       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10099         case $host_cpu in
10100         hppa*64*)
10101           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10102           ;;
10103         ia64*)
10104           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10105           ;;
10106         *)
10107           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10108           ;;
10109         esac
10110       else
10111         case $host_cpu in
10112         hppa*64*)
10113           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10114           ;;
10115         ia64*)
10116           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10117           ;;
10118         *)
10119
10120           # Older versions of the 11.00 compiler do not understand -b yet
10121           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10122           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10123 $as_echo_n "checking if $CC understands -b... " >&6; }
10124 if ${lt_cv_prog_compiler__b+:} false; then :
10125   $as_echo_n "(cached) " >&6
10126 else
10127   lt_cv_prog_compiler__b=no
10128    save_LDFLAGS="$LDFLAGS"
10129    LDFLAGS="$LDFLAGS -b"
10130    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10131    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10132      # The linker can only warn and ignore the option if not recognized
10133      # So say no if there are warnings
10134      if test -s conftest.err; then
10135        # Append any errors to the config.log.
10136        cat conftest.err 1>&5
10137        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10138        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10139        if diff conftest.exp conftest.er2 >/dev/null; then
10140          lt_cv_prog_compiler__b=yes
10141        fi
10142      else
10143        lt_cv_prog_compiler__b=yes
10144      fi
10145    fi
10146    $RM -r conftest*
10147    LDFLAGS="$save_LDFLAGS"
10148
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10151 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10152
10153 if test x"$lt_cv_prog_compiler__b" = xyes; then
10154     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10155 else
10156     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10157 fi
10158
10159           ;;
10160         esac
10161       fi
10162       if test "$with_gnu_ld" = no; then
10163         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10164         hardcode_libdir_separator=:
10165
10166         case $host_cpu in
10167         hppa*64*|ia64*)
10168           hardcode_direct=no
10169           hardcode_shlibpath_var=no
10170           ;;
10171         *)
10172           hardcode_direct=yes
10173           hardcode_direct_absolute=yes
10174           export_dynamic_flag_spec='${wl}-E'
10175
10176           # hardcode_minus_L: Not really in the search PATH,
10177           # but as the default location of the library.
10178           hardcode_minus_L=yes
10179           ;;
10180         esac
10181       fi
10182       ;;
10183
10184     irix5* | irix6* | nonstopux*)
10185       if test "$GCC" = yes; then
10186         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10187         # Try to use the -exported_symbol ld option, if it does not
10188         # work, assume that -exports_file does not work either and
10189         # implicitly export all symbols.
10190         # This should be the same for all languages, so no per-tag cache variable.
10191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10192 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10193 if ${lt_cv_irix_exported_symbol+:} false; then :
10194   $as_echo_n "(cached) " >&6
10195 else
10196   save_LDFLAGS="$LDFLAGS"
10197            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10198            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h.  */
10200 int foo (void) { return 0; }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203   lt_cv_irix_exported_symbol=yes
10204 else
10205   lt_cv_irix_exported_symbol=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext \
10208     conftest$ac_exeext conftest.$ac_ext
10209            LDFLAGS="$save_LDFLAGS"
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10212 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10213         if test "$lt_cv_irix_exported_symbol" = yes; then
10214           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10215         fi
10216       else
10217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10218         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10219       fi
10220       archive_cmds_need_lc='no'
10221       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222       hardcode_libdir_separator=:
10223       inherit_rpath=yes
10224       link_all_deplibs=yes
10225       ;;
10226
10227     netbsd*)
10228       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10230       else
10231         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10232       fi
10233       hardcode_libdir_flag_spec='-R$libdir'
10234       hardcode_direct=yes
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     newsos6)
10239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240       hardcode_direct=yes
10241       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242       hardcode_libdir_separator=:
10243       hardcode_shlibpath_var=no
10244       ;;
10245
10246     *nto* | *qnx*)
10247       ;;
10248
10249     openbsd*)
10250       if test -f /usr/libexec/ld.so; then
10251         hardcode_direct=yes
10252         hardcode_shlibpath_var=no
10253         hardcode_direct_absolute=yes
10254         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10257           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10258           export_dynamic_flag_spec='${wl}-E'
10259         else
10260           case $host_os in
10261            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10262              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10263              hardcode_libdir_flag_spec='-R$libdir'
10264              ;;
10265            *)
10266              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10267              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10268              ;;
10269           esac
10270         fi
10271       else
10272         ld_shlibs=no
10273       fi
10274       ;;
10275
10276     os2*)
10277       hardcode_libdir_flag_spec='-L$libdir'
10278       hardcode_minus_L=yes
10279       allow_undefined_flag=unsupported
10280       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'
10281       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10282       ;;
10283
10284     osf3*)
10285       if test "$GCC" = yes; then
10286         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10287         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10288       else
10289         allow_undefined_flag=' -expect_unresolved \*'
10290         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10291       fi
10292       archive_cmds_need_lc='no'
10293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294       hardcode_libdir_separator=:
10295       ;;
10296
10297     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10298       if test "$GCC" = yes; then
10299         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10300         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10301         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10302       else
10303         allow_undefined_flag=' -expect_unresolved \*'
10304         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10305         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10306         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10307
10308         # Both c and cxx compiler support -rpath directly
10309         hardcode_libdir_flag_spec='-rpath $libdir'
10310       fi
10311       archive_cmds_need_lc='no'
10312       hardcode_libdir_separator=:
10313       ;;
10314
10315     solaris*)
10316       no_undefined_flag=' -z defs'
10317       if test "$GCC" = yes; then
10318         wlarc='${wl}'
10319         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10320         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10321           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10322       else
10323         case `$CC -V 2>&1` in
10324         *"Compilers 5.0"*)
10325           wlarc=''
10326           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10329           ;;
10330         *)
10331           wlarc='${wl}'
10332           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10333           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10334           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10335           ;;
10336         esac
10337       fi
10338       hardcode_libdir_flag_spec='-R$libdir'
10339       hardcode_shlibpath_var=no
10340       case $host_os in
10341       solaris2.[0-5] | solaris2.[0-5].*) ;;
10342       *)
10343         # The compiler driver will combine and reorder linker options,
10344         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10345         # but is careful enough not to reorder.
10346         # Supported since Solaris 2.6 (maybe 2.5.1?)
10347         if test "$GCC" = yes; then
10348           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10349         else
10350           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10351         fi
10352         ;;
10353       esac
10354       link_all_deplibs=yes
10355       ;;
10356
10357     sunos4*)
10358       if test "x$host_vendor" = xsequent; then
10359         # Use $CC to link under sequent, because it throws in some extra .o
10360         # files that make .init and .fini sections work.
10361         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10362       else
10363         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10364       fi
10365       hardcode_libdir_flag_spec='-L$libdir'
10366       hardcode_direct=yes
10367       hardcode_minus_L=yes
10368       hardcode_shlibpath_var=no
10369       ;;
10370
10371     sysv4)
10372       case $host_vendor in
10373         sni)
10374           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375           hardcode_direct=yes # is this really true???
10376         ;;
10377         siemens)
10378           ## LD is ld it makes a PLAMLIB
10379           ## CC just makes a GrossModule.
10380           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10381           reload_cmds='$CC -r -o $output$reload_objs'
10382           hardcode_direct=no
10383         ;;
10384         motorola)
10385           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10387         ;;
10388       esac
10389       runpath_var='LD_RUN_PATH'
10390       hardcode_shlibpath_var=no
10391       ;;
10392
10393     sysv4.3*)
10394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395       hardcode_shlibpath_var=no
10396       export_dynamic_flag_spec='-Bexport'
10397       ;;
10398
10399     sysv4*MP*)
10400       if test -d /usr/nec; then
10401         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402         hardcode_shlibpath_var=no
10403         runpath_var=LD_RUN_PATH
10404         hardcode_runpath_var=yes
10405         ld_shlibs=yes
10406       fi
10407       ;;
10408
10409     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10410       no_undefined_flag='${wl}-z,text'
10411       archive_cmds_need_lc=no
10412       hardcode_shlibpath_var=no
10413       runpath_var='LD_RUN_PATH'
10414
10415       if test "$GCC" = yes; then
10416         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418       else
10419         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421       fi
10422       ;;
10423
10424     sysv5* | sco3.2v5* | sco5v6*)
10425       # Note: We can NOT use -z defs as we might desire, because we do not
10426       # link with -lc, and that would cause any symbols used from libc to
10427       # always be unresolved, which means just about no library would
10428       # ever link correctly.  If we're not using GNU ld we use -z text
10429       # though, which does catch some bad symbols but isn't as heavy-handed
10430       # as -z defs.
10431       no_undefined_flag='${wl}-z,text'
10432       allow_undefined_flag='${wl}-z,nodefs'
10433       archive_cmds_need_lc=no
10434       hardcode_shlibpath_var=no
10435       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10436       hardcode_libdir_separator=':'
10437       link_all_deplibs=yes
10438       export_dynamic_flag_spec='${wl}-Bexport'
10439       runpath_var='LD_RUN_PATH'
10440
10441       if test "$GCC" = yes; then
10442         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444       else
10445         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447       fi
10448       ;;
10449
10450     uts4*)
10451       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452       hardcode_libdir_flag_spec='-L$libdir'
10453       hardcode_shlibpath_var=no
10454       ;;
10455
10456     *)
10457       ld_shlibs=no
10458       ;;
10459     esac
10460
10461     if test x$host_vendor = xsni; then
10462       case $host in
10463       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10464         export_dynamic_flag_spec='${wl}-Blargedynsym'
10465         ;;
10466       esac
10467     fi
10468   fi
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10471 $as_echo "$ld_shlibs" >&6; }
10472 test "$ld_shlibs" = no && can_build_shared=no
10473
10474 with_gnu_ld=$with_gnu_ld
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490 #
10491 # Do we need to explicitly link libc?
10492 #
10493 case "x$archive_cmds_need_lc" in
10494 x|xyes)
10495   # Assume -lc should be added
10496   archive_cmds_need_lc=yes
10497
10498   if test "$enable_shared" = yes && test "$GCC" = yes; then
10499     case $archive_cmds in
10500     *'~'*)
10501       # FIXME: we may have to deal with multi-command sequences.
10502       ;;
10503     '$CC '*)
10504       # Test whether the compiler implicitly links with -lc since on some
10505       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10506       # to ld, don't add -lc before -lgcc.
10507       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10509 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10510   $as_echo_n "(cached) " >&6
10511 else
10512   $RM conftest*
10513         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10514
10515         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10516   (eval $ac_compile) 2>&5
10517   ac_status=$?
10518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519   test $ac_status = 0; } 2>conftest.err; then
10520           soname=conftest
10521           lib=conftest
10522           libobjs=conftest.$ac_objext
10523           deplibs=
10524           wl=$lt_prog_compiler_wl
10525           pic_flag=$lt_prog_compiler_pic
10526           compiler_flags=-v
10527           linker_flags=-v
10528           verstring=
10529           output_objdir=.
10530           libname=conftest
10531           lt_save_allow_undefined_flag=$allow_undefined_flag
10532           allow_undefined_flag=
10533           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10534   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10535   ac_status=$?
10536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10537   test $ac_status = 0; }
10538           then
10539             lt_cv_archive_cmds_need_lc=no
10540           else
10541             lt_cv_archive_cmds_need_lc=yes
10542           fi
10543           allow_undefined_flag=$lt_save_allow_undefined_flag
10544         else
10545           cat conftest.err 1>&5
10546         fi
10547         $RM conftest*
10548
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10551 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10552       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10553       ;;
10554     esac
10555   fi
10556   ;;
10557 esac
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10712
10713 if test "$GCC" = yes; then
10714   case $host_os in
10715     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10716     *) lt_awk_arg="/^libraries:/" ;;
10717   esac
10718   case $host_os in
10719     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10720     *) lt_sed_strip_eq="s,=/,/,g" ;;
10721   esac
10722   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10723   case $lt_search_path_spec in
10724   *\;*)
10725     # if the path contains ";" then we assume it to be the separator
10726     # otherwise default to the standard path separator (i.e. ":") - it is
10727     # assumed that no part of a normal pathname contains ";" but that should
10728     # okay in the real world where ";" in dirpaths is itself problematic.
10729     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10730     ;;
10731   *)
10732     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10733     ;;
10734   esac
10735   # Ok, now we have the path, separated by spaces, we can step through it
10736   # and add multilib dir if necessary.
10737   lt_tmp_lt_search_path_spec=
10738   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10739   for lt_sys_path in $lt_search_path_spec; do
10740     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10741       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10742     else
10743       test -d "$lt_sys_path" && \
10744         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10745     fi
10746   done
10747   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10748 BEGIN {RS=" "; FS="/|\n";} {
10749   lt_foo="";
10750   lt_count=0;
10751   for (lt_i = NF; lt_i > 0; lt_i--) {
10752     if ($lt_i != "" && $lt_i != ".") {
10753       if ($lt_i == "..") {
10754         lt_count++;
10755       } else {
10756         if (lt_count == 0) {
10757           lt_foo="/" $lt_i lt_foo;
10758         } else {
10759           lt_count--;
10760         }
10761       }
10762     }
10763   }
10764   if (lt_foo != "") { lt_freq[lt_foo]++; }
10765   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10766 }'`
10767   # AWK program above erroneously prepends '/' to C:/dos/paths
10768   # for these hosts.
10769   case $host_os in
10770     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10771       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10772   esac
10773   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10774 else
10775   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10776 fi
10777 library_names_spec=
10778 libname_spec='lib$name'
10779 soname_spec=
10780 shrext_cmds=".so"
10781 postinstall_cmds=
10782 postuninstall_cmds=
10783 finish_cmds=
10784 finish_eval=
10785 shlibpath_var=
10786 shlibpath_overrides_runpath=unknown
10787 version_type=none
10788 dynamic_linker="$host_os ld.so"
10789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10790 need_lib_prefix=unknown
10791 hardcode_into_libs=no
10792
10793 # when you set need_version to no, make sure it does not cause -set_version
10794 # flags to be left without arguments
10795 need_version=unknown
10796
10797 case $host_os in
10798 aix3*)
10799   version_type=linux # correct to gnu/linux during the next big refactor
10800   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10801   shlibpath_var=LIBPATH
10802
10803   # AIX 3 has no versioning support, so we append a major version to the name.
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   ;;
10806
10807 aix[4-9]*)
10808   version_type=linux # correct to gnu/linux during the next big refactor
10809   need_lib_prefix=no
10810   need_version=no
10811   hardcode_into_libs=yes
10812   if test "$host_cpu" = ia64; then
10813     # AIX 5 supports IA64
10814     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10815     shlibpath_var=LD_LIBRARY_PATH
10816   else
10817     # With GCC up to 2.95.x, collect2 would create an import file
10818     # for dependence libraries.  The import file would start with
10819     # the line `#! .'.  This would cause the generated library to
10820     # depend on `.', always an invalid library.  This was fixed in
10821     # development snapshots of GCC prior to 3.0.
10822     case $host_os in
10823       aix4 | aix4.[01] | aix4.[01].*)
10824       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10825            echo ' yes '
10826            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10827         :
10828       else
10829         can_build_shared=no
10830       fi
10831       ;;
10832     esac
10833     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10834     # soname into executable. Probably we can add versioning support to
10835     # collect2, so additional links can be useful in future.
10836     if test "$aix_use_runtimelinking" = yes; then
10837       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10838       # instead of lib<name>.a to let people know that these are not
10839       # typical AIX shared libraries.
10840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841     else
10842       # We preserve .a as extension for shared libraries through AIX4.2
10843       # and later when we are not doing run time linking.
10844       library_names_spec='${libname}${release}.a $libname.a'
10845       soname_spec='${libname}${release}${shared_ext}$major'
10846     fi
10847     shlibpath_var=LIBPATH
10848   fi
10849   ;;
10850
10851 amigaos*)
10852   case $host_cpu in
10853   powerpc)
10854     # Since July 2007 AmigaOS4 officially supports .so libraries.
10855     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857     ;;
10858   m68k)
10859     library_names_spec='$libname.ixlibrary $libname.a'
10860     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10861     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10862     ;;
10863   esac
10864   ;;
10865
10866 beos*)
10867   library_names_spec='${libname}${shared_ext}'
10868   dynamic_linker="$host_os ld.so"
10869   shlibpath_var=LIBRARY_PATH
10870   ;;
10871
10872 bsdi[45]*)
10873   version_type=linux # correct to gnu/linux during the next big refactor
10874   need_version=no
10875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876   soname_spec='${libname}${release}${shared_ext}$major'
10877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10878   shlibpath_var=LD_LIBRARY_PATH
10879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10881   # the default ld.so.conf also contains /usr/contrib/lib and
10882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10883   # libtool to hard-code these into programs
10884   ;;
10885
10886 cygwin* | mingw* | pw32* | cegcc*)
10887   version_type=windows
10888   shrext_cmds=".dll"
10889   need_version=no
10890   need_lib_prefix=no
10891
10892   case $GCC,$cc_basename in
10893   yes,*)
10894     # gcc
10895     library_names_spec='$libname.dll.a'
10896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10897     postinstall_cmds='base_file=`basename \${file}`~
10898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10899       dldir=$destdir/`dirname \$dlpath`~
10900       test -d \$dldir || mkdir -p \$dldir~
10901       $install_prog $dir/$dlname \$dldir/$dlname~
10902       chmod a+x \$dldir/$dlname~
10903       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10904         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10905       fi'
10906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10907       dlpath=$dir/\$dldll~
10908        $RM \$dlpath'
10909     shlibpath_overrides_runpath=yes
10910
10911     case $host_os in
10912     cygwin*)
10913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10915
10916       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10917       ;;
10918     mingw* | cegcc*)
10919       # MinGW DLLs use traditional 'lib' prefix
10920       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10921       ;;
10922     pw32*)
10923       # pw32 DLLs use 'pw' prefix rather than 'lib'
10924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10925       ;;
10926     esac
10927     dynamic_linker='Win32 ld.exe'
10928     ;;
10929
10930   *,cl*)
10931     # Native MSVC
10932     libname_spec='$name'
10933     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10934     library_names_spec='${libname}.dll.lib'
10935
10936     case $build_os in
10937     mingw*)
10938       sys_lib_search_path_spec=
10939       lt_save_ifs=$IFS
10940       IFS=';'
10941       for lt_path in $LIB
10942       do
10943         IFS=$lt_save_ifs
10944         # Let DOS variable expansion print the short 8.3 style file name.
10945         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10946         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10947       done
10948       IFS=$lt_save_ifs
10949       # Convert to MSYS style.
10950       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10951       ;;
10952     cygwin*)
10953       # Convert to unix form, then to dos form, then back to unix form
10954       # but this time dos style (no spaces!) so that the unix form looks
10955       # like /cygdrive/c/PROGRA~1:/cygdr...
10956       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10957       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10958       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10959       ;;
10960     *)
10961       sys_lib_search_path_spec="$LIB"
10962       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10963         # It is most probably a Windows format PATH.
10964         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10965       else
10966         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10967       fi
10968       # FIXME: find the short name or the path components, as spaces are
10969       # common. (e.g. "Program Files" -> "PROGRA~1")
10970       ;;
10971     esac
10972
10973     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10974     postinstall_cmds='base_file=`basename \${file}`~
10975       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10976       dldir=$destdir/`dirname \$dlpath`~
10977       test -d \$dldir || mkdir -p \$dldir~
10978       $install_prog $dir/$dlname \$dldir/$dlname'
10979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10980       dlpath=$dir/\$dldll~
10981        $RM \$dlpath'
10982     shlibpath_overrides_runpath=yes
10983     dynamic_linker='Win32 link.exe'
10984     ;;
10985
10986   *)
10987     # Assume MSVC wrapper
10988     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10989     dynamic_linker='Win32 ld.exe'
10990     ;;
10991   esac
10992   # FIXME: first we should search . and the directory the executable is in
10993   shlibpath_var=PATH
10994   ;;
10995
10996 darwin* | rhapsody*)
10997   dynamic_linker="$host_os dyld"
10998   version_type=darwin
10999   need_lib_prefix=no
11000   need_version=no
11001   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11002   soname_spec='${libname}${release}${major}$shared_ext'
11003   shlibpath_overrides_runpath=yes
11004   shlibpath_var=DYLD_LIBRARY_PATH
11005   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11006
11007   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11009   ;;
11010
11011 dgux*)
11012   version_type=linux # correct to gnu/linux during the next big refactor
11013   need_lib_prefix=no
11014   need_version=no
11015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11016   soname_spec='${libname}${release}${shared_ext}$major'
11017   shlibpath_var=LD_LIBRARY_PATH
11018   ;;
11019
11020 freebsd* | dragonfly*)
11021   # DragonFly does not have aout.  When/if they implement a new
11022   # versioning mechanism, adjust this.
11023   if test -x /usr/bin/objformat; then
11024     objformat=`/usr/bin/objformat`
11025   else
11026     case $host_os in
11027     freebsd[23].*) objformat=aout ;;
11028     *) objformat=elf ;;
11029     esac
11030   fi
11031   version_type=freebsd-$objformat
11032   case $version_type in
11033     freebsd-elf*)
11034       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11035       need_version=no
11036       need_lib_prefix=no
11037       ;;
11038     freebsd-*)
11039       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11040       need_version=yes
11041       ;;
11042   esac
11043   shlibpath_var=LD_LIBRARY_PATH
11044   case $host_os in
11045   freebsd2.*)
11046     shlibpath_overrides_runpath=yes
11047     ;;
11048   freebsd3.[01]* | freebsdelf3.[01]*)
11049     shlibpath_overrides_runpath=yes
11050     hardcode_into_libs=yes
11051     ;;
11052   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11053   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11054     shlibpath_overrides_runpath=no
11055     hardcode_into_libs=yes
11056     ;;
11057   *) # from 4.6 on, and DragonFly
11058     shlibpath_overrides_runpath=yes
11059     hardcode_into_libs=yes
11060     ;;
11061   esac
11062   ;;
11063
11064 gnu*)
11065   version_type=linux # correct to gnu/linux during the next big refactor
11066   need_lib_prefix=no
11067   need_version=no
11068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11069   soname_spec='${libname}${release}${shared_ext}$major'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   shlibpath_overrides_runpath=no
11072   hardcode_into_libs=yes
11073   ;;
11074
11075 haiku*)
11076   version_type=linux # correct to gnu/linux during the next big refactor
11077   need_lib_prefix=no
11078   need_version=no
11079   dynamic_linker="$host_os runtime_loader"
11080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11081   soname_spec='${libname}${release}${shared_ext}$major'
11082   shlibpath_var=LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11085   hardcode_into_libs=yes
11086   ;;
11087
11088 hpux9* | hpux10* | hpux11*)
11089   # Give a soname corresponding to the major version so that dld.sl refuses to
11090   # link against other versions.
11091   version_type=sunos
11092   need_lib_prefix=no
11093   need_version=no
11094   case $host_cpu in
11095   ia64*)
11096     shrext_cmds='.so'
11097     hardcode_into_libs=yes
11098     dynamic_linker="$host_os dld.so"
11099     shlibpath_var=LD_LIBRARY_PATH
11100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     if test "X$HPUX_IA64_MODE" = X32; then
11104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11105     else
11106       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11107     fi
11108     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11109     ;;
11110   hppa*64*)
11111     shrext_cmds='.sl'
11112     hardcode_into_libs=yes
11113     dynamic_linker="$host_os dld.sl"
11114     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117     soname_spec='${libname}${release}${shared_ext}$major'
11118     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11120     ;;
11121   *)
11122     shrext_cmds='.sl'
11123     dynamic_linker="$host_os dld.sl"
11124     shlibpath_var=SHLIB_PATH
11125     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127     soname_spec='${libname}${release}${shared_ext}$major'
11128     ;;
11129   esac
11130   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11131   postinstall_cmds='chmod 555 $lib'
11132   # or fails outright, so override atomically:
11133   install_override_mode=555
11134   ;;
11135
11136 interix[3-9]*)
11137   version_type=linux # correct to gnu/linux during the next big refactor
11138   need_lib_prefix=no
11139   need_version=no
11140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11141   soname_spec='${libname}${release}${shared_ext}$major'
11142   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   shlibpath_overrides_runpath=no
11145   hardcode_into_libs=yes
11146   ;;
11147
11148 irix5* | irix6* | nonstopux*)
11149   case $host_os in
11150     nonstopux*) version_type=nonstopux ;;
11151     *)
11152         if test "$lt_cv_prog_gnu_ld" = yes; then
11153                 version_type=linux # correct to gnu/linux during the next big refactor
11154         else
11155                 version_type=irix
11156         fi ;;
11157   esac
11158   need_lib_prefix=no
11159   need_version=no
11160   soname_spec='${libname}${release}${shared_ext}$major'
11161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11162   case $host_os in
11163   irix5* | nonstopux*)
11164     libsuff= shlibsuff=
11165     ;;
11166   *)
11167     case $LD in # libtool.m4 will add one of these switches to LD
11168     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11169       libsuff= shlibsuff= libmagic=32-bit;;
11170     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11171       libsuff=32 shlibsuff=N32 libmagic=N32;;
11172     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11173       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11174     *) libsuff= shlibsuff= libmagic=never-match;;
11175     esac
11176     ;;
11177   esac
11178   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11179   shlibpath_overrides_runpath=no
11180   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11181   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11182   hardcode_into_libs=yes
11183   ;;
11184
11185 # No shared lib support for Linux oldld, aout, or coff.
11186 linux*oldld* | linux*aout* | linux*coff*)
11187   dynamic_linker=no
11188   ;;
11189
11190 # This must be glibc/ELF.
11191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11192   version_type=linux # correct to gnu/linux during the next big refactor
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196   soname_spec='${libname}${release}${shared_ext}$major'
11197   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=no
11200
11201   # Some binutils ld are patched to set DT_RUNPATH
11202   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   lt_cv_shlibpath_overrides_runpath=no
11206     save_LDFLAGS=$LDFLAGS
11207     save_libdir=$libdir
11208     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11209          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h.  */
11212
11213 int
11214 main ()
11215 {
11216
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_link "$LINENO"; then :
11222   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11223   lt_cv_shlibpath_overrides_runpath=yes
11224 fi
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext \
11227     conftest$ac_exeext conftest.$ac_ext
11228     LDFLAGS=$save_LDFLAGS
11229     libdir=$save_libdir
11230
11231 fi
11232
11233   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11234
11235   # This implies no fast_install, which is unacceptable.
11236   # Some rework will be needed to allow for fast_install
11237   # before this can be enabled.
11238   hardcode_into_libs=yes
11239
11240   # Add ABI-specific directories to the system library path.
11241   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11242
11243   # Append ld.so.conf contents to the search path
11244   if test -f /etc/ld.so.conf; then
11245     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;s/"//g;/^$/d' | tr '\n' ' '`
11246     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11247
11248   fi
11249
11250   # We used to test for /lib/ld.so.1 and disable shared libraries on
11251   # powerpc, because MkLinux only supported shared libraries with the
11252   # GNU dynamic linker.  Since this was broken with cross compilers,
11253   # most powerpc-linux boxes support dynamic linking these days and
11254   # people can always --disable-shared, the test was removed, and we
11255   # assume the GNU/Linux dynamic linker is in use.
11256   dynamic_linker='GNU/Linux ld.so'
11257   ;;
11258
11259 netbsd*)
11260   version_type=sunos
11261   need_lib_prefix=no
11262   need_version=no
11263   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11265     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11266     dynamic_linker='NetBSD (a.out) ld.so'
11267   else
11268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11269     soname_spec='${libname}${release}${shared_ext}$major'
11270     dynamic_linker='NetBSD ld.elf_so'
11271   fi
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=yes
11274   hardcode_into_libs=yes
11275   ;;
11276
11277 newsos6)
11278   version_type=linux # correct to gnu/linux during the next big refactor
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=yes
11282   ;;
11283
11284 *nto* | *qnx*)
11285   version_type=qnx
11286   need_lib_prefix=no
11287   need_version=no
11288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289   soname_spec='${libname}${release}${shared_ext}$major'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   shlibpath_overrides_runpath=no
11292   hardcode_into_libs=yes
11293   dynamic_linker='ldqnx.so'
11294   ;;
11295
11296 openbsd*)
11297   version_type=sunos
11298   sys_lib_dlsearch_path_spec="/usr/lib"
11299   need_lib_prefix=no
11300   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11301   case $host_os in
11302     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11303     *)                          need_version=no  ;;
11304   esac
11305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11309     case $host_os in
11310       openbsd2.[89] | openbsd2.[89].*)
11311         shlibpath_overrides_runpath=no
11312         ;;
11313       *)
11314         shlibpath_overrides_runpath=yes
11315         ;;
11316       esac
11317   else
11318     shlibpath_overrides_runpath=yes
11319   fi
11320   ;;
11321
11322 os2*)
11323   libname_spec='$name'
11324   shrext_cmds=".dll"
11325   need_lib_prefix=no
11326   library_names_spec='$libname${shared_ext} $libname.a'
11327   dynamic_linker='OS/2 ld.exe'
11328   shlibpath_var=LIBPATH
11329   ;;
11330
11331 osf3* | osf4* | osf5*)
11332   version_type=osf
11333   need_lib_prefix=no
11334   need_version=no
11335   soname_spec='${libname}${release}${shared_ext}$major'
11336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337   shlibpath_var=LD_LIBRARY_PATH
11338   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11339   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11340   ;;
11341
11342 rdos*)
11343   dynamic_linker=no
11344   ;;
11345
11346 solaris*)
11347   version_type=linux # correct to gnu/linux during the next big refactor
11348   need_lib_prefix=no
11349   need_version=no
11350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351   soname_spec='${libname}${release}${shared_ext}$major'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   shlibpath_overrides_runpath=yes
11354   hardcode_into_libs=yes
11355   # ldd complains unless libraries are executable
11356   postinstall_cmds='chmod +x $lib'
11357   ;;
11358
11359 sunos4*)
11360   version_type=sunos
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11363   shlibpath_var=LD_LIBRARY_PATH
11364   shlibpath_overrides_runpath=yes
11365   if test "$with_gnu_ld" = yes; then
11366     need_lib_prefix=no
11367   fi
11368   need_version=yes
11369   ;;
11370
11371 sysv4 | sysv4.3*)
11372   version_type=linux # correct to gnu/linux during the next big refactor
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   shlibpath_var=LD_LIBRARY_PATH
11376   case $host_vendor in
11377     sni)
11378       shlibpath_overrides_runpath=no
11379       need_lib_prefix=no
11380       runpath_var=LD_RUN_PATH
11381       ;;
11382     siemens)
11383       need_lib_prefix=no
11384       ;;
11385     motorola)
11386       need_lib_prefix=no
11387       need_version=no
11388       shlibpath_overrides_runpath=no
11389       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11390       ;;
11391   esac
11392   ;;
11393
11394 sysv4*MP*)
11395   if test -d /usr/nec ;then
11396     version_type=linux # correct to gnu/linux during the next big refactor
11397     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11398     soname_spec='$libname${shared_ext}.$major'
11399     shlibpath_var=LD_LIBRARY_PATH
11400   fi
11401   ;;
11402
11403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11404   version_type=freebsd-elf
11405   need_lib_prefix=no
11406   need_version=no
11407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11408   soname_spec='${libname}${release}${shared_ext}$major'
11409   shlibpath_var=LD_LIBRARY_PATH
11410   shlibpath_overrides_runpath=yes
11411   hardcode_into_libs=yes
11412   if test "$with_gnu_ld" = yes; then
11413     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11414   else
11415     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11416     case $host_os in
11417       sco3.2v5*)
11418         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11419         ;;
11420     esac
11421   fi
11422   sys_lib_dlsearch_path_spec='/usr/lib'
11423   ;;
11424
11425 tpf*)
11426   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11427   version_type=linux # correct to gnu/linux during the next big refactor
11428   need_lib_prefix=no
11429   need_version=no
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   shlibpath_overrides_runpath=no
11433   hardcode_into_libs=yes
11434   ;;
11435
11436 uts4*)
11437   version_type=linux # correct to gnu/linux during the next big refactor
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439   soname_spec='${libname}${release}${shared_ext}$major'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   ;;
11442
11443 *)
11444   dynamic_linker=no
11445   ;;
11446 esac
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11448 $as_echo "$dynamic_linker" >&6; }
11449 test "$dynamic_linker" = no && can_build_shared=no
11450
11451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11452 if test "$GCC" = yes; then
11453   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11454 fi
11455
11456 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11457   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11458 fi
11459 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11460   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11461 fi
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11556 hardcode_action=
11557 if test -n "$hardcode_libdir_flag_spec" ||
11558    test -n "$runpath_var" ||
11559    test "X$hardcode_automatic" = "Xyes" ; then
11560
11561   # We can hardcode non-existent directories.
11562   if test "$hardcode_direct" != no &&
11563      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11564      # have to relink, otherwise we might link with an installed library
11565      # when we should be linking with a yet-to-be-installed one
11566      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11567      test "$hardcode_minus_L" != no; then
11568     # Linking always hardcodes the temporary library directory.
11569     hardcode_action=relink
11570   else
11571     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11572     hardcode_action=immediate
11573   fi
11574 else
11575   # We cannot hardcode anything, or else we can only hardcode existing
11576   # directories.
11577   hardcode_action=unsupported
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11580 $as_echo "$hardcode_action" >&6; }
11581
11582 if test "$hardcode_action" = relink ||
11583    test "$inherit_rpath" = yes; then
11584   # Fast installation is not supported
11585   enable_fast_install=no
11586 elif test "$shlibpath_overrides_runpath" = yes ||
11587      test "$enable_shared" = no; then
11588   # Fast installation is not necessary
11589   enable_fast_install=needless
11590 fi
11591
11592
11593
11594
11595
11596
11597   if test "x$enable_dlopen" != xyes; then
11598   enable_dlopen=unknown
11599   enable_dlopen_self=unknown
11600   enable_dlopen_self_static=unknown
11601 else
11602   lt_cv_dlopen=no
11603   lt_cv_dlopen_libs=
11604
11605   case $host_os in
11606   beos*)
11607     lt_cv_dlopen="load_add_on"
11608     lt_cv_dlopen_libs=
11609     lt_cv_dlopen_self=yes
11610     ;;
11611
11612   mingw* | pw32* | cegcc*)
11613     lt_cv_dlopen="LoadLibrary"
11614     lt_cv_dlopen_libs=
11615     ;;
11616
11617   cygwin*)
11618     lt_cv_dlopen="dlopen"
11619     lt_cv_dlopen_libs=
11620     ;;
11621
11622   darwin*)
11623   # if libdl is installed we need to link against it
11624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11626 if ${ac_cv_lib_dl_dlopen+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldl  $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h.  */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635    Use char because int might match the return type of a GCC
11636    builtin and then its argument prototype would still apply.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 int
11642 main ()
11643 {
11644 return dlopen ();
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650   ac_cv_lib_dl_dlopen=yes
11651 else
11652   ac_cv_lib_dl_dlopen=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655     conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662 else
11663
11664     lt_cv_dlopen="dyld"
11665     lt_cv_dlopen_libs=
11666     lt_cv_dlopen_self=yes
11667
11668 fi
11669
11670     ;;
11671
11672   *)
11673     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11674 if test "x$ac_cv_func_shl_load" = xyes; then :
11675   lt_cv_dlopen="shl_load"
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11678 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11679 if ${ac_cv_lib_dld_shl_load+:} false; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   ac_check_lib_save_LIBS=$LIBS
11683 LIBS="-ldld  $LIBS"
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h.  */
11686
11687 /* Override any GCC internal prototype to avoid an error.
11688    Use char because int might match the return type of a GCC
11689    builtin and then its argument prototype would still apply.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 char shl_load ();
11694 int
11695 main ()
11696 {
11697 return shl_load ();
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"; then :
11703   ac_cv_lib_dld_shl_load=yes
11704 else
11705   ac_cv_lib_dld_shl_load=no
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext \
11708     conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11710 fi
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11712 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11713 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11714   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11715 else
11716   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11717 if test "x$ac_cv_func_dlopen" = xyes; then :
11718   lt_cv_dlopen="dlopen"
11719 else
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11721 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11722 if ${ac_cv_lib_dl_dlopen+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   ac_check_lib_save_LIBS=$LIBS
11726 LIBS="-ldl  $LIBS"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729
11730 /* Override any GCC internal prototype to avoid an error.
11731    Use char because int might match the return type of a GCC
11732    builtin and then its argument prototype would still apply.  */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 char dlopen ();
11737 int
11738 main ()
11739 {
11740 return dlopen ();
11741   ;
11742   return 0;
11743 }
11744 _ACEOF
11745 if ac_fn_c_try_link "$LINENO"; then :
11746   ac_cv_lib_dl_dlopen=yes
11747 else
11748   ac_cv_lib_dl_dlopen=no
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext \
11751     conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11755 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11756 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11757   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11758 else
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11760 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11761 if ${ac_cv_lib_svld_dlopen+:} false; then :
11762   $as_echo_n "(cached) " >&6
11763 else
11764   ac_check_lib_save_LIBS=$LIBS
11765 LIBS="-lsvld  $LIBS"
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h.  */
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770    Use char because int might match the return type of a GCC
11771    builtin and then its argument prototype would still apply.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char dlopen ();
11776 int
11777 main ()
11778 {
11779 return dlopen ();
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"; then :
11785   ac_cv_lib_svld_dlopen=yes
11786 else
11787   ac_cv_lib_svld_dlopen=no
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext \
11790     conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11792 fi
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11794 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11795 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11796   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11797 else
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11799 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11800 if ${ac_cv_lib_dld_dld_link+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ldld  $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dld_link ();
11815 int
11816 main ()
11817 {
11818 return dld_link ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824   ac_cv_lib_dld_dld_link=yes
11825 else
11826   ac_cv_lib_dld_dld_link=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext \
11829     conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11833 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11834 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11835   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11836 fi
11837
11838
11839 fi
11840
11841
11842 fi
11843
11844
11845 fi
11846
11847
11848 fi
11849
11850
11851 fi
11852
11853     ;;
11854   esac
11855
11856   if test "x$lt_cv_dlopen" != xno; then
11857     enable_dlopen=yes
11858   else
11859     enable_dlopen=no
11860   fi
11861
11862   case $lt_cv_dlopen in
11863   dlopen)
11864     save_CPPFLAGS="$CPPFLAGS"
11865     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11866
11867     save_LDFLAGS="$LDFLAGS"
11868     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11869
11870     save_LIBS="$LIBS"
11871     LIBS="$lt_cv_dlopen_libs $LIBS"
11872
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11874 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11875 if ${lt_cv_dlopen_self+:} false; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878           if test "$cross_compiling" = yes; then :
11879   lt_cv_dlopen_self=cross
11880 else
11881   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11882   lt_status=$lt_dlunknown
11883   cat > conftest.$ac_ext <<_LT_EOF
11884 #line $LINENO "configure"
11885 #include "confdefs.h"
11886
11887 #if HAVE_DLFCN_H
11888 #include <dlfcn.h>
11889 #endif
11890
11891 #include <stdio.h>
11892
11893 #ifdef RTLD_GLOBAL
11894 #  define LT_DLGLOBAL           RTLD_GLOBAL
11895 #else
11896 #  ifdef DL_GLOBAL
11897 #    define LT_DLGLOBAL         DL_GLOBAL
11898 #  else
11899 #    define LT_DLGLOBAL         0
11900 #  endif
11901 #endif
11902
11903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11904    find out it does not work in some platform. */
11905 #ifndef LT_DLLAZY_OR_NOW
11906 #  ifdef RTLD_LAZY
11907 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11908 #  else
11909 #    ifdef DL_LAZY
11910 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11911 #    else
11912 #      ifdef RTLD_NOW
11913 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11914 #      else
11915 #        ifdef DL_NOW
11916 #          define LT_DLLAZY_OR_NOW      DL_NOW
11917 #        else
11918 #          define LT_DLLAZY_OR_NOW      0
11919 #        endif
11920 #      endif
11921 #    endif
11922 #  endif
11923 #endif
11924
11925 /* When -fvisbility=hidden is used, assume the code has been annotated
11926    correspondingly for the symbols needed.  */
11927 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11928 int fnord () __attribute__((visibility("default")));
11929 #endif
11930
11931 int fnord () { return 42; }
11932 int main ()
11933 {
11934   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11935   int status = $lt_dlunknown;
11936
11937   if (self)
11938     {
11939       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11940       else
11941         {
11942           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11943           else puts (dlerror ());
11944         }
11945       /* dlclose (self); */
11946     }
11947   else
11948     puts (dlerror ());
11949
11950   return status;
11951 }
11952 _LT_EOF
11953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11954   (eval $ac_link) 2>&5
11955   ac_status=$?
11956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11958     (./conftest; exit; ) >&5 2>/dev/null
11959     lt_status=$?
11960     case x$lt_status in
11961       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11962       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11963       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11964     esac
11965   else :
11966     # compilation failed
11967     lt_cv_dlopen_self=no
11968   fi
11969 fi
11970 rm -fr conftest*
11971
11972
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11975 $as_echo "$lt_cv_dlopen_self" >&6; }
11976
11977     if test "x$lt_cv_dlopen_self" = xyes; then
11978       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11980 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11981 if ${lt_cv_dlopen_self_static+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984           if test "$cross_compiling" = yes; then :
11985   lt_cv_dlopen_self_static=cross
11986 else
11987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11988   lt_status=$lt_dlunknown
11989   cat > conftest.$ac_ext <<_LT_EOF
11990 #line $LINENO "configure"
11991 #include "confdefs.h"
11992
11993 #if HAVE_DLFCN_H
11994 #include <dlfcn.h>
11995 #endif
11996
11997 #include <stdio.h>
11998
11999 #ifdef RTLD_GLOBAL
12000 #  define LT_DLGLOBAL           RTLD_GLOBAL
12001 #else
12002 #  ifdef DL_GLOBAL
12003 #    define LT_DLGLOBAL         DL_GLOBAL
12004 #  else
12005 #    define LT_DLGLOBAL         0
12006 #  endif
12007 #endif
12008
12009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12010    find out it does not work in some platform. */
12011 #ifndef LT_DLLAZY_OR_NOW
12012 #  ifdef RTLD_LAZY
12013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12014 #  else
12015 #    ifdef DL_LAZY
12016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12017 #    else
12018 #      ifdef RTLD_NOW
12019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12020 #      else
12021 #        ifdef DL_NOW
12022 #          define LT_DLLAZY_OR_NOW      DL_NOW
12023 #        else
12024 #          define LT_DLLAZY_OR_NOW      0
12025 #        endif
12026 #      endif
12027 #    endif
12028 #  endif
12029 #endif
12030
12031 /* When -fvisbility=hidden is used, assume the code has been annotated
12032    correspondingly for the symbols needed.  */
12033 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12034 int fnord () __attribute__((visibility("default")));
12035 #endif
12036
12037 int fnord () { return 42; }
12038 int main ()
12039 {
12040   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12041   int status = $lt_dlunknown;
12042
12043   if (self)
12044     {
12045       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12046       else
12047         {
12048           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12049           else puts (dlerror ());
12050         }
12051       /* dlclose (self); */
12052     }
12053   else
12054     puts (dlerror ());
12055
12056   return status;
12057 }
12058 _LT_EOF
12059   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12060   (eval $ac_link) 2>&5
12061   ac_status=$?
12062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12063   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12064     (./conftest; exit; ) >&5 2>/dev/null
12065     lt_status=$?
12066     case x$lt_status in
12067       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12068       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12069       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12070     esac
12071   else :
12072     # compilation failed
12073     lt_cv_dlopen_self_static=no
12074   fi
12075 fi
12076 rm -fr conftest*
12077
12078
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12081 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12082     fi
12083
12084     CPPFLAGS="$save_CPPFLAGS"
12085     LDFLAGS="$save_LDFLAGS"
12086     LIBS="$save_LIBS"
12087     ;;
12088   esac
12089
12090   case $lt_cv_dlopen_self in
12091   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12092   *) enable_dlopen_self=unknown ;;
12093   esac
12094
12095   case $lt_cv_dlopen_self_static in
12096   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12097   *) enable_dlopen_self_static=unknown ;;
12098   esac
12099 fi
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117 striplib=
12118 old_striplib=
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12120 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12121 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12122   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12123   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; }
12126 else
12127 # FIXME - insert some real tests, host_os isn't really good enough
12128   case $host_os in
12129   darwin*)
12130     if test -n "$STRIP" ; then
12131       striplib="$STRIP -x"
12132       old_striplib="$STRIP -S"
12133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12134 $as_echo "yes" >&6; }
12135     else
12136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138     fi
12139     ;;
12140   *)
12141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143     ;;
12144   esac
12145 fi
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158   # Report which library types will actually be built
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12160 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12162 $as_echo "$can_build_shared" >&6; }
12163
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12165 $as_echo_n "checking whether to build shared libraries... " >&6; }
12166   test "$can_build_shared" = "no" && enable_shared=no
12167
12168   # On AIX, shared libraries and static libraries use the same namespace, and
12169   # are all built from PIC.
12170   case $host_os in
12171   aix3*)
12172     test "$enable_shared" = yes && enable_static=no
12173     if test -n "$RANLIB"; then
12174       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12175       postinstall_cmds='$RANLIB $lib'
12176     fi
12177     ;;
12178
12179   aix[4-9]*)
12180     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12181       test "$enable_shared" = yes && enable_static=no
12182     fi
12183     ;;
12184   esac
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12186 $as_echo "$enable_shared" >&6; }
12187
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12189 $as_echo_n "checking whether to build static libraries... " >&6; }
12190   # Make sure either enable_shared or enable_static is yes.
12191   test "$enable_shared" = yes || enable_static=yes
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12193 $as_echo "$enable_static" >&6; }
12194
12195
12196
12197
12198 fi
12199 ac_ext=c
12200 ac_cpp='$CPP $CPPFLAGS'
12201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12204
12205 CC="$lt_save_CC"
12206
12207       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12208     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12209     (test "X$CXX" != "Xg++"))) ; then
12210   ac_ext=cpp
12211 ac_cpp='$CXXCPP $CPPFLAGS'
12212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12216 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12217 if test -z "$CXXCPP"; then
12218   if ${ac_cv_prog_CXXCPP+:} false; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221       # Double quotes because CXXCPP needs to be expanded
12222     for CXXCPP in "$CXX -E" "/lib/cpp"
12223     do
12224       ac_preproc_ok=false
12225 for ac_cxx_preproc_warn_flag in '' yes
12226 do
12227   # Use a header file that comes with gcc, so configuring glibc
12228   # with a fresh cross-compiler works.
12229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230   # <limits.h> exists even on freestanding compilers.
12231   # On the NeXT, cc -E runs the code through the compiler's parser,
12232   # not just through cpp. "Syntax error" is here to catch this case.
12233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h.  */
12235 #ifdef __STDC__
12236 # include <limits.h>
12237 #else
12238 # include <assert.h>
12239 #endif
12240                      Syntax error
12241 _ACEOF
12242 if ac_fn_cxx_try_cpp "$LINENO"; then :
12243
12244 else
12245   # Broken: fails on valid input.
12246 continue
12247 fi
12248 rm -f conftest.err conftest.i conftest.$ac_ext
12249
12250   # OK, works on sane cases.  Now check whether nonexistent headers
12251   # can be detected and how.
12252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h.  */
12254 #include <ac_nonexistent.h>
12255 _ACEOF
12256 if ac_fn_cxx_try_cpp "$LINENO"; then :
12257   # Broken: success on invalid input.
12258 continue
12259 else
12260   # Passes both tests.
12261 ac_preproc_ok=:
12262 break
12263 fi
12264 rm -f conftest.err conftest.i conftest.$ac_ext
12265
12266 done
12267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12268 rm -f conftest.i conftest.err conftest.$ac_ext
12269 if $ac_preproc_ok; then :
12270   break
12271 fi
12272
12273     done
12274     ac_cv_prog_CXXCPP=$CXXCPP
12275
12276 fi
12277   CXXCPP=$ac_cv_prog_CXXCPP
12278 else
12279   ac_cv_prog_CXXCPP=$CXXCPP
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12282 $as_echo "$CXXCPP" >&6; }
12283 ac_preproc_ok=false
12284 for ac_cxx_preproc_warn_flag in '' yes
12285 do
12286   # Use a header file that comes with gcc, so configuring glibc
12287   # with a fresh cross-compiler works.
12288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12289   # <limits.h> exists even on freestanding compilers.
12290   # On the NeXT, cc -E runs the code through the compiler's parser,
12291   # not just through cpp. "Syntax error" is here to catch this case.
12292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294 #ifdef __STDC__
12295 # include <limits.h>
12296 #else
12297 # include <assert.h>
12298 #endif
12299                      Syntax error
12300 _ACEOF
12301 if ac_fn_cxx_try_cpp "$LINENO"; then :
12302
12303 else
12304   # Broken: fails on valid input.
12305 continue
12306 fi
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12308
12309   # OK, works on sane cases.  Now check whether nonexistent headers
12310   # can be detected and how.
12311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313 #include <ac_nonexistent.h>
12314 _ACEOF
12315 if ac_fn_cxx_try_cpp "$LINENO"; then :
12316   # Broken: success on invalid input.
12317 continue
12318 else
12319   # Passes both tests.
12320 ac_preproc_ok=:
12321 break
12322 fi
12323 rm -f conftest.err conftest.i conftest.$ac_ext
12324
12325 done
12326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12327 rm -f conftest.i conftest.err conftest.$ac_ext
12328 if $ac_preproc_ok; then :
12329
12330 else
12331   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12334 See \`config.log' for more details" "$LINENO" 5; }
12335 fi
12336
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343 else
12344   _lt_caught_CXX_error=yes
12345 fi
12346
12347 ac_ext=cpp
12348 ac_cpp='$CXXCPP $CPPFLAGS'
12349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12352
12353 archive_cmds_need_lc_CXX=no
12354 allow_undefined_flag_CXX=
12355 always_export_symbols_CXX=no
12356 archive_expsym_cmds_CXX=
12357 compiler_needs_object_CXX=no
12358 export_dynamic_flag_spec_CXX=
12359 hardcode_direct_CXX=no
12360 hardcode_direct_absolute_CXX=no
12361 hardcode_libdir_flag_spec_CXX=
12362 hardcode_libdir_separator_CXX=
12363 hardcode_minus_L_CXX=no
12364 hardcode_shlibpath_var_CXX=unsupported
12365 hardcode_automatic_CXX=no
12366 inherit_rpath_CXX=no
12367 module_cmds_CXX=
12368 module_expsym_cmds_CXX=
12369 link_all_deplibs_CXX=unknown
12370 old_archive_cmds_CXX=$old_archive_cmds
12371 reload_flag_CXX=$reload_flag
12372 reload_cmds_CXX=$reload_cmds
12373 no_undefined_flag_CXX=
12374 whole_archive_flag_spec_CXX=
12375 enable_shared_with_static_runtimes_CXX=no
12376
12377 # Source file extension for C++ test sources.
12378 ac_ext=cpp
12379
12380 # Object file extension for compiled C++ test sources.
12381 objext=o
12382 objext_CXX=$objext
12383
12384 # No sense in running all these tests if we already determined that
12385 # the CXX compiler isn't working.  Some variables (like enable_shared)
12386 # are currently assumed to apply to all compilers on this platform,
12387 # and will be corrupted by setting them based on a non-working compiler.
12388 if test "$_lt_caught_CXX_error" != yes; then
12389   # Code to be used in simple compile tests
12390   lt_simple_compile_test_code="int some_variable = 0;"
12391
12392   # Code to be used in simple link tests
12393   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12394
12395   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12396
12397
12398
12399
12400
12401
12402 # If no C compiler was specified, use CC.
12403 LTCC=${LTCC-"$CC"}
12404
12405 # If no C compiler flags were specified, use CFLAGS.
12406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12407
12408 # Allow CC to be a program name with arguments.
12409 compiler=$CC
12410
12411
12412   # save warnings/boilerplate of simple test code
12413   ac_outfile=conftest.$ac_objext
12414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12416 _lt_compiler_boilerplate=`cat conftest.err`
12417 $RM conftest*
12418
12419   ac_outfile=conftest.$ac_objext
12420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12422 _lt_linker_boilerplate=`cat conftest.err`
12423 $RM -r conftest*
12424
12425
12426   # Allow CC to be a program name with arguments.
12427   lt_save_CC=$CC
12428   lt_save_CFLAGS=$CFLAGS
12429   lt_save_LD=$LD
12430   lt_save_GCC=$GCC
12431   GCC=$GXX
12432   lt_save_with_gnu_ld=$with_gnu_ld
12433   lt_save_path_LD=$lt_cv_path_LD
12434   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12435     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12436   else
12437     $as_unset lt_cv_prog_gnu_ld
12438   fi
12439   if test -n "${lt_cv_path_LDCXX+set}"; then
12440     lt_cv_path_LD=$lt_cv_path_LDCXX
12441   else
12442     $as_unset lt_cv_path_LD
12443   fi
12444   test -z "${LDCXX+set}" || LD=$LDCXX
12445   CC=${CXX-"c++"}
12446   CFLAGS=$CXXFLAGS
12447   compiler=$CC
12448   compiler_CXX=$CC
12449   for cc_temp in $compiler""; do
12450   case $cc_temp in
12451     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12452     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12453     \-*) ;;
12454     *) break;;
12455   esac
12456 done
12457 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12458
12459
12460   if test -n "$compiler"; then
12461     # We don't want -fno-exception when compiling C++ code, so set the
12462     # no_builtin_flag separately
12463     if test "$GXX" = yes; then
12464       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12465     else
12466       lt_prog_compiler_no_builtin_flag_CXX=
12467     fi
12468
12469     if test "$GXX" = yes; then
12470       # Set up default GNU C++ configuration
12471
12472
12473
12474 # Check whether --with-gnu-ld was given.
12475 if test "${with_gnu_ld+set}" = set; then :
12476   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12477 else
12478   with_gnu_ld=no
12479 fi
12480
12481 ac_prog=ld
12482 if test "$GCC" = yes; then
12483   # Check if gcc -print-prog-name=ld gives a path.
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12485 $as_echo_n "checking for ld used by $CC... " >&6; }
12486   case $host in
12487   *-*-mingw*)
12488     # gcc leaves a trailing carriage return which upsets mingw
12489     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12490   *)
12491     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12492   esac
12493   case $ac_prog in
12494     # Accept absolute paths.
12495     [\\/]* | ?:[\\/]*)
12496       re_direlt='/[^/][^/]*/\.\./'
12497       # Canonicalize the pathname of ld
12498       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12499       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12500         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12501       done
12502       test -z "$LD" && LD="$ac_prog"
12503       ;;
12504   "")
12505     # If it fails, then pretend we aren't using GCC.
12506     ac_prog=ld
12507     ;;
12508   *)
12509     # If it is relative, then search for the first ld in PATH.
12510     with_gnu_ld=unknown
12511     ;;
12512   esac
12513 elif test "$with_gnu_ld" = yes; then
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12515 $as_echo_n "checking for GNU ld... " >&6; }
12516 else
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12518 $as_echo_n "checking for non-GNU ld... " >&6; }
12519 fi
12520 if ${lt_cv_path_LD+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   if test -z "$LD"; then
12524   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12525   for ac_dir in $PATH; do
12526     IFS="$lt_save_ifs"
12527     test -z "$ac_dir" && ac_dir=.
12528     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12529       lt_cv_path_LD="$ac_dir/$ac_prog"
12530       # Check to see if the program is GNU ld.  I'd rather use --version,
12531       # but apparently some variants of GNU ld only accept -v.
12532       # Break only if it was the GNU/non-GNU ld that we prefer.
12533       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12534       *GNU* | *'with BFD'*)
12535         test "$with_gnu_ld" != no && break
12536         ;;
12537       *)
12538         test "$with_gnu_ld" != yes && break
12539         ;;
12540       esac
12541     fi
12542   done
12543   IFS="$lt_save_ifs"
12544 else
12545   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12546 fi
12547 fi
12548
12549 LD="$lt_cv_path_LD"
12550 if test -n "$LD"; then
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12552 $as_echo "$LD" >&6; }
12553 else
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 fi
12557 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12560 if ${lt_cv_prog_gnu_ld+:} false; then :
12561   $as_echo_n "(cached) " >&6
12562 else
12563   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12564 case `$LD -v 2>&1 </dev/null` in
12565 *GNU* | *'with BFD'*)
12566   lt_cv_prog_gnu_ld=yes
12567   ;;
12568 *)
12569   lt_cv_prog_gnu_ld=no
12570   ;;
12571 esac
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12574 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12575 with_gnu_ld=$lt_cv_prog_gnu_ld
12576
12577
12578
12579
12580
12581
12582
12583       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12584       # archiving commands below assume that GNU ld is being used.
12585       if test "$with_gnu_ld" = yes; then
12586         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12588
12589         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12590         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12591
12592         # If archive_cmds runs LD, not CC, wlarc should be empty
12593         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12594         #     investigate it a little bit more. (MM)
12595         wlarc='${wl}'
12596
12597         # ancient GNU ld didn't support --whole-archive et. al.
12598         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12599           $GREP 'no-whole-archive' > /dev/null; then
12600           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12601         else
12602           whole_archive_flag_spec_CXX=
12603         fi
12604       else
12605         with_gnu_ld=no
12606         wlarc=
12607
12608         # A generic and very simple default shared library creation
12609         # command for GNU C++ for the case where it uses the native
12610         # linker, instead of GNU ld.  If possible, this setting should
12611         # overridden to take advantage of the native linker features on
12612         # the platform it is being used on.
12613         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12614       fi
12615
12616       # Commands to make compiler produce verbose output that lists
12617       # what "hidden" libraries, object files and flags are used when
12618       # linking a shared library.
12619       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12620
12621     else
12622       GXX=no
12623       with_gnu_ld=no
12624       wlarc=
12625     fi
12626
12627     # PORTME: fill in a description of your system's C++ link characteristics
12628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12630     ld_shlibs_CXX=yes
12631     case $host_os in
12632       aix3*)
12633         # FIXME: insert proper C++ library support
12634         ld_shlibs_CXX=no
12635         ;;
12636       aix[4-9]*)
12637         if test "$host_cpu" = ia64; then
12638           # On IA64, the linker does run time linking by default, so we don't
12639           # have to do anything special.
12640           aix_use_runtimelinking=no
12641           exp_sym_flag='-Bexport'
12642           no_entry_flag=""
12643         else
12644           aix_use_runtimelinking=no
12645
12646           # Test if we are trying to use run time linking or normal
12647           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12648           # need to do runtime linking.
12649           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12650             for ld_flag in $LDFLAGS; do
12651               case $ld_flag in
12652               *-brtl*)
12653                 aix_use_runtimelinking=yes
12654                 break
12655                 ;;
12656               esac
12657             done
12658             ;;
12659           esac
12660
12661           exp_sym_flag='-bexport'
12662           no_entry_flag='-bnoentry'
12663         fi
12664
12665         # When large executables or shared objects are built, AIX ld can
12666         # have problems creating the table of contents.  If linking a library
12667         # or program results in "error TOC overflow" add -mminimal-toc to
12668         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12669         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12670
12671         archive_cmds_CXX=''
12672         hardcode_direct_CXX=yes
12673         hardcode_direct_absolute_CXX=yes
12674         hardcode_libdir_separator_CXX=':'
12675         link_all_deplibs_CXX=yes
12676         file_list_spec_CXX='${wl}-f,'
12677
12678         if test "$GXX" = yes; then
12679           case $host_os in aix4.[012]|aix4.[012].*)
12680           # We only want to do this on AIX 4.2 and lower, the check
12681           # below for broken collect2 doesn't work under 4.3+
12682           collect2name=`${CC} -print-prog-name=collect2`
12683           if test -f "$collect2name" &&
12684              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12685           then
12686             # We have reworked collect2
12687             :
12688           else
12689             # We have old collect2
12690             hardcode_direct_CXX=unsupported
12691             # It fails to find uninstalled libraries when the uninstalled
12692             # path is not listed in the libpath.  Setting hardcode_minus_L
12693             # to unsupported forces relinking
12694             hardcode_minus_L_CXX=yes
12695             hardcode_libdir_flag_spec_CXX='-L$libdir'
12696             hardcode_libdir_separator_CXX=
12697           fi
12698           esac
12699           shared_flag='-shared'
12700           if test "$aix_use_runtimelinking" = yes; then
12701             shared_flag="$shared_flag "'${wl}-G'
12702           fi
12703         else
12704           # not using gcc
12705           if test "$host_cpu" = ia64; then
12706           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12707           # chokes on -Wl,-G. The following line is correct:
12708           shared_flag='-G'
12709           else
12710             if test "$aix_use_runtimelinking" = yes; then
12711               shared_flag='${wl}-G'
12712             else
12713               shared_flag='${wl}-bM:SRE'
12714             fi
12715           fi
12716         fi
12717
12718         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12719         # It seems that -bexpall does not export symbols beginning with
12720         # underscore (_), so it is better to generate a list of symbols to
12721         # export.
12722         always_export_symbols_CXX=yes
12723         if test "$aix_use_runtimelinking" = yes; then
12724           # Warning - without using the other runtime loading flags (-brtl),
12725           # -berok will link without error, but may produce a broken library.
12726           allow_undefined_flag_CXX='-berok'
12727           # Determine the default libpath from the value encoded in an empty
12728           # executable.
12729           if test "${lt_cv_aix_libpath+set}" = set; then
12730   aix_libpath=$lt_cv_aix_libpath
12731 else
12732   if ${lt_cv_aix_libpath__CXX+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h.  */
12737
12738 int
12739 main ()
12740 {
12741
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_cxx_try_link "$LINENO"; then :
12747
12748   lt_aix_libpath_sed='
12749       /Import File Strings/,/^$/ {
12750           /^0/ {
12751               s/^0  *\([^ ]*\) *$/\1/
12752               p
12753           }
12754       }'
12755   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12756   # Check for a 64-bit object if we didn't find anything.
12757   if test -z "$lt_cv_aix_libpath__CXX"; then
12758     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12759   fi
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext \
12762     conftest$ac_exeext conftest.$ac_ext
12763   if test -z "$lt_cv_aix_libpath__CXX"; then
12764     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12765   fi
12766
12767 fi
12768
12769   aix_libpath=$lt_cv_aix_libpath__CXX
12770 fi
12771
12772           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12773
12774           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12775         else
12776           if test "$host_cpu" = ia64; then
12777             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12778             allow_undefined_flag_CXX="-z nodefs"
12779             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"
12780           else
12781             # Determine the default libpath from the value encoded in an
12782             # empty executable.
12783             if test "${lt_cv_aix_libpath+set}" = set; then
12784   aix_libpath=$lt_cv_aix_libpath
12785 else
12786   if ${lt_cv_aix_libpath__CXX+:} false; then :
12787   $as_echo_n "(cached) " >&6
12788 else
12789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h.  */
12791
12792 int
12793 main ()
12794 {
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_cxx_try_link "$LINENO"; then :
12801
12802   lt_aix_libpath_sed='
12803       /Import File Strings/,/^$/ {
12804           /^0/ {
12805               s/^0  *\([^ ]*\) *$/\1/
12806               p
12807           }
12808       }'
12809   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12810   # Check for a 64-bit object if we didn't find anything.
12811   if test -z "$lt_cv_aix_libpath__CXX"; then
12812     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12813   fi
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816     conftest$ac_exeext conftest.$ac_ext
12817   if test -z "$lt_cv_aix_libpath__CXX"; then
12818     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12819   fi
12820
12821 fi
12822
12823   aix_libpath=$lt_cv_aix_libpath__CXX
12824 fi
12825
12826             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12827             # Warning - without using the other run time loading flags,
12828             # -berok will link without error, but may produce a broken library.
12829             no_undefined_flag_CXX=' ${wl}-bernotok'
12830             allow_undefined_flag_CXX=' ${wl}-berok'
12831             if test "$with_gnu_ld" = yes; then
12832               # We only use this code for GNU lds that support --whole-archive.
12833               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12834             else
12835               # Exported symbols can be pulled into shared objects from archives
12836               whole_archive_flag_spec_CXX='$convenience'
12837             fi
12838             archive_cmds_need_lc_CXX=yes
12839             # This is similar to how AIX traditionally builds its shared
12840             # libraries.
12841             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'
12842           fi
12843         fi
12844         ;;
12845
12846       beos*)
12847         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12848           allow_undefined_flag_CXX=unsupported
12849           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12850           # support --undefined.  This deserves some investigation.  FIXME
12851           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852         else
12853           ld_shlibs_CXX=no
12854         fi
12855         ;;
12856
12857       chorus*)
12858         case $cc_basename in
12859           *)
12860           # FIXME: insert proper C++ library support
12861           ld_shlibs_CXX=no
12862           ;;
12863         esac
12864         ;;
12865
12866       cygwin* | mingw* | pw32* | cegcc*)
12867         case $GXX,$cc_basename in
12868         ,cl* | no,cl*)
12869           # Native MSVC
12870           # hardcode_libdir_flag_spec is actually meaningless, as there is
12871           # no search path for DLLs.
12872           hardcode_libdir_flag_spec_CXX=' '
12873           allow_undefined_flag_CXX=unsupported
12874           always_export_symbols_CXX=yes
12875           file_list_spec_CXX='@'
12876           # Tell ltmain to make .lib files, not .a files.
12877           libext=lib
12878           # Tell ltmain to make .dll files, not .so files.
12879           shrext_cmds=".dll"
12880           # FIXME: Setting linknames here is a bad hack.
12881           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12882           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12883               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12884             else
12885               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12886             fi~
12887             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12888             linknames='
12889           # The linker will not automatically build a static lib if we build a DLL.
12890           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12891           enable_shared_with_static_runtimes_CXX=yes
12892           # Don't use ranlib
12893           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12894           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12895             lt_tool_outputfile="@TOOL_OUTPUT@"~
12896             case $lt_outputfile in
12897               *.exe|*.EXE) ;;
12898               *)
12899                 lt_outputfile="$lt_outputfile.exe"
12900                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12901                 ;;
12902             esac~
12903             func_to_tool_file "$lt_outputfile"~
12904             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12905               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12906               $RM "$lt_outputfile.manifest";
12907             fi'
12908           ;;
12909         *)
12910           # g++
12911           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12912           # as there is no search path for DLLs.
12913           hardcode_libdir_flag_spec_CXX='-L$libdir'
12914           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12915           allow_undefined_flag_CXX=unsupported
12916           always_export_symbols_CXX=no
12917           enable_shared_with_static_runtimes_CXX=yes
12918
12919           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12920             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'
12921             # If the export-symbols file already is a .def file (1st line
12922             # is EXPORTS), use it as is; otherwise, prepend...
12923             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12924               cp $export_symbols $output_objdir/$soname.def;
12925             else
12926               echo EXPORTS > $output_objdir/$soname.def;
12927               cat $export_symbols >> $output_objdir/$soname.def;
12928             fi~
12929             $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'
12930           else
12931             ld_shlibs_CXX=no
12932           fi
12933           ;;
12934         esac
12935         ;;
12936       darwin* | rhapsody*)
12937
12938
12939   archive_cmds_need_lc_CXX=no
12940   hardcode_direct_CXX=no
12941   hardcode_automatic_CXX=yes
12942   hardcode_shlibpath_var_CXX=unsupported
12943   if test "$lt_cv_ld_force_load" = "yes"; then
12944     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12945
12946   else
12947     whole_archive_flag_spec_CXX=''
12948   fi
12949   link_all_deplibs_CXX=yes
12950   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12951   case $cc_basename in
12952      ifort*) _lt_dar_can_shared=yes ;;
12953      *) _lt_dar_can_shared=$GCC ;;
12954   esac
12955   if test "$_lt_dar_can_shared" = "yes"; then
12956     output_verbose_link_cmd=func_echo_all
12957     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}"
12958     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12959     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}"
12960     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}"
12961        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12962       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}"
12963       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}"
12964     fi
12965
12966   else
12967   ld_shlibs_CXX=no
12968   fi
12969
12970         ;;
12971
12972       dgux*)
12973         case $cc_basename in
12974           ec++*)
12975             # FIXME: insert proper C++ library support
12976             ld_shlibs_CXX=no
12977             ;;
12978           ghcx*)
12979             # Green Hills C++ Compiler
12980             # FIXME: insert proper C++ library support
12981             ld_shlibs_CXX=no
12982             ;;
12983           *)
12984             # FIXME: insert proper C++ library support
12985             ld_shlibs_CXX=no
12986             ;;
12987         esac
12988         ;;
12989
12990       freebsd2.*)
12991         # C++ shared libraries reported to be fairly broken before
12992         # switch to ELF
12993         ld_shlibs_CXX=no
12994         ;;
12995
12996       freebsd-elf*)
12997         archive_cmds_need_lc_CXX=no
12998         ;;
12999
13000       freebsd* | dragonfly*)
13001         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13002         # conventions
13003         ld_shlibs_CXX=yes
13004         ;;
13005
13006       gnu*)
13007         ;;
13008
13009       haiku*)
13010         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011         link_all_deplibs_CXX=yes
13012         ;;
13013
13014       hpux9*)
13015         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13016         hardcode_libdir_separator_CXX=:
13017         export_dynamic_flag_spec_CXX='${wl}-E'
13018         hardcode_direct_CXX=yes
13019         hardcode_minus_L_CXX=yes # Not in the search PATH,
13020                                              # but as the default
13021                                              # location of the library.
13022
13023         case $cc_basename in
13024           CC*)
13025             # FIXME: insert proper C++ library support
13026             ld_shlibs_CXX=no
13027             ;;
13028           aCC*)
13029             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'
13030             # Commands to make compiler produce verbose output that lists
13031             # what "hidden" libraries, object files and flags are used when
13032             # linking a shared library.
13033             #
13034             # There doesn't appear to be a way to prevent this compiler from
13035             # explicitly linking system object files so we need to strip them
13036             # from the output so that they don't get included in the library
13037             # dependencies.
13038             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13039             ;;
13040           *)
13041             if test "$GXX" = yes; then
13042               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13043             else
13044               # FIXME: insert proper C++ library support
13045               ld_shlibs_CXX=no
13046             fi
13047             ;;
13048         esac
13049         ;;
13050
13051       hpux10*|hpux11*)
13052         if test $with_gnu_ld = no; then
13053           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13054           hardcode_libdir_separator_CXX=:
13055
13056           case $host_cpu in
13057             hppa*64*|ia64*)
13058               ;;
13059             *)
13060               export_dynamic_flag_spec_CXX='${wl}-E'
13061               ;;
13062           esac
13063         fi
13064         case $host_cpu in
13065           hppa*64*|ia64*)
13066             hardcode_direct_CXX=no
13067             hardcode_shlibpath_var_CXX=no
13068             ;;
13069           *)
13070             hardcode_direct_CXX=yes
13071             hardcode_direct_absolute_CXX=yes
13072             hardcode_minus_L_CXX=yes # Not in the search PATH,
13073                                                  # but as the default
13074                                                  # location of the library.
13075             ;;
13076         esac
13077
13078         case $cc_basename in
13079           CC*)
13080             # FIXME: insert proper C++ library support
13081             ld_shlibs_CXX=no
13082             ;;
13083           aCC*)
13084             case $host_cpu in
13085               hppa*64*)
13086                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13087                 ;;
13088               ia64*)
13089                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090                 ;;
13091               *)
13092                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13093                 ;;
13094             esac
13095             # Commands to make compiler produce verbose output that lists
13096             # what "hidden" libraries, object files and flags are used when
13097             # linking a shared library.
13098             #
13099             # There doesn't appear to be a way to prevent this compiler from
13100             # explicitly linking system object files so we need to strip them
13101             # from the output so that they don't get included in the library
13102             # dependencies.
13103             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; func_echo_all "$list"'
13104             ;;
13105           *)
13106             if test "$GXX" = yes; then
13107               if test $with_gnu_ld = no; then
13108                 case $host_cpu in
13109                   hppa*64*)
13110                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13111                     ;;
13112                   ia64*)
13113                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13114                     ;;
13115                   *)
13116                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13117                     ;;
13118                 esac
13119               fi
13120             else
13121               # FIXME: insert proper C++ library support
13122               ld_shlibs_CXX=no
13123             fi
13124             ;;
13125         esac
13126         ;;
13127
13128       interix[3-9]*)
13129         hardcode_direct_CXX=no
13130         hardcode_shlibpath_var_CXX=no
13131         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13132         export_dynamic_flag_spec_CXX='${wl}-E'
13133         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13134         # Instead, shared libraries are loaded at an image base (0x10000000 by
13135         # default) and relocated if they conflict, which is a slow very memory
13136         # consuming and fragmenting process.  To avoid this, we pick a random,
13137         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13138         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13139         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'
13140         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'
13141         ;;
13142       irix5* | irix6*)
13143         case $cc_basename in
13144           CC*)
13145             # SGI C++
13146             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13147
13148             # Archives containing C++ object files must be created using
13149             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13150             # necessary to make sure instantiated templates are included
13151             # in the archive.
13152             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13153             ;;
13154           *)
13155             if test "$GXX" = yes; then
13156               if test "$with_gnu_ld" = no; then
13157                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13158               else
13159                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13160               fi
13161             fi
13162             link_all_deplibs_CXX=yes
13163             ;;
13164         esac
13165         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166         hardcode_libdir_separator_CXX=:
13167         inherit_rpath_CXX=yes
13168         ;;
13169
13170       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13171         case $cc_basename in
13172           KCC*)
13173             # Kuck and Associates, Inc. (KAI) C++ Compiler
13174
13175             # KCC will only create a shared library if the output file
13176             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13177             # to its proper name (with version) after linking.
13178             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'
13179             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'
13180             # Commands to make compiler produce verbose output that lists
13181             # what "hidden" libraries, object files and flags are used when
13182             # linking a shared library.
13183             #
13184             # There doesn't appear to be a way to prevent this compiler from
13185             # explicitly linking system object files so we need to strip them
13186             # from the output so that they don't get included in the library
13187             # dependencies.
13188             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; func_echo_all "$list"'
13189
13190             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13191             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13192
13193             # Archives containing C++ object files must be created using
13194             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13195             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13196             ;;
13197           icpc* | ecpc* )
13198             # Intel C++
13199             with_gnu_ld=yes
13200             # version 8.0 and above of icpc choke on multiply defined symbols
13201             # if we add $predep_objects and $postdep_objects, however 7.1 and
13202             # earlier do not add the objects themselves.
13203             case `$CC -V 2>&1` in
13204               *"Version 7."*)
13205                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206                 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'
13207                 ;;
13208               *)  # Version 8.0 or newer
13209                 tmp_idyn=
13210                 case $host_cpu in
13211                   ia64*) tmp_idyn=' -i_dynamic';;
13212                 esac
13213                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13214                 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'
13215                 ;;
13216             esac
13217             archive_cmds_need_lc_CXX=no
13218             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13219             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13220             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13221             ;;
13222           pgCC* | pgcpp*)
13223             # Portland Group C++ compiler
13224             case `$CC -V` in
13225             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13226               prelink_cmds_CXX='tpldir=Template.dir~
13227                 rm -rf $tpldir~
13228                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13229                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13230               old_archive_cmds_CXX='tpldir=Template.dir~
13231                 rm -rf $tpldir~
13232                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13233                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13234                 $RANLIB $oldlib'
13235               archive_cmds_CXX='tpldir=Template.dir~
13236                 rm -rf $tpldir~
13237                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13238                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13239               archive_expsym_cmds_CXX='tpldir=Template.dir~
13240                 rm -rf $tpldir~
13241                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13242                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13243               ;;
13244             *) # Version 6 and above use weak symbols
13245               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13246               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'
13247               ;;
13248             esac
13249
13250             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13251             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13253             ;;
13254           cxx*)
13255             # Compaq C++
13256             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257             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'
13258
13259             runpath_var=LD_RUN_PATH
13260             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13261             hardcode_libdir_separator_CXX=:
13262
13263             # Commands to make compiler produce verbose output that lists
13264             # what "hidden" libraries, object files and flags are used when
13265             # linking a shared library.
13266             #
13267             # There doesn't appear to be a way to prevent this compiler from
13268             # explicitly linking system object files so we need to strip them
13269             # from the output so that they don't get included in the library
13270             # dependencies.
13271             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13272             ;;
13273           xl* | mpixl* | bgxl*)
13274             # IBM XL 8.0 on PPC, with GNU ld
13275             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13276             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13277             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278             if test "x$supports_anon_versioning" = xyes; then
13279               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13280                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13281                 echo "local: *; };" >> $output_objdir/$libname.ver~
13282                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13283             fi
13284             ;;
13285           *)
13286             case `$CC -V 2>&1 | sed 5q` in
13287             *Sun\ C*)
13288               # Sun C++ 5.9
13289               no_undefined_flag_CXX=' -zdefs'
13290               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291               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'
13292               hardcode_libdir_flag_spec_CXX='-R$libdir'
13293               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13294               compiler_needs_object_CXX=yes
13295
13296               # Not sure whether something based on
13297               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13298               # would be better.
13299               output_verbose_link_cmd='func_echo_all'
13300
13301               # Archives containing C++ object files must be created using
13302               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13303               # necessary to make sure instantiated templates are included
13304               # in the archive.
13305               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13306               ;;
13307             esac
13308             ;;
13309         esac
13310         ;;
13311
13312       lynxos*)
13313         # FIXME: insert proper C++ library support
13314         ld_shlibs_CXX=no
13315         ;;
13316
13317       m88k*)
13318         # FIXME: insert proper C++ library support
13319         ld_shlibs_CXX=no
13320         ;;
13321
13322       mvs*)
13323         case $cc_basename in
13324           cxx*)
13325             # FIXME: insert proper C++ library support
13326             ld_shlibs_CXX=no
13327             ;;
13328           *)
13329             # FIXME: insert proper C++ library support
13330             ld_shlibs_CXX=no
13331             ;;
13332         esac
13333         ;;
13334
13335       netbsd*)
13336         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13337           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13338           wlarc=
13339           hardcode_libdir_flag_spec_CXX='-R$libdir'
13340           hardcode_direct_CXX=yes
13341           hardcode_shlibpath_var_CXX=no
13342         fi
13343         # Workaround some broken pre-1.5 toolchains
13344         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13345         ;;
13346
13347       *nto* | *qnx*)
13348         ld_shlibs_CXX=yes
13349         ;;
13350
13351       openbsd2*)
13352         # C++ shared libraries are fairly broken
13353         ld_shlibs_CXX=no
13354         ;;
13355
13356       openbsd*)
13357         if test -f /usr/libexec/ld.so; then
13358           hardcode_direct_CXX=yes
13359           hardcode_shlibpath_var_CXX=no
13360           hardcode_direct_absolute_CXX=yes
13361           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13362           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13364             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13365             export_dynamic_flag_spec_CXX='${wl}-E'
13366             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13367           fi
13368           output_verbose_link_cmd=func_echo_all
13369         else
13370           ld_shlibs_CXX=no
13371         fi
13372         ;;
13373
13374       osf3* | osf4* | osf5*)
13375         case $cc_basename in
13376           KCC*)
13377             # Kuck and Associates, Inc. (KAI) C++ Compiler
13378
13379             # KCC will only create a shared library if the output file
13380             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13381             # to its proper name (with version) after linking.
13382             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'
13383
13384             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385             hardcode_libdir_separator_CXX=:
13386
13387             # Archives containing C++ object files must be created using
13388             # the KAI C++ compiler.
13389             case $host in
13390               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13391               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13392             esac
13393             ;;
13394           RCC*)
13395             # Rational C++ 2.4.1
13396             # FIXME: insert proper C++ library support
13397             ld_shlibs_CXX=no
13398             ;;
13399           cxx*)
13400             case $host in
13401               osf3*)
13402                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13403                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13404                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13405                 ;;
13406               *)
13407                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13408                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13409                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13410                   echo "-hidden">> $lib.exp~
13411                   $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~
13412                   $RM $lib.exp'
13413                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13414                 ;;
13415             esac
13416
13417             hardcode_libdir_separator_CXX=:
13418
13419             # Commands to make compiler produce verbose output that lists
13420             # what "hidden" libraries, object files and flags are used when
13421             # linking a shared library.
13422             #
13423             # There doesn't appear to be a way to prevent this compiler from
13424             # explicitly linking system object files so we need to strip them
13425             # from the output so that they don't get included in the library
13426             # dependencies.
13427             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13428             ;;
13429           *)
13430             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13431               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13432               case $host in
13433                 osf3*)
13434                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13435                   ;;
13436                 *)
13437                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13438                   ;;
13439               esac
13440
13441               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442               hardcode_libdir_separator_CXX=:
13443
13444               # Commands to make compiler produce verbose output that lists
13445               # what "hidden" libraries, object files and flags are used when
13446               # linking a shared library.
13447               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13448
13449             else
13450               # FIXME: insert proper C++ library support
13451               ld_shlibs_CXX=no
13452             fi
13453             ;;
13454         esac
13455         ;;
13456
13457       psos*)
13458         # FIXME: insert proper C++ library support
13459         ld_shlibs_CXX=no
13460         ;;
13461
13462       sunos4*)
13463         case $cc_basename in
13464           CC*)
13465             # Sun C++ 4.x
13466             # FIXME: insert proper C++ library support
13467             ld_shlibs_CXX=no
13468             ;;
13469           lcc*)
13470             # Lucid
13471             # FIXME: insert proper C++ library support
13472             ld_shlibs_CXX=no
13473             ;;
13474           *)
13475             # FIXME: insert proper C++ library support
13476             ld_shlibs_CXX=no
13477             ;;
13478         esac
13479         ;;
13480
13481       solaris*)
13482         case $cc_basename in
13483           CC* | sunCC*)
13484             # Sun C++ 4.2, 5.x and Centerline C++
13485             archive_cmds_need_lc_CXX=yes
13486             no_undefined_flag_CXX=' -zdefs'
13487             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13488             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13489               $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'
13490
13491             hardcode_libdir_flag_spec_CXX='-R$libdir'
13492             hardcode_shlibpath_var_CXX=no
13493             case $host_os in
13494               solaris2.[0-5] | solaris2.[0-5].*) ;;
13495               *)
13496                 # The compiler driver will combine and reorder linker options,
13497                 # but understands `-z linker_flag'.
13498                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13499                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13500                 ;;
13501             esac
13502             link_all_deplibs_CXX=yes
13503
13504             output_verbose_link_cmd='func_echo_all'
13505
13506             # Archives containing C++ object files must be created using
13507             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13508             # necessary to make sure instantiated templates are included
13509             # in the archive.
13510             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13511             ;;
13512           gcx*)
13513             # Green Hills C++ Compiler
13514             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13515
13516             # The C++ compiler must be used to create the archive.
13517             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13518             ;;
13519           *)
13520             # GNU C++ compiler with Solaris linker
13521             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13522               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13523               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13524                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13525                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13526                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13527
13528                 # Commands to make compiler produce verbose output that lists
13529                 # what "hidden" libraries, object files and flags are used when
13530                 # linking a shared library.
13531                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13532               else
13533                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13534                 # platform.
13535                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13536                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13537                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13538
13539                 # Commands to make compiler produce verbose output that lists
13540                 # what "hidden" libraries, object files and flags are used when
13541                 # linking a shared library.
13542                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13543               fi
13544
13545               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13546               case $host_os in
13547                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13548                 *)
13549                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13550                   ;;
13551               esac
13552             fi
13553             ;;
13554         esac
13555         ;;
13556
13557     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13558       no_undefined_flag_CXX='${wl}-z,text'
13559       archive_cmds_need_lc_CXX=no
13560       hardcode_shlibpath_var_CXX=no
13561       runpath_var='LD_RUN_PATH'
13562
13563       case $cc_basename in
13564         CC*)
13565           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567           ;;
13568         *)
13569           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13570           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13571           ;;
13572       esac
13573       ;;
13574
13575       sysv5* | sco3.2v5* | sco5v6*)
13576         # Note: We can NOT use -z defs as we might desire, because we do not
13577         # link with -lc, and that would cause any symbols used from libc to
13578         # always be unresolved, which means just about no library would
13579         # ever link correctly.  If we're not using GNU ld we use -z text
13580         # though, which does catch some bad symbols but isn't as heavy-handed
13581         # as -z defs.
13582         no_undefined_flag_CXX='${wl}-z,text'
13583         allow_undefined_flag_CXX='${wl}-z,nodefs'
13584         archive_cmds_need_lc_CXX=no
13585         hardcode_shlibpath_var_CXX=no
13586         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13587         hardcode_libdir_separator_CXX=':'
13588         link_all_deplibs_CXX=yes
13589         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13590         runpath_var='LD_RUN_PATH'
13591
13592         case $cc_basename in
13593           CC*)
13594             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13597               '"$old_archive_cmds_CXX"
13598             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13599               '"$reload_cmds_CXX"
13600             ;;
13601           *)
13602             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13604             ;;
13605         esac
13606       ;;
13607
13608       tandem*)
13609         case $cc_basename in
13610           NCC*)
13611             # NonStop-UX NCC 3.20
13612             # FIXME: insert proper C++ library support
13613             ld_shlibs_CXX=no
13614             ;;
13615           *)
13616             # FIXME: insert proper C++ library support
13617             ld_shlibs_CXX=no
13618             ;;
13619         esac
13620         ;;
13621
13622       vxworks*)
13623         # FIXME: insert proper C++ library support
13624         ld_shlibs_CXX=no
13625         ;;
13626
13627       *)
13628         # FIXME: insert proper C++ library support
13629         ld_shlibs_CXX=no
13630         ;;
13631     esac
13632
13633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13634 $as_echo "$ld_shlibs_CXX" >&6; }
13635     test "$ld_shlibs_CXX" = no && can_build_shared=no
13636
13637     GCC_CXX="$GXX"
13638     LD_CXX="$LD"
13639
13640     ## CAVEAT EMPTOR:
13641     ## There is no encapsulation within the following macros, do not change
13642     ## the running order or otherwise move them around unless you know exactly
13643     ## what you are doing...
13644     # Dependencies to place before and after the object being linked:
13645 predep_objects_CXX=
13646 postdep_objects_CXX=
13647 predeps_CXX=
13648 postdeps_CXX=
13649 compiler_lib_search_path_CXX=
13650
13651 cat > conftest.$ac_ext <<_LT_EOF
13652 class Foo
13653 {
13654 public:
13655   Foo (void) { a = 0; }
13656 private:
13657   int a;
13658 };
13659 _LT_EOF
13660
13661
13662 _lt_libdeps_save_CFLAGS=$CFLAGS
13663 case "$CC $CFLAGS " in #(
13664 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13665 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13666 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13667 esac
13668
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13670   (eval $ac_compile) 2>&5
13671   ac_status=$?
13672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673   test $ac_status = 0; }; then
13674   # Parse the compiler output and extract the necessary
13675   # objects, libraries and library flags.
13676
13677   # Sentinel used to keep track of whether or not we are before
13678   # the conftest object file.
13679   pre_test_object_deps_done=no
13680
13681   for p in `eval "$output_verbose_link_cmd"`; do
13682     case ${prev}${p} in
13683
13684     -L* | -R* | -l*)
13685        # Some compilers place space between "-{L,R}" and the path.
13686        # Remove the space.
13687        if test $p = "-L" ||
13688           test $p = "-R"; then
13689          prev=$p
13690          continue
13691        fi
13692
13693        # Expand the sysroot to ease extracting the directories later.
13694        if test -z "$prev"; then
13695          case $p in
13696          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13697          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13698          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13699          esac
13700        fi
13701        case $p in
13702        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13703        esac
13704        if test "$pre_test_object_deps_done" = no; then
13705          case ${prev} in
13706          -L | -R)
13707            # Internal compiler library paths should come after those
13708            # provided the user.  The postdeps already come after the
13709            # user supplied libs so there is no need to process them.
13710            if test -z "$compiler_lib_search_path_CXX"; then
13711              compiler_lib_search_path_CXX="${prev}${p}"
13712            else
13713              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13714            fi
13715            ;;
13716          # The "-l" case would never come before the object being
13717          # linked, so don't bother handling this case.
13718          esac
13719        else
13720          if test -z "$postdeps_CXX"; then
13721            postdeps_CXX="${prev}${p}"
13722          else
13723            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13724          fi
13725        fi
13726        prev=
13727        ;;
13728
13729     *.lto.$objext) ;; # Ignore GCC LTO objects
13730     *.$objext)
13731        # This assumes that the test object file only shows up
13732        # once in the compiler output.
13733        if test "$p" = "conftest.$objext"; then
13734          pre_test_object_deps_done=yes
13735          continue
13736        fi
13737
13738        if test "$pre_test_object_deps_done" = no; then
13739          if test -z "$predep_objects_CXX"; then
13740            predep_objects_CXX="$p"
13741          else
13742            predep_objects_CXX="$predep_objects_CXX $p"
13743          fi
13744        else
13745          if test -z "$postdep_objects_CXX"; then
13746            postdep_objects_CXX="$p"
13747          else
13748            postdep_objects_CXX="$postdep_objects_CXX $p"
13749          fi
13750        fi
13751        ;;
13752
13753     *) ;; # Ignore the rest.
13754
13755     esac
13756   done
13757
13758   # Clean up.
13759   rm -f a.out a.exe
13760 else
13761   echo "libtool.m4: error: problem compiling CXX test program"
13762 fi
13763
13764 $RM -f confest.$objext
13765 CFLAGS=$_lt_libdeps_save_CFLAGS
13766
13767 # PORTME: override above test on systems where it is broken
13768 case $host_os in
13769 interix[3-9]*)
13770   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13771   # hack all around it, let's just trust "g++" to DTRT.
13772   predep_objects_CXX=
13773   postdep_objects_CXX=
13774   postdeps_CXX=
13775   ;;
13776
13777 linux*)
13778   case `$CC -V 2>&1 | sed 5q` in
13779   *Sun\ C*)
13780     # Sun C++ 5.9
13781
13782     # The more standards-conforming stlport4 library is
13783     # incompatible with the Cstd library. Avoid specifying
13784     # it if it's in CXXFLAGS. Ignore libCrun as
13785     # -library=stlport4 depends on it.
13786     case " $CXX $CXXFLAGS " in
13787     *" -library=stlport4 "*)
13788       solaris_use_stlport4=yes
13789       ;;
13790     esac
13791
13792     if test "$solaris_use_stlport4" != yes; then
13793       postdeps_CXX='-library=Cstd -library=Crun'
13794     fi
13795     ;;
13796   esac
13797   ;;
13798
13799 solaris*)
13800   case $cc_basename in
13801   CC* | sunCC*)
13802     # The more standards-conforming stlport4 library is
13803     # incompatible with the Cstd library. Avoid specifying
13804     # it if it's in CXXFLAGS. Ignore libCrun as
13805     # -library=stlport4 depends on it.
13806     case " $CXX $CXXFLAGS " in
13807     *" -library=stlport4 "*)
13808       solaris_use_stlport4=yes
13809       ;;
13810     esac
13811
13812     # Adding this requires a known-good setup of shared libraries for
13813     # Sun compiler versions before 5.6, else PIC objects from an old
13814     # archive will be linked into the output, leading to subtle bugs.
13815     if test "$solaris_use_stlport4" != yes; then
13816       postdeps_CXX='-library=Cstd -library=Crun'
13817     fi
13818     ;;
13819   esac
13820   ;;
13821 esac
13822
13823
13824 case " $postdeps_CXX " in
13825 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13826 esac
13827  compiler_lib_search_dirs_CXX=
13828 if test -n "${compiler_lib_search_path_CXX}"; then
13829  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13830 fi
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862     lt_prog_compiler_wl_CXX=
13863 lt_prog_compiler_pic_CXX=
13864 lt_prog_compiler_static_CXX=
13865
13866
13867   # C++ specific cases for pic, static, wl, etc.
13868   if test "$GXX" = yes; then
13869     lt_prog_compiler_wl_CXX='-Wl,'
13870     lt_prog_compiler_static_CXX='-static'
13871
13872     case $host_os in
13873     aix*)
13874       # All AIX code is PIC.
13875       if test "$host_cpu" = ia64; then
13876         # AIX 5 now supports IA64 processor
13877         lt_prog_compiler_static_CXX='-Bstatic'
13878       fi
13879       ;;
13880
13881     amigaos*)
13882       case $host_cpu in
13883       powerpc)
13884             # see comment about AmigaOS4 .so support
13885             lt_prog_compiler_pic_CXX='-fPIC'
13886         ;;
13887       m68k)
13888             # FIXME: we need at least 68020 code to build shared libraries, but
13889             # adding the `-m68020' flag to GCC prevents building anything better,
13890             # like `-m68040'.
13891             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13892         ;;
13893       esac
13894       ;;
13895
13896     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13897       # PIC is the default for these OSes.
13898       ;;
13899     mingw* | cygwin* | os2* | pw32* | cegcc*)
13900       # This hack is so that the source file can tell whether it is being
13901       # built for inclusion in a dll (and should export symbols for example).
13902       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13903       # (--disable-auto-import) libraries
13904       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13905       ;;
13906     darwin* | rhapsody*)
13907       # PIC is the default on this platform
13908       # Common symbols not allowed in MH_DYLIB files
13909       lt_prog_compiler_pic_CXX='-fno-common'
13910       ;;
13911     *djgpp*)
13912       # DJGPP does not support shared libraries at all
13913       lt_prog_compiler_pic_CXX=
13914       ;;
13915     haiku*)
13916       # PIC is the default for Haiku.
13917       # The "-static" flag exists, but is broken.
13918       lt_prog_compiler_static_CXX=
13919       ;;
13920     interix[3-9]*)
13921       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13922       # Instead, we relocate shared libraries at runtime.
13923       ;;
13924     sysv4*MP*)
13925       if test -d /usr/nec; then
13926         lt_prog_compiler_pic_CXX=-Kconform_pic
13927       fi
13928       ;;
13929     hpux*)
13930       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13931       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13932       # sets the default TLS model and affects inlining.
13933       case $host_cpu in
13934       hppa*64*)
13935         ;;
13936       *)
13937         lt_prog_compiler_pic_CXX='-fPIC'
13938         ;;
13939       esac
13940       ;;
13941     *qnx* | *nto*)
13942       # QNX uses GNU C++, but need to define -shared option too, otherwise
13943       # it will coredump.
13944       lt_prog_compiler_pic_CXX='-fPIC -shared'
13945       ;;
13946     *)
13947       lt_prog_compiler_pic_CXX='-fPIC'
13948       ;;
13949     esac
13950   else
13951     case $host_os in
13952       aix[4-9]*)
13953         # All AIX code is PIC.
13954         if test "$host_cpu" = ia64; then
13955           # AIX 5 now supports IA64 processor
13956           lt_prog_compiler_static_CXX='-Bstatic'
13957         else
13958           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13959         fi
13960         ;;
13961       chorus*)
13962         case $cc_basename in
13963         cxch68*)
13964           # Green Hills C++ Compiler
13965           # _LT_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"
13966           ;;
13967         esac
13968         ;;
13969       mingw* | cygwin* | os2* | pw32* | cegcc*)
13970         # This hack is so that the source file can tell whether it is being
13971         # built for inclusion in a dll (and should export symbols for example).
13972         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13973         ;;
13974       dgux*)
13975         case $cc_basename in
13976           ec++*)
13977             lt_prog_compiler_pic_CXX='-KPIC'
13978             ;;
13979           ghcx*)
13980             # Green Hills C++ Compiler
13981             lt_prog_compiler_pic_CXX='-pic'
13982             ;;
13983           *)
13984             ;;
13985         esac
13986         ;;
13987       freebsd* | dragonfly*)
13988         # FreeBSD uses GNU C++
13989         ;;
13990       hpux9* | hpux10* | hpux11*)
13991         case $cc_basename in
13992           CC*)
13993             lt_prog_compiler_wl_CXX='-Wl,'
13994             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13995             if test "$host_cpu" != ia64; then
13996               lt_prog_compiler_pic_CXX='+Z'
13997             fi
13998             ;;
13999           aCC*)
14000             lt_prog_compiler_wl_CXX='-Wl,'
14001             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14002             case $host_cpu in
14003             hppa*64*|ia64*)
14004               # +Z the default
14005               ;;
14006             *)
14007               lt_prog_compiler_pic_CXX='+Z'
14008               ;;
14009             esac
14010             ;;
14011           *)
14012             ;;
14013         esac
14014         ;;
14015       interix*)
14016         # This is c89, which is MS Visual C++ (no shared libs)
14017         # Anyone wants to do a port?
14018         ;;
14019       irix5* | irix6* | nonstopux*)
14020         case $cc_basename in
14021           CC*)
14022             lt_prog_compiler_wl_CXX='-Wl,'
14023             lt_prog_compiler_static_CXX='-non_shared'
14024             # CC pic flag -KPIC is the default.
14025             ;;
14026           *)
14027             ;;
14028         esac
14029         ;;
14030       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14031         case $cc_basename in
14032           KCC*)
14033             # KAI C++ Compiler
14034             lt_prog_compiler_wl_CXX='--backend -Wl,'
14035             lt_prog_compiler_pic_CXX='-fPIC'
14036             ;;
14037           ecpc* )
14038             # old Intel C++ for x86_64 which still supported -KPIC.
14039             lt_prog_compiler_wl_CXX='-Wl,'
14040             lt_prog_compiler_pic_CXX='-KPIC'
14041             lt_prog_compiler_static_CXX='-static'
14042             ;;
14043           icpc* )
14044             # Intel C++, used to be incompatible with GCC.
14045             # ICC 10 doesn't accept -KPIC any more.
14046             lt_prog_compiler_wl_CXX='-Wl,'
14047             lt_prog_compiler_pic_CXX='-fPIC'
14048             lt_prog_compiler_static_CXX='-static'
14049             ;;
14050           pgCC* | pgcpp*)
14051             # Portland Group C++ compiler
14052             lt_prog_compiler_wl_CXX='-Wl,'
14053             lt_prog_compiler_pic_CXX='-fpic'
14054             lt_prog_compiler_static_CXX='-Bstatic'
14055             ;;
14056           cxx*)
14057             # Compaq C++
14058             # Make sure the PIC flag is empty.  It appears that all Alpha
14059             # Linux and Compaq Tru64 Unix objects are PIC.
14060             lt_prog_compiler_pic_CXX=
14061             lt_prog_compiler_static_CXX='-non_shared'
14062             ;;
14063           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14064             # IBM XL 8.0, 9.0 on PPC and BlueGene
14065             lt_prog_compiler_wl_CXX='-Wl,'
14066             lt_prog_compiler_pic_CXX='-qpic'
14067             lt_prog_compiler_static_CXX='-qstaticlink'
14068             ;;
14069           *)
14070             case `$CC -V 2>&1 | sed 5q` in
14071             *Sun\ C*)
14072               # Sun C++ 5.9
14073               lt_prog_compiler_pic_CXX='-KPIC'
14074               lt_prog_compiler_static_CXX='-Bstatic'
14075               lt_prog_compiler_wl_CXX='-Qoption ld '
14076               ;;
14077             esac
14078             ;;
14079         esac
14080         ;;
14081       lynxos*)
14082         ;;
14083       m88k*)
14084         ;;
14085       mvs*)
14086         case $cc_basename in
14087           cxx*)
14088             lt_prog_compiler_pic_CXX='-W c,exportall'
14089             ;;
14090           *)
14091             ;;
14092         esac
14093         ;;
14094       netbsd*)
14095         ;;
14096       *qnx* | *nto*)
14097         # QNX uses GNU C++, but need to define -shared option too, otherwise
14098         # it will coredump.
14099         lt_prog_compiler_pic_CXX='-fPIC -shared'
14100         ;;
14101       osf3* | osf4* | osf5*)
14102         case $cc_basename in
14103           KCC*)
14104             lt_prog_compiler_wl_CXX='--backend -Wl,'
14105             ;;
14106           RCC*)
14107             # Rational C++ 2.4.1
14108             lt_prog_compiler_pic_CXX='-pic'
14109             ;;
14110           cxx*)
14111             # Digital/Compaq C++
14112             lt_prog_compiler_wl_CXX='-Wl,'
14113             # Make sure the PIC flag is empty.  It appears that all Alpha
14114             # Linux and Compaq Tru64 Unix objects are PIC.
14115             lt_prog_compiler_pic_CXX=
14116             lt_prog_compiler_static_CXX='-non_shared'
14117             ;;
14118           *)
14119             ;;
14120         esac
14121         ;;
14122       psos*)
14123         ;;
14124       solaris*)
14125         case $cc_basename in
14126           CC* | sunCC*)
14127             # Sun C++ 4.2, 5.x and Centerline C++
14128             lt_prog_compiler_pic_CXX='-KPIC'
14129             lt_prog_compiler_static_CXX='-Bstatic'
14130             lt_prog_compiler_wl_CXX='-Qoption ld '
14131             ;;
14132           gcx*)
14133             # Green Hills C++ Compiler
14134             lt_prog_compiler_pic_CXX='-PIC'
14135             ;;
14136           *)
14137             ;;
14138         esac
14139         ;;
14140       sunos4*)
14141         case $cc_basename in
14142           CC*)
14143             # Sun C++ 4.x
14144             lt_prog_compiler_pic_CXX='-pic'
14145             lt_prog_compiler_static_CXX='-Bstatic'
14146             ;;
14147           lcc*)
14148             # Lucid
14149             lt_prog_compiler_pic_CXX='-pic'
14150             ;;
14151           *)
14152             ;;
14153         esac
14154         ;;
14155       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14156         case $cc_basename in
14157           CC*)
14158             lt_prog_compiler_wl_CXX='-Wl,'
14159             lt_prog_compiler_pic_CXX='-KPIC'
14160             lt_prog_compiler_static_CXX='-Bstatic'
14161             ;;
14162         esac
14163         ;;
14164       tandem*)
14165         case $cc_basename in
14166           NCC*)
14167             # NonStop-UX NCC 3.20
14168             lt_prog_compiler_pic_CXX='-KPIC'
14169             ;;
14170           *)
14171             ;;
14172         esac
14173         ;;
14174       vxworks*)
14175         ;;
14176       *)
14177         lt_prog_compiler_can_build_shared_CXX=no
14178         ;;
14179     esac
14180   fi
14181
14182 case $host_os in
14183   # For platforms which do not support PIC, -DPIC is meaningless:
14184   *djgpp*)
14185     lt_prog_compiler_pic_CXX=
14186     ;;
14187   *)
14188     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14189     ;;
14190 esac
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14193 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14194 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14195   $as_echo_n "(cached) " >&6
14196 else
14197   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14200 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14201 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14202
14203 #
14204 # Check to make sure the PIC flag actually works.
14205 #
14206 if test -n "$lt_prog_compiler_pic_CXX"; then
14207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14208 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14209 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   lt_cv_prog_compiler_pic_works_CXX=no
14213    ac_outfile=conftest.$ac_objext
14214    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14216    # Insert the option either (1) after the last *FLAGS variable, or
14217    # (2) before a word containing "conftest.", or (3) at the end.
14218    # Note that $ac_compile itself does not contain backslashes and begins
14219    # with a dollar sign (not a hyphen), so the echo should work correctly.
14220    # The option is referenced via a variable to avoid confusing sed.
14221    lt_compile=`echo "$ac_compile" | $SED \
14222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224    -e 's:$: $lt_compiler_flag:'`
14225    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14226    (eval "$lt_compile" 2>conftest.err)
14227    ac_status=$?
14228    cat conftest.err >&5
14229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230    if (exit $ac_status) && test -s "$ac_outfile"; then
14231      # The compiler can only warn and ignore the option if not recognized
14232      # So say no if there are warnings other than the usual output.
14233      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14234      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14235      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14236        lt_cv_prog_compiler_pic_works_CXX=yes
14237      fi
14238    fi
14239    $RM conftest*
14240
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14243 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14244
14245 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14246     case $lt_prog_compiler_pic_CXX in
14247      "" | " "*) ;;
14248      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14249      esac
14250 else
14251     lt_prog_compiler_pic_CXX=
14252      lt_prog_compiler_can_build_shared_CXX=no
14253 fi
14254
14255 fi
14256
14257
14258
14259
14260
14261 #
14262 # Check to make sure the static flag actually works.
14263 #
14264 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14266 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14267 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   lt_cv_prog_compiler_static_works_CXX=no
14271    save_LDFLAGS="$LDFLAGS"
14272    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14273    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14274    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14275      # The linker can only warn and ignore the option if not recognized
14276      # So say no if there are warnings
14277      if test -s conftest.err; then
14278        # Append any errors to the config.log.
14279        cat conftest.err 1>&5
14280        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14281        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14282        if diff conftest.exp conftest.er2 >/dev/null; then
14283          lt_cv_prog_compiler_static_works_CXX=yes
14284        fi
14285      else
14286        lt_cv_prog_compiler_static_works_CXX=yes
14287      fi
14288    fi
14289    $RM -r conftest*
14290    LDFLAGS="$save_LDFLAGS"
14291
14292 fi
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14294 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14295
14296 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14297     :
14298 else
14299     lt_prog_compiler_static_CXX=
14300 fi
14301
14302
14303
14304
14305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14307 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14308   $as_echo_n "(cached) " >&6
14309 else
14310   lt_cv_prog_compiler_c_o_CXX=no
14311    $RM -r conftest 2>/dev/null
14312    mkdir conftest
14313    cd conftest
14314    mkdir out
14315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14316
14317    lt_compiler_flag="-o out/conftest2.$ac_objext"
14318    # Insert the option either (1) after the last *FLAGS variable, or
14319    # (2) before a word containing "conftest.", or (3) at the end.
14320    # Note that $ac_compile itself does not contain backslashes and begins
14321    # with a dollar sign (not a hyphen), so the echo should work correctly.
14322    lt_compile=`echo "$ac_compile" | $SED \
14323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14325    -e 's:$: $lt_compiler_flag:'`
14326    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14327    (eval "$lt_compile" 2>out/conftest.err)
14328    ac_status=$?
14329    cat out/conftest.err >&5
14330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14332    then
14333      # The compiler can only warn and ignore the option if not recognized
14334      # So say no if there are warnings
14335      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14336      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14337      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14338        lt_cv_prog_compiler_c_o_CXX=yes
14339      fi
14340    fi
14341    chmod u+w . 2>&5
14342    $RM conftest*
14343    # SGI C++ compiler will create directory out/ii_files/ for
14344    # template instantiation
14345    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14346    $RM out/* && rmdir out
14347    cd ..
14348    $RM -r conftest
14349    $RM conftest*
14350
14351 fi
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14353 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14354
14355
14356
14357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14359 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14360   $as_echo_n "(cached) " >&6
14361 else
14362   lt_cv_prog_compiler_c_o_CXX=no
14363    $RM -r conftest 2>/dev/null
14364    mkdir conftest
14365    cd conftest
14366    mkdir out
14367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14368
14369    lt_compiler_flag="-o out/conftest2.$ac_objext"
14370    # Insert the option either (1) after the last *FLAGS variable, or
14371    # (2) before a word containing "conftest.", or (3) at the end.
14372    # Note that $ac_compile itself does not contain backslashes and begins
14373    # with a dollar sign (not a hyphen), so the echo should work correctly.
14374    lt_compile=`echo "$ac_compile" | $SED \
14375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14377    -e 's:$: $lt_compiler_flag:'`
14378    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14379    (eval "$lt_compile" 2>out/conftest.err)
14380    ac_status=$?
14381    cat out/conftest.err >&5
14382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14384    then
14385      # The compiler can only warn and ignore the option if not recognized
14386      # So say no if there are warnings
14387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14388      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14389      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14390        lt_cv_prog_compiler_c_o_CXX=yes
14391      fi
14392    fi
14393    chmod u+w . 2>&5
14394    $RM conftest*
14395    # SGI C++ compiler will create directory out/ii_files/ for
14396    # template instantiation
14397    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14398    $RM out/* && rmdir out
14399    cd ..
14400    $RM -r conftest
14401    $RM conftest*
14402
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14406
14407
14408
14409
14410 hard_links="nottested"
14411 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14412   # do not overwrite the value of need_locks provided by the user
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14414 $as_echo_n "checking if we can lock with hard links... " >&6; }
14415   hard_links=yes
14416   $RM conftest*
14417   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14418   touch conftest.a
14419   ln conftest.a conftest.b 2>&5 || hard_links=no
14420   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14422 $as_echo "$hard_links" >&6; }
14423   if test "$hard_links" = no; then
14424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14425 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14426     need_locks=warn
14427   fi
14428 else
14429   need_locks=no
14430 fi
14431
14432
14433
14434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14435 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14436
14437   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14438   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14439   case $host_os in
14440   aix[4-9]*)
14441     # If we're using GNU nm, then we don't want the "-C" option.
14442     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14443     # Also, AIX nm treats weak defined symbols like other global defined
14444     # symbols, whereas GNU nm marks them as "W".
14445     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14446       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14447     else
14448       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'
14449     fi
14450     ;;
14451   pw32*)
14452     export_symbols_cmds_CXX="$ltdll_cmds"
14453     ;;
14454   cygwin* | mingw* | cegcc*)
14455     case $cc_basename in
14456     cl*)
14457       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14458       ;;
14459     *)
14460       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14461       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14462       ;;
14463     esac
14464     ;;
14465   *)
14466     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14467     ;;
14468   esac
14469
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14471 $as_echo "$ld_shlibs_CXX" >&6; }
14472 test "$ld_shlibs_CXX" = no && can_build_shared=no
14473
14474 with_gnu_ld_CXX=$with_gnu_ld
14475
14476
14477
14478
14479
14480
14481 #
14482 # Do we need to explicitly link libc?
14483 #
14484 case "x$archive_cmds_need_lc_CXX" in
14485 x|xyes)
14486   # Assume -lc should be added
14487   archive_cmds_need_lc_CXX=yes
14488
14489   if test "$enable_shared" = yes && test "$GCC" = yes; then
14490     case $archive_cmds_CXX in
14491     *'~'*)
14492       # FIXME: we may have to deal with multi-command sequences.
14493       ;;
14494     '$CC '*)
14495       # Test whether the compiler implicitly links with -lc since on some
14496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14497       # to ld, don't add -lc before -lgcc.
14498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14500 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   $RM conftest*
14504         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14505
14506         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14507   (eval $ac_compile) 2>&5
14508   ac_status=$?
14509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14510   test $ac_status = 0; } 2>conftest.err; then
14511           soname=conftest
14512           lib=conftest
14513           libobjs=conftest.$ac_objext
14514           deplibs=
14515           wl=$lt_prog_compiler_wl_CXX
14516           pic_flag=$lt_prog_compiler_pic_CXX
14517           compiler_flags=-v
14518           linker_flags=-v
14519           verstring=
14520           output_objdir=.
14521           libname=conftest
14522           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14523           allow_undefined_flag_CXX=
14524           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14525   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14526   ac_status=$?
14527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528   test $ac_status = 0; }
14529           then
14530             lt_cv_archive_cmds_need_lc_CXX=no
14531           else
14532             lt_cv_archive_cmds_need_lc_CXX=yes
14533           fi
14534           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14535         else
14536           cat conftest.err 1>&5
14537         fi
14538         $RM conftest*
14539
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14542 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14543       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14544       ;;
14545     esac
14546   fi
14547   ;;
14548 esac
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14613
14614 library_names_spec=
14615 libname_spec='lib$name'
14616 soname_spec=
14617 shrext_cmds=".so"
14618 postinstall_cmds=
14619 postuninstall_cmds=
14620 finish_cmds=
14621 finish_eval=
14622 shlibpath_var=
14623 shlibpath_overrides_runpath=unknown
14624 version_type=none
14625 dynamic_linker="$host_os ld.so"
14626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14627 need_lib_prefix=unknown
14628 hardcode_into_libs=no
14629
14630 # when you set need_version to no, make sure it does not cause -set_version
14631 # flags to be left without arguments
14632 need_version=unknown
14633
14634 case $host_os in
14635 aix3*)
14636   version_type=linux # correct to gnu/linux during the next big refactor
14637   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14638   shlibpath_var=LIBPATH
14639
14640   # AIX 3 has no versioning support, so we append a major version to the name.
14641   soname_spec='${libname}${release}${shared_ext}$major'
14642   ;;
14643
14644 aix[4-9]*)
14645   version_type=linux # correct to gnu/linux during the next big refactor
14646   need_lib_prefix=no
14647   need_version=no
14648   hardcode_into_libs=yes
14649   if test "$host_cpu" = ia64; then
14650     # AIX 5 supports IA64
14651     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14652     shlibpath_var=LD_LIBRARY_PATH
14653   else
14654     # With GCC up to 2.95.x, collect2 would create an import file
14655     # for dependence libraries.  The import file would start with
14656     # the line `#! .'.  This would cause the generated library to
14657     # depend on `.', always an invalid library.  This was fixed in
14658     # development snapshots of GCC prior to 3.0.
14659     case $host_os in
14660       aix4 | aix4.[01] | aix4.[01].*)
14661       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14662            echo ' yes '
14663            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14664         :
14665       else
14666         can_build_shared=no
14667       fi
14668       ;;
14669     esac
14670     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14671     # soname into executable. Probably we can add versioning support to
14672     # collect2, so additional links can be useful in future.
14673     if test "$aix_use_runtimelinking" = yes; then
14674       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14675       # instead of lib<name>.a to let people know that these are not
14676       # typical AIX shared libraries.
14677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678     else
14679       # We preserve .a as extension for shared libraries through AIX4.2
14680       # and later when we are not doing run time linking.
14681       library_names_spec='${libname}${release}.a $libname.a'
14682       soname_spec='${libname}${release}${shared_ext}$major'
14683     fi
14684     shlibpath_var=LIBPATH
14685   fi
14686   ;;
14687
14688 amigaos*)
14689   case $host_cpu in
14690   powerpc)
14691     # Since July 2007 AmigaOS4 officially supports .so libraries.
14692     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694     ;;
14695   m68k)
14696     library_names_spec='$libname.ixlibrary $libname.a'
14697     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14698     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14699     ;;
14700   esac
14701   ;;
14702
14703 beos*)
14704   library_names_spec='${libname}${shared_ext}'
14705   dynamic_linker="$host_os ld.so"
14706   shlibpath_var=LIBRARY_PATH
14707   ;;
14708
14709 bsdi[45]*)
14710   version_type=linux # correct to gnu/linux during the next big refactor
14711   need_version=no
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14717   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14718   # the default ld.so.conf also contains /usr/contrib/lib and
14719   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14720   # libtool to hard-code these into programs
14721   ;;
14722
14723 cygwin* | mingw* | pw32* | cegcc*)
14724   version_type=windows
14725   shrext_cmds=".dll"
14726   need_version=no
14727   need_lib_prefix=no
14728
14729   case $GCC,$cc_basename in
14730   yes,*)
14731     # gcc
14732     library_names_spec='$libname.dll.a'
14733     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14734     postinstall_cmds='base_file=`basename \${file}`~
14735       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14736       dldir=$destdir/`dirname \$dlpath`~
14737       test -d \$dldir || mkdir -p \$dldir~
14738       $install_prog $dir/$dlname \$dldir/$dlname~
14739       chmod a+x \$dldir/$dlname~
14740       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14741         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14742       fi'
14743     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14744       dlpath=$dir/\$dldll~
14745        $RM \$dlpath'
14746     shlibpath_overrides_runpath=yes
14747
14748     case $host_os in
14749     cygwin*)
14750       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14751       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14752
14753       ;;
14754     mingw* | cegcc*)
14755       # MinGW DLLs use traditional 'lib' prefix
14756       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14757       ;;
14758     pw32*)
14759       # pw32 DLLs use 'pw' prefix rather than 'lib'
14760       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14761       ;;
14762     esac
14763     dynamic_linker='Win32 ld.exe'
14764     ;;
14765
14766   *,cl*)
14767     # Native MSVC
14768     libname_spec='$name'
14769     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14770     library_names_spec='${libname}.dll.lib'
14771
14772     case $build_os in
14773     mingw*)
14774       sys_lib_search_path_spec=
14775       lt_save_ifs=$IFS
14776       IFS=';'
14777       for lt_path in $LIB
14778       do
14779         IFS=$lt_save_ifs
14780         # Let DOS variable expansion print the short 8.3 style file name.
14781         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14782         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14783       done
14784       IFS=$lt_save_ifs
14785       # Convert to MSYS style.
14786       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14787       ;;
14788     cygwin*)
14789       # Convert to unix form, then to dos form, then back to unix form
14790       # but this time dos style (no spaces!) so that the unix form looks
14791       # like /cygdrive/c/PROGRA~1:/cygdr...
14792       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14793       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14794       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14795       ;;
14796     *)
14797       sys_lib_search_path_spec="$LIB"
14798       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14799         # It is most probably a Windows format PATH.
14800         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14801       else
14802         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14803       fi
14804       # FIXME: find the short name or the path components, as spaces are
14805       # common. (e.g. "Program Files" -> "PROGRA~1")
14806       ;;
14807     esac
14808
14809     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14810     postinstall_cmds='base_file=`basename \${file}`~
14811       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14812       dldir=$destdir/`dirname \$dlpath`~
14813       test -d \$dldir || mkdir -p \$dldir~
14814       $install_prog $dir/$dlname \$dldir/$dlname'
14815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14816       dlpath=$dir/\$dldll~
14817        $RM \$dlpath'
14818     shlibpath_overrides_runpath=yes
14819     dynamic_linker='Win32 link.exe'
14820     ;;
14821
14822   *)
14823     # Assume MSVC wrapper
14824     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14825     dynamic_linker='Win32 ld.exe'
14826     ;;
14827   esac
14828   # FIXME: first we should search . and the directory the executable is in
14829   shlibpath_var=PATH
14830   ;;
14831
14832 darwin* | rhapsody*)
14833   dynamic_linker="$host_os dyld"
14834   version_type=darwin
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14838   soname_spec='${libname}${release}${major}$shared_ext'
14839   shlibpath_overrides_runpath=yes
14840   shlibpath_var=DYLD_LIBRARY_PATH
14841   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14842
14843   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14844   ;;
14845
14846 dgux*)
14847   version_type=linux # correct to gnu/linux during the next big refactor
14848   need_lib_prefix=no
14849   need_version=no
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14851   soname_spec='${libname}${release}${shared_ext}$major'
14852   shlibpath_var=LD_LIBRARY_PATH
14853   ;;
14854
14855 freebsd* | dragonfly*)
14856   # DragonFly does not have aout.  When/if they implement a new
14857   # versioning mechanism, adjust this.
14858   if test -x /usr/bin/objformat; then
14859     objformat=`/usr/bin/objformat`
14860   else
14861     case $host_os in
14862     freebsd[23].*) objformat=aout ;;
14863     *) objformat=elf ;;
14864     esac
14865   fi
14866   version_type=freebsd-$objformat
14867   case $version_type in
14868     freebsd-elf*)
14869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14870       need_version=no
14871       need_lib_prefix=no
14872       ;;
14873     freebsd-*)
14874       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14875       need_version=yes
14876       ;;
14877   esac
14878   shlibpath_var=LD_LIBRARY_PATH
14879   case $host_os in
14880   freebsd2.*)
14881     shlibpath_overrides_runpath=yes
14882     ;;
14883   freebsd3.[01]* | freebsdelf3.[01]*)
14884     shlibpath_overrides_runpath=yes
14885     hardcode_into_libs=yes
14886     ;;
14887   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14888   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14889     shlibpath_overrides_runpath=no
14890     hardcode_into_libs=yes
14891     ;;
14892   *) # from 4.6 on, and DragonFly
14893     shlibpath_overrides_runpath=yes
14894     hardcode_into_libs=yes
14895     ;;
14896   esac
14897   ;;
14898
14899 gnu*)
14900   version_type=linux # correct to gnu/linux during the next big refactor
14901   need_lib_prefix=no
14902   need_version=no
14903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14904   soname_spec='${libname}${release}${shared_ext}$major'
14905   shlibpath_var=LD_LIBRARY_PATH
14906   shlibpath_overrides_runpath=no
14907   hardcode_into_libs=yes
14908   ;;
14909
14910 haiku*)
14911   version_type=linux # correct to gnu/linux during the next big refactor
14912   need_lib_prefix=no
14913   need_version=no
14914   dynamic_linker="$host_os runtime_loader"
14915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14916   soname_spec='${libname}${release}${shared_ext}$major'
14917   shlibpath_var=LIBRARY_PATH
14918   shlibpath_overrides_runpath=yes
14919   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14920   hardcode_into_libs=yes
14921   ;;
14922
14923 hpux9* | hpux10* | hpux11*)
14924   # Give a soname corresponding to the major version so that dld.sl refuses to
14925   # link against other versions.
14926   version_type=sunos
14927   need_lib_prefix=no
14928   need_version=no
14929   case $host_cpu in
14930   ia64*)
14931     shrext_cmds='.so'
14932     hardcode_into_libs=yes
14933     dynamic_linker="$host_os dld.so"
14934     shlibpath_var=LD_LIBRARY_PATH
14935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937     soname_spec='${libname}${release}${shared_ext}$major'
14938     if test "X$HPUX_IA64_MODE" = X32; then
14939       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14940     else
14941       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14942     fi
14943     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14944     ;;
14945   hppa*64*)
14946     shrext_cmds='.sl'
14947     hardcode_into_libs=yes
14948     dynamic_linker="$host_os dld.sl"
14949     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952     soname_spec='${libname}${release}${shared_ext}$major'
14953     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955     ;;
14956   *)
14957     shrext_cmds='.sl'
14958     dynamic_linker="$host_os dld.sl"
14959     shlibpath_var=SHLIB_PATH
14960     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962     soname_spec='${libname}${release}${shared_ext}$major'
14963     ;;
14964   esac
14965   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14966   postinstall_cmds='chmod 555 $lib'
14967   # or fails outright, so override atomically:
14968   install_override_mode=555
14969   ;;
14970
14971 interix[3-9]*)
14972   version_type=linux # correct to gnu/linux during the next big refactor
14973   need_lib_prefix=no
14974   need_version=no
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14976   soname_spec='${libname}${release}${shared_ext}$major'
14977   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14978   shlibpath_var=LD_LIBRARY_PATH
14979   shlibpath_overrides_runpath=no
14980   hardcode_into_libs=yes
14981   ;;
14982
14983 irix5* | irix6* | nonstopux*)
14984   case $host_os in
14985     nonstopux*) version_type=nonstopux ;;
14986     *)
14987         if test "$lt_cv_prog_gnu_ld" = yes; then
14988                 version_type=linux # correct to gnu/linux during the next big refactor
14989         else
14990                 version_type=irix
14991         fi ;;
14992   esac
14993   need_lib_prefix=no
14994   need_version=no
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14997   case $host_os in
14998   irix5* | nonstopux*)
14999     libsuff= shlibsuff=
15000     ;;
15001   *)
15002     case $LD in # libtool.m4 will add one of these switches to LD
15003     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15004       libsuff= shlibsuff= libmagic=32-bit;;
15005     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15006       libsuff=32 shlibsuff=N32 libmagic=N32;;
15007     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15008       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15009     *) libsuff= shlibsuff= libmagic=never-match;;
15010     esac
15011     ;;
15012   esac
15013   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15014   shlibpath_overrides_runpath=no
15015   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15016   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15017   hardcode_into_libs=yes
15018   ;;
15019
15020 # No shared lib support for Linux oldld, aout, or coff.
15021 linux*oldld* | linux*aout* | linux*coff*)
15022   dynamic_linker=no
15023   ;;
15024
15025 # This must be glibc/ELF.
15026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15027   version_type=linux # correct to gnu/linux during the next big refactor
15028   need_lib_prefix=no
15029   need_version=no
15030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031   soname_spec='${libname}${release}${shared_ext}$major'
15032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15033   shlibpath_var=LD_LIBRARY_PATH
15034   shlibpath_overrides_runpath=no
15035
15036   # Some binutils ld are patched to set DT_RUNPATH
15037   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15038   $as_echo_n "(cached) " >&6
15039 else
15040   lt_cv_shlibpath_overrides_runpath=no
15041     save_LDFLAGS=$LDFLAGS
15042     save_libdir=$libdir
15043     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15044          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h.  */
15047
15048 int
15049 main ()
15050 {
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 if ac_fn_cxx_try_link "$LINENO"; then :
15057   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15058   lt_cv_shlibpath_overrides_runpath=yes
15059 fi
15060 fi
15061 rm -f core conftest.err conftest.$ac_objext \
15062     conftest$ac_exeext conftest.$ac_ext
15063     LDFLAGS=$save_LDFLAGS
15064     libdir=$save_libdir
15065
15066 fi
15067
15068   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15069
15070   # This implies no fast_install, which is unacceptable.
15071   # Some rework will be needed to allow for fast_install
15072   # before this can be enabled.
15073   hardcode_into_libs=yes
15074
15075   # Add ABI-specific directories to the system library path.
15076   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15077
15078   # Append ld.so.conf contents to the search path
15079   if test -f /etc/ld.so.conf; then
15080     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;s/"//g;/^$/d' | tr '\n' ' '`
15081     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15082
15083   fi
15084
15085   # We used to test for /lib/ld.so.1 and disable shared libraries on
15086   # powerpc, because MkLinux only supported shared libraries with the
15087   # GNU dynamic linker.  Since this was broken with cross compilers,
15088   # most powerpc-linux boxes support dynamic linking these days and
15089   # people can always --disable-shared, the test was removed, and we
15090   # assume the GNU/Linux dynamic linker is in use.
15091   dynamic_linker='GNU/Linux ld.so'
15092   ;;
15093
15094 netbsd*)
15095   version_type=sunos
15096   need_lib_prefix=no
15097   need_version=no
15098   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15101     dynamic_linker='NetBSD (a.out) ld.so'
15102   else
15103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15104     soname_spec='${libname}${release}${shared_ext}$major'
15105     dynamic_linker='NetBSD ld.elf_so'
15106   fi
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=yes
15109   hardcode_into_libs=yes
15110   ;;
15111
15112 newsos6)
15113   version_type=linux # correct to gnu/linux during the next big refactor
15114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115   shlibpath_var=LD_LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   ;;
15118
15119 *nto* | *qnx*)
15120   version_type=qnx
15121   need_lib_prefix=no
15122   need_version=no
15123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124   soname_spec='${libname}${release}${shared_ext}$major'
15125   shlibpath_var=LD_LIBRARY_PATH
15126   shlibpath_overrides_runpath=no
15127   hardcode_into_libs=yes
15128   dynamic_linker='ldqnx.so'
15129   ;;
15130
15131 openbsd*)
15132   version_type=sunos
15133   sys_lib_dlsearch_path_spec="/usr/lib"
15134   need_lib_prefix=no
15135   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15136   case $host_os in
15137     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15138     *)                          need_version=no  ;;
15139   esac
15140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15144     case $host_os in
15145       openbsd2.[89] | openbsd2.[89].*)
15146         shlibpath_overrides_runpath=no
15147         ;;
15148       *)
15149         shlibpath_overrides_runpath=yes
15150         ;;
15151       esac
15152   else
15153     shlibpath_overrides_runpath=yes
15154   fi
15155   ;;
15156
15157 os2*)
15158   libname_spec='$name'
15159   shrext_cmds=".dll"
15160   need_lib_prefix=no
15161   library_names_spec='$libname${shared_ext} $libname.a'
15162   dynamic_linker='OS/2 ld.exe'
15163   shlibpath_var=LIBPATH
15164   ;;
15165
15166 osf3* | osf4* | osf5*)
15167   version_type=osf
15168   need_lib_prefix=no
15169   need_version=no
15170   soname_spec='${libname}${release}${shared_ext}$major'
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15174   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15175   ;;
15176
15177 rdos*)
15178   dynamic_linker=no
15179   ;;
15180
15181 solaris*)
15182   version_type=linux # correct to gnu/linux during the next big refactor
15183   need_lib_prefix=no
15184   need_version=no
15185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186   soname_spec='${libname}${release}${shared_ext}$major'
15187   shlibpath_var=LD_LIBRARY_PATH
15188   shlibpath_overrides_runpath=yes
15189   hardcode_into_libs=yes
15190   # ldd complains unless libraries are executable
15191   postinstall_cmds='chmod +x $lib'
15192   ;;
15193
15194 sunos4*)
15195   version_type=sunos
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15198   shlibpath_var=LD_LIBRARY_PATH
15199   shlibpath_overrides_runpath=yes
15200   if test "$with_gnu_ld" = yes; then
15201     need_lib_prefix=no
15202   fi
15203   need_version=yes
15204   ;;
15205
15206 sysv4 | sysv4.3*)
15207   version_type=linux # correct to gnu/linux during the next big refactor
15208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209   soname_spec='${libname}${release}${shared_ext}$major'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   case $host_vendor in
15212     sni)
15213       shlibpath_overrides_runpath=no
15214       need_lib_prefix=no
15215       runpath_var=LD_RUN_PATH
15216       ;;
15217     siemens)
15218       need_lib_prefix=no
15219       ;;
15220     motorola)
15221       need_lib_prefix=no
15222       need_version=no
15223       shlibpath_overrides_runpath=no
15224       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15225       ;;
15226   esac
15227   ;;
15228
15229 sysv4*MP*)
15230   if test -d /usr/nec ;then
15231     version_type=linux # correct to gnu/linux during the next big refactor
15232     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15233     soname_spec='$libname${shared_ext}.$major'
15234     shlibpath_var=LD_LIBRARY_PATH
15235   fi
15236   ;;
15237
15238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15239   version_type=freebsd-elf
15240   need_lib_prefix=no
15241   need_version=no
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15243   soname_spec='${libname}${release}${shared_ext}$major'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=yes
15246   hardcode_into_libs=yes
15247   if test "$with_gnu_ld" = yes; then
15248     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15249   else
15250     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15251     case $host_os in
15252       sco3.2v5*)
15253         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15254         ;;
15255     esac
15256   fi
15257   sys_lib_dlsearch_path_spec='/usr/lib'
15258   ;;
15259
15260 tpf*)
15261   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15262   version_type=linux # correct to gnu/linux during the next big refactor
15263   need_lib_prefix=no
15264   need_version=no
15265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266   shlibpath_var=LD_LIBRARY_PATH
15267   shlibpath_overrides_runpath=no
15268   hardcode_into_libs=yes
15269   ;;
15270
15271 uts4*)
15272   version_type=linux # correct to gnu/linux during the next big refactor
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   shlibpath_var=LD_LIBRARY_PATH
15276   ;;
15277
15278 *)
15279   dynamic_linker=no
15280   ;;
15281 esac
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15283 $as_echo "$dynamic_linker" >&6; }
15284 test "$dynamic_linker" = no && can_build_shared=no
15285
15286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15287 if test "$GCC" = yes; then
15288   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15289 fi
15290
15291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15292   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15293 fi
15294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15295   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15296 fi
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15337 hardcode_action_CXX=
15338 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15339    test -n "$runpath_var_CXX" ||
15340    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15341
15342   # We can hardcode non-existent directories.
15343   if test "$hardcode_direct_CXX" != no &&
15344      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15345      # have to relink, otherwise we might link with an installed library
15346      # when we should be linking with a yet-to-be-installed one
15347      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15348      test "$hardcode_minus_L_CXX" != no; then
15349     # Linking always hardcodes the temporary library directory.
15350     hardcode_action_CXX=relink
15351   else
15352     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15353     hardcode_action_CXX=immediate
15354   fi
15355 else
15356   # We cannot hardcode anything, or else we can only hardcode existing
15357   # directories.
15358   hardcode_action_CXX=unsupported
15359 fi
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15361 $as_echo "$hardcode_action_CXX" >&6; }
15362
15363 if test "$hardcode_action_CXX" = relink ||
15364    test "$inherit_rpath_CXX" = yes; then
15365   # Fast installation is not supported
15366   enable_fast_install=no
15367 elif test "$shlibpath_overrides_runpath" = yes ||
15368      test "$enable_shared" = no; then
15369   # Fast installation is not necessary
15370   enable_fast_install=needless
15371 fi
15372
15373
15374
15375
15376
15377
15378
15379   fi # test -n "$compiler"
15380
15381   CC=$lt_save_CC
15382   CFLAGS=$lt_save_CFLAGS
15383   LDCXX=$LD
15384   LD=$lt_save_LD
15385   GCC=$lt_save_GCC
15386   with_gnu_ld=$lt_save_with_gnu_ld
15387   lt_cv_path_LDCXX=$lt_cv_path_LD
15388   lt_cv_path_LD=$lt_save_path_LD
15389   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15390   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15391 fi # test "$_lt_caught_CXX_error" != yes
15392
15393 ac_ext=c
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413         ac_config_commands="$ac_config_commands libtool"
15414
15415
15416
15417
15418 # Only expand once:
15419
15420
15421
15422
15423
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system provides zonefiles or we should bring our own? " >&5
15426 $as_echo_n "checking whether the system provides zonefiles or we should bring our own? ... " >&6; }
15427 case "$host" in
15428 *-mingw*)
15429     use_builtin_timezone=yes
15430     os_win32=yes
15431     ;;
15432 *linux*)
15433     use_builtin_timezone=no
15434     os_win32=no
15435     ;;
15436 *kfreebsd*-gnu*)
15437     use_builtin_timezone=no
15438     os_win32=no
15439     ;;
15440 *)
15441     use_builtin_timezone=yes
15442     os_win32=no
15443     ;;
15444 esac
15445
15446 if test "$use_builtin_timezone" = "no" ; then
15447         if test ! -d /usr/share/zoneinfo; then
15448             use_builtin_timezone=yes
15449         fi
15450 fi
15451
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_builtin_timezone" >&5
15453 $as_echo "$use_builtin_timezone" >&6; }
15454  if test $os_win32 = yes; then
15455   OS_WIN32_TRUE=
15456   OS_WIN32_FALSE='#'
15457 else
15458   OS_WIN32_TRUE='#'
15459   OS_WIN32_FALSE=
15460 fi
15461
15462
15463 if test "x$os_win32" = "xyes"; then
15464         zoneinfo_dir="zoneinfo"
15465 fi
15466
15467
15468 # Check whether --with-builtintz was given.
15469 if test "${with_builtintz+set}" = set; then :
15470   withval=$with_builtintz; if test "x$withval" = "xyes" ; then
15471                              use_builtin_timezone="yes"
15472                           fi
15473                           if test "x$withval" = "xno" ; then
15474                              use_builtin_timezone="no"
15475                           fi
15476
15477 fi
15478
15479
15480 zoneinfodir=""
15481 if test "$use_builtin_timezone" = "yes"; then
15482
15483 $as_echo "#define USE_BUILTIN_TZDATA /**/" >>confdefs.h
15484
15485    zoneinfodir=zoneinfo
15486 fi
15487 ZONE_INFO="$zoneinfodir"
15488
15489
15490
15491
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB4 support" >&5
15494 $as_echo_n "checking for Berkeley DB4 support... " >&6; }
15495
15496 # Check whether --with-bdb4 was given.
15497 if test "${with_bdb4+set}" = set; then :
15498   withval=$with_bdb4; case $with_bdb4 in
15499     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15500 $as_echo "yes" >&6; }
15501                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding Berkeley DB support" >&5
15502 $as_echo "Adding Berkeley DB support" >&6; }
15503                 WITH_BDB4="yes"
15504                 ;;
15505     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15507                 ;;
15508     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ignoring unknown argument to --with-bdb4: $with_bdb4" >&5
15511 $as_echo "Ignoring unknown argument to --with-bdb4: $with_bdb4" >&6; }
15512                 ;;
15513 esac
15514 else
15515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15517 fi
15518
15519
15520 if test x$WITH_BDB4 = xyes; then
15521
15522 # Check whether --with-bdb4_dir was given.
15523 if test "${with_bdb4_dir+set}" = set; then :
15524   withval=$with_bdb4_dir; BDB_DIR=$withval
15525 else
15526   BDB_DIR=/usr/local/BerkeleyDB.4.0
15527
15528 fi
15529
15530
15531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB include files" >&5
15532 $as_echo_n "checking for Berkeley DB include files... " >&6; }
15533   if test -f $BDB_DIR/include/db.h; then
15534    BDB_DIR_INCLUDE=$BDB_DIR/include
15535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_INCLUDE" >&5
15536 $as_echo "$BDB_DIR_INCLUDE" >&6; }
15537   else
15538     if test -f $BDB_DIR/include/db4/db.h; then
15539      BDB_DIR_INCLUDE=$BDB_DIR/include/db4
15540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_INCLUDE" >&5
15541 $as_echo "$BDB_DIR_INCLUDE" >&6; }
15542     else
15543      WITH_BDB4="no"
15544      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
15545 $as_echo "not found!" >&6; }
15546     fi
15547   fi
15548
15549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB libraries" >&5
15550 $as_echo_n "checking for Berkeley DB libraries... " >&6; }
15551   if test -f $BDB_DIR/lib/libdb-4.0.la; then
15552    BDB_DIR_LIB=$BDB_DIR/lib
15553    BDB_LIB=libdb-4.0.la
15554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_LIB $BDB_LIB" >&5
15555 $as_echo "$BDB_DIR_LIB $BDB_LIB" >&6; }
15556   else
15557     if test -f $BDB_DIR/lib/libdb4.la; then
15558      BDB_DIR_LIB=$BDB_DIR/lib
15559      BDB_LIB=libdb4.la
15560      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDB_DIR_LIB $BDB_LIB" >&5
15561 $as_echo "$BDB_DIR_LIB $BDB_LIB" >&6; }
15562     else
15563      WITH_BDB4="no"
15564      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
15565 $as_echo "not found!" >&6; }
15566     fi
15567   fi
15568
15569
15570
15571
15572
15573     BDB_VERSION="4.0"
15574
15575 fi
15576  if test x$WITH_BDB4 = xyes; then
15577   WITH_BDB4_TRUE=
15578   WITH_BDB4_FALSE='#'
15579 else
15580   WITH_BDB4_TRUE='#'
15581   WITH_BDB4_FALSE=
15582 fi
15583
15584
15585
15586
15587 # Check whether --with-backtrace was given.
15588 if test "${with_backtrace+set}" = set; then :
15589   withval=$with_backtrace;  if test "x$withval" != "xno" ; then
15590                              CFLAGS="$CFLAGS  -rdynamic "
15591                              LDFLAGS="$LDFLAGS  -rdynamic "
15592                              SERVER_LDFLAGS="$SERVER_LDFLAGS  -rdynamic "
15593                              for ac_func in backtrace
15594 do :
15595   ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
15596 if test "x$ac_cv_func_backtrace" = xyes; then :
15597   cat >>confdefs.h <<_ACEOF
15598 #define HAVE_BACKTRACE 1
15599 _ACEOF
15600
15601 fi
15602 done
15603
15604                           fi
15605
15606
15607 fi
15608
15609
15610
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support development" >&5
15612 $as_echo_n "checking whether to support development... " >&6; }
15613
15614 # Check whether --with-devel was given.
15615 if test "${with_devel+set}" = set; then :
15616   withval=$with_devel; case $with_devel in
15617     yes)        DEV="yes"
15618                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15620                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting up for development: -Wall" >&5
15621 $as_echo "Setting up for development: -Wall" >&6; }
15622                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Note that you will need flex 2.5.7 or higher" >&5
15623 $as_echo "** Note that you will need flex 2.5.7 or higher" >&6; }
15624                 ;;
15625     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627                 ;;
15628     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ignoring unknown argument to --with-devel: $with_devel" >&5
15631 $as_echo "Ignoring unknown argument to --with-devel: $with_devel" >&6; }
15632                 ;;
15633 esac
15634 else
15635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637 fi
15638
15639  if test x$DEV = xyes; then
15640   DEV_TRUE=
15641   DEV_FALSE='#'
15642 else
15643   DEV_TRUE='#'
15644   DEV_FALSE=
15645 fi
15646
15647
15648 for ac_prog in ar aal
15649 do
15650   # Extract the first word of "$ac_prog", so it can be a program name with args.
15651 set dummy $ac_prog; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 $as_echo_n "checking for $ac_word... " >&6; }
15654 if ${ac_cv_prog_AR+:} false; then :
15655   $as_echo_n "(cached) " >&6
15656 else
15657   if test -n "$AR"; then
15658   ac_cv_prog_AR="$AR" # Let the user override the test.
15659 else
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661 for as_dir in $PATH
15662 do
15663   IFS=$as_save_IFS
15664   test -z "$as_dir" && as_dir=.
15665     for ac_exec_ext in '' $ac_executable_extensions; do
15666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15667     ac_cv_prog_AR="$ac_prog"
15668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15669     break 2
15670   fi
15671 done
15672   done
15673 IFS=$as_save_IFS
15674
15675 fi
15676 fi
15677 AR=$ac_cv_prog_AR
15678 if test -n "$AR"; then
15679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15680 $as_echo "$AR" >&6; }
15681 else
15682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15684 fi
15685
15686
15687   test -n "$AR" && break
15688 done
15689 test -n "$AR" || AR="ar"
15690
15691 for ac_prog in perl5 perl
15692 do
15693   # Extract the first word of "$ac_prog", so it can be a program name with args.
15694 set dummy $ac_prog; ac_word=$2
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15696 $as_echo_n "checking for $ac_word... " >&6; }
15697 if ${ac_cv_prog_PERL+:} false; then :
15698   $as_echo_n "(cached) " >&6
15699 else
15700   if test -n "$PERL"; then
15701   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15702 else
15703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704 for as_dir in $PATH
15705 do
15706   IFS=$as_save_IFS
15707   test -z "$as_dir" && as_dir=.
15708     for ac_exec_ext in '' $ac_executable_extensions; do
15709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15710     ac_cv_prog_PERL="$ac_prog"
15711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15712     break 2
15713   fi
15714 done
15715   done
15716 IFS=$as_save_IFS
15717
15718 fi
15719 fi
15720 PERL=$ac_cv_prog_PERL
15721 if test -n "$PERL"; then
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15723 $as_echo "$PERL" >&6; }
15724 else
15725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15727 fi
15728
15729
15730   test -n "$PERL" && break
15731 done
15732
15733
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to define _REENTRANT" >&5
15735 $as_echo_n "checking whether to define _REENTRANT... " >&6; }
15736 # Check whether --enable-reentrant was given.
15737 if test "${enable_reentrant+set}" = set; then :
15738   enableval=$enable_reentrant;  case "${enableval}" in
15739   no)
15740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15742     ac_cv_reentrant=no
15743     ;;
15744   *)
15745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15746 $as_echo "yes" >&6; }
15747
15748 $as_echo "#define ICAL_REENTRANT /**/" >>confdefs.h
15749  CFLAGS="$CFLAGS -D_REENTRANT"
15750     ac_cv_reentrant=yes
15751     ;;
15752   esac
15753 else
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15756
15757 fi
15758
15759
15760
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if icalerrors_* calls should abort instead of internally signalling an error" >&5
15762 $as_echo_n "checking if icalerrors_* calls should abort instead of internally signalling an error... " >&6; }
15763 # Check whether --enable-icalerrors-are-fatal was given.
15764 if test "${enable_icalerrors_are_fatal+set}" = set; then :
15765   enableval=$enable_icalerrors_are_fatal;   case "${enableval}" in
15766         yes)
15767           ac_cv_ical_errors_are_fatal=yes
15768           ;;
15769         *)
15770           ac_cv_ical_errors_are_fatal=no
15771           ;;
15772      esac
15773 else
15774   ac_cv_ical_errors_are_fatal=no
15775
15776 fi
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ical_errors_are_fatal" >&5
15779 $as_echo "$ac_cv_ical_errors_are_fatal" >&6; }
15780
15781 if test "x$ac_cv_ical_errors_are_fatal" != "xyes"; then
15782
15783 $as_echo "#define ICAL_ERRORS_ARE_FATAL 0" >>confdefs.h
15784
15785 else
15786
15787 $as_echo "#define ICAL_ERRORS_ARE_FATAL 1" >>confdefs.h
15788
15789 fi
15790
15791
15792 $as_echo "#define NO_WARN_DEPRECATED 1" >>confdefs.h
15793
15794
15795 $as_echo "#define NO_WARN_ICAL_MALFORMEDDATA_ERROR_HACK 1" >>confdefs.h
15796
15797
15798
15799 $as_echo "#define ICAL_UNIX_NEWLINE 1" >>confdefs.h
15800
15801
15802 $as_echo "#define ICAL_ALLOW_EMPTY_PROPERTIES 0" >>confdefs.h
15803
15804
15805
15806
15807 case "${host}" in
15808         *-*-freebsdelf4* )
15809                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for pthread_create in -lpthread... -pthread (FreeBSD 4.x style)" >&5
15810 $as_echo "checking for pthread_create in -lpthread... -pthread (FreeBSD 4.x style)" >&6; }
15811
15812 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
15813
15814                 PTHREAD_LIBS=-pthread;;
15815
15816         *)
15817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15818 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15819 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15820   $as_echo_n "(cached) " >&6
15821 else
15822   ac_check_lib_save_LIBS=$LIBS
15823 LIBS="-lpthread  $LIBS"
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h.  */
15826
15827 /* Override any GCC internal prototype to avoid an error.
15828    Use char because int might match the return type of a GCC
15829    builtin and then its argument prototype would still apply.  */
15830 #ifdef __cplusplus
15831 extern "C"
15832 #endif
15833 char pthread_create ();
15834 int
15835 main ()
15836 {
15837 return pthread_create ();
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 if ac_fn_c_try_link "$LINENO"; then :
15843   ac_cv_lib_pthread_pthread_create=yes
15844 else
15845   ac_cv_lib_pthread_pthread_create=no
15846 fi
15847 rm -f core conftest.err conftest.$ac_objext \
15848     conftest$ac_exeext conftest.$ac_ext
15849 LIBS=$ac_check_lib_save_LIBS
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15852 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15853 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15854   have_pthread=yes
15855 fi
15856
15857         if test "x$have_pthread" = xyes; then
15858
15859 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
15860
15861            PTHREAD_LIBS=-lpthread
15862         fi;;
15863 esac
15864
15865  if test "$have_pthread" = "yes"; then
15866   HAVE_PTHREAD_TRUE=
15867   HAVE_PTHREAD_FALSE='#'
15868 else
15869   HAVE_PTHREAD_TRUE='#'
15870   HAVE_PTHREAD_FALSE=
15871 fi
15872
15873
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15876 $as_echo_n "checking for ANSI C header files... " >&6; }
15877 if ${ac_cv_header_stdc+:} false; then :
15878   $as_echo_n "(cached) " >&6
15879 else
15880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h.  */
15882 #include <stdlib.h>
15883 #include <stdarg.h>
15884 #include <string.h>
15885 #include <float.h>
15886
15887 int
15888 main ()
15889 {
15890
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896   ac_cv_header_stdc=yes
15897 else
15898   ac_cv_header_stdc=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901
15902 if test $ac_cv_header_stdc = yes; then
15903   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h.  */
15906 #include <string.h>
15907
15908 _ACEOF
15909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15910   $EGREP "memchr" >/dev/null 2>&1; then :
15911
15912 else
15913   ac_cv_header_stdc=no
15914 fi
15915 rm -f conftest*
15916
15917 fi
15918
15919 if test $ac_cv_header_stdc = yes; then
15920   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h.  */
15923 #include <stdlib.h>
15924
15925 _ACEOF
15926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927   $EGREP "free" >/dev/null 2>&1; then :
15928
15929 else
15930   ac_cv_header_stdc=no
15931 fi
15932 rm -f conftest*
15933
15934 fi
15935
15936 if test $ac_cv_header_stdc = yes; then
15937   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15938   if test "$cross_compiling" = yes; then :
15939   :
15940 else
15941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h.  */
15943 #include <ctype.h>
15944 #include <stdlib.h>
15945 #if ((' ' & 0x0FF) == 0x020)
15946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15948 #else
15949 # define ISLOWER(c) \
15950                    (('a' <= (c) && (c) <= 'i') \
15951                      || ('j' <= (c) && (c) <= 'r') \
15952                      || ('s' <= (c) && (c) <= 'z'))
15953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15954 #endif
15955
15956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15957 int
15958 main ()
15959 {
15960   int i;
15961   for (i = 0; i < 256; i++)
15962     if (XOR (islower (i), ISLOWER (i))
15963         || toupper (i) != TOUPPER (i))
15964       return 2;
15965   return 0;
15966 }
15967 _ACEOF
15968 if ac_fn_c_try_run "$LINENO"; then :
15969
15970 else
15971   ac_cv_header_stdc=no
15972 fi
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15974   conftest.$ac_objext conftest.beam conftest.$ac_ext
15975 fi
15976
15977 fi
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15980 $as_echo "$ac_cv_header_stdc" >&6; }
15981 if test $ac_cv_header_stdc = yes; then
15982
15983 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15984
15985 fi
15986
15987 for ac_header in assert.h ctype.h pthread.h stdint.h time.h sys/types.h unistd.h wctype.h endian.h sys/endian.h byteswap.h
15988 do :
15989   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15990 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15992   cat >>confdefs.h <<_ACEOF
15993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15994 _ACEOF
15995
15996 fi
15997
15998 done
15999
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16002 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16003 if ${ac_cv_c_const+:} false; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008
16009 int
16010 main ()
16011 {
16012
16013 #ifndef __cplusplus
16014   /* Ultrix mips cc rejects this sort of thing.  */
16015   typedef int charset[2];
16016   const charset cs = { 0, 0 };
16017   /* SunOS 4.1.1 cc rejects this.  */
16018   char const *const *pcpcc;
16019   char **ppc;
16020   /* NEC SVR4.0.2 mips cc rejects this.  */
16021   struct point {int x, y;};
16022   static struct point const zero = {0,0};
16023   /* AIX XL C 1.02.0.0 rejects this.
16024      It does not let you subtract one const X* pointer from another in
16025      an arm of an if-expression whose if-part is not a constant
16026      expression */
16027   const char *g = "string";
16028   pcpcc = &g + (g ? g-g : 0);
16029   /* HPUX 7.0 cc rejects these. */
16030   ++pcpcc;
16031   ppc = (char**) pcpcc;
16032   pcpcc = (char const *const *) ppc;
16033   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16034     char tx;
16035     char *t = &tx;
16036     char const *s = 0 ? (char *) 0 : (char const *) 0;
16037
16038     *t++ = 0;
16039     if (s) return 0;
16040   }
16041   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16042     int x[] = {25, 17};
16043     const int *foo = &x[0];
16044     ++foo;
16045   }
16046   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16047     typedef const int *iptr;
16048     iptr p = 0;
16049     ++p;
16050   }
16051   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16052        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16053     struct s { int j; const int *ap[3]; } bx;
16054     struct s *b = &bx; b->j = 5;
16055   }
16056   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16057     const int foo = 10;
16058     if (!foo) return 0;
16059   }
16060   return !cs[0] && !zero.x;
16061 #endif
16062
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068   ac_cv_c_const=yes
16069 else
16070   ac_cv_c_const=no
16071 fi
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16075 $as_echo "$ac_cv_c_const" >&6; }
16076 if test $ac_cv_c_const = no; then
16077
16078 $as_echo "#define const /**/" >>confdefs.h
16079
16080 fi
16081
16082 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16083 if test "x$ac_cv_type_size_t" = xyes; then :
16084
16085 else
16086
16087 cat >>confdefs.h <<_ACEOF
16088 #define size_t unsigned int
16089 _ACEOF
16090
16091 fi
16092
16093 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16094 if test "x$ac_cv_type_mode_t" = xyes; then :
16095
16096 else
16097
16098 cat >>confdefs.h <<_ACEOF
16099 #define mode_t int
16100 _ACEOF
16101
16102 fi
16103
16104 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16105 if test "x$ac_cv_type_intptr_t" = xyes; then :
16106
16107 fi
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16110 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16111 if ${ac_cv_struct_tm+:} false; then :
16112   $as_echo_n "(cached) " >&6
16113 else
16114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h.  */
16116 #include <sys/types.h>
16117 #include <time.h>
16118
16119 int
16120 main ()
16121 {
16122 struct tm tm;
16123                                      int *p = &tm.tm_sec;
16124                                      return !p;
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_compile "$LINENO"; then :
16130   ac_cv_struct_tm=time.h
16131 else
16132   ac_cv_struct_tm=sys/time.h
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16137 $as_echo "$ac_cv_struct_tm" >&6; }
16138 if test $ac_cv_struct_tm = sys/time.h; then
16139
16140 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16141
16142 fi
16143
16144
16145 for ac_func in gmtime_r isspace iswspace strdup snprintf unsetenv setenv
16146 do :
16147   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16150   cat >>confdefs.h <<_ACEOF
16151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16152 _ACEOF
16153
16154 fi
16155 done
16156
16157
16158
16159 # Check whether --enable-cxx was given.
16160 if test "${enable_cxx+set}" = set; then :
16161   enableval=$enable_cxx;
16162 else
16163   enable_cxx="no"
16164 fi
16165
16166  if test x$enable_cxx = "xyes"; then
16167   WITH_CXX_BINDINGS_TRUE=
16168   WITH_CXX_BINDINGS_FALSE='#'
16169 else
16170   WITH_CXX_BINDINGS_TRUE='#'
16171   WITH_CXX_BINDINGS_FALSE=
16172 fi
16173
16174
16175
16176 if test "$prefix" = NONE; then
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define PACKAGE_DATA_DIR "$ac_default_prefix/share/libical"
16180 _ACEOF
16181
16182         ssl_dir="$ac_default_prefix/keys"
16183 else
16184
16185 cat >>confdefs.h <<_ACEOF
16186 #define PACKAGE_DATA_DIR "$prefix/share/libical"
16187 _ACEOF
16188
16189 fi
16190
16191
16192 # Check whether --enable-java was given.
16193 if test "${enable_java+set}" = set; then :
16194   enableval=$enable_java;
16195 else
16196   enable_java="no"
16197 fi
16198
16199 if test "x$enable_java" = "xyes"; then
16200   # Extract the first word of "jar", so it can be a program name with args.
16201 set dummy jar; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if ${ac_cv_path_JAR+:} false; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   case $JAR in
16208   [\\/]* | ?:[\\/]*)
16209   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
16210   ;;
16211   *)
16212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16213 as_dummy="/usr/local/bin:$PATH"
16214 for as_dir in $as_dummy
16215 do
16216   IFS=$as_save_IFS
16217   test -z "$as_dir" && as_dir=.
16218     for ac_exec_ext in '' $ac_executable_extensions; do
16219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
16221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16222     break 2
16223   fi
16224 done
16225   done
16226 IFS=$as_save_IFS
16227
16228   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="/usr/local/bin/jar"
16229   ;;
16230 esac
16231 fi
16232 JAR=$ac_cv_path_JAR
16233 if test -n "$JAR"; then
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
16235 $as_echo "$JAR" >&6; }
16236 else
16237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239 fi
16240
16241
16242   # Extract the first word of "java", so it can be a program name with args.
16243 set dummy java; ac_word=$2
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16245 $as_echo_n "checking for $ac_word... " >&6; }
16246 if ${ac_cv_path_JAVA+:} false; then :
16247   $as_echo_n "(cached) " >&6
16248 else
16249   case $JAVA in
16250   [\\/]* | ?:[\\/]*)
16251   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16252   ;;
16253   *)
16254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16255 as_dummy="/usr/local/bin:$PATH"
16256 for as_dir in $as_dummy
16257 do
16258   IFS=$as_save_IFS
16259   test -z "$as_dir" && as_dir=.
16260     for ac_exec_ext in '' $ac_executable_extensions; do
16261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16262     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16264     break 2
16265   fi
16266 done
16267   done
16268 IFS=$as_save_IFS
16269
16270   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="/usr/local/bin/java"
16271   ;;
16272 esac
16273 fi
16274 JAVA=$ac_cv_path_JAVA
16275 if test -n "$JAVA"; then
16276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16277 $as_echo "$JAVA" >&6; }
16278 else
16279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16281 fi
16282
16283
16284   # Extract the first word of "javac", so it can be a program name with args.
16285 set dummy javac; ac_word=$2
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16287 $as_echo_n "checking for $ac_word... " >&6; }
16288 if ${ac_cv_path_JAVAC+:} false; then :
16289   $as_echo_n "(cached) " >&6
16290 else
16291   case $JAVAC in
16292   [\\/]* | ?:[\\/]*)
16293   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16294   ;;
16295   *)
16296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 as_dummy="/usr/local/bin:$PATH"
16298 for as_dir in $as_dummy
16299 do
16300   IFS=$as_save_IFS
16301   test -z "$as_dir" && as_dir=.
16302     for ac_exec_ext in '' $ac_executable_extensions; do
16303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16306     break 2
16307   fi
16308 done
16309   done
16310 IFS=$as_save_IFS
16311
16312   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="/usr/local/bin/javac"
16313   ;;
16314 esac
16315 fi
16316 JAVAC=$ac_cv_path_JAVAC
16317 if test -n "$JAVAC"; then
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16319 $as_echo "$JAVAC" >&6; }
16320 else
16321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323 fi
16324
16325
16326   # Extract the first word of "javah", so it can be a program name with args.
16327 set dummy javah; ac_word=$2
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16329 $as_echo_n "checking for $ac_word... " >&6; }
16330 if ${ac_cv_path_JAVAH+:} false; then :
16331   $as_echo_n "(cached) " >&6
16332 else
16333   case $JAVAH in
16334   [\\/]* | ?:[\\/]*)
16335   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
16336   ;;
16337   *)
16338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339 as_dummy="/usr/local/bin:$PATH"
16340 for as_dir in $as_dummy
16341 do
16342   IFS=$as_save_IFS
16343   test -z "$as_dir" && as_dir=.
16344     for ac_exec_ext in '' $ac_executable_extensions; do
16345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16346     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
16347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16348     break 2
16349   fi
16350 done
16351   done
16352 IFS=$as_save_IFS
16353
16354   test -z "$ac_cv_path_JAVAH" && ac_cv_path_JAVAH="/usr/local/bin/javah"
16355   ;;
16356 esac
16357 fi
16358 JAVAH=$ac_cv_path_JAVAH
16359 if test -n "$JAVAH"; then
16360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
16361 $as_echo "$JAVAH" >&6; }
16362 else
16363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16365 fi
16366
16367
16368
16369
16370
16371
16372
16373
16374   case "${host}" in
16375         *-*-solaris*)   JAVA_PLATFORM="solaris" ;;
16376         *-*-linux*)     JAVA_PLATFORM="linux" ;;
16377         *-*-freebsd*)   JAVA_PLATFORM="bsd" ;;
16378         *-*-aix*)       JAVA_PLATFORM="aix" ;;
16379         *-sequent-*)    JAVA_PLATFORM="ptx" ;;
16380         *-*-hpux*)      JAVA_PLATFORM="hpux" ;;
16381         *-*-irix*)      JAVA_PLATFORM="irix" ;;
16382         *-*-os390*)     JAVA_PLATFORM="os390" ;;
16383         *-*-os400*)     JAVA_PLATFORM="os400" ;;
16384         *-apple-darwin*|*-apple-rhapsody*)      JAVA_PLATFORM="darwin" ;;
16385         *)              JAVA_PLATFORM="unknown" ;;
16386   esac
16387
16388
16389 fi
16390 enable_java=no
16391  if test x$enable_java = "xyes"; then
16392   WITH_JAVA_TRUE=
16393   WITH_JAVA_FALSE='#'
16394 else
16395   WITH_JAVA_TRUE='#'
16396   WITH_JAVA_FALSE=
16397 fi
16398
16399
16400 python_val=false
16401 # Check whether --enable-python was given.
16402 if test "${enable_python+set}" = set; then :
16403   enableval=$enable_python;
16404 else
16405   enable_python="no"
16406 fi
16407
16408
16409 if test "x$enable_python" = "xyes"; then
16410
16411
16412
16413
16414
16415
16416         if test -n "$PYTHON"; then
16417       # If the user set $PYTHON, use it and don't search something else.
16418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
16419 $as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
16420       prog="import sys
16421 # split strings by '.' and convert to numeric.  Append some zeros
16422 # because we need at least 4 digits for the hex conversion.
16423 # map returns an iterator in Python 3.0 and a list in 2.x
16424 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
16425 minverhex = 0
16426 # xrange is not present in Python 3.0 and range returns an iterator
16427 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16428 sys.exit(sys.hexversion < minverhex)"
16429   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16430    ($PYTHON -c "$prog") >&5 2>&5
16431    ac_status=$?
16432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433    (exit $ac_status); }; then :
16434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16435 $as_echo "yes" >&6; }
16436 else
16437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16440 fi
16441       am_display_PYTHON=$PYTHON
16442     else
16443       # Otherwise, try each interpreter until we find one that satisfies
16444       # VERSION.
16445       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
16446 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
16447 if ${am_cv_pathless_PYTHON+:} false; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450
16451         for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16452           test "$am_cv_pathless_PYTHON" = none && break
16453           prog="import sys
16454 # split strings by '.' and convert to numeric.  Append some zeros
16455 # because we need at least 4 digits for the hex conversion.
16456 # map returns an iterator in Python 3.0 and a list in 2.x
16457 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
16458 minverhex = 0
16459 # xrange is not present in Python 3.0 and range returns an iterator
16460 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16461 sys.exit(sys.hexversion < minverhex)"
16462   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16463    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16464    ac_status=$?
16465    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466    (exit $ac_status); }; then :
16467   break
16468 fi
16469         done
16470 fi
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16472 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16473       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16474       if test "$am_cv_pathless_PYTHON" = none; then
16475         PYTHON=:
16476       else
16477         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16478 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16480 $as_echo_n "checking for $ac_word... " >&6; }
16481 if ${ac_cv_path_PYTHON+:} false; then :
16482   $as_echo_n "(cached) " >&6
16483 else
16484   case $PYTHON in
16485   [\\/]* | ?:[\\/]*)
16486   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16487   ;;
16488   *)
16489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16490 for as_dir in $PATH
16491 do
16492   IFS=$as_save_IFS
16493   test -z "$as_dir" && as_dir=.
16494     for ac_exec_ext in '' $ac_executable_extensions; do
16495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16496     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16498     break 2
16499   fi
16500 done
16501   done
16502 IFS=$as_save_IFS
16503
16504   ;;
16505 esac
16506 fi
16507 PYTHON=$ac_cv_path_PYTHON
16508 if test -n "$PYTHON"; then
16509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16510 $as_echo "$PYTHON" >&6; }
16511 else
16512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16514 fi
16515
16516
16517       fi
16518       am_display_PYTHON=$am_cv_pathless_PYTHON
16519     fi
16520
16521
16522   if test "$PYTHON" = :; then
16523       :
16524   else
16525
16526
16527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16528 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16529 if ${am_cv_python_version+:} false; then :
16530   $as_echo_n "(cached) " >&6
16531 else
16532   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16535 $as_echo "$am_cv_python_version" >&6; }
16536   PYTHON_VERSION=$am_cv_python_version
16537
16538
16539
16540   PYTHON_PREFIX='${prefix}'
16541
16542   PYTHON_EXEC_PREFIX='${exec_prefix}'
16543
16544
16545
16546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16547 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16548 if ${am_cv_python_platform+:} false; then :
16549   $as_echo_n "(cached) " >&6
16550 else
16551   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16552 fi
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16554 $as_echo "$am_cv_python_platform" >&6; }
16555   PYTHON_PLATFORM=$am_cv_python_platform
16556
16557
16558
16559
16560             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16561 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16562 if ${am_cv_python_pythondir+:} false; then :
16563   $as_echo_n "(cached) " >&6
16564 else
16565   if test "x$prefix" = xNONE
16566      then
16567        am_py_prefix=$ac_default_prefix
16568      else
16569        am_py_prefix=$prefix
16570      fi
16571      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
16572      case $am_cv_python_pythondir in
16573      $am_py_prefix*)
16574        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16575        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16576        ;;
16577      *)
16578        case $am_py_prefix in
16579          /usr|/System*) ;;
16580          *)
16581           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16582           ;;
16583        esac
16584        ;;
16585      esac
16586
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16589 $as_echo "$am_cv_python_pythondir" >&6; }
16590   pythondir=$am_cv_python_pythondir
16591
16592
16593
16594   pkgpythondir=\${pythondir}/$PACKAGE
16595
16596
16597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16598 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16599 if ${am_cv_python_pyexecdir+:} false; then :
16600   $as_echo_n "(cached) " >&6
16601 else
16602   if test "x$exec_prefix" = xNONE
16603      then
16604        am_py_exec_prefix=$am_py_prefix
16605      else
16606        am_py_exec_prefix=$exec_prefix
16607      fi
16608      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
16609      case $am_cv_python_pyexecdir in
16610      $am_py_exec_prefix*)
16611        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16612        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16613        ;;
16614      *)
16615        case $am_py_exec_prefix in
16616          /usr|/System*) ;;
16617          *)
16618            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16619            ;;
16620        esac
16621        ;;
16622      esac
16623
16624 fi
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16626 $as_echo "$am_cv_python_pyexecdir" >&6; }
16627   pyexecdir=$am_cv_python_pyexecdir
16628
16629
16630
16631   pkgpyexecdir=\${pyexecdir}/$PACKAGE
16632
16633
16634
16635   fi
16636
16637
16638    if test "$PYTHON" != :; then
16639   HAVE_PYTHON_TRUE=
16640   HAVE_PYTHON_FALSE='#'
16641 else
16642   HAVE_PYTHON_TRUE='#'
16643   HAVE_PYTHON_FALSE=
16644 fi
16645
16646   # Extract the first word of "swig", so it can be a program name with args.
16647 set dummy swig; ac_word=$2
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16649 $as_echo_n "checking for $ac_word... " >&6; }
16650 if ${ac_cv_prog_swig_val+:} false; then :
16651   $as_echo_n "(cached) " >&6
16652 else
16653   if test -n "$swig_val"; then
16654   ac_cv_prog_swig_val="$swig_val" # Let the user override the test.
16655 else
16656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16657 for as_dir in $PATH
16658 do
16659   IFS=$as_save_IFS
16660   test -z "$as_dir" && as_dir=.
16661     for ac_exec_ext in '' $ac_executable_extensions; do
16662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16663     ac_cv_prog_swig_val="true"
16664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16665     break 2
16666   fi
16667 done
16668   done
16669 IFS=$as_save_IFS
16670
16671   test -z "$ac_cv_prog_swig_val" && ac_cv_prog_swig_val="false"
16672 fi
16673 fi
16674 swig_val=$ac_cv_prog_swig_val
16675 if test -n "$swig_val"; then
16676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_val" >&5
16677 $as_echo "$swig_val" >&6; }
16678 else
16679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680 $as_echo "no" >&6; }
16681 fi
16682
16683
16684    if test "x$swig_val" = "xtrue"; then
16685   HAVE_SWIG_TRUE=
16686   HAVE_SWIG_FALSE='#'
16687 else
16688   HAVE_SWIG_TRUE='#'
16689   HAVE_SWIG_FALSE=
16690 fi
16691
16692
16693   PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
16694   as_ac_Header=`$as_echo "ac_cv_header_python$PYTHON_VERSION/Python.h" | $as_tr_sh`
16695 ac_fn_c_check_header_mongrel "$LINENO" "python$PYTHON_VERSION/Python.h" "$as_ac_Header" "$ac_includes_default"
16696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16697
16698 else
16699   as_fn_error $? "Can't find python header files" "$LINENO" 5
16700 fi
16701
16702
16703   if test -f "$PY_PREFIX/include/python$PYTHON_VERSION/Python.h"; then
16704
16705     PY_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
16706
16707
16708     # SWIG needs PIC in order to work.
16709     CFLAGS="$CFLAGS -fPIC"
16710   fi
16711
16712   ac_config_files="$ac_config_files src/python/Makefile"
16713
16714 else
16715    if false; then
16716   HAVE_PYTHON_TRUE=
16717   HAVE_PYTHON_FALSE='#'
16718 else
16719   HAVE_PYTHON_TRUE='#'
16720   HAVE_PYTHON_FALSE=
16721 fi
16722
16723    if false; then
16724   HAVE_SWIG_TRUE=
16725   HAVE_SWIG_FALSE='#'
16726 else
16727   HAVE_SWIG_TRUE='#'
16728   HAVE_SWIG_FALSE=
16729 fi
16730
16731 fi
16732
16733 if test "$use_builtin_timezone" = "yes"; then
16734   ac_config_files="$ac_config_files zoneinfo/Makefile"
16735
16736 fi
16737
16738 ac_config_files="$ac_config_files Makefile"
16739
16740 ac_config_files="$ac_config_files design-data/Makefile"
16741
16742 ac_config_files="$ac_config_files doc/Makefile"
16743
16744 ac_config_files="$ac_config_files examples/Makefile"
16745
16746 ac_config_files="$ac_config_files scripts/Makefile"
16747
16748 ac_config_files="$ac_config_files src/Makefile"
16749
16750 ac_config_files="$ac_config_files src/libical/Makefile"
16751
16752 ac_config_files="$ac_config_files src/libical/icalversion.h"
16753
16754 ac_config_files="$ac_config_files src/libical/icalerror.h"
16755
16756 ac_config_files="$ac_config_files src/libicalss/Makefile"
16757
16758 ac_config_files="$ac_config_files src/libicalvcal/Makefile"
16759
16760 ac_config_files="$ac_config_files src/test/Makefile"
16761
16762 ac_config_files="$ac_config_files test-data/Makefile"
16763
16764 ac_config_files="$ac_config_files libical.pc"
16765
16766
16767 cat >confcache <<\_ACEOF
16768 # This file is a shell script that caches the results of configure
16769 # tests run on this system so they can be shared between configure
16770 # scripts and configure runs, see configure's option --config-cache.
16771 # It is not useful on other systems.  If it contains results you don't
16772 # want to keep, you may remove or edit it.
16773 #
16774 # config.status only pays attention to the cache file if you give it
16775 # the --recheck option to rerun configure.
16776 #
16777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16779 # following values.
16780
16781 _ACEOF
16782
16783 # The following way of writing the cache mishandles newlines in values,
16784 # but we know of no workaround that is simple, portable, and efficient.
16785 # So, we kill variables containing newlines.
16786 # Ultrix sh set writes to stderr and can't be redirected directly,
16787 # and sets the high bit in the cache file unless we assign to the vars.
16788 (
16789   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16790     eval ac_val=\$$ac_var
16791     case $ac_val in #(
16792     *${as_nl}*)
16793       case $ac_var in #(
16794       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16796       esac
16797       case $ac_var in #(
16798       _ | IFS | as_nl) ;; #(
16799       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16800       *) { eval $ac_var=; unset $ac_var;} ;;
16801       esac ;;
16802     esac
16803   done
16804
16805   (set) 2>&1 |
16806     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16807     *${as_nl}ac_space=\ *)
16808       # `set' does not quote correctly, so add quotes: double-quote
16809       # substitution turns \\\\ into \\, and sed turns \\ into \.
16810       sed -n \
16811         "s/'/'\\\\''/g;
16812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16813       ;; #(
16814     *)
16815       # `set' quotes correctly as required by POSIX, so do not add quotes.
16816       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16817       ;;
16818     esac |
16819     sort
16820 ) |
16821   sed '
16822      /^ac_cv_env_/b end
16823      t clear
16824      :clear
16825      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16826      t end
16827      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16828      :end' >>confcache
16829 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16830   if test -w "$cache_file"; then
16831     if test "x$cache_file" != "x/dev/null"; then
16832       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16833 $as_echo "$as_me: updating cache $cache_file" >&6;}
16834       if test ! -f "$cache_file" || test -h "$cache_file"; then
16835         cat confcache >"$cache_file"
16836       else
16837         case $cache_file in #(
16838         */* | ?:*)
16839           mv -f confcache "$cache_file"$$ &&
16840           mv -f "$cache_file"$$ "$cache_file" ;; #(
16841         *)
16842           mv -f confcache "$cache_file" ;;
16843         esac
16844       fi
16845     fi
16846   else
16847     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16848 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16849   fi
16850 fi
16851 rm -f confcache
16852
16853 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16854 # Let make expand exec_prefix.
16855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16856
16857 DEFS=-DHAVE_CONFIG_H
16858
16859 ac_libobjs=
16860 ac_ltlibobjs=
16861 U=
16862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16863   # 1. Remove the extension, and $U if already installed.
16864   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16865   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16866   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16867   #    will be set to the directory where LIBOBJS objects are built.
16868   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16869   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16870 done
16871 LIBOBJS=$ac_libobjs
16872
16873 LTLIBOBJS=$ac_ltlibobjs
16874
16875
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16877 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16878    if test -n "$am_sleep_pid"; then
16879      # Hide warnings about reused PIDs.
16880      wait $am_sleep_pid 2>/dev/null
16881    fi
16882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16883 $as_echo "done" >&6; }
16884  if test -n "$EXEEXT"; then
16885   am__EXEEXT_TRUE=
16886   am__EXEEXT_FALSE='#'
16887 else
16888   am__EXEEXT_TRUE='#'
16889   am__EXEEXT_FALSE=
16890 fi
16891
16892 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16893   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16895 fi
16896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16897   as_fn_error $? "conditional \"AMDEP\" was never defined.
16898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16899 fi
16900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16901   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16903 fi
16904 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16905   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16907 fi
16908 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16909   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16911 fi
16912 if test -z "${WITH_BDB4_TRUE}" && test -z "${WITH_BDB4_FALSE}"; then
16913   as_fn_error $? "conditional \"WITH_BDB4\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 fi
16916 if test -z "${DEV_TRUE}" && test -z "${DEV_FALSE}"; then
16917   as_fn_error $? "conditional \"DEV\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 fi
16920 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16921   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 fi
16924 if test -z "${WITH_CXX_BINDINGS_TRUE}" && test -z "${WITH_CXX_BINDINGS_FALSE}"; then
16925   as_fn_error $? "conditional \"WITH_CXX_BINDINGS\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 fi
16928 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
16929   as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 fi
16932 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16933   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 fi
16936 if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
16937   as_fn_error $? "conditional \"HAVE_SWIG\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16939 fi
16940 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16941   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16943 fi
16944 if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
16945   as_fn_error $? "conditional \"HAVE_SWIG\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 fi
16948
16949 : "${CONFIG_STATUS=./config.status}"
16950 ac_write_fail=0
16951 ac_clean_files_save=$ac_clean_files
16952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16955 as_write_fail=0
16956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16957 #! $SHELL
16958 # Generated by $as_me.
16959 # Run this file to recreate the current configuration.
16960 # Compiler output produced by configure, useful for debugging
16961 # configure, is in config.log if it exists.
16962
16963 debug=false
16964 ac_cs_recheck=false
16965 ac_cs_silent=false
16966
16967 SHELL=\${CONFIG_SHELL-$SHELL}
16968 export SHELL
16969 _ASEOF
16970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16971 ## -------------------- ##
16972 ## M4sh Initialization. ##
16973 ## -------------------- ##
16974
16975 # Be more Bourne compatible
16976 DUALCASE=1; export DUALCASE # for MKS sh
16977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16978   emulate sh
16979   NULLCMD=:
16980   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16981   # is contrary to our usage.  Disable this feature.
16982   alias -g '${1+"$@"}'='"$@"'
16983   setopt NO_GLOB_SUBST
16984 else
16985   case `(set -o) 2>/dev/null` in #(
16986   *posix*) :
16987     set -o posix ;; #(
16988   *) :
16989      ;;
16990 esac
16991 fi
16992
16993
16994 as_nl='
16995 '
16996 export as_nl
16997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17001 # Prefer a ksh shell builtin over an external printf program on Solaris,
17002 # but without wasting forks for bash or zsh.
17003 if test -z "$BASH_VERSION$ZSH_VERSION" \
17004     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17005   as_echo='print -r --'
17006   as_echo_n='print -rn --'
17007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17008   as_echo='printf %s\n'
17009   as_echo_n='printf %s'
17010 else
17011   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17012     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17013     as_echo_n='/usr/ucb/echo -n'
17014   else
17015     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17016     as_echo_n_body='eval
17017       arg=$1;
17018       case $arg in #(
17019       *"$as_nl"*)
17020         expr "X$arg" : "X\\(.*\\)$as_nl";
17021         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17022       esac;
17023       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17024     '
17025     export as_echo_n_body
17026     as_echo_n='sh -c $as_echo_n_body as_echo'
17027   fi
17028   export as_echo_body
17029   as_echo='sh -c $as_echo_body as_echo'
17030 fi
17031
17032 # The user is always right.
17033 if test "${PATH_SEPARATOR+set}" != set; then
17034   PATH_SEPARATOR=:
17035   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17036     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17037       PATH_SEPARATOR=';'
17038   }
17039 fi
17040
17041
17042 # IFS
17043 # We need space, tab and new line, in precisely that order.  Quoting is
17044 # there to prevent editors from complaining about space-tab.
17045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17046 # splitting by setting IFS to empty value.)
17047 IFS=" ""        $as_nl"
17048
17049 # Find who we are.  Look in the path if we contain no directory separator.
17050 as_myself=
17051 case $0 in #((
17052   *[\\/]* ) as_myself=$0 ;;
17053   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054 for as_dir in $PATH
17055 do
17056   IFS=$as_save_IFS
17057   test -z "$as_dir" && as_dir=.
17058     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17059   done
17060 IFS=$as_save_IFS
17061
17062      ;;
17063 esac
17064 # We did not find ourselves, most probably we were run as `sh COMMAND'
17065 # in which case we are not to be found in the path.
17066 if test "x$as_myself" = x; then
17067   as_myself=$0
17068 fi
17069 if test ! -f "$as_myself"; then
17070   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17071   exit 1
17072 fi
17073
17074 # Unset variables that we do not need and which cause bugs (e.g. in
17075 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17076 # suppresses any "Segmentation fault" message there.  '((' could
17077 # trigger a bug in pdksh 5.2.14.
17078 for as_var in BASH_ENV ENV MAIL MAILPATH
17079 do eval test x\${$as_var+set} = xset \
17080   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17081 done
17082 PS1='$ '
17083 PS2='> '
17084 PS4='+ '
17085
17086 # NLS nuisances.
17087 LC_ALL=C
17088 export LC_ALL
17089 LANGUAGE=C
17090 export LANGUAGE
17091
17092 # CDPATH.
17093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17094
17095
17096 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17097 # ----------------------------------------
17098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17100 # script with STATUS, using 1 if that was 0.
17101 as_fn_error ()
17102 {
17103   as_status=$1; test $as_status -eq 0 && as_status=1
17104   if test "$4"; then
17105     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17106     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17107   fi
17108   $as_echo "$as_me: error: $2" >&2
17109   as_fn_exit $as_status
17110 } # as_fn_error
17111
17112
17113 # as_fn_set_status STATUS
17114 # -----------------------
17115 # Set $? to STATUS, without forking.
17116 as_fn_set_status ()
17117 {
17118   return $1
17119 } # as_fn_set_status
17120
17121 # as_fn_exit STATUS
17122 # -----------------
17123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17124 as_fn_exit ()
17125 {
17126   set +e
17127   as_fn_set_status $1
17128   exit $1
17129 } # as_fn_exit
17130
17131 # as_fn_unset VAR
17132 # ---------------
17133 # Portably unset VAR.
17134 as_fn_unset ()
17135 {
17136   { eval $1=; unset $1;}
17137 }
17138 as_unset=as_fn_unset
17139 # as_fn_append VAR VALUE
17140 # ----------------------
17141 # Append the text in VALUE to the end of the definition contained in VAR. Take
17142 # advantage of any shell optimizations that allow amortized linear growth over
17143 # repeated appends, instead of the typical quadratic growth present in naive
17144 # implementations.
17145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17146   eval 'as_fn_append ()
17147   {
17148     eval $1+=\$2
17149   }'
17150 else
17151   as_fn_append ()
17152   {
17153     eval $1=\$$1\$2
17154   }
17155 fi # as_fn_append
17156
17157 # as_fn_arith ARG...
17158 # ------------------
17159 # Perform arithmetic evaluation on the ARGs, and store the result in the
17160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17161 # must be portable across $(()) and expr.
17162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17163   eval 'as_fn_arith ()
17164   {
17165     as_val=$(( $* ))
17166   }'
17167 else
17168   as_fn_arith ()
17169   {
17170     as_val=`expr "$@" || test $? -eq 1`
17171   }
17172 fi # as_fn_arith
17173
17174
17175 if expr a : '\(a\)' >/dev/null 2>&1 &&
17176    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17177   as_expr=expr
17178 else
17179   as_expr=false
17180 fi
17181
17182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17183   as_basename=basename
17184 else
17185   as_basename=false
17186 fi
17187
17188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17189   as_dirname=dirname
17190 else
17191   as_dirname=false
17192 fi
17193
17194 as_me=`$as_basename -- "$0" ||
17195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17196          X"$0" : 'X\(//\)$' \| \
17197          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17198 $as_echo X/"$0" |
17199     sed '/^.*\/\([^/][^/]*\)\/*$/{
17200             s//\1/
17201             q
17202           }
17203           /^X\/\(\/\/\)$/{
17204             s//\1/
17205             q
17206           }
17207           /^X\/\(\/\).*/{
17208             s//\1/
17209             q
17210           }
17211           s/.*/./; q'`
17212
17213 # Avoid depending upon Character Ranges.
17214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17217 as_cr_digits='0123456789'
17218 as_cr_alnum=$as_cr_Letters$as_cr_digits
17219
17220 ECHO_C= ECHO_N= ECHO_T=
17221 case `echo -n x` in #(((((
17222 -n*)
17223   case `echo 'xy\c'` in
17224   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17225   xy)  ECHO_C='\c';;
17226   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17227        ECHO_T=' ';;
17228   esac;;
17229 *)
17230   ECHO_N='-n';;
17231 esac
17232
17233 rm -f conf$$ conf$$.exe conf$$.file
17234 if test -d conf$$.dir; then
17235   rm -f conf$$.dir/conf$$.file
17236 else
17237   rm -f conf$$.dir
17238   mkdir conf$$.dir 2>/dev/null
17239 fi
17240 if (echo >conf$$.file) 2>/dev/null; then
17241   if ln -s conf$$.file conf$$ 2>/dev/null; then
17242     as_ln_s='ln -s'
17243     # ... but there are two gotchas:
17244     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17245     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17246     # In both cases, we have to default to `cp -pR'.
17247     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17248       as_ln_s='cp -pR'
17249   elif ln conf$$.file conf$$ 2>/dev/null; then
17250     as_ln_s=ln
17251   else
17252     as_ln_s='cp -pR'
17253   fi
17254 else
17255   as_ln_s='cp -pR'
17256 fi
17257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17258 rmdir conf$$.dir 2>/dev/null
17259
17260
17261 # as_fn_mkdir_p
17262 # -------------
17263 # Create "$as_dir" as a directory, including parents if necessary.
17264 as_fn_mkdir_p ()
17265 {
17266
17267   case $as_dir in #(
17268   -*) as_dir=./$as_dir;;
17269   esac
17270   test -d "$as_dir" || eval $as_mkdir_p || {
17271     as_dirs=
17272     while :; do
17273       case $as_dir in #(
17274       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17275       *) as_qdir=$as_dir;;
17276       esac
17277       as_dirs="'$as_qdir' $as_dirs"
17278       as_dir=`$as_dirname -- "$as_dir" ||
17279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280          X"$as_dir" : 'X\(//\)[^/]' \| \
17281          X"$as_dir" : 'X\(//\)$' \| \
17282          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17283 $as_echo X"$as_dir" |
17284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285             s//\1/
17286             q
17287           }
17288           /^X\(\/\/\)[^/].*/{
17289             s//\1/
17290             q
17291           }
17292           /^X\(\/\/\)$/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\).*/{
17297             s//\1/
17298             q
17299           }
17300           s/.*/./; q'`
17301       test -d "$as_dir" && break
17302     done
17303     test -z "$as_dirs" || eval "mkdir $as_dirs"
17304   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17305
17306
17307 } # as_fn_mkdir_p
17308 if mkdir -p . 2>/dev/null; then
17309   as_mkdir_p='mkdir -p "$as_dir"'
17310 else
17311   test -d ./-p && rmdir ./-p
17312   as_mkdir_p=false
17313 fi
17314
17315
17316 # as_fn_executable_p FILE
17317 # -----------------------
17318 # Test if FILE is an executable regular file.
17319 as_fn_executable_p ()
17320 {
17321   test -f "$1" && test -x "$1"
17322 } # as_fn_executable_p
17323 as_test_x='test -x'
17324 as_executable_p=as_fn_executable_p
17325
17326 # Sed expression to map a string onto a valid CPP name.
17327 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17328
17329 # Sed expression to map a string onto a valid variable name.
17330 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17331
17332
17333 exec 6>&1
17334 ## ----------------------------------- ##
17335 ## Main body of $CONFIG_STATUS script. ##
17336 ## ----------------------------------- ##
17337 _ASEOF
17338 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17339
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 # Save the log message, to keep $0 and so on meaningful, and to
17342 # report actual input values of CONFIG_FILES etc. instead of their
17343 # values after options handling.
17344 ac_log="
17345 This file was extended by libical $as_me 1.00, which was
17346 generated by GNU Autoconf 2.69.  Invocation command line was
17347
17348   CONFIG_FILES    = $CONFIG_FILES
17349   CONFIG_HEADERS  = $CONFIG_HEADERS
17350   CONFIG_LINKS    = $CONFIG_LINKS
17351   CONFIG_COMMANDS = $CONFIG_COMMANDS
17352   $ $0 $@
17353
17354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17355 "
17356
17357 _ACEOF
17358
17359 case $ac_config_files in *"
17360 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17361 esac
17362
17363 case $ac_config_headers in *"
17364 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17365 esac
17366
17367
17368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 # Files that config.status was made for.
17370 config_files="$ac_config_files"
17371 config_headers="$ac_config_headers"
17372 config_commands="$ac_config_commands"
17373
17374 _ACEOF
17375
17376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17377 ac_cs_usage="\
17378 \`$as_me' instantiates files and other configuration actions
17379 from templates according to the current configuration.  Unless the files
17380 and actions are specified as TAGs, all are instantiated by default.
17381
17382 Usage: $0 [OPTION]... [TAG]...
17383
17384   -h, --help       print this help, then exit
17385   -V, --version    print version number and configuration settings, then exit
17386       --config     print configuration, then exit
17387   -q, --quiet, --silent
17388                    do not print progress messages
17389   -d, --debug      don't remove temporary files
17390       --recheck    update $as_me by reconfiguring in the same conditions
17391       --file=FILE[:TEMPLATE]
17392                    instantiate the configuration file FILE
17393       --header=FILE[:TEMPLATE]
17394                    instantiate the configuration header FILE
17395
17396 Configuration files:
17397 $config_files
17398
17399 Configuration headers:
17400 $config_headers
17401
17402 Configuration commands:
17403 $config_commands
17404
17405 Report bugs to <http://freeassociation.sf.net/>."
17406
17407 _ACEOF
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17410 ac_cs_version="\\
17411 libical config.status 1.00
17412 configured by $0, generated by GNU Autoconf 2.69,
17413   with options \\"\$ac_cs_config\\"
17414
17415 Copyright (C) 2012 Free Software Foundation, Inc.
17416 This config.status script is free software; the Free Software Foundation
17417 gives unlimited permission to copy, distribute and modify it."
17418
17419 ac_pwd='$ac_pwd'
17420 srcdir='$srcdir'
17421 INSTALL='$INSTALL'
17422 MKDIR_P='$MKDIR_P'
17423 AWK='$AWK'
17424 test -n "\$AWK" || AWK=awk
17425 _ACEOF
17426
17427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17428 # The default lists apply if the user does not specify any file.
17429 ac_need_defaults=:
17430 while test $# != 0
17431 do
17432   case $1 in
17433   --*=?*)
17434     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17435     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17436     ac_shift=:
17437     ;;
17438   --*=)
17439     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17440     ac_optarg=
17441     ac_shift=:
17442     ;;
17443   *)
17444     ac_option=$1
17445     ac_optarg=$2
17446     ac_shift=shift
17447     ;;
17448   esac
17449
17450   case $ac_option in
17451   # Handling of the options.
17452   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17453     ac_cs_recheck=: ;;
17454   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17455     $as_echo "$ac_cs_version"; exit ;;
17456   --config | --confi | --conf | --con | --co | --c )
17457     $as_echo "$ac_cs_config"; exit ;;
17458   --debug | --debu | --deb | --de | --d | -d )
17459     debug=: ;;
17460   --file | --fil | --fi | --f )
17461     $ac_shift
17462     case $ac_optarg in
17463     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17464     '') as_fn_error $? "missing file argument" ;;
17465     esac
17466     as_fn_append CONFIG_FILES " '$ac_optarg'"
17467     ac_need_defaults=false;;
17468   --header | --heade | --head | --hea )
17469     $ac_shift
17470     case $ac_optarg in
17471     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17472     esac
17473     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17474     ac_need_defaults=false;;
17475   --he | --h)
17476     # Conflict between --help and --header
17477     as_fn_error $? "ambiguous option: \`$1'
17478 Try \`$0 --help' for more information.";;
17479   --help | --hel | -h )
17480     $as_echo "$ac_cs_usage"; exit ;;
17481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17482   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17483     ac_cs_silent=: ;;
17484
17485   # This is an error.
17486   -*) as_fn_error $? "unrecognized option: \`$1'
17487 Try \`$0 --help' for more information." ;;
17488
17489   *) as_fn_append ac_config_targets " $1"
17490      ac_need_defaults=false ;;
17491
17492   esac
17493   shift
17494 done
17495
17496 ac_configure_extra_args=
17497
17498 if $ac_cs_silent; then
17499   exec 6>/dev/null
17500   ac_configure_extra_args="$ac_configure_extra_args --silent"
17501 fi
17502
17503 _ACEOF
17504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 if \$ac_cs_recheck; then
17506   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17507   shift
17508   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17509   CONFIG_SHELL='$SHELL'
17510   export CONFIG_SHELL
17511   exec "\$@"
17512 fi
17513
17514 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 exec 5>>config.log
17517 {
17518   echo
17519   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17520 ## Running $as_me. ##
17521 _ASBOX
17522   $as_echo "$ac_log"
17523 } >&5
17524
17525 _ACEOF
17526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17527 #
17528 # INIT-COMMANDS
17529 #
17530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17531
17532
17533 # The HP-UX ksh and POSIX shell print the target directory to stdout
17534 # if CDPATH is set.
17535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17536
17537 sed_quote_subst='$sed_quote_subst'
17538 double_quote_subst='$double_quote_subst'
17539 delay_variable_subst='$delay_variable_subst'
17540 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17541 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17542 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17543 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17544 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17545 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17546 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17547 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17548 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17549 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17550 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17551 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17552 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17553 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17554 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17555 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17556 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17557 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17558 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17559 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17560 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17561 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17562 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17563 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17564 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17565 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17566 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17567 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17568 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17570 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17571 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17572 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17573 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17574 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17575 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17576 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17577 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17578 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17579 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17580 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17581 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17582 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17583 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17584 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17585 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17586 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17587 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17588 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17589 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17590 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17591 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17592 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17594 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17595 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17597 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17598 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17599 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17600 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17601 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17602 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17603 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17604 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17605 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17606 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17607 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17608 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17609 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17610 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17611 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17612 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17613 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17614 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17615 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17617 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17618 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17619 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17620 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17621 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17622 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17623 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17624 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17625 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17626 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17627 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17628 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17629 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17630 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17631 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17632 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17633 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17634 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17635 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17636 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17637 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17638 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17639 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17640 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17641 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17642 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17643 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17644 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17645 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17646 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17647 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17648 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17649 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17650 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17651 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17652 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17653 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17654 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17655 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17656 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17657 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17658 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17659 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17660 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17661 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17662 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17663 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17664 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17665 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17666 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17667 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17668 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17669 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17670 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17671 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17672 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17673 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17674 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17675 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17676 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17677 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17678 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17679 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17680 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17681 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17682 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17683 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17685 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17686 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17687 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17688 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17689 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17690 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17691 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17692 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17693 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17694 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17695 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17696 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17697 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17698 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17699 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17700 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17701 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17702 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17703 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17704 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17705 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17706 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17707 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17708 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17709 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17710 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17711 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17712 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17713 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17714 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17715 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17716 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17717 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17719 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17720 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17721 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17722 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17723 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17724
17725 LTCC='$LTCC'
17726 LTCFLAGS='$LTCFLAGS'
17727 compiler='$compiler_DEFAULT'
17728
17729 # A function that is used when there is no print builtin or printf.
17730 func_fallback_echo ()
17731 {
17732   eval 'cat <<_LTECHO_EOF
17733 \$1
17734 _LTECHO_EOF'
17735 }
17736
17737 # Quote evaled strings.
17738 for var in SHELL \
17739 ECHO \
17740 PATH_SEPARATOR \
17741 SED \
17742 GREP \
17743 EGREP \
17744 FGREP \
17745 LD \
17746 NM \
17747 LN_S \
17748 lt_SP2NL \
17749 lt_NL2SP \
17750 reload_flag \
17751 OBJDUMP \
17752 deplibs_check_method \
17753 file_magic_cmd \
17754 file_magic_glob \
17755 want_nocaseglob \
17756 DLLTOOL \
17757 sharedlib_from_linklib_cmd \
17758 AR \
17759 AR_FLAGS \
17760 archiver_list_spec \
17761 STRIP \
17762 RANLIB \
17763 CC \
17764 CFLAGS \
17765 compiler \
17766 lt_cv_sys_global_symbol_pipe \
17767 lt_cv_sys_global_symbol_to_cdecl \
17768 lt_cv_sys_global_symbol_to_c_name_address \
17769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17770 nm_file_list_spec \
17771 lt_prog_compiler_no_builtin_flag \
17772 lt_prog_compiler_pic \
17773 lt_prog_compiler_wl \
17774 lt_prog_compiler_static \
17775 lt_cv_prog_compiler_c_o \
17776 need_locks \
17777 MANIFEST_TOOL \
17778 DSYMUTIL \
17779 NMEDIT \
17780 LIPO \
17781 OTOOL \
17782 OTOOL64 \
17783 shrext_cmds \
17784 export_dynamic_flag_spec \
17785 whole_archive_flag_spec \
17786 compiler_needs_object \
17787 with_gnu_ld \
17788 allow_undefined_flag \
17789 no_undefined_flag \
17790 hardcode_libdir_flag_spec \
17791 hardcode_libdir_separator \
17792 exclude_expsyms \
17793 include_expsyms \
17794 file_list_spec \
17795 variables_saved_for_relink \
17796 libname_spec \
17797 library_names_spec \
17798 soname_spec \
17799 install_override_mode \
17800 finish_eval \
17801 old_striplib \
17802 striplib \
17803 compiler_lib_search_dirs \
17804 predep_objects \
17805 postdep_objects \
17806 predeps \
17807 postdeps \
17808 compiler_lib_search_path \
17809 LD_CXX \
17810 reload_flag_CXX \
17811 compiler_CXX \
17812 lt_prog_compiler_no_builtin_flag_CXX \
17813 lt_prog_compiler_pic_CXX \
17814 lt_prog_compiler_wl_CXX \
17815 lt_prog_compiler_static_CXX \
17816 lt_cv_prog_compiler_c_o_CXX \
17817 export_dynamic_flag_spec_CXX \
17818 whole_archive_flag_spec_CXX \
17819 compiler_needs_object_CXX \
17820 with_gnu_ld_CXX \
17821 allow_undefined_flag_CXX \
17822 no_undefined_flag_CXX \
17823 hardcode_libdir_flag_spec_CXX \
17824 hardcode_libdir_separator_CXX \
17825 exclude_expsyms_CXX \
17826 include_expsyms_CXX \
17827 file_list_spec_CXX \
17828 compiler_lib_search_dirs_CXX \
17829 predep_objects_CXX \
17830 postdep_objects_CXX \
17831 predeps_CXX \
17832 postdeps_CXX \
17833 compiler_lib_search_path_CXX; do
17834     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835     *[\\\\\\\`\\"\\\$]*)
17836       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17837       ;;
17838     *)
17839       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17840       ;;
17841     esac
17842 done
17843
17844 # Double-quote double-evaled strings.
17845 for var in reload_cmds \
17846 old_postinstall_cmds \
17847 old_postuninstall_cmds \
17848 old_archive_cmds \
17849 extract_expsyms_cmds \
17850 old_archive_from_new_cmds \
17851 old_archive_from_expsyms_cmds \
17852 archive_cmds \
17853 archive_expsym_cmds \
17854 module_cmds \
17855 module_expsym_cmds \
17856 export_symbols_cmds \
17857 prelink_cmds \
17858 postlink_cmds \
17859 postinstall_cmds \
17860 postuninstall_cmds \
17861 finish_cmds \
17862 sys_lib_search_path_spec \
17863 sys_lib_dlsearch_path_spec \
17864 reload_cmds_CXX \
17865 old_archive_cmds_CXX \
17866 old_archive_from_new_cmds_CXX \
17867 old_archive_from_expsyms_cmds_CXX \
17868 archive_cmds_CXX \
17869 archive_expsym_cmds_CXX \
17870 module_cmds_CXX \
17871 module_expsym_cmds_CXX \
17872 export_symbols_cmds_CXX \
17873 prelink_cmds_CXX \
17874 postlink_cmds_CXX; do
17875     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17876     *[\\\\\\\`\\"\\\$]*)
17877       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17878       ;;
17879     *)
17880       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17881       ;;
17882     esac
17883 done
17884
17885 ac_aux_dir='$ac_aux_dir'
17886 xsi_shell='$xsi_shell'
17887 lt_shell_append='$lt_shell_append'
17888
17889 # See if we are running on zsh, and set the options which allow our
17890 # commands through without removal of \ escapes INIT.
17891 if test -n "\${ZSH_VERSION+set}" ; then
17892    setopt NO_GLOB_SUBST
17893 fi
17894
17895
17896     PACKAGE='$PACKAGE'
17897     VERSION='$VERSION'
17898     TIMESTAMP='$TIMESTAMP'
17899     RM='$RM'
17900     ofile='$ofile'
17901
17902
17903
17904
17905
17906
17907 _ACEOF
17908
17909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17910
17911 # Handling of arguments.
17912 for ac_config_target in $ac_config_targets
17913 do
17914   case $ac_config_target in
17915     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17916     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17917     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17918     "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;;
17919     "zoneinfo/Makefile") CONFIG_FILES="$CONFIG_FILES zoneinfo/Makefile" ;;
17920     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17921     "design-data/Makefile") CONFIG_FILES="$CONFIG_FILES design-data/Makefile" ;;
17922     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17923     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17924     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17925     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17926     "src/libical/Makefile") CONFIG_FILES="$CONFIG_FILES src/libical/Makefile" ;;
17927     "src/libical/icalversion.h") CONFIG_FILES="$CONFIG_FILES src/libical/icalversion.h" ;;
17928     "src/libical/icalerror.h") CONFIG_FILES="$CONFIG_FILES src/libical/icalerror.h" ;;
17929     "src/libicalss/Makefile") CONFIG_FILES="$CONFIG_FILES src/libicalss/Makefile" ;;
17930     "src/libicalvcal/Makefile") CONFIG_FILES="$CONFIG_FILES src/libicalvcal/Makefile" ;;
17931     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17932     "test-data/Makefile") CONFIG_FILES="$CONFIG_FILES test-data/Makefile" ;;
17933     "libical.pc") CONFIG_FILES="$CONFIG_FILES libical.pc" ;;
17934
17935   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17936   esac
17937 done
17938
17939
17940 # If the user did not use the arguments to specify the items to instantiate,
17941 # then the envvar interface is used.  Set only those that are not.
17942 # We use the long form for the default assignment because of an extremely
17943 # bizarre bug on SunOS 4.1.3.
17944 if $ac_need_defaults; then
17945   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17946   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17947   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17948 fi
17949
17950 # Have a temporary directory for convenience.  Make it in the build tree
17951 # simply because there is no reason against having it here, and in addition,
17952 # creating and moving files from /tmp can sometimes cause problems.
17953 # Hook for its removal unless debugging.
17954 # Note that there is a small window in which the directory will not be cleaned:
17955 # after its creation but before its name has been assigned to `$tmp'.
17956 $debug ||
17957 {
17958   tmp= ac_tmp=
17959   trap 'exit_status=$?
17960   : "${ac_tmp:=$tmp}"
17961   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17962 ' 0
17963   trap 'as_fn_exit 1' 1 2 13 15
17964 }
17965 # Create a (secure) tmp directory for tmp files.
17966
17967 {
17968   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17969   test -d "$tmp"
17970 }  ||
17971 {
17972   tmp=./conf$$-$RANDOM
17973   (umask 077 && mkdir "$tmp")
17974 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17975 ac_tmp=$tmp
17976
17977 # Set up the scripts for CONFIG_FILES section.
17978 # No need to generate them if there are no CONFIG_FILES.
17979 # This happens for instance with `./config.status config.h'.
17980 if test -n "$CONFIG_FILES"; then
17981
17982
17983 ac_cr=`echo X | tr X '\015'`
17984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17985 # But we know of no other shell where ac_cr would be empty at this
17986 # point, so we can use a bashism as a fallback.
17987 if test "x$ac_cr" = x; then
17988   eval ac_cr=\$\'\\r\'
17989 fi
17990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17992   ac_cs_awk_cr='\\r'
17993 else
17994   ac_cs_awk_cr=$ac_cr
17995 fi
17996
17997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17998 _ACEOF
17999
18000
18001 {
18002   echo "cat >conf$$subs.awk <<_ACEOF" &&
18003   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18004   echo "_ACEOF"
18005 } >conf$$subs.sh ||
18006   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18008 ac_delim='%!_!# '
18009 for ac_last_try in false false false false false :; do
18010   . ./conf$$subs.sh ||
18011     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18012
18013   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18014   if test $ac_delim_n = $ac_delim_num; then
18015     break
18016   elif $ac_last_try; then
18017     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18018   else
18019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18020   fi
18021 done
18022 rm -f conf$$subs.sh
18023
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18026 _ACEOF
18027 sed -n '
18028 h
18029 s/^/S["/; s/!.*/"]=/
18030 p
18031 g
18032 s/^[^!]*!//
18033 :repl
18034 t repl
18035 s/'"$ac_delim"'$//
18036 t delim
18037 :nl
18038 h
18039 s/\(.\{148\}\)..*/\1/
18040 t more1
18041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18042 p
18043 n
18044 b repl
18045 :more1
18046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18047 p
18048 g
18049 s/.\{148\}//
18050 t nl
18051 :delim
18052 h
18053 s/\(.\{148\}\)..*/\1/
18054 t more2
18055 s/["\\]/\\&/g; s/^/"/; s/$/"/
18056 p
18057 b
18058 :more2
18059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18060 p
18061 g
18062 s/.\{148\}//
18063 t delim
18064 ' <conf$$subs.awk | sed '
18065 /^[^""]/{
18066   N
18067   s/\n//
18068 }
18069 ' >>$CONFIG_STATUS || ac_write_fail=1
18070 rm -f conf$$subs.awk
18071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072 _ACAWK
18073 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18074   for (key in S) S_is_set[key] = 1
18075   FS = "\a"
18076
18077 }
18078 {
18079   line = $ 0
18080   nfields = split(line, field, "@")
18081   substed = 0
18082   len = length(field[1])
18083   for (i = 2; i < nfields; i++) {
18084     key = field[i]
18085     keylen = length(key)
18086     if (S_is_set[key]) {
18087       value = S[key]
18088       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18089       len += length(value) + length(field[++i])
18090       substed = 1
18091     } else
18092       len += 1 + keylen
18093   }
18094
18095   print line
18096 }
18097
18098 _ACAWK
18099 _ACEOF
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18102   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18103 else
18104   cat
18105 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18106   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18107 _ACEOF
18108
18109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18111 # trailing colons and then remove the whole line if VPATH becomes empty
18112 # (actually we leave an empty line to preserve line numbers).
18113 if test "x$srcdir" = x.; then
18114   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18115 h
18116 s///
18117 s/^/:/
18118 s/[      ]*$/:/
18119 s/:\$(srcdir):/:/g
18120 s/:\${srcdir}:/:/g
18121 s/:@srcdir@:/:/g
18122 s/^:*//
18123 s/:*$//
18124 x
18125 s/\(=[   ]*\).*/\1/
18126 G
18127 s/\n//
18128 s/^[^=]*=[       ]*$//
18129 }'
18130 fi
18131
18132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18133 fi # test -n "$CONFIG_FILES"
18134
18135 # Set up the scripts for CONFIG_HEADERS section.
18136 # No need to generate them if there are no CONFIG_HEADERS.
18137 # This happens for instance with `./config.status Makefile'.
18138 if test -n "$CONFIG_HEADERS"; then
18139 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18140 BEGIN {
18141 _ACEOF
18142
18143 # Transform confdefs.h into an awk script `defines.awk', embedded as
18144 # here-document in config.status, that substitutes the proper values into
18145 # config.h.in to produce config.h.
18146
18147 # Create a delimiter string that does not exist in confdefs.h, to ease
18148 # handling of long lines.
18149 ac_delim='%!_!# '
18150 for ac_last_try in false false :; do
18151   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18152   if test -z "$ac_tt"; then
18153     break
18154   elif $ac_last_try; then
18155     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18156   else
18157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18158   fi
18159 done
18160
18161 # For the awk script, D is an array of macro values keyed by name,
18162 # likewise P contains macro parameters if any.  Preserve backslash
18163 # newline sequences.
18164
18165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18166 sed -n '
18167 s/.\{148\}/&'"$ac_delim"'/g
18168 t rset
18169 :rset
18170 s/^[     ]*#[    ]*define[       ][      ]*/ /
18171 t def
18172 d
18173 :def
18174 s/\\$//
18175 t bsnl
18176 s/["\\]/\\&/g
18177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18178 D["\1"]=" \3"/p
18179 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18180 d
18181 :bsnl
18182 s/["\\]/\\&/g
18183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18184 D["\1"]=" \3\\\\\\n"\\/p
18185 t cont
18186 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18187 t cont
18188 d
18189 :cont
18190 n
18191 s/.\{148\}/&'"$ac_delim"'/g
18192 t clear
18193 :clear
18194 s/\\$//
18195 t bsnlc
18196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18197 d
18198 :bsnlc
18199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18200 b cont
18201 ' <confdefs.h | sed '
18202 s/'"$ac_delim"'/"\\\
18203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18204
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206   for (key in D) D_is_set[key] = 1
18207   FS = "\a"
18208 }
18209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18210   line = \$ 0
18211   split(line, arg, " ")
18212   if (arg[1] == "#") {
18213     defundef = arg[2]
18214     mac1 = arg[3]
18215   } else {
18216     defundef = substr(arg[1], 2)
18217     mac1 = arg[2]
18218   }
18219   split(mac1, mac2, "(") #)
18220   macro = mac2[1]
18221   prefix = substr(line, 1, index(line, defundef) - 1)
18222   if (D_is_set[macro]) {
18223     # Preserve the white space surrounding the "#".
18224     print prefix "define", macro P[macro] D[macro]
18225     next
18226   } else {
18227     # Replace #undef with comments.  This is necessary, for example,
18228     # in the case of _POSIX_SOURCE, which is predefined and required
18229     # on some systems where configure will not decide to define it.
18230     if (defundef == "undef") {
18231       print "/*", prefix defundef, macro, "*/"
18232       next
18233     }
18234   }
18235 }
18236 { print }
18237 _ACAWK
18238 _ACEOF
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18241 fi # test -n "$CONFIG_HEADERS"
18242
18243
18244 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18245 shift
18246 for ac_tag
18247 do
18248   case $ac_tag in
18249   :[FHLC]) ac_mode=$ac_tag; continue;;
18250   esac
18251   case $ac_mode$ac_tag in
18252   :[FHL]*:*);;
18253   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18254   :[FH]-) ac_tag=-:-;;
18255   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18256   esac
18257   ac_save_IFS=$IFS
18258   IFS=:
18259   set x $ac_tag
18260   IFS=$ac_save_IFS
18261   shift
18262   ac_file=$1
18263   shift
18264
18265   case $ac_mode in
18266   :L) ac_source=$1;;
18267   :[FH])
18268     ac_file_inputs=
18269     for ac_f
18270     do
18271       case $ac_f in
18272       -) ac_f="$ac_tmp/stdin";;
18273       *) # Look for the file first in the build tree, then in the source tree
18274          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18275          # because $ac_f cannot contain `:'.
18276          test -f "$ac_f" ||
18277            case $ac_f in
18278            [\\/$]*) false;;
18279            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18280            esac ||
18281            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18282       esac
18283       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18284       as_fn_append ac_file_inputs " '$ac_f'"
18285     done
18286
18287     # Let's still pretend it is `configure' which instantiates (i.e., don't
18288     # use $as_me), people would be surprised to read:
18289     #    /* config.h.  Generated by config.status.  */
18290     configure_input='Generated from '`
18291           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18292         `' by configure.'
18293     if test x"$ac_file" != x-; then
18294       configure_input="$ac_file.  $configure_input"
18295       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18296 $as_echo "$as_me: creating $ac_file" >&6;}
18297     fi
18298     # Neutralize special characters interpreted by sed in replacement strings.
18299     case $configure_input in #(
18300     *\&* | *\|* | *\\* )
18301        ac_sed_conf_input=`$as_echo "$configure_input" |
18302        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18303     *) ac_sed_conf_input=$configure_input;;
18304     esac
18305
18306     case $ac_tag in
18307     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18308       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18309     esac
18310     ;;
18311   esac
18312
18313   ac_dir=`$as_dirname -- "$ac_file" ||
18314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18315          X"$ac_file" : 'X\(//\)[^/]' \| \
18316          X"$ac_file" : 'X\(//\)$' \| \
18317          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18318 $as_echo X"$ac_file" |
18319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18320             s//\1/
18321             q
18322           }
18323           /^X\(\/\/\)[^/].*/{
18324             s//\1/
18325             q
18326           }
18327           /^X\(\/\/\)$/{
18328             s//\1/
18329             q
18330           }
18331           /^X\(\/\).*/{
18332             s//\1/
18333             q
18334           }
18335           s/.*/./; q'`
18336   as_dir="$ac_dir"; as_fn_mkdir_p
18337   ac_builddir=.
18338
18339 case "$ac_dir" in
18340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18341 *)
18342   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18343   # A ".." for each directory in $ac_dir_suffix.
18344   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18345   case $ac_top_builddir_sub in
18346   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18347   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18348   esac ;;
18349 esac
18350 ac_abs_top_builddir=$ac_pwd
18351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18352 # for backward compatibility:
18353 ac_top_builddir=$ac_top_build_prefix
18354
18355 case $srcdir in
18356   .)  # We are building in place.
18357     ac_srcdir=.
18358     ac_top_srcdir=$ac_top_builddir_sub
18359     ac_abs_top_srcdir=$ac_pwd ;;
18360   [\\/]* | ?:[\\/]* )  # Absolute name.
18361     ac_srcdir=$srcdir$ac_dir_suffix;
18362     ac_top_srcdir=$srcdir
18363     ac_abs_top_srcdir=$srcdir ;;
18364   *) # Relative name.
18365     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18366     ac_top_srcdir=$ac_top_build_prefix$srcdir
18367     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18368 esac
18369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18370
18371
18372   case $ac_mode in
18373   :F)
18374   #
18375   # CONFIG_FILE
18376   #
18377
18378   case $INSTALL in
18379   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18380   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18381   esac
18382   ac_MKDIR_P=$MKDIR_P
18383   case $MKDIR_P in
18384   [\\/$]* | ?:[\\/]* ) ;;
18385   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18386   esac
18387 _ACEOF
18388
18389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 # If the template does not know about datarootdir, expand it.
18391 # FIXME: This hack should be removed a few years after 2.60.
18392 ac_datarootdir_hack=; ac_datarootdir_seen=
18393 ac_sed_dataroot='
18394 /datarootdir/ {
18395   p
18396   q
18397 }
18398 /@datadir@/p
18399 /@docdir@/p
18400 /@infodir@/p
18401 /@localedir@/p
18402 /@mandir@/p'
18403 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18404 *datarootdir*) ac_datarootdir_seen=yes;;
18405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18407 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18408 _ACEOF
18409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18410   ac_datarootdir_hack='
18411   s&@datadir@&$datadir&g
18412   s&@docdir@&$docdir&g
18413   s&@infodir@&$infodir&g
18414   s&@localedir@&$localedir&g
18415   s&@mandir@&$mandir&g
18416   s&\\\${datarootdir}&$datarootdir&g' ;;
18417 esac
18418 _ACEOF
18419
18420 # Neutralize VPATH when `$srcdir' = `.'.
18421 # Shell code in configure.ac might set extrasub.
18422 # FIXME: do we really want to maintain this feature?
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 ac_sed_extra="$ac_vpsub
18425 $extrasub
18426 _ACEOF
18427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18428 :t
18429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18430 s|@configure_input@|$ac_sed_conf_input|;t t
18431 s&@top_builddir@&$ac_top_builddir_sub&;t t
18432 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18433 s&@srcdir@&$ac_srcdir&;t t
18434 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18435 s&@top_srcdir@&$ac_top_srcdir&;t t
18436 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18437 s&@builddir@&$ac_builddir&;t t
18438 s&@abs_builddir@&$ac_abs_builddir&;t t
18439 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18440 s&@INSTALL@&$ac_INSTALL&;t t
18441 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18442 $ac_datarootdir_hack
18443 "
18444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18445   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18446
18447 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18448   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18449   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18450       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18451   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18452 which seems to be undefined.  Please make sure it is defined" >&5
18453 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18454 which seems to be undefined.  Please make sure it is defined" >&2;}
18455
18456   rm -f "$ac_tmp/stdin"
18457   case $ac_file in
18458   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18459   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18460   esac \
18461   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18462  ;;
18463   :H)
18464   #
18465   # CONFIG_HEADER
18466   #
18467   if test x"$ac_file" != x-; then
18468     {
18469       $as_echo "/* $configure_input  */" \
18470       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18471     } >"$ac_tmp/config.h" \
18472       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18473     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18474       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18475 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18476     else
18477       rm -f "$ac_file"
18478       mv "$ac_tmp/config.h" "$ac_file" \
18479         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18480     fi
18481   else
18482     $as_echo "/* $configure_input  */" \
18483       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18484       || as_fn_error $? "could not create -" "$LINENO" 5
18485   fi
18486 # Compute "$ac_file"'s index in $config_headers.
18487 _am_arg="$ac_file"
18488 _am_stamp_count=1
18489 for _am_header in $config_headers :; do
18490   case $_am_header in
18491     $_am_arg | $_am_arg:* )
18492       break ;;
18493     * )
18494       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18495   esac
18496 done
18497 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18498 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499          X"$_am_arg" : 'X\(//\)[^/]' \| \
18500          X"$_am_arg" : 'X\(//\)$' \| \
18501          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$_am_arg" |
18503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504             s//\1/
18505             q
18506           }
18507           /^X\(\/\/\)[^/].*/{
18508             s//\1/
18509             q
18510           }
18511           /^X\(\/\/\)$/{
18512             s//\1/
18513             q
18514           }
18515           /^X\(\/\).*/{
18516             s//\1/
18517             q
18518           }
18519           s/.*/./; q'`/stamp-h$_am_stamp_count
18520  ;;
18521
18522   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18523 $as_echo "$as_me: executing $ac_file commands" >&6;}
18524  ;;
18525   esac
18526
18527
18528   case $ac_file$ac_mode in
18529     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18530   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18531   # are listed without --file.  Let's play safe and only enable the eval
18532   # if we detect the quoting.
18533   case $CONFIG_FILES in
18534   *\'*) eval set x "$CONFIG_FILES" ;;
18535   *)   set x $CONFIG_FILES ;;
18536   esac
18537   shift
18538   for mf
18539   do
18540     # Strip MF so we end up with the name of the file.
18541     mf=`echo "$mf" | sed -e 's/:.*$//'`
18542     # Check whether this is an Automake generated Makefile or not.
18543     # We used to match only the files named 'Makefile.in', but
18544     # some people rename them; so instead we look at the file content.
18545     # Grep'ing the first line is not enough: some people post-process
18546     # each Makefile.in and add a new line on top of each file to say so.
18547     # Grep'ing the whole file is not good either: AIX grep has a line
18548     # limit of 2048, but all sed's we know have understand at least 4000.
18549     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18550       dirpart=`$as_dirname -- "$mf" ||
18551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18552          X"$mf" : 'X\(//\)[^/]' \| \
18553          X"$mf" : 'X\(//\)$' \| \
18554          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18555 $as_echo X"$mf" |
18556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18557             s//\1/
18558             q
18559           }
18560           /^X\(\/\/\)[^/].*/{
18561             s//\1/
18562             q
18563           }
18564           /^X\(\/\/\)$/{
18565             s//\1/
18566             q
18567           }
18568           /^X\(\/\).*/{
18569             s//\1/
18570             q
18571           }
18572           s/.*/./; q'`
18573     else
18574       continue
18575     fi
18576     # Extract the definition of DEPDIR, am__include, and am__quote
18577     # from the Makefile without running 'make'.
18578     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18579     test -z "$DEPDIR" && continue
18580     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18581     test -z "am__include" && continue
18582     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18583     # Find all dependency output files, they are included files with
18584     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18585     # simplest approach to changing $(DEPDIR) to its actual value in the
18586     # expansion.
18587     for file in `sed -n "
18588       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18589          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18590       # Make sure the directory exists.
18591       test -f "$dirpart/$file" && continue
18592       fdir=`$as_dirname -- "$file" ||
18593 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594          X"$file" : 'X\(//\)[^/]' \| \
18595          X"$file" : 'X\(//\)$' \| \
18596          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18597 $as_echo X"$file" |
18598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18599             s//\1/
18600             q
18601           }
18602           /^X\(\/\/\)[^/].*/{
18603             s//\1/
18604             q
18605           }
18606           /^X\(\/\/\)$/{
18607             s//\1/
18608             q
18609           }
18610           /^X\(\/\).*/{
18611             s//\1/
18612             q
18613           }
18614           s/.*/./; q'`
18615       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18616       # echo "creating $dirpart/$file"
18617       echo '# dummy' > "$dirpart/$file"
18618     done
18619   done
18620 }
18621  ;;
18622     "libtool":C)
18623
18624     # See if we are running on zsh, and set the options which allow our
18625     # commands through without removal of \ escapes.
18626     if test -n "${ZSH_VERSION+set}" ; then
18627       setopt NO_GLOB_SUBST
18628     fi
18629
18630     cfgfile="${ofile}T"
18631     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18632     $RM "$cfgfile"
18633
18634     cat <<_LT_EOF >> "$cfgfile"
18635 #! $SHELL
18636
18637 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18638 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18640 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18641 #
18642 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18643 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18644 #                 Foundation, Inc.
18645 #   Written by Gordon Matzigkeit, 1996
18646 #
18647 #   This file is part of GNU Libtool.
18648 #
18649 # GNU Libtool is free software; you can redistribute it and/or
18650 # modify it under the terms of the GNU General Public License as
18651 # published by the Free Software Foundation; either version 2 of
18652 # the License, or (at your option) any later version.
18653 #
18654 # As a special exception to the GNU General Public License,
18655 # if you distribute this file as part of a program or library that
18656 # is built using GNU Libtool, you may include this file under the
18657 # same distribution terms that you use for the rest of that program.
18658 #
18659 # GNU Libtool is distributed in the hope that it will be useful,
18660 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18662 # GNU General Public License for more details.
18663 #
18664 # You should have received a copy of the GNU General Public License
18665 # along with GNU Libtool; see the file COPYING.  If not, a copy
18666 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18667 # obtained by writing to the Free Software Foundation, Inc.,
18668 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18669
18670
18671 # The names of the tagged configurations supported by this script.
18672 available_tags="CXX "
18673
18674 # ### BEGIN LIBTOOL CONFIG
18675
18676 # Which release of libtool.m4 was used?
18677 macro_version=$macro_version
18678 macro_revision=$macro_revision
18679
18680 # Whether or not to build shared libraries.
18681 build_libtool_libs=$enable_shared
18682
18683 # Whether or not to build static libraries.
18684 build_old_libs=$enable_static
18685
18686 # What type of objects to build.
18687 pic_mode=$pic_mode
18688
18689 # Whether or not to optimize for fast installation.
18690 fast_install=$enable_fast_install
18691
18692 # Shell to use when invoking shell scripts.
18693 SHELL=$lt_SHELL
18694
18695 # An echo program that protects backslashes.
18696 ECHO=$lt_ECHO
18697
18698 # The PATH separator for the build system.
18699 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18700
18701 # The host system.
18702 host_alias=$host_alias
18703 host=$host
18704 host_os=$host_os
18705
18706 # The build system.
18707 build_alias=$build_alias
18708 build=$build
18709 build_os=$build_os
18710
18711 # A sed program that does not truncate output.
18712 SED=$lt_SED
18713
18714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18715 Xsed="\$SED -e 1s/^X//"
18716
18717 # A grep program that handles long lines.
18718 GREP=$lt_GREP
18719
18720 # An ERE matcher.
18721 EGREP=$lt_EGREP
18722
18723 # A literal string matcher.
18724 FGREP=$lt_FGREP
18725
18726 # A BSD- or MS-compatible name lister.
18727 NM=$lt_NM
18728
18729 # Whether we need soft or hard links.
18730 LN_S=$lt_LN_S
18731
18732 # What is the maximum length of a command?
18733 max_cmd_len=$max_cmd_len
18734
18735 # Object file suffix (normally "o").
18736 objext=$ac_objext
18737
18738 # Executable file suffix (normally "").
18739 exeext=$exeext
18740
18741 # whether the shell understands "unset".
18742 lt_unset=$lt_unset
18743
18744 # turn spaces into newlines.
18745 SP2NL=$lt_lt_SP2NL
18746
18747 # turn newlines into spaces.
18748 NL2SP=$lt_lt_NL2SP
18749
18750 # convert \$build file names to \$host format.
18751 to_host_file_cmd=$lt_cv_to_host_file_cmd
18752
18753 # convert \$build files to toolchain format.
18754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18755
18756 # An object symbol dumper.
18757 OBJDUMP=$lt_OBJDUMP
18758
18759 # Method to check whether dependent libraries are shared objects.
18760 deplibs_check_method=$lt_deplibs_check_method
18761
18762 # Command to use when deplibs_check_method = "file_magic".
18763 file_magic_cmd=$lt_file_magic_cmd
18764
18765 # How to find potential files when deplibs_check_method = "file_magic".
18766 file_magic_glob=$lt_file_magic_glob
18767
18768 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18769 want_nocaseglob=$lt_want_nocaseglob
18770
18771 # DLL creation program.
18772 DLLTOOL=$lt_DLLTOOL
18773
18774 # Command to associate shared and link libraries.
18775 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18776
18777 # The archiver.
18778 AR=$lt_AR
18779
18780 # Flags to create an archive.
18781 AR_FLAGS=$lt_AR_FLAGS
18782
18783 # How to feed a file listing to the archiver.
18784 archiver_list_spec=$lt_archiver_list_spec
18785
18786 # A symbol stripping program.
18787 STRIP=$lt_STRIP
18788
18789 # Commands used to install an old-style archive.
18790 RANLIB=$lt_RANLIB
18791 old_postinstall_cmds=$lt_old_postinstall_cmds
18792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18793
18794 # Whether to use a lock for old archive extraction.
18795 lock_old_archive_extraction=$lock_old_archive_extraction
18796
18797 # A C compiler.
18798 LTCC=$lt_CC
18799
18800 # LTCC compiler flags.
18801 LTCFLAGS=$lt_CFLAGS
18802
18803 # Take the output of nm and produce a listing of raw symbols and C names.
18804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18805
18806 # Transform the output of nm in a proper C declaration.
18807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18808
18809 # Transform the output of nm in a C name address pair.
18810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18811
18812 # Transform the output of nm in a C name address pair when lib prefix is needed.
18813 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18814
18815 # Specify filename containing input files for \$NM.
18816 nm_file_list_spec=$lt_nm_file_list_spec
18817
18818 # The root where to search for dependent libraries,and in which our libraries should be installed.
18819 lt_sysroot=$lt_sysroot
18820
18821 # The name of the directory that contains temporary libtool files.
18822 objdir=$objdir
18823
18824 # Used to examine libraries when file_magic_cmd begins with "file".
18825 MAGIC_CMD=$MAGIC_CMD
18826
18827 # Must we lock files when doing compilation?
18828 need_locks=$lt_need_locks
18829
18830 # Manifest tool.
18831 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18832
18833 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18834 DSYMUTIL=$lt_DSYMUTIL
18835
18836 # Tool to change global to local symbols on Mac OS X.
18837 NMEDIT=$lt_NMEDIT
18838
18839 # Tool to manipulate fat objects and archives on Mac OS X.
18840 LIPO=$lt_LIPO
18841
18842 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18843 OTOOL=$lt_OTOOL
18844
18845 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18846 OTOOL64=$lt_OTOOL64
18847
18848 # Old archive suffix (normally "a").
18849 libext=$libext
18850
18851 # Shared library suffix (normally ".so").
18852 shrext_cmds=$lt_shrext_cmds
18853
18854 # The commands to extract the exported symbol list from a shared archive.
18855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18856
18857 # Variables whose values should be saved in libtool wrapper scripts and
18858 # restored at link time.
18859 variables_saved_for_relink=$lt_variables_saved_for_relink
18860
18861 # Do we need the "lib" prefix for modules?
18862 need_lib_prefix=$need_lib_prefix
18863
18864 # Do we need a version for libraries?
18865 need_version=$need_version
18866
18867 # Library versioning type.
18868 version_type=$version_type
18869
18870 # Shared library runtime path variable.
18871 runpath_var=$runpath_var
18872
18873 # Shared library path variable.
18874 shlibpath_var=$shlibpath_var
18875
18876 # Is shlibpath searched before the hard-coded library search path?
18877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18878
18879 # Format of library name prefix.
18880 libname_spec=$lt_libname_spec
18881
18882 # List of archive names.  First name is the real one, the rest are links.
18883 # The last name is the one that the linker finds with -lNAME
18884 library_names_spec=$lt_library_names_spec
18885
18886 # The coded name of the library, if different from the real name.
18887 soname_spec=$lt_soname_spec
18888
18889 # Permission mode override for installation of shared libraries.
18890 install_override_mode=$lt_install_override_mode
18891
18892 # Command to use after installation of a shared archive.
18893 postinstall_cmds=$lt_postinstall_cmds
18894
18895 # Command to use after uninstallation of a shared archive.
18896 postuninstall_cmds=$lt_postuninstall_cmds
18897
18898 # Commands used to finish a libtool library installation in a directory.
18899 finish_cmds=$lt_finish_cmds
18900
18901 # As "finish_cmds", except a single script fragment to be evaled but
18902 # not shown.
18903 finish_eval=$lt_finish_eval
18904
18905 # Whether we should hardcode library paths into libraries.
18906 hardcode_into_libs=$hardcode_into_libs
18907
18908 # Compile-time system search path for libraries.
18909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18910
18911 # Run-time system search path for libraries.
18912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18913
18914 # Whether dlopen is supported.
18915 dlopen_support=$enable_dlopen
18916
18917 # Whether dlopen of programs is supported.
18918 dlopen_self=$enable_dlopen_self
18919
18920 # Whether dlopen of statically linked programs is supported.
18921 dlopen_self_static=$enable_dlopen_self_static
18922
18923 # Commands to strip libraries.
18924 old_striplib=$lt_old_striplib
18925 striplib=$lt_striplib
18926
18927
18928 # The linker used to build libraries.
18929 LD=$lt_LD
18930
18931 # How to create reloadable object files.
18932 reload_flag=$lt_reload_flag
18933 reload_cmds=$lt_reload_cmds
18934
18935 # Commands used to build an old-style archive.
18936 old_archive_cmds=$lt_old_archive_cmds
18937
18938 # A language specific compiler.
18939 CC=$lt_compiler
18940
18941 # Is the compiler the GNU compiler?
18942 with_gcc=$GCC
18943
18944 # Compiler flag to turn off builtin functions.
18945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18946
18947 # Additional compiler flags for building library objects.
18948 pic_flag=$lt_lt_prog_compiler_pic
18949
18950 # How to pass a linker flag through the compiler.
18951 wl=$lt_lt_prog_compiler_wl
18952
18953 # Compiler flag to prevent dynamic linking.
18954 link_static_flag=$lt_lt_prog_compiler_static
18955
18956 # Does compiler simultaneously support -c and -o options?
18957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18958
18959 # Whether or not to add -lc for building shared libraries.
18960 build_libtool_need_lc=$archive_cmds_need_lc
18961
18962 # Whether or not to disallow shared libs when runtime libs are static.
18963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18964
18965 # Compiler flag to allow reflexive dlopens.
18966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18967
18968 # Compiler flag to generate shared objects directly from archives.
18969 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18970
18971 # Whether the compiler copes with passing no objects directly.
18972 compiler_needs_object=$lt_compiler_needs_object
18973
18974 # Create an old-style archive from a shared archive.
18975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18976
18977 # Create a temporary old-style archive to link instead of a shared archive.
18978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18979
18980 # Commands used to build a shared archive.
18981 archive_cmds=$lt_archive_cmds
18982 archive_expsym_cmds=$lt_archive_expsym_cmds
18983
18984 # Commands used to build a loadable module if different from building
18985 # a shared archive.
18986 module_cmds=$lt_module_cmds
18987 module_expsym_cmds=$lt_module_expsym_cmds
18988
18989 # Whether we are building with GNU ld or not.
18990 with_gnu_ld=$lt_with_gnu_ld
18991
18992 # Flag that allows shared libraries with undefined symbols to be built.
18993 allow_undefined_flag=$lt_allow_undefined_flag
18994
18995 # Flag that enforces no undefined symbols.
18996 no_undefined_flag=$lt_no_undefined_flag
18997
18998 # Flag to hardcode \$libdir into a binary during linking.
18999 # This must work even if \$libdir does not exist
19000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19001
19002 # Whether we need a single "-rpath" flag with a separated argument.
19003 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19004
19005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19006 # DIR into the resulting binary.
19007 hardcode_direct=$hardcode_direct
19008
19009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19010 # DIR into the resulting binary and the resulting library dependency is
19011 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19012 # library is relocated.
19013 hardcode_direct_absolute=$hardcode_direct_absolute
19014
19015 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19016 # into the resulting binary.
19017 hardcode_minus_L=$hardcode_minus_L
19018
19019 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19020 # into the resulting binary.
19021 hardcode_shlibpath_var=$hardcode_shlibpath_var
19022
19023 # Set to "yes" if building a shared library automatically hardcodes DIR
19024 # into the library and all subsequent libraries and executables linked
19025 # against it.
19026 hardcode_automatic=$hardcode_automatic
19027
19028 # Set to yes if linker adds runtime paths of dependent libraries
19029 # to runtime path list.
19030 inherit_rpath=$inherit_rpath
19031
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs
19034
19035 # Set to "yes" if exported symbols are required.
19036 always_export_symbols=$always_export_symbols
19037
19038 # The commands to list exported symbols.
19039 export_symbols_cmds=$lt_export_symbols_cmds
19040
19041 # Symbols that should not be listed in the preloaded symbols.
19042 exclude_expsyms=$lt_exclude_expsyms
19043
19044 # Symbols that must always be exported.
19045 include_expsyms=$lt_include_expsyms
19046
19047 # Commands necessary for linking programs (against libraries) with templates.
19048 prelink_cmds=$lt_prelink_cmds
19049
19050 # Commands necessary for finishing linking programs.
19051 postlink_cmds=$lt_postlink_cmds
19052
19053 # Specify filename containing input files.
19054 file_list_spec=$lt_file_list_spec
19055
19056 # How to hardcode a shared library path into an executable.
19057 hardcode_action=$hardcode_action
19058
19059 # The directories searched by this compiler when creating a shared library.
19060 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19061
19062 # Dependencies to place before and after the objects being linked to
19063 # create a shared library.
19064 predep_objects=$lt_predep_objects
19065 postdep_objects=$lt_postdep_objects
19066 predeps=$lt_predeps
19067 postdeps=$lt_postdeps
19068
19069 # The library search path used internally by the compiler when linking
19070 # a shared library.
19071 compiler_lib_search_path=$lt_compiler_lib_search_path
19072
19073 # ### END LIBTOOL CONFIG
19074
19075 _LT_EOF
19076
19077   case $host_os in
19078   aix3*)
19079     cat <<\_LT_EOF >> "$cfgfile"
19080 # AIX sometimes has problems with the GCC collect2 program.  For some
19081 # reason, if we set the COLLECT_NAMES environment variable, the problems
19082 # vanish in a puff of smoke.
19083 if test "X${COLLECT_NAMES+set}" != Xset; then
19084   COLLECT_NAMES=
19085   export COLLECT_NAMES
19086 fi
19087 _LT_EOF
19088     ;;
19089   esac
19090
19091
19092 ltmain="$ac_aux_dir/ltmain.sh"
19093
19094
19095   # We use sed instead of cat because bash on DJGPP gets confused if
19096   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19097   # text mode, it properly converts lines to CR/LF.  This bash problem
19098   # is reportedly fixed, but why not run on old versions too?
19099   sed '$q' "$ltmain" >> "$cfgfile" \
19100      || (rm -f "$cfgfile"; exit 1)
19101
19102   if test x"$xsi_shell" = xyes; then
19103   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19104 func_dirname ()\
19105 {\
19106 \    case ${1} in\
19107 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19108 \      *  ) func_dirname_result="${3}" ;;\
19109 \    esac\
19110 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19111   && mv -f "$cfgfile.tmp" "$cfgfile" \
19112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19113 test 0 -eq $? || _lt_function_replace_fail=:
19114
19115
19116   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19117 func_basename ()\
19118 {\
19119 \    func_basename_result="${1##*/}"\
19120 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19121   && mv -f "$cfgfile.tmp" "$cfgfile" \
19122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19123 test 0 -eq $? || _lt_function_replace_fail=:
19124
19125
19126   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19127 func_dirname_and_basename ()\
19128 {\
19129 \    case ${1} in\
19130 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19131 \      *  ) func_dirname_result="${3}" ;;\
19132 \    esac\
19133 \    func_basename_result="${1##*/}"\
19134 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19135   && mv -f "$cfgfile.tmp" "$cfgfile" \
19136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19137 test 0 -eq $? || _lt_function_replace_fail=:
19138
19139
19140   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19141 func_stripname ()\
19142 {\
19143 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19144 \    # positional parameters, so assign one to ordinary parameter first.\
19145 \    func_stripname_result=${3}\
19146 \    func_stripname_result=${func_stripname_result#"${1}"}\
19147 \    func_stripname_result=${func_stripname_result%"${2}"}\
19148 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19149   && mv -f "$cfgfile.tmp" "$cfgfile" \
19150     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19151 test 0 -eq $? || _lt_function_replace_fail=:
19152
19153
19154   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19155 func_split_long_opt ()\
19156 {\
19157 \    func_split_long_opt_name=${1%%=*}\
19158 \    func_split_long_opt_arg=${1#*=}\
19159 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19160   && mv -f "$cfgfile.tmp" "$cfgfile" \
19161     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19162 test 0 -eq $? || _lt_function_replace_fail=:
19163
19164
19165   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19166 func_split_short_opt ()\
19167 {\
19168 \    func_split_short_opt_arg=${1#??}\
19169 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19170 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19171   && mv -f "$cfgfile.tmp" "$cfgfile" \
19172     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19173 test 0 -eq $? || _lt_function_replace_fail=:
19174
19175
19176   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19177 func_lo2o ()\
19178 {\
19179 \    case ${1} in\
19180 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19181 \      *)    func_lo2o_result=${1} ;;\
19182 \    esac\
19183 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19184   && mv -f "$cfgfile.tmp" "$cfgfile" \
19185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19186 test 0 -eq $? || _lt_function_replace_fail=:
19187
19188
19189   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19190 func_xform ()\
19191 {\
19192     func_xform_result=${1%.*}.lo\
19193 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19194   && mv -f "$cfgfile.tmp" "$cfgfile" \
19195     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19196 test 0 -eq $? || _lt_function_replace_fail=:
19197
19198
19199   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19200 func_arith ()\
19201 {\
19202     func_arith_result=$(( $* ))\
19203 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19204   && mv -f "$cfgfile.tmp" "$cfgfile" \
19205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19206 test 0 -eq $? || _lt_function_replace_fail=:
19207
19208
19209   sed -e '/^func_len ()$/,/^} # func_len /c\
19210 func_len ()\
19211 {\
19212     func_len_result=${#1}\
19213 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19214   && mv -f "$cfgfile.tmp" "$cfgfile" \
19215     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19216 test 0 -eq $? || _lt_function_replace_fail=:
19217
19218 fi
19219
19220 if test x"$lt_shell_append" = xyes; then
19221   sed -e '/^func_append ()$/,/^} # func_append /c\
19222 func_append ()\
19223 {\
19224     eval "${1}+=\\${2}"\
19225 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19226   && mv -f "$cfgfile.tmp" "$cfgfile" \
19227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19228 test 0 -eq $? || _lt_function_replace_fail=:
19229
19230
19231   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19232 func_append_quoted ()\
19233 {\
19234 \    func_quote_for_eval "${2}"\
19235 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19236 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19237   && mv -f "$cfgfile.tmp" "$cfgfile" \
19238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19239 test 0 -eq $? || _lt_function_replace_fail=:
19240
19241
19242   # Save a `func_append' function call where possible by direct use of '+='
19243   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19244     && mv -f "$cfgfile.tmp" "$cfgfile" \
19245       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19246   test 0 -eq $? || _lt_function_replace_fail=:
19247 else
19248   # Save a `func_append' function call even when '+=' is not available
19249   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19250     && mv -f "$cfgfile.tmp" "$cfgfile" \
19251       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19252   test 0 -eq $? || _lt_function_replace_fail=:
19253 fi
19254
19255 if test x"$_lt_function_replace_fail" = x":"; then
19256   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19257 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19258 fi
19259
19260
19261    mv -f "$cfgfile" "$ofile" ||
19262     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19263   chmod +x "$ofile"
19264
19265
19266     cat <<_LT_EOF >> "$ofile"
19267
19268 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19269
19270 # The linker used to build libraries.
19271 LD=$lt_LD_CXX
19272
19273 # How to create reloadable object files.
19274 reload_flag=$lt_reload_flag_CXX
19275 reload_cmds=$lt_reload_cmds_CXX
19276
19277 # Commands used to build an old-style archive.
19278 old_archive_cmds=$lt_old_archive_cmds_CXX
19279
19280 # A language specific compiler.
19281 CC=$lt_compiler_CXX
19282
19283 # Is the compiler the GNU compiler?
19284 with_gcc=$GCC_CXX
19285
19286 # Compiler flag to turn off builtin functions.
19287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19288
19289 # Additional compiler flags for building library objects.
19290 pic_flag=$lt_lt_prog_compiler_pic_CXX
19291
19292 # How to pass a linker flag through the compiler.
19293 wl=$lt_lt_prog_compiler_wl_CXX
19294
19295 # Compiler flag to prevent dynamic linking.
19296 link_static_flag=$lt_lt_prog_compiler_static_CXX
19297
19298 # Does compiler simultaneously support -c and -o options?
19299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19300
19301 # Whether or not to add -lc for building shared libraries.
19302 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19303
19304 # Whether or not to disallow shared libs when runtime libs are static.
19305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19306
19307 # Compiler flag to allow reflexive dlopens.
19308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19309
19310 # Compiler flag to generate shared objects directly from archives.
19311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19312
19313 # Whether the compiler copes with passing no objects directly.
19314 compiler_needs_object=$lt_compiler_needs_object_CXX
19315
19316 # Create an old-style archive from a shared archive.
19317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19318
19319 # Create a temporary old-style archive to link instead of a shared archive.
19320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19321
19322 # Commands used to build a shared archive.
19323 archive_cmds=$lt_archive_cmds_CXX
19324 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19325
19326 # Commands used to build a loadable module if different from building
19327 # a shared archive.
19328 module_cmds=$lt_module_cmds_CXX
19329 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19330
19331 # Whether we are building with GNU ld or not.
19332 with_gnu_ld=$lt_with_gnu_ld_CXX
19333
19334 # Flag that allows shared libraries with undefined symbols to be built.
19335 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19336
19337 # Flag that enforces no undefined symbols.
19338 no_undefined_flag=$lt_no_undefined_flag_CXX
19339
19340 # Flag to hardcode \$libdir into a binary during linking.
19341 # This must work even if \$libdir does not exist
19342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19343
19344 # Whether we need a single "-rpath" flag with a separated argument.
19345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19346
19347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19348 # DIR into the resulting binary.
19349 hardcode_direct=$hardcode_direct_CXX
19350
19351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19352 # DIR into the resulting binary and the resulting library dependency is
19353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19354 # library is relocated.
19355 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19356
19357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19358 # into the resulting binary.
19359 hardcode_minus_L=$hardcode_minus_L_CXX
19360
19361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19362 # into the resulting binary.
19363 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19364
19365 # Set to "yes" if building a shared library automatically hardcodes DIR
19366 # into the library and all subsequent libraries and executables linked
19367 # against it.
19368 hardcode_automatic=$hardcode_automatic_CXX
19369
19370 # Set to yes if linker adds runtime paths of dependent libraries
19371 # to runtime path list.
19372 inherit_rpath=$inherit_rpath_CXX
19373
19374 # Whether libtool must link a program against all its dependency libraries.
19375 link_all_deplibs=$link_all_deplibs_CXX
19376
19377 # Set to "yes" if exported symbols are required.
19378 always_export_symbols=$always_export_symbols_CXX
19379
19380 # The commands to list exported symbols.
19381 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19382
19383 # Symbols that should not be listed in the preloaded symbols.
19384 exclude_expsyms=$lt_exclude_expsyms_CXX
19385
19386 # Symbols that must always be exported.
19387 include_expsyms=$lt_include_expsyms_CXX
19388
19389 # Commands necessary for linking programs (against libraries) with templates.
19390 prelink_cmds=$lt_prelink_cmds_CXX
19391
19392 # Commands necessary for finishing linking programs.
19393 postlink_cmds=$lt_postlink_cmds_CXX
19394
19395 # Specify filename containing input files.
19396 file_list_spec=$lt_file_list_spec_CXX
19397
19398 # How to hardcode a shared library path into an executable.
19399 hardcode_action=$hardcode_action_CXX
19400
19401 # The directories searched by this compiler when creating a shared library.
19402 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19403
19404 # Dependencies to place before and after the objects being linked to
19405 # create a shared library.
19406 predep_objects=$lt_predep_objects_CXX
19407 postdep_objects=$lt_postdep_objects_CXX
19408 predeps=$lt_predeps_CXX
19409 postdeps=$lt_postdeps_CXX
19410
19411 # The library search path used internally by the compiler when linking
19412 # a shared library.
19413 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19414
19415 # ### END LIBTOOL TAG CONFIG: CXX
19416 _LT_EOF
19417
19418  ;;
19419
19420   esac
19421 done # for ac_tag
19422
19423
19424 as_fn_exit 0
19425 _ACEOF
19426 ac_clean_files=$ac_clean_files_save
19427
19428 test $ac_write_fail = 0 ||
19429   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19430
19431
19432 # configure is writing to config.log, and then calls config.status.
19433 # config.status does its own redirection, appending to config.log.
19434 # Unfortunately, on DOS this fails, as config.log is still kept open
19435 # by configure, so config.status won't be able to write to it; its
19436 # output is simply discarded.  So we exec the FD to /dev/null,
19437 # effectively closing config.log, so it can be properly (re)opened and
19438 # appended to by config.status.  When coming back to configure, we
19439 # need to make the FD available again.
19440 if test "$no_create" != yes; then
19441   ac_cs_success=:
19442   ac_config_status_args=
19443   test "$silent" = yes &&
19444     ac_config_status_args="$ac_config_status_args --quiet"
19445   exec 5>/dev/null
19446   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19447   exec 5>>config.log
19448   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19449   # would make configure fail if this is the last instruction.
19450   $ac_cs_success || as_fn_exit 1
19451 fi
19452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19455 fi
19456