Revert "Imported Upstream version 1.2.7"
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 0.9.40.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
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://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='HarfBuzz'
593 PACKAGE_TARNAME='harfbuzz'
594 PACKAGE_VERSION='0.9.40'
595 PACKAGE_STRING='HarfBuzz 0.9.40'
596 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz'
597 PACKAGE_URL='http://harfbuzz.org/'
598
599 ac_unique_file="src/harfbuzz.pc.in"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 HAVE_CORETEXT_FALSE
641 HAVE_CORETEXT_TRUE
642 CORETEXT_LIBS
643 CORETEXT_CFLAGS
644 HAVE_UNISCRIBE_FALSE
645 HAVE_UNISCRIBE_TRUE
646 UNISCRIBE_LIBS
647 UNISCRIBE_CFLAGS
648 HAVE_FREETYPE_FALSE
649 HAVE_FREETYPE_TRUE
650 FREETYPE_LIBS
651 FREETYPE_CFLAGS
652 HAVE_GRAPHITE2_FALSE
653 HAVE_GRAPHITE2_TRUE
654 GRAPHITE2_LIBS
655 GRAPHITE2_CFLAGS
656 HAVE_ICU_FALSE
657 HAVE_ICU_TRUE
658 ICU_CONFIG
659 ICU_LIBS
660 ICU_CFLAGS
661 HAVE_CAIRO_FT_FALSE
662 HAVE_CAIRO_FT_TRUE
663 CAIRO_FT_LIBS
664 CAIRO_FT_CFLAGS
665 HAVE_CAIRO_FALSE
666 HAVE_CAIRO_TRUE
667 CAIRO_LIBS
668 CAIRO_CFLAGS
669 HAVE_UCDN_FALSE
670 HAVE_UCDN_TRUE
671 HAVE_INTROSPECTION_FALSE
672 HAVE_INTROSPECTION_TRUE
673 INTROSPECTION_MAKEFILE
674 INTROSPECTION_LIBS
675 INTROSPECTION_CFLAGS
676 INTROSPECTION_TYPELIBDIR
677 INTROSPECTION_GIRDIR
678 INTROSPECTION_GENERATE
679 INTROSPECTION_COMPILER
680 INTROSPECTION_SCANNER
681 HAVE_GOBJECT_FALSE
682 HAVE_GOBJECT_TRUE
683 GLIB_MKENUMS
684 GOBJECT_LIBS
685 GOBJECT_CFLAGS
686 HAVE_GLIB_FALSE
687 HAVE_GLIB_TRUE
688 GLIB_LIBS
689 GLIB_CFLAGS
690 HAVE_FALLBACK_FALSE
691 HAVE_FALLBACK_TRUE
692 HAVE_OT_FALSE
693 HAVE_OT_TRUE
694 HAVE_PTHREAD_FALSE
695 HAVE_PTHREAD_TRUE
696 PTHREAD_CFLAGS
697 PTHREAD_LIBS
698 PTHREAD_CC
699 ax_pthread_config
700 OS_WIN32_FALSE
701 OS_WIN32_TRUE
702 HAVE_GCC_FALSE
703 HAVE_GCC_TRUE
704 GTK_DOC_USE_REBASE_FALSE
705 GTK_DOC_USE_REBASE_TRUE
706 GTK_DOC_USE_LIBTOOL_FALSE
707 GTK_DOC_USE_LIBTOOL_TRUE
708 GTK_DOC_BUILD_PDF_FALSE
709 GTK_DOC_BUILD_PDF_TRUE
710 GTK_DOC_BUILD_HTML_FALSE
711 GTK_DOC_BUILD_HTML_TRUE
712 ENABLE_GTK_DOC_FALSE
713 ENABLE_GTK_DOC_TRUE
714 HAVE_GTK_DOC_FALSE
715 HAVE_GTK_DOC_TRUE
716 GTKDOC_DEPS_LIBS
717 GTKDOC_DEPS_CFLAGS
718 HTML_DIR
719 GTKDOC_MKPDF
720 GTKDOC_REBASE
721 GTKDOC_CHECK_PATH
722 GTKDOC_CHECK
723 HB_LIBTOOL_VERSION_INFO
724 HB_VERSION
725 HB_VERSION_MICRO
726 HB_VERSION_MINOR
727 HB_VERSION_MAJOR
728 GIT
729 RAGEL
730 PKG_CONFIG
731 CXXCPP
732 am__fastdepCXX_FALSE
733 am__fastdepCXX_TRUE
734 CXXDEPMODE
735 ac_ct_CXX
736 CXXFLAGS
737 CXX
738 CPP
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 RANLIB
746 DLLTOOL
747 OBJDUMP
748 LN_S
749 NM
750 ac_ct_DUMPBIN
751 DUMPBIN
752 LD
753 FGREP
754 EGREP
755 GREP
756 SED
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 LIBTOOL
766 am__fastdepCC_FALSE
767 am__fastdepCC_TRUE
768 CCDEPMODE
769 am__nodep
770 AMDEPBACKSLASH
771 AMDEP_FALSE
772 AMDEP_TRUE
773 am__quote
774 am__include
775 DEPDIR
776 OBJEXT
777 EXEEXT
778 ac_ct_CC
779 CPPFLAGS
780 LDFLAGS
781 CFLAGS
782 CC
783 ac_ct_AR
784 AR
785 AUTOMAKE_OLDER_THAN_1_13_FALSE
786 AUTOMAKE_OLDER_THAN_1_13_TRUE
787 AM_BACKSLASH
788 AM_DEFAULT_VERBOSITY
789 AM_DEFAULT_V
790 AM_V
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_silent_rules
856 enable_dependency_tracking
857 enable_static
858 enable_shared
859 with_pic
860 enable_fast_install
861 with_gnu_ld
862 with_sysroot
863 enable_libtool_lock
864 with_html_dir
865 enable_gtk_doc
866 enable_gtk_doc_html
867 enable_gtk_doc_pdf
868 with_glib
869 with_gobject
870 enable_introspection
871 with_cairo
872 with_icu
873 with_graphite2
874 with_freetype
875 with_uniscribe
876 with_coretext
877 '
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP
887 CXX
888 CXXFLAGS
889 CCC
890 CXXCPP
891 PKG_CONFIG
892 GTKDOC_DEPS_CFLAGS
893 GTKDOC_DEPS_LIBS
894 GLIB_CFLAGS
895 GLIB_LIBS
896 GOBJECT_CFLAGS
897 GOBJECT_LIBS
898 CAIRO_CFLAGS
899 CAIRO_LIBS
900 CAIRO_FT_CFLAGS
901 CAIRO_FT_LIBS
902 ICU_CFLAGS
903 ICU_LIBS
904 GRAPHITE2_CFLAGS
905 GRAPHITE2_LIBS
906 FREETYPE_CFLAGS
907 FREETYPE_LIBS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
957
958 ac_prev=
959 ac_dashdash=
960 for ac_option
961 do
962   # If the previous option needs an argument, assign it.
963   if test -n "$ac_prev"; then
964     eval $ac_prev=\$ac_option
965     ac_prev=
966     continue
967   fi
968
969   case $ac_option in
970   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971   *=)   ac_optarg= ;;
972   *)    ac_optarg=yes ;;
973   esac
974
975   # Accept the important Cygnus configure options, so we can diagnose typos.
976
977   case $ac_dashdash$ac_option in
978   --)
979     ac_dashdash=yes ;;
980
981   -bindir | --bindir | --bindi | --bind | --bin | --bi)
982     ac_prev=bindir ;;
983   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984     bindir=$ac_optarg ;;
985
986   -build | --build | --buil | --bui | --bu)
987     ac_prev=build_alias ;;
988   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989     build_alias=$ac_optarg ;;
990
991   -cache-file | --cache-file | --cache-fil | --cache-fi \
992   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993     ac_prev=cache_file ;;
994   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996     cache_file=$ac_optarg ;;
997
998   --config-cache | -C)
999     cache_file=config.cache ;;
1000
1001   -datadir | --datadir | --datadi | --datad)
1002     ac_prev=datadir ;;
1003   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004     datadir=$ac_optarg ;;
1005
1006   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007   | --dataroo | --dataro | --datar)
1008     ac_prev=datarootdir ;;
1009   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011     datarootdir=$ac_optarg ;;
1012
1013   -disable-* | --disable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error $? "invalid feature name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=no ;;
1028
1029   -docdir | --docdir | --docdi | --doc | --do)
1030     ac_prev=docdir ;;
1031   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032     docdir=$ac_optarg ;;
1033
1034   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035     ac_prev=dvidir ;;
1036   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037     dvidir=$ac_optarg ;;
1038
1039   -enable-* | --enable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error $? "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057   | --exec | --exe | --ex)
1058     ac_prev=exec_prefix ;;
1059   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061   | --exec=* | --exe=* | --ex=*)
1062     exec_prefix=$ac_optarg ;;
1063
1064   -gas | --gas | --ga | --g)
1065     # Obsolete; use --with-gas.
1066     with_gas=yes ;;
1067
1068   -help | --help | --hel | --he | -h)
1069     ac_init_help=long ;;
1070   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071     ac_init_help=recursive ;;
1072   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073     ac_init_help=short ;;
1074
1075   -host | --host | --hos | --ho)
1076     ac_prev=host_alias ;;
1077   -host=* | --host=* | --hos=* | --ho=*)
1078     host_alias=$ac_optarg ;;
1079
1080   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081     ac_prev=htmldir ;;
1082   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083   | --ht=*)
1084     htmldir=$ac_optarg ;;
1085
1086   -includedir | --includedir | --includedi | --included | --include \
1087   | --includ | --inclu | --incl | --inc)
1088     ac_prev=includedir ;;
1089   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090   | --includ=* | --inclu=* | --incl=* | --inc=*)
1091     includedir=$ac_optarg ;;
1092
1093   -infodir | --infodir | --infodi | --infod | --info | --inf)
1094     ac_prev=infodir ;;
1095   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096     infodir=$ac_optarg ;;
1097
1098   -libdir | --libdir | --libdi | --libd)
1099     ac_prev=libdir ;;
1100   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101     libdir=$ac_optarg ;;
1102
1103   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104   | --libexe | --libex | --libe)
1105     ac_prev=libexecdir ;;
1106   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107   | --libexe=* | --libex=* | --libe=*)
1108     libexecdir=$ac_optarg ;;
1109
1110   -localedir | --localedir | --localedi | --localed | --locale)
1111     ac_prev=localedir ;;
1112   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113     localedir=$ac_optarg ;;
1114
1115   -localstatedir | --localstatedir | --localstatedi | --localstated \
1116   | --localstate | --localstat | --localsta | --localst | --locals)
1117     ac_prev=localstatedir ;;
1118   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120     localstatedir=$ac_optarg ;;
1121
1122   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123     ac_prev=mandir ;;
1124   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125     mandir=$ac_optarg ;;
1126
1127   -nfp | --nfp | --nf)
1128     # Obsolete; use --without-fp.
1129     with_fp=no ;;
1130
1131   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132   | --no-cr | --no-c | -n)
1133     no_create=yes ;;
1134
1135   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137     no_recursion=yes ;;
1138
1139   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141   | --oldin | --oldi | --old | --ol | --o)
1142     ac_prev=oldincludedir ;;
1143   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146     oldincludedir=$ac_optarg ;;
1147
1148   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149     ac_prev=prefix ;;
1150   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151     prefix=$ac_optarg ;;
1152
1153   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154   | --program-pre | --program-pr | --program-p)
1155     ac_prev=program_prefix ;;
1156   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158     program_prefix=$ac_optarg ;;
1159
1160   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161   | --program-suf | --program-su | --program-s)
1162     ac_prev=program_suffix ;;
1163   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165     program_suffix=$ac_optarg ;;
1166
1167   -program-transform-name | --program-transform-name \
1168   | --program-transform-nam | --program-transform-na \
1169   | --program-transform-n | --program-transform- \
1170   | --program-transform | --program-transfor \
1171   | --program-transfo | --program-transf \
1172   | --program-trans | --program-tran \
1173   | --progr-tra | --program-tr | --program-t)
1174     ac_prev=program_transform_name ;;
1175   -program-transform-name=* | --program-transform-name=* \
1176   | --program-transform-nam=* | --program-transform-na=* \
1177   | --program-transform-n=* | --program-transform-=* \
1178   | --program-transform=* | --program-transfor=* \
1179   | --program-transfo=* | --program-transf=* \
1180   | --program-trans=* | --program-tran=* \
1181   | --progr-tra=* | --program-tr=* | --program-t=*)
1182     program_transform_name=$ac_optarg ;;
1183
1184   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185     ac_prev=pdfdir ;;
1186   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187     pdfdir=$ac_optarg ;;
1188
1189   -psdir | --psdir | --psdi | --psd | --ps)
1190     ac_prev=psdir ;;
1191   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192     psdir=$ac_optarg ;;
1193
1194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195   | -silent | --silent | --silen | --sile | --sil)
1196     silent=yes ;;
1197
1198   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199     ac_prev=sbindir ;;
1200   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201   | --sbi=* | --sb=*)
1202     sbindir=$ac_optarg ;;
1203
1204   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206   | --sharedst | --shareds | --shared | --share | --shar \
1207   | --sha | --sh)
1208     ac_prev=sharedstatedir ;;
1209   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212   | --sha=* | --sh=*)
1213     sharedstatedir=$ac_optarg ;;
1214
1215   -site | --site | --sit)
1216     ac_prev=site ;;
1217   -site=* | --site=* | --sit=*)
1218     site=$ac_optarg ;;
1219
1220   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221     ac_prev=srcdir ;;
1222   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223     srcdir=$ac_optarg ;;
1224
1225   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226   | --syscon | --sysco | --sysc | --sys | --sy)
1227     ac_prev=sysconfdir ;;
1228   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230     sysconfdir=$ac_optarg ;;
1231
1232   -target | --target | --targe | --targ | --tar | --ta | --t)
1233     ac_prev=target_alias ;;
1234   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235     target_alias=$ac_optarg ;;
1236
1237   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238     verbose=yes ;;
1239
1240   -version | --version | --versio | --versi | --vers | -V)
1241     ac_init_version=: ;;
1242
1243   -with-* | --with-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=\$ac_optarg ;;
1258
1259   -without-* | --without-*)
1260     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263       as_fn_error $? "invalid package name: $ac_useropt"
1264     ac_useropt_orig=$ac_useropt
1265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266     case $ac_user_opts in
1267       *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271          ac_unrecognized_sep=', ';;
1272     esac
1273     eval with_$ac_useropt=no ;;
1274
1275   --x)
1276     # Obsolete; use --with-x.
1277     with_x=yes ;;
1278
1279   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280   | --x-incl | --x-inc | --x-in | --x-i)
1281     ac_prev=x_includes ;;
1282   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284     x_includes=$ac_optarg ;;
1285
1286   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288     ac_prev=x_libraries ;;
1289   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291     x_libraries=$ac_optarg ;;
1292
1293   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1295     ;;
1296
1297   *=*)
1298     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299     # Reject names that are not valid shell variable names.
1300     case $ac_envvar in #(
1301       '' | [0-9]* | *[!_$as_cr_alnum]* )
1302       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303     esac
1304     eval $ac_envvar=\$ac_optarg
1305     export $ac_envvar ;;
1306
1307   *)
1308     # FIXME: should be removed in autoconf 3.0.
1309     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313     ;;
1314
1315   esac
1316 done
1317
1318 if test -n "$ac_prev"; then
1319   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320   as_fn_error $? "missing argument to $ac_option"
1321 fi
1322
1323 if test -n "$ac_unrecognized_opts"; then
1324   case $enable_option_checking in
1325     no) ;;
1326     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328   esac
1329 fi
1330
1331 # Check all directory arguments for consistency.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   # Remove trailing slashes.
1339   case $ac_val in
1340     */ )
1341       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342       eval $ac_var=\$ac_val;;
1343   esac
1344   # Be sure to have absolute directory names.
1345   case $ac_val in
1346     [\\/$]* | ?:[\\/]* )  continue;;
1347     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348   esac
1349   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 done
1351
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1358
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361   if test "x$build_alias" = x; then
1362     cross_compiling=maybe
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   as_fn_error $? "pwd does not report name of working directory"
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$as_myself" : 'X\(//\)[^/]' \| \
1389          X"$as_myself" : 'X\(//\)$' \| \
1390          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures HarfBuzz 0.9.40 to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking ...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR            user executables [EPREFIX/bin]
1483   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR        program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR            object code libraries [EPREFIX/lib]
1489   --includedir=DIR        C header files [PREFIX/include]
1490   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR           info documentation [DATAROOTDIR/info]
1494   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR            man documentation [DATAROOTDIR/man]
1496   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1497   --htmldir=DIR           html documentation [DOCDIR]
1498   --dvidir=DIR            dvi documentation [DOCDIR]
1499   --pdfdir=DIR            pdf documentation [DOCDIR]
1500   --psdir=DIR             ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 Program names:
1506   --program-prefix=PREFIX            prepend PREFIX to installed program names
1507   --program-suffix=SUFFIX            append SUFFIX to installed program names
1508   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517   case $ac_init_help in
1518      short | recursive ) echo "Configuration of HarfBuzz 0.9.40:";;
1519    esac
1520   cat <<\_ACEOF
1521
1522 Optional Features:
1523   --disable-option-checking  ignore unrecognized --enable/--with options
1524   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1525   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1526   --enable-silent-rules   less verbose build output (undo: "make V=1")
1527   --disable-silent-rules  verbose build output (undo: "make V=0")
1528   --enable-dependency-tracking
1529                           do not reject slow dependency extractors
1530   --disable-dependency-tracking
1531                           speeds up one-time build
1532   --enable-static[=PKGS]  build static libraries [default=no]
1533   --enable-shared[=PKGS]  build shared libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1538   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1539   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1540   --enable-introspection=[no/auto/yes]
1541                           Enable introspection for this build
1542
1543 Optional Packages:
1544   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1547                           both]
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1550                           compiler's sysroot if not specified).
1551   --with-html-dir=PATH    path to installed docs
1552   --with-glib=[yes/no/auto]
1553                           Use glib [default=auto]
1554   --with-gobject=[yes/no/auto]
1555                           Use gobject [default=auto]
1556   --with-cairo=[yes/no/auto]
1557                           Use cairo [default=auto]
1558   --with-icu=[yes/no/auto]
1559                           Use ICU [default=auto]
1560   --with-graphite2=[yes/no/auto]
1561                           Use the graphite2 library [default=no]
1562   --with-freetype=[yes/no/auto]
1563                           Use the FreeType library [default=auto]
1564   --with-uniscribe=[yes/no/auto]
1565                           Use the Uniscribe library [default=no]
1566   --with-coretext=[yes/no/auto]
1567                           Use CoreText [default=no]
1568
1569 Some influential environment variables:
1570   CC          C compiler command
1571   CFLAGS      C compiler flags
1572   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1573               nonstandard directory <lib dir>
1574   LIBS        libraries to pass to the linker, e.g. -l<library>
1575   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576               you have headers in a nonstandard directory <include dir>
1577   CPP         C preprocessor
1578   CXX         C++ compiler command
1579   CXXFLAGS    C++ compiler flags
1580   CXXCPP      C++ preprocessor
1581   PKG_CONFIG  path to pkg-config utility
1582   GTKDOC_DEPS_CFLAGS
1583               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1584   GTKDOC_DEPS_LIBS
1585               linker flags for GTKDOC_DEPS, overriding pkg-config
1586   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1587   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1588   GOBJECT_CFLAGS
1589               C compiler flags for GOBJECT, overriding pkg-config
1590   GOBJECT_LIBS
1591               linker flags for GOBJECT, overriding pkg-config
1592   CAIRO_CFLAGS
1593               C compiler flags for CAIRO, overriding pkg-config
1594   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1595   CAIRO_FT_CFLAGS
1596               C compiler flags for CAIRO_FT, overriding pkg-config
1597   CAIRO_FT_LIBS
1598               linker flags for CAIRO_FT, overriding pkg-config
1599   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1600   ICU_LIBS    linker flags for ICU, overriding pkg-config
1601   GRAPHITE2_CFLAGS
1602               C compiler flags for GRAPHITE2, overriding pkg-config
1603   GRAPHITE2_LIBS
1604               linker flags for GRAPHITE2, overriding pkg-config
1605   FREETYPE_CFLAGS
1606               C compiler flags for FREETYPE, overriding pkg-config
1607   FREETYPE_LIBS
1608               linker flags for FREETYPE, overriding pkg-config
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
1614 HarfBuzz home page: <http://harfbuzz.org/>.
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620   # If there are subdirs, report their specific --help.
1621   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622     test -d "$ac_dir" ||
1623       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624       continue
1625     ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631   # A ".." for each directory in $ac_dir_suffix.
1632   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633   case $ac_top_builddir_sub in
1634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636   esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644   .)  # We are building in place.
1645     ac_srcdir=.
1646     ac_top_srcdir=$ac_top_builddir_sub
1647     ac_abs_top_srcdir=$ac_pwd ;;
1648   [\\/]* | ?:[\\/]* )  # Absolute name.
1649     ac_srcdir=$srcdir$ac_dir_suffix;
1650     ac_top_srcdir=$srcdir
1651     ac_abs_top_srcdir=$srcdir ;;
1652   *) # Relative name.
1653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654     ac_top_srcdir=$ac_top_build_prefix$srcdir
1655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659     cd "$ac_dir" || { ac_status=$?; continue; }
1660     # Check for guested configure.
1661     if test -f "$ac_srcdir/configure.gnu"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664     elif test -f "$ac_srcdir/configure"; then
1665       echo &&
1666       $SHELL "$ac_srcdir/configure" --help=recursive
1667     else
1668       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669     fi || ac_status=$?
1670     cd "$ac_pwd" || { ac_status=$?; break; }
1671   done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676   cat <<\_ACEOF
1677 HarfBuzz configure 0.9.40
1678 generated by GNU Autoconf 2.69
1679
1680 Copyright (C) 2012 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1683 _ACEOF
1684   exit
1685 fi
1686
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   rm -f conftest.$ac_objext
1698   if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_compile") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && {
1714          test -z "$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        } && test -s conftest.$ac_objext; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext conftest$ac_exeext
1736   if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_link") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest$ac_exeext && {
1755          test "$cross_compiling" = yes ||
1756          test -x conftest$ac_exeext
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763         ac_retval=1
1764 fi
1765   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767   # interfere with the next link command; also delete a directory that is
1768   # left behind by Apple's compiler.  We do this before executing the actions.
1769   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_link
1774
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785   $as_echo_n "(cached) " >&6
1786 else
1787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h.  */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793   eval "$3=yes"
1794 else
1795   eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_header_compile
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820   ac_status=$?
1821   if test -s conftest.err; then
1822     grep -v '^ *+' conftest.err >conftest.er1
1823     cat conftest.er1 >&5
1824     mv -f conftest.er1 conftest.err
1825   fi
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; } > conftest.i && {
1828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829          test ! -s conftest.err
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836     ac_retval=1
1837 fi
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839   as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_cpp
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_link") 2>&5
1858   ac_status=$?
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861   { { case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_try") 2>&5
1868   ac_status=$?
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; }; }; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: program exited with status $ac_status" >&5
1874        $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877        ac_retval=$ac_status
1878 fi
1879   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881   as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894   $as_echo_n "(cached) " >&6
1895 else
1896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1900 #define $2 innocuous_$2
1901
1902 /* System header to define __stub macros and hopefully few prototypes,
1903     which can conflict with char $2 (); below.
1904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905     <limits.h> exists even on freestanding compilers.  */
1906
1907 #ifdef __STDC__
1908 # include <limits.h>
1909 #else
1910 # include <assert.h>
1911 #endif
1912
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916    Use char because int might match the return type of a GCC
1917    builtin and then its argument prototype would still apply.  */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 ();
1922 /* The GNU C library defines this for functions which it implements
1923     to always fail with ENOSYS.  Some functions are actually named
1924     something starting with __ and the normal name is an alias.  */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main ()
1931 {
1932 return $2 ();
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"; then :
1938   eval "$3=yes"
1939 else
1940   eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext \
1943     conftest$ac_exeext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_func
1951
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   rm -f conftest.$ac_objext
1959   if { { ac_try="$ac_compile"
1960 case "(($ac_try" in
1961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962   *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966   (eval "$ac_compile") 2>conftest.err
1967   ac_status=$?
1968   if test -s conftest.err; then
1969     grep -v '^ *+' conftest.err >conftest.er1
1970     cat conftest.er1 >&5
1971     mv -f conftest.er1 conftest.err
1972   fi
1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974   test $ac_status = 0; } && {
1975          test -z "$ac_cxx_werror_flag" ||
1976          test ! -s conftest.err
1977        } && test -s conftest.$ac_objext; then :
1978   ac_retval=0
1979 else
1980   $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983         ac_retval=1
1984 fi
1985   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986   as_fn_set_status $ac_retval
1987
1988 } # ac_fn_cxx_try_compile
1989
1990 # ac_fn_cxx_try_cpp LINENO
1991 # ------------------------
1992 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_cxx_try_cpp ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   if { { ac_try="$ac_cpp conftest.$ac_ext"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004   ac_status=$?
2005   if test -s conftest.err; then
2006     grep -v '^ *+' conftest.err >conftest.er1
2007     cat conftest.er1 >&5
2008     mv -f conftest.er1 conftest.err
2009   fi
2010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } > conftest.i && {
2012          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2013          test ! -s conftest.err
2014        }; then :
2015   ac_retval=0
2016 else
2017   $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020     ac_retval=1
2021 fi
2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023   as_fn_set_status $ac_retval
2024
2025 } # ac_fn_cxx_try_cpp
2026
2027 # ac_fn_cxx_try_link LINENO
2028 # -------------------------
2029 # Try to link conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_cxx_try_link ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   rm -f conftest.$ac_objext conftest$ac_exeext
2034   if { { ac_try="$ac_link"
2035 case "(($ac_try" in
2036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037   *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041   (eval "$ac_link") 2>conftest.err
2042   ac_status=$?
2043   if test -s conftest.err; then
2044     grep -v '^ *+' conftest.err >conftest.er1
2045     cat conftest.er1 >&5
2046     mv -f conftest.er1 conftest.err
2047   fi
2048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049   test $ac_status = 0; } && {
2050          test -z "$ac_cxx_werror_flag" ||
2051          test ! -s conftest.err
2052        } && test -s conftest$ac_exeext && {
2053          test "$cross_compiling" = yes ||
2054          test -x conftest$ac_exeext
2055        }; then :
2056   ac_retval=0
2057 else
2058   $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061         ac_retval=1
2062 fi
2063   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2064   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2065   # interfere with the next link command; also delete a directory that is
2066   # left behind by Apple's compiler.  We do this before executing the actions.
2067   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069   as_fn_set_status $ac_retval
2070
2071 } # ac_fn_cxx_try_link
2072
2073 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076 # the include files in INCLUDES and setting the cache variable VAR
2077 # accordingly.
2078 ac_fn_c_check_header_mongrel ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   if eval \${$3+:} false; then :
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085   $as_echo_n "(cached) " >&6
2086 fi
2087 eval ac_res=\$$3
2088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 else
2091   # Is the header compilable?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093 $as_echo_n "checking $2 usability... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100   ac_header_compiler=yes
2101 else
2102   ac_header_compiler=no
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106 $as_echo "$ac_header_compiler" >&6; }
2107
2108 # Is the header present?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110 $as_echo_n "checking $2 presence... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 #include <$2>
2114 _ACEOF
2115 if ac_fn_c_try_cpp "$LINENO"; then :
2116   ac_header_preproc=yes
2117 else
2118   ac_header_preproc=no
2119 fi
2120 rm -f conftest.err conftest.i conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122 $as_echo "$ac_header_preproc" >&6; }
2123
2124 # So?  What about this header?
2125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2126   yes:no: )
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131     ;;
2132   no:yes:* )
2133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2136 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2140 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143 ( $as_echo "## ------------------------------------------------------------------------- ##
2144 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz ##
2145 ## ------------------------------------------------------------------------- ##"
2146      ) | sed "s/^/$as_me: WARNING:     /" >&2
2147     ;;
2148 esac
2149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152   $as_echo_n "(cached) " >&6
2153 else
2154   eval "$3=\$ac_header_compiler"
2155 fi
2156 eval ac_res=\$$3
2157                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 fi
2160   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161
2162 } # ac_fn_c_check_header_mongrel
2163
2164 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165 # --------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 # computed
2169 ac_fn_c_compute_int ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   if test "$cross_compiling" = yes; then
2173     # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2181 test_array [0] = 0;
2182 return test_array [0];
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   ac_lo=0 ac_mid=0
2190   while :; do
2191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_hi=$ac_mid; break
2207 else
2208   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209                         if test $ac_lo -le $ac_mid; then
2210                           ac_lo= ac_hi=
2211                           break
2212                         fi
2213                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216   done
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) < 0)];
2225 test_array [0] = 0;
2226 return test_array [0];
2227
2228   ;
2229   return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233   ac_hi=-1 ac_mid=-1
2234   while :; do
2235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   ac_lo=$ac_mid; break
2251 else
2252   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253                         if test $ac_mid -le $ac_hi; then
2254                           ac_lo= ac_hi=
2255                           break
2256                         fi
2257                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260   done
2261 else
2262   ac_lo= ac_hi=
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int
2274 main ()
2275 {
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 test_array [0] = 0;
2278 return test_array [0];
2279
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   ac_hi=$ac_mid
2286 else
2287   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 case $ac_lo in #((
2292 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 '') ac_retval=1 ;;
2294 esac
2295   else
2296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 static long int longval () { return $2; }
2300 static unsigned long int ulongval () { return $2; }
2301 #include <stdio.h>
2302 #include <stdlib.h>
2303 int
2304 main ()
2305 {
2306
2307   FILE *f = fopen ("conftest.val", "w");
2308   if (! f)
2309     return 1;
2310   if (($2) < 0)
2311     {
2312       long int i = longval ();
2313       if (i != ($2))
2314         return 1;
2315       fprintf (f, "%ld", i);
2316     }
2317   else
2318     {
2319       unsigned long int i = ulongval ();
2320       if (i != ($2))
2321         return 1;
2322       fprintf (f, "%lu", i);
2323     }
2324   /* Do not output a trailing newline, as this causes \r\n confusion
2325      on some platforms.  */
2326   return ferror (f) || fclose (f) != 0;
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_run "$LINENO"; then :
2333   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 else
2335   ac_retval=1
2336 fi
2337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338   conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 rm -f conftest.val
2340
2341   fi
2342   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343   as_fn_set_status $ac_retval
2344
2345 } # ac_fn_c_compute_int
2346
2347 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2348 # -------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_c_check_type ()
2352 {
2353   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if eval \${$3+:} false; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   eval "$3=no"
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof ($2))
2367          return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 int
2377 main ()
2378 {
2379 if (sizeof (($2)))
2380             return 0;
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386
2387 else
2388   eval "$3=yes"
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 fi
2394 eval ac_res=\$$3
2395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398
2399 } # ac_fn_c_check_type
2400 cat >config.log <<_ACEOF
2401 This file contains any messages produced by compilers while
2402 running configure, to aid debugging if configure makes a mistake.
2403
2404 It was created by HarfBuzz $as_me 0.9.40, which was
2405 generated by GNU Autoconf 2.69.  Invocation command line was
2406
2407   $ $0 $@
2408
2409 _ACEOF
2410 exec 5>>config.log
2411 {
2412 cat <<_ASUNAME
2413 ## --------- ##
2414 ## Platform. ##
2415 ## --------- ##
2416
2417 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2418 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2419 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2420 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2421 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2422
2423 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2424 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2425
2426 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2427 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2428 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2429 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2430 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2431 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2432 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2433
2434 _ASUNAME
2435
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441     $as_echo "PATH: $as_dir"
2442   done
2443 IFS=$as_save_IFS
2444
2445 } >&5
2446
2447 cat >&5 <<_ACEOF
2448
2449
2450 ## ----------- ##
2451 ## Core tests. ##
2452 ## ----------- ##
2453
2454 _ACEOF
2455
2456
2457 # Keep a trace of the command line.
2458 # Strip out --no-create and --no-recursion so they do not pile up.
2459 # Strip out --silent because we don't want to record it for future runs.
2460 # Also quote any args containing shell meta-characters.
2461 # Make two passes to allow for proper duplicate-argument suppression.
2462 ac_configure_args=
2463 ac_configure_args0=
2464 ac_configure_args1=
2465 ac_must_keep_next=false
2466 for ac_pass in 1 2
2467 do
2468   for ac_arg
2469   do
2470     case $ac_arg in
2471     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2472     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2473     | -silent | --silent | --silen | --sile | --sil)
2474       continue ;;
2475     *\'*)
2476       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2477     esac
2478     case $ac_pass in
2479     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2480     2)
2481       as_fn_append ac_configure_args1 " '$ac_arg'"
2482       if test $ac_must_keep_next = true; then
2483         ac_must_keep_next=false # Got value, back to normal.
2484       else
2485         case $ac_arg in
2486           *=* | --config-cache | -C | -disable-* | --disable-* \
2487           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2488           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2489           | -with-* | --with-* | -without-* | --without-* | --x)
2490             case "$ac_configure_args0 " in
2491               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2492             esac
2493             ;;
2494           -* ) ac_must_keep_next=true ;;
2495         esac
2496       fi
2497       as_fn_append ac_configure_args " '$ac_arg'"
2498       ;;
2499     esac
2500   done
2501 done
2502 { ac_configure_args0=; unset ac_configure_args0;}
2503 { ac_configure_args1=; unset ac_configure_args1;}
2504
2505 # When interrupted or exit'd, cleanup temporary files, and complete
2506 # config.log.  We remove comments because anyway the quotes in there
2507 # would cause problems or look ugly.
2508 # WARNING: Use '\'' to represent an apostrophe within the trap.
2509 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2510 trap 'exit_status=$?
2511   # Save into config.log some information that might help in debugging.
2512   {
2513     echo
2514
2515     $as_echo "## ---------------- ##
2516 ## Cache variables. ##
2517 ## ---------------- ##"
2518     echo
2519     # The following way of writing the cache mishandles newlines in values,
2520 (
2521   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2522     eval ac_val=\$$ac_var
2523     case $ac_val in #(
2524     *${as_nl}*)
2525       case $ac_var in #(
2526       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2527 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2528       esac
2529       case $ac_var in #(
2530       _ | IFS | as_nl) ;; #(
2531       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2532       *) { eval $ac_var=; unset $ac_var;} ;;
2533       esac ;;
2534     esac
2535   done
2536   (set) 2>&1 |
2537     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2538     *${as_nl}ac_space=\ *)
2539       sed -n \
2540         "s/'\''/'\''\\\\'\'''\''/g;
2541           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2542       ;; #(
2543     *)
2544       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2545       ;;
2546     esac |
2547     sort
2548 )
2549     echo
2550
2551     $as_echo "## ----------------- ##
2552 ## Output variables. ##
2553 ## ----------------- ##"
2554     echo
2555     for ac_var in $ac_subst_vars
2556     do
2557       eval ac_val=\$$ac_var
2558       case $ac_val in
2559       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560       esac
2561       $as_echo "$ac_var='\''$ac_val'\''"
2562     done | sort
2563     echo
2564
2565     if test -n "$ac_subst_files"; then
2566       $as_echo "## ------------------- ##
2567 ## File substitutions. ##
2568 ## ------------------- ##"
2569       echo
2570       for ac_var in $ac_subst_files
2571       do
2572         eval ac_val=\$$ac_var
2573         case $ac_val in
2574         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575         esac
2576         $as_echo "$ac_var='\''$ac_val'\''"
2577       done | sort
2578       echo
2579     fi
2580
2581     if test -s confdefs.h; then
2582       $as_echo "## ----------- ##
2583 ## confdefs.h. ##
2584 ## ----------- ##"
2585       echo
2586       cat confdefs.h
2587       echo
2588     fi
2589     test "$ac_signal" != 0 &&
2590       $as_echo "$as_me: caught signal $ac_signal"
2591     $as_echo "$as_me: exit $exit_status"
2592   } >&5
2593   rm -f core *.core core.conftest.* &&
2594     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2595     exit $exit_status
2596 ' 0
2597 for ac_signal in 1 2 13 15; do
2598   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2599 done
2600 ac_signal=0
2601
2602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2603 rm -f -r conftest* confdefs.h
2604
2605 $as_echo "/* confdefs.h */" > confdefs.h
2606
2607 # Predefined preprocessor variables.
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_NAME "$PACKAGE_NAME"
2611 _ACEOF
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2615 _ACEOF
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_STRING "$PACKAGE_STRING"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_URL "$PACKAGE_URL"
2631 _ACEOF
2632
2633
2634 # Let the site file select an alternate cache file if it wants to.
2635 # Prefer an explicitly selected file to automatically selected ones.
2636 ac_site_file1=NONE
2637 ac_site_file2=NONE
2638 if test -n "$CONFIG_SITE"; then
2639   # We do not want a PATH search for config.site.
2640   case $CONFIG_SITE in #((
2641     -*)  ac_site_file1=./$CONFIG_SITE;;
2642     */*) ac_site_file1=$CONFIG_SITE;;
2643     *)   ac_site_file1=./$CONFIG_SITE;;
2644   esac
2645 elif test "x$prefix" != xNONE; then
2646   ac_site_file1=$prefix/share/config.site
2647   ac_site_file2=$prefix/etc/config.site
2648 else
2649   ac_site_file1=$ac_default_prefix/share/config.site
2650   ac_site_file2=$ac_default_prefix/etc/config.site
2651 fi
2652 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2653 do
2654   test "x$ac_site_file" = xNONE && continue
2655   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2656     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2657 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2658     sed 's/^/| /' "$ac_site_file" >&5
2659     . "$ac_site_file" \
2660       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 as_fn_error $? "failed to load site script $ac_site_file
2663 See \`config.log' for more details" "$LINENO" 5; }
2664   fi
2665 done
2666
2667 if test -r "$cache_file"; then
2668   # Some versions of bash will fail to source /dev/null (special files
2669   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2670   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2672 $as_echo "$as_me: loading cache $cache_file" >&6;}
2673     case $cache_file in
2674       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2675       *)                      . "./$cache_file";;
2676     esac
2677   fi
2678 else
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2680 $as_echo "$as_me: creating cache $cache_file" >&6;}
2681   >$cache_file
2682 fi
2683
2684 # Check that the precious variables saved in the cache have kept the same
2685 # value.
2686 ac_cache_corrupted=false
2687 for ac_var in $ac_precious_vars; do
2688   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2689   eval ac_new_set=\$ac_env_${ac_var}_set
2690   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2691   eval ac_new_val=\$ac_env_${ac_var}_value
2692   case $ac_old_set,$ac_new_set in
2693     set,)
2694       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2696       ac_cache_corrupted=: ;;
2697     ,set)
2698       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2700       ac_cache_corrupted=: ;;
2701     ,);;
2702     *)
2703       if test "x$ac_old_val" != "x$ac_new_val"; then
2704         # differences in whitespace do not lead to failure.
2705         ac_old_val_w=`echo x $ac_old_val`
2706         ac_new_val_w=`echo x $ac_new_val`
2707         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2708           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2710           ac_cache_corrupted=:
2711         else
2712           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2714           eval $ac_var=\$ac_old_val
2715         fi
2716         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2717 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2718         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2719 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2720       fi;;
2721   esac
2722   # Pass precious variables to config.status.
2723   if test "$ac_new_set" = set; then
2724     case $ac_new_val in
2725     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2726     *) ac_arg=$ac_var=$ac_new_val ;;
2727     esac
2728     case " $ac_configure_args " in
2729       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2730       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2731     esac
2732   fi
2733 done
2734 if $ac_cache_corrupted; then
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2739   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2740 fi
2741 ## -------------------- ##
2742 ## Main body of script. ##
2743 ## -------------------- ##
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751
2752
2753
2754
2755 ac_config_headers="$ac_config_headers config.h"
2756
2757
2758 am__api_version='1.14'
2759
2760 ac_aux_dir=
2761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2762   if test -f "$ac_dir/install-sh"; then
2763     ac_aux_dir=$ac_dir
2764     ac_install_sh="$ac_aux_dir/install-sh -c"
2765     break
2766   elif test -f "$ac_dir/install.sh"; then
2767     ac_aux_dir=$ac_dir
2768     ac_install_sh="$ac_aux_dir/install.sh -c"
2769     break
2770   elif test -f "$ac_dir/shtool"; then
2771     ac_aux_dir=$ac_dir
2772     ac_install_sh="$ac_aux_dir/shtool install -c"
2773     break
2774   fi
2775 done
2776 if test -z "$ac_aux_dir"; then
2777   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2778 fi
2779
2780 # These three variables are undocumented and unsupported,
2781 # and are intended to be withdrawn in a future Autoconf release.
2782 # They can cause serious problems if a builder's source tree is in a directory
2783 # whose full name contains unusual characters.
2784 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2785 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2786 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2787
2788
2789 # Find a good install program.  We prefer a C program (faster),
2790 # so one script is as good as another.  But avoid the broken or
2791 # incompatible versions:
2792 # SysV /etc/install, /usr/sbin/install
2793 # SunOS /usr/etc/install
2794 # IRIX /sbin/install
2795 # AIX /bin/install
2796 # AmigaOS /C/install, which installs bootblocks on floppy discs
2797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2800 # OS/2's system install, which has a completely different semantic
2801 # ./install, which can be erroneously created by make from ./install.sh.
2802 # Reject install programs that cannot install multiple files.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2804 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2805 if test -z "$INSTALL"; then
2806 if ${ac_cv_path_install+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814     # Account for people who put trailing slashes in PATH elements.
2815 case $as_dir/ in #((
2816   ./ | .// | /[cC]/* | \
2817   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2818   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2819   /usr/ucb/* ) ;;
2820   *)
2821     # OSF1 and SCO ODT 3.0 have their own names for install.
2822     # Don't use installbsd from OSF since it installs stuff as root
2823     # by default.
2824     for ac_prog in ginstall scoinst install; do
2825       for ac_exec_ext in '' $ac_executable_extensions; do
2826         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2827           if test $ac_prog = install &&
2828             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2829             # AIX install.  It has an incompatible calling convention.
2830             :
2831           elif test $ac_prog = install &&
2832             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2833             # program-specific install script used by HP pwplus--don't use.
2834             :
2835           else
2836             rm -rf conftest.one conftest.two conftest.dir
2837             echo one > conftest.one
2838             echo two > conftest.two
2839             mkdir conftest.dir
2840             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2841               test -s conftest.one && test -s conftest.two &&
2842               test -s conftest.dir/conftest.one &&
2843               test -s conftest.dir/conftest.two
2844             then
2845               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846               break 3
2847             fi
2848           fi
2849         fi
2850       done
2851     done
2852     ;;
2853 esac
2854
2855   done
2856 IFS=$as_save_IFS
2857
2858 rm -rf conftest.one conftest.two conftest.dir
2859
2860 fi
2861   if test "${ac_cv_path_install+set}" = set; then
2862     INSTALL=$ac_cv_path_install
2863   else
2864     # As a last resort, use the slow shell script.  Don't cache a
2865     # value for INSTALL within a source directory, because that will
2866     # break other packages using the cache if that directory is
2867     # removed, or if the value is a relative name.
2868     INSTALL=$ac_install_sh
2869   fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2872 $as_echo "$INSTALL" >&6; }
2873
2874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875 # It thinks the first close brace ends the variable substitution.
2876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2877
2878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2879
2880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2883 $as_echo_n "checking whether build environment is sane... " >&6; }
2884 # Reject unsafe characters in $srcdir or the absolute working directory
2885 # name.  Accept space and tab only in the latter.
2886 am_lf='
2887 '
2888 case `pwd` in
2889   *[\\\"\#\$\&\'\`$am_lf]*)
2890     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2891 esac
2892 case $srcdir in
2893   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2894     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2895 esac
2896
2897 # Do 'set' in a subshell so we don't clobber the current shell's
2898 # arguments.  Must try -L first in case configure is actually a
2899 # symlink; some systems play weird games with the mod time of symlinks
2900 # (eg FreeBSD returns the mod time of the symlink's containing
2901 # directory).
2902 if (
2903    am_has_slept=no
2904    for am_try in 1 2; do
2905      echo "timestamp, slept: $am_has_slept" > conftest.file
2906      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2907      if test "$*" = "X"; then
2908         # -L didn't work.
2909         set X `ls -t "$srcdir/configure" conftest.file`
2910      fi
2911      if test "$*" != "X $srcdir/configure conftest.file" \
2912         && test "$*" != "X conftest.file $srcdir/configure"; then
2913
2914         # If neither matched, then we have a broken ls.  This can happen
2915         # if, for instance, CONFIG_SHELL is bash and it inherits a
2916         # broken ls alias from the environment.  This has actually
2917         # happened.  Such a system could not be considered "sane".
2918         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2919   alias in your environment" "$LINENO" 5
2920      fi
2921      if test "$2" = conftest.file || test $am_try -eq 2; then
2922        break
2923      fi
2924      # Just in case.
2925      sleep 1
2926      am_has_slept=yes
2927    done
2928    test "$2" = conftest.file
2929    )
2930 then
2931    # Ok.
2932    :
2933 else
2934    as_fn_error $? "newly created file is older than distributed files!
2935 Check your system clock" "$LINENO" 5
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 # If we didn't sleep, we still need to ensure time stamps of config.status and
2940 # generated files are strictly newer.
2941 am_sleep_pid=
2942 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2943   ( sleep 1 ) &
2944   am_sleep_pid=$!
2945 fi
2946
2947 rm -f conftest.file
2948
2949 test "$program_prefix" != NONE &&
2950   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2961
2962 if test x"${MISSING+set}" != xset; then
2963   case $am_aux_dir in
2964   *\ * | *\     *)
2965     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966   *)
2967     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968   esac
2969 fi
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --is-lightweight"; then
2972   am_missing_run="$MISSING "
2973 else
2974   am_missing_run=
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2977 fi
2978
2979 if test x"${install_sh}" != xset; then
2980   case $am_aux_dir in
2981   *\ * | *\     *)
2982     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983   *)
2984     install_sh="\${SHELL} $am_aux_dir/install-sh"
2985   esac
2986 fi
2987
2988 # Installed binaries are usually stripped using 'strip' when the user
2989 # run "make install-strip".  However 'strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the 'STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993   if test -n "$ac_tool_prefix"; then
2994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$STRIP"; then
3002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033   ac_ct_STRIP=$STRIP
3034   # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$ac_ct_STRIP"; then
3042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051     ac_cv_prog_ac_ct_STRIP="strip"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070   if test "x$ac_ct_STRIP" = x; then
3071     STRIP=":"
3072   else
3073     case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079     STRIP=$ac_ct_STRIP
3080   fi
3081 else
3082   STRIP="$ac_cv_prog_STRIP"
3083 fi
3084
3085 fi
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091   if ${ac_cv_path_mkdir+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_prog in mkdir gmkdir; do
3100          for ac_exec_ext in '' $ac_executable_extensions; do
3101            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3102            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103              'mkdir (GNU coreutils) '* | \
3104              'mkdir (coreutils) '* | \
3105              'mkdir (fileutils) '4.1*)
3106                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107                break 3;;
3108            esac
3109          done
3110        done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115
3116   test -d ./--version && rmdir ./--version
3117   if test "${ac_cv_path_mkdir+set}" = set; then
3118     MKDIR_P="$ac_cv_path_mkdir -p"
3119   else
3120     # As a last resort, use the slow shell script.  Don't cache a
3121     # value for MKDIR_P within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the value is a relative name.
3124     MKDIR_P="$ac_install_sh -d"
3125   fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3129
3130 for ac_prog in gawk mawk nawk awk
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_AWK+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$AWK"; then
3140   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149     ac_cv_prog_AWK="$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 AWK=$ac_cv_prog_AWK
3160 if test -n "$AWK"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3162 $as_echo "$AWK" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169   test -n "$AWK" && break
3170 done
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3174 set x ${MAKE-make}
3175 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3176 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   cat >conftest.make <<\_ACEOF
3180 SHELL = /bin/sh
3181 all:
3182         @echo '@@@%%%=$(MAKE)=@@@%%%'
3183 _ACEOF
3184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3185 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3186   *@@@%%%=?*=@@@%%%*)
3187     eval ac_cv_prog_make_${ac_make}_set=yes;;
3188   *)
3189     eval ac_cv_prog_make_${ac_make}_set=no;;
3190 esac
3191 rm -f conftest.make
3192 fi
3193 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196   SET_MAKE=
3197 else
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200   SET_MAKE="MAKE=${MAKE-make}"
3201 fi
3202
3203 rm -rf .tst 2>/dev/null
3204 mkdir .tst 2>/dev/null
3205 if test -d .tst; then
3206   am__leading_dot=.
3207 else
3208   am__leading_dot=_
3209 fi
3210 rmdir .tst 2>/dev/null
3211
3212 # Check whether --enable-silent-rules was given.
3213 if test "${enable_silent_rules+set}" = set; then :
3214   enableval=$enable_silent_rules;
3215 fi
3216
3217 case $enable_silent_rules in # (((
3218   yes) AM_DEFAULT_VERBOSITY=0;;
3219    no) AM_DEFAULT_VERBOSITY=1;;
3220     *) AM_DEFAULT_VERBOSITY=1;;
3221 esac
3222 am_make=${MAKE-make}
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3224 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3225 if ${am_cv_make_support_nested_variables+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if $as_echo 'TRUE=$(BAR$(V))
3229 BAR0=false
3230 BAR1=true
3231 V=1
3232 am__doit:
3233         @$(TRUE)
3234 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3235   am_cv_make_support_nested_variables=yes
3236 else
3237   am_cv_make_support_nested_variables=no
3238 fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3241 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3242 if test $am_cv_make_support_nested_variables = yes; then
3243     AM_V='$(V)'
3244   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3245 else
3246   AM_V=$AM_DEFAULT_VERBOSITY
3247   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3248 fi
3249 AM_BACKSLASH='\'
3250
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253   # is not polluted with repeated "-I."
3254   am__isrc=' -I$(srcdir)'
3255   # test to see if srcdir already configured
3256   if test -f $srcdir/config.status; then
3257     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3258   fi
3259 fi
3260
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263   if (cygpath --version) >/dev/null 2>/dev/null; then
3264     CYGPATH_W='cygpath -w'
3265   else
3266     CYGPATH_W=echo
3267   fi
3268 fi
3269
3270
3271 # Define the identity of the package.
3272  PACKAGE='harfbuzz'
3273  VERSION='0.9.40'
3274
3275
3276 # Some tools Automake needs.
3277
3278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3279
3280
3281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3282
3283
3284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3285
3286
3287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3288
3289
3290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3291
3292 # For better backward compatibility.  To be removed once Automake 1.9.x
3293 # dies out for good.  For more background, see:
3294 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3295 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3296 mkdir_p='$(MKDIR_P)'
3297
3298 # We need awk for the "check" target.  The system "awk" is bad on
3299 # some platforms.
3300 # Always define AMTAR for backward compatibility.  Yes, it's still used
3301 # in the wild :-(  We should find a proper way to deprecate it ...
3302 AMTAR='$${TAR-tar}'
3303
3304
3305 # We'll loop over all known methods to create a tar archive until one works.
3306 _am_tools='gnutar  pax cpio none'
3307
3308
3309
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3311 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3312
3313   # Go ahead even if we have the value already cached.  We do so because we
3314   # need to set the values for the 'am__tar' and 'am__untar' variables.
3315   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3316
3317   for _am_tool in $_am_tools; do
3318     case $_am_tool in
3319     gnutar)
3320       for _am_tar in tar gnutar gtar; do
3321         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3322    ($_am_tar --version) >&5 2>&5
3323    ac_status=$?
3324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325    (exit $ac_status); } && break
3326       done
3327       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3328       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3329       am__untar="$_am_tar -xf -"
3330       ;;
3331     plaintar)
3332       # Must skip GNU tar: if it does not support --format= it doesn't create
3333       # ustar tarball either.
3334       (tar --version) >/dev/null 2>&1 && continue
3335       am__tar='tar chf - "$$tardir"'
3336       am__tar_='tar chf - "$tardir"'
3337       am__untar='tar xf -'
3338       ;;
3339     pax)
3340       am__tar='pax -L -x pax -w "$$tardir"'
3341       am__tar_='pax -L -x pax -w "$tardir"'
3342       am__untar='pax -r'
3343       ;;
3344     cpio)
3345       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3346       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3347       am__untar='cpio -i -H pax -d'
3348       ;;
3349     none)
3350       am__tar=false
3351       am__tar_=false
3352       am__untar=false
3353       ;;
3354     esac
3355
3356     # If the value was cached, stop now.  We just wanted to have am__tar
3357     # and am__untar set.
3358     test -n "${am_cv_prog_tar_pax}" && break
3359
3360     # tar/untar a dummy directory, and stop if the command works.
3361     rm -rf conftest.dir
3362     mkdir conftest.dir
3363     echo GrepMe > conftest.dir/file
3364     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3365    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3366    ac_status=$?
3367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368    (exit $ac_status); }
3369     rm -rf conftest.dir
3370     if test -s conftest.tar; then
3371       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3372    ($am__untar <conftest.tar) >&5 2>&5
3373    ac_status=$?
3374    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375    (exit $ac_status); }
3376       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3377    (cat conftest.dir/file) >&5 2>&5
3378    ac_status=$?
3379    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380    (exit $ac_status); }
3381       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3382     fi
3383   done
3384   rm -rf conftest.dir
3385
3386   if ${am_cv_prog_tar_pax+:} false; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   am_cv_prog_tar_pax=$_am_tool
3390 fi
3391
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3393 $as_echo "$am_cv_prog_tar_pax" >&6; }
3394
3395
3396
3397
3398
3399
3400 # POSIX will say in a future version that running "rm -f" with no argument
3401 # is OK; and we want to be able to make that assumption in our Makefile
3402 # recipes.  So use an aggressive probe to check that the usage we want is
3403 # actually supported "in the wild" to an acceptable degree.
3404 # See automake bug#10828.
3405 # To make any issue more visible, cause the running configure to be aborted
3406 # by default if the 'rm' program in use doesn't match our expectations; the
3407 # user can still override this though.
3408 if rm -f && rm -fr && rm -rf; then : OK; else
3409   cat >&2 <<'END'
3410 Oops!
3411
3412 Your 'rm' program seems unable to run without file operands specified
3413 on the command line, even when the '-f' option is present.  This is contrary
3414 to the behaviour of most rm programs out there, and not conforming with
3415 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3416
3417 Please tell bug-automake@gnu.org about your system, including the value
3418 of your $PATH and any error possibly output before this message.  This
3419 can help us improve future automake versions.
3420
3421 END
3422   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3423     echo 'Configuration will proceed anyway, since you have set the' >&2
3424     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3425     echo >&2
3426   else
3427     cat >&2 <<'END'
3428 Aborting the configuration process, to ensure you take notice of the issue.
3429
3430 You can download and install GNU coreutils to get an 'rm' implementation
3431 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3432
3433 If you want to complete the configuration process using your problematic
3434 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3435 to "yes", and re-run configure.
3436
3437 END
3438     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3439   fi
3440 fi
3441  if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
3442   AUTOMAKE_OLDER_THAN_1_13_TRUE=
3443   AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
3444 else
3445   AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
3446   AUTOMAKE_OLDER_THAN_1_13_FALSE=
3447 fi
3448
3449 # Check whether --enable-silent-rules was given.
3450 if test "${enable_silent_rules+set}" = set; then :
3451   enableval=$enable_silent_rules;
3452 fi
3453
3454 case $enable_silent_rules in # (((
3455   yes) AM_DEFAULT_VERBOSITY=0;;
3456    no) AM_DEFAULT_VERBOSITY=1;;
3457     *) AM_DEFAULT_VERBOSITY=0;;
3458 esac
3459 am_make=${MAKE-make}
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3461 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3462 if ${am_cv_make_support_nested_variables+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if $as_echo 'TRUE=$(BAR$(V))
3466 BAR0=false
3467 BAR1=true
3468 V=1
3469 am__doit:
3470         @$(TRUE)
3471 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3472   am_cv_make_support_nested_variables=yes
3473 else
3474   am_cv_make_support_nested_variables=no
3475 fi
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3478 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3479 if test $am_cv_make_support_nested_variables = yes; then
3480     AM_V='$(V)'
3481   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3482 else
3483   AM_V=$AM_DEFAULT_VERBOSITY
3484   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3485 fi
3486 AM_BACKSLASH='\'
3487
3488
3489 # Initialize libtool
3490 DEPDIR="${am__leading_dot}deps"
3491
3492 ac_config_commands="$ac_config_commands depfiles"
3493
3494
3495 am_make=${MAKE-make}
3496 cat > confinc << 'END'
3497 am__doit:
3498         @echo this is the am__doit target
3499 .PHONY: am__doit
3500 END
3501 # If we don't find an include directive, just comment out the code.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3504 am__include="#"
3505 am__quote=
3506 _am_result=none
3507 # First try GNU make style include.
3508 echo "include confinc" > confmf
3509 # Ignore all kinds of additional output from 'make'.
3510 case `$am_make -s -f confmf 2> /dev/null` in #(
3511 *the\ am__doit\ target*)
3512   am__include=include
3513   am__quote=
3514   _am_result=GNU
3515   ;;
3516 esac
3517 # Now try BSD make style include.
3518 if test "$am__include" = "#"; then
3519    echo '.include "confinc"' > confmf
3520    case `$am_make -s -f confmf 2> /dev/null` in #(
3521    *the\ am__doit\ target*)
3522      am__include=.include
3523      am__quote="\""
3524      _am_result=BSD
3525      ;;
3526    esac
3527 fi
3528
3529
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3531 $as_echo "$_am_result" >&6; }
3532 rm -f confinc confmf
3533
3534 # Check whether --enable-dependency-tracking was given.
3535 if test "${enable_dependency_tracking+set}" = set; then :
3536   enableval=$enable_dependency_tracking;
3537 fi
3538
3539 if test "x$enable_dependency_tracking" != xno; then
3540   am_depcomp="$ac_aux_dir/depcomp"
3541   AMDEPBACKSLASH='\'
3542   am__nodep='_no'
3543 fi
3544  if test "x$enable_dependency_tracking" != xno; then
3545   AMDEP_TRUE=
3546   AMDEP_FALSE='#'
3547 else
3548   AMDEP_TRUE='#'
3549   AMDEP_FALSE=
3550 fi
3551
3552
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 if test -n "$ac_tool_prefix"; then
3559   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   if test -n "$CC"; then
3567   ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574     for ac_exec_ext in '' $ac_executable_extensions; do
3575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581   done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596 fi
3597 if test -z "$ac_cv_prog_CC"; then
3598   ac_ct_CC=$CC
3599   # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   if test -n "$ac_ct_CC"; then
3607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614     for ac_exec_ext in '' $ac_executable_extensions; do
3615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616     ac_cv_prog_ac_ct_CC="gcc"
3617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618     break 2
3619   fi
3620 done
3621   done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 fi
3634
3635   if test "x$ac_ct_CC" = x; then
3636     CC=""
3637   else
3638     case $cross_compiling:$ac_tool_warned in
3639 yes:)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3643 esac
3644     CC=$ac_ct_CC
3645   fi
3646 else
3647   CC="$ac_cv_prog_CC"
3648 fi
3649
3650 if test -z "$CC"; then
3651           if test -n "$ac_tool_prefix"; then
3652     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}cc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_CC+:} false; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   if test -n "$CC"; then
3660   ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667     for ac_exec_ext in '' $ac_executable_extensions; do
3668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     ac_cv_prog_CC="${ac_tool_prefix}cc"
3670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674   done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 fi
3687
3688
3689   fi
3690 fi
3691 if test -z "$CC"; then
3692   # Extract the first word of "cc", so it can be a program name with args.
3693 set dummy cc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CC+:} false; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   if test -n "$CC"; then
3700   ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702   ac_prog_rejected=no
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711        ac_prog_rejected=yes
3712        continue
3713      fi
3714     ac_cv_prog_CC="cc"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 if test $ac_prog_rejected = yes; then
3723   # We found a bogon in the path, so make sure we never use it.
3724   set dummy $ac_cv_prog_CC
3725   shift
3726   if test $# != 0; then
3727     # We chose a different compiler from the bogus one.
3728     # However, it has the same basename, so the bogon will be chosen
3729     # first if we set CC to just the basename; use the full file name.
3730     shift
3731     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3732   fi
3733 fi
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 fi
3747 if test -z "$CC"; then
3748   if test -n "$ac_tool_prefix"; then
3749   for ac_prog in cl.exe
3750   do
3751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_CC+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   if test -n "$CC"; then
3759   ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766     for ac_exec_ext in '' $ac_executable_extensions; do
3767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773   done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788     test -n "$CC" && break
3789   done
3790 fi
3791 if test -z "$CC"; then
3792   ac_ct_CC=$CC
3793   for ac_prog in cl.exe
3794 do
3795   # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   if test -n "$ac_ct_CC"; then
3803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812     ac_cv_prog_ac_ct_CC="$ac_prog"
3813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817   done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831
3832   test -n "$ac_ct_CC" && break
3833 done
3834
3835   if test "x$ac_ct_CC" = x; then
3836     CC=""
3837   else
3838     case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844     CC=$ac_ct_CC
3845   fi
3846 fi
3847
3848 fi
3849
3850
3851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "no acceptable C compiler found in \$PATH
3854 See \`config.log' for more details" "$LINENO" 5; }
3855
3856 # Provide some information about the compiler.
3857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3858 set X $ac_compile
3859 ac_compiler=$2
3860 for ac_option in --version -v -V -qversion; do
3861   { { ac_try="$ac_compiler $ac_option >&5"
3862 case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3869   ac_status=$?
3870   if test -s conftest.err; then
3871     sed '10a\
3872 ... rest of stderr output deleted ...
3873          10q' conftest.err >conftest.er1
3874     cat conftest.er1 >&5
3875   fi
3876   rm -f conftest.er1 conftest.err
3877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878   test $ac_status = 0; }
3879 done
3880
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883
3884 int
3885 main ()
3886 {
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 ac_clean_files_save=$ac_clean_files
3893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3894 # Try to create an executable without -o first, disregard a.out.
3895 # It will help us diagnose broken compilers, and finding out an intuition
3896 # of exeext.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3898 $as_echo_n "checking whether the C compiler works... " >&6; }
3899 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3900
3901 # The possible output files:
3902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3903
3904 ac_rmfiles=
3905 for ac_file in $ac_files
3906 do
3907   case $ac_file in
3908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3910   esac
3911 done
3912 rm -f $ac_rmfiles
3913
3914 if { { ac_try="$ac_link_default"
3915 case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921   (eval "$ac_link_default") 2>&5
3922   ac_status=$?
3923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924   test $ac_status = 0; }; then :
3925   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3927 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3928 # so that the user can short-circuit this test for compilers unknown to
3929 # Autoconf.
3930 for ac_file in $ac_files ''
3931 do
3932   test -f "$ac_file" || continue
3933   case $ac_file in
3934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3935         ;;
3936     [ab].out )
3937         # We found the default executable, but exeext='' is most
3938         # certainly right.
3939         break;;
3940     *.* )
3941         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3942         then :; else
3943            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944         fi
3945         # We set ac_cv_exeext here because the later test for it is not
3946         # safe: cross compilers may not add the suffix if given an `-o'
3947         # argument, so we may need to know it at that point already.
3948         # Even if this section looks crufty: it has the advantage of
3949         # actually working.
3950         break;;
3951     * )
3952         break;;
3953   esac
3954 done
3955 test "$ac_cv_exeext" = no && ac_cv_exeext=
3956
3957 else
3958   ac_file=''
3959 fi
3960 if test -z "$ac_file"; then :
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error 77 "C compiler cannot create executables
3969 See \`config.log' for more details" "$LINENO" 5; }
3970 else
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972 $as_echo "yes" >&6; }
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3975 $as_echo_n "checking for C compiler default output file name... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977 $as_echo "$ac_file" >&6; }
3978 ac_exeext=$ac_cv_exeext
3979
3980 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3981 ac_clean_files=$ac_clean_files_save
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3983 $as_echo_n "checking for suffix of executables... " >&6; }
3984 if { { ac_try="$ac_link"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991   (eval "$ac_link") 2>&5
3992   ac_status=$?
3993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994   test $ac_status = 0; }; then :
3995   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3996 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3997 # work properly (i.e., refer to `conftest.exe'), while it won't with
3998 # `rm'.
3999 for ac_file in conftest.exe conftest conftest.*; do
4000   test -f "$ac_file" || continue
4001   case $ac_file in
4002     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4003     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4004           break;;
4005     * ) break;;
4006   esac
4007 done
4008 else
4009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 fi
4014 rm -f conftest conftest$ac_cv_exeext
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4016 $as_echo "$ac_cv_exeext" >&6; }
4017
4018 rm -f conftest.$ac_ext
4019 EXEEXT=$ac_cv_exeext
4020 ac_exeext=$EXEEXT
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <stdio.h>
4024 int
4025 main ()
4026 {
4027 FILE *f = fopen ("conftest.out", "w");
4028  return ferror (f) || fclose (f) != 0;
4029
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 ac_clean_files="$ac_clean_files conftest.out"
4035 # Check that the compiler produces executables we can run.  If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 if test "$cross_compiling" != yes; then
4040   { { ac_try="$ac_link"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047   (eval "$ac_link") 2>&5
4048   ac_status=$?
4049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050   test $ac_status = 0; }
4051   if { ac_try='./conftest$ac_cv_exeext'
4052   { { case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058   (eval "$ac_try") 2>&5
4059   ac_status=$?
4060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061   test $ac_status = 0; }; }; then
4062     cross_compiling=no
4063   else
4064     if test "$cross_compiling" = maybe; then
4065         cross_compiling=yes
4066     else
4067         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot run C compiled programs.
4070 If you meant to cross compile, use \`--host'.
4071 See \`config.log' for more details" "$LINENO" 5; }
4072     fi
4073   fi
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4076 $as_echo "$cross_compiling" >&6; }
4077
4078 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4079 ac_clean_files=$ac_clean_files_save
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4081 $as_echo_n "checking for suffix of object files... " >&6; }
4082 if ${ac_cv_objext+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.o conftest.obj
4097 if { { ac_try="$ac_compile"
4098 case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104   (eval "$ac_compile") 2>&5
4105   ac_status=$?
4106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107   test $ac_status = 0; }; then :
4108   for ac_file in conftest.o conftest.obj conftest.*; do
4109   test -f "$ac_file" || continue;
4110   case $ac_file in
4111     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4113        break;;
4114   esac
4115 done
4116 else
4117   $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of object files: cannot compile
4123 See \`config.log' for more details" "$LINENO" 5; }
4124 fi
4125 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4128 $as_echo "$ac_cv_objext" >&6; }
4129 OBJEXT=$ac_cv_objext
4130 ac_objext=$OBJEXT
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4133 if ${ac_cv_c_compiler_gnu+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138
4139 int
4140 main ()
4141 {
4142 #ifndef __GNUC__
4143        choke me
4144 #endif
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151   ac_compiler_gnu=yes
4152 else
4153   ac_compiler_gnu=no
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4161 if test $ac_compiler_gnu = yes; then
4162   GCC=yes
4163 else
4164   GCC=
4165 fi
4166 ac_test_CFLAGS=${CFLAGS+set}
4167 ac_save_CFLAGS=$CFLAGS
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4170 if ${ac_cv_prog_cc_g+:} false; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173   ac_save_c_werror_flag=$ac_c_werror_flag
4174    ac_c_werror_flag=yes
4175    ac_cv_prog_cc_g=no
4176    CFLAGS="-g"
4177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h.  */
4179
4180 int
4181 main ()
4182 {
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189   ac_cv_prog_cc_g=yes
4190 else
4191   CFLAGS=""
4192       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194
4195 int
4196 main ()
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204
4205 else
4206   ac_c_werror_flag=$ac_save_c_werror_flag
4207          CFLAGS="-g"
4208          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210
4211 int
4212 main ()
4213 {
4214
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220   ac_cv_prog_cc_g=yes
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227    ac_c_werror_flag=$ac_save_c_werror_flag
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
4231 if test "$ac_test_CFLAGS" = set; then
4232   CFLAGS=$ac_save_CFLAGS
4233 elif test $ac_cv_prog_cc_g = yes; then
4234   if test "$GCC" = yes; then
4235     CFLAGS="-g -O2"
4236   else
4237     CFLAGS="-g"
4238   fi
4239 else
4240   if test "$GCC" = yes; then
4241     CFLAGS="-O2"
4242   else
4243     CFLAGS=
4244   fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248 if ${ac_cv_prog_cc_c89+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   ac_cv_prog_cc_c89=no
4252 ac_save_CC=$CC
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255 #include <stdarg.h>
4256 #include <stdio.h>
4257 struct stat;
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4262      char **p;
4263      int i;
4264 {
4265   return p[i];
4266 }
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4268 {
4269   char *s;
4270   va_list v;
4271   va_start (v,p);
4272   s = g (p, va_arg (v,int));
4273   va_end (v);
4274   return s;
4275 }
4276
4277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4278    function prototypes and stuff, but not '\xHH' hex character constants.
4279    These don't provoke an error unfortunately, instead are silently treated
4280    as 'x'.  The following induces an error, until -std is added to get
4281    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4282    array size at least.  It's necessary to write '\x00'==0 to get something
4283    that's true only with -std.  */
4284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285
4286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4287    inside strings and character constants.  */
4288 #define FOO(x) 'x'
4289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290
4291 int test (int i, double x);
4292 struct s1 {int (*f) (int a);};
4293 struct s2 {int (*f) (double a);};
4294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4295 int argc;
4296 char **argv;
4297 int
4298 main ()
4299 {
4300 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4306         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307 do
4308   CC="$ac_save_CC $ac_arg"
4309   if ac_fn_c_try_compile "$LINENO"; then :
4310   ac_cv_prog_cc_c89=$ac_arg
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext
4313   test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 done
4315 rm -f conftest.$ac_ext
4316 CC=$ac_save_CC
4317
4318 fi
4319 # AC_CACHE_VAL
4320 case "x$ac_cv_prog_cc_c89" in
4321   x)
4322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4324   xno)
4325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4327   *)
4328     CC="$CC $ac_cv_prog_cc_c89"
4329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331 esac
4332 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333
4334 fi
4335
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4349 if ${am_cv_prog_cc_c_o+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363   # Make sure it works both with $CC and with simple cc.
4364   # Following AC_PROG_CC_C_O, we do the test twice because some
4365   # compilers refuse to overwrite an existing .o file with -o,
4366   # though they will create one.
4367   am_cv_prog_cc_c_o=yes
4368   for am_i in 1 2; do
4369     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4371    ac_status=$?
4372    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373    (exit $ac_status); } \
4374          && test -f conftest2.$ac_objext; then
4375       : OK
4376     else
4377       am_cv_prog_cc_c_o=no
4378       break
4379     fi
4380   done
4381   rm -f core conftest*
4382   unset am_i
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4386 if test "$am_cv_prog_cc_c_o" != yes; then
4387    # Losing compiler, so override with the script.
4388    # FIXME: It is wrong to rewrite CC.
4389    # But if we don't then we get into trouble of one sort or another.
4390    # A longer-term fix would be to have automake use am__CC in this case,
4391    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392    CC="$am_aux_dir/compile $CC"
4393 fi
4394 ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400
4401 depcc="$CC"   am_compiler_list=
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4404 $as_echo_n "checking dependency style of $depcc... " >&6; }
4405 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4409   # We make a subdir and do the tests there.  Otherwise we can end up
4410   # making bogus files that we don't know about and never remove.  For
4411   # instance it was reported that on HP-UX the gcc test will end up
4412   # making a dummy file named 'D' -- because '-MD' means "put the output
4413   # in D".
4414   rm -rf conftest.dir
4415   mkdir conftest.dir
4416   # Copy depcomp to subdir because otherwise we won't find it if we're
4417   # using a relative directory.
4418   cp "$am_depcomp" conftest.dir
4419   cd conftest.dir
4420   # We will build objects and dependencies in a subdirectory because
4421   # it helps to detect inapplicable dependency modes.  For instance
4422   # both Tru64's cc and ICC support -MD to output dependencies as a
4423   # side effect of compilation, but ICC will put the dependencies in
4424   # the current directory while Tru64 will put them in the object
4425   # directory.
4426   mkdir sub
4427
4428   am_cv_CC_dependencies_compiler_type=none
4429   if test "$am_compiler_list" = ""; then
4430      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4431   fi
4432   am__universal=false
4433   case " $depcc " in #(
4434      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4435      esac
4436
4437   for depmode in $am_compiler_list; do
4438     # Setup a source with many dependencies, because some compilers
4439     # like to wrap large dependency lists on column 80 (with \), and
4440     # we should not choose a depcomp mode which is confused by this.
4441     #
4442     # We need to recreate these files for each test, as the compiler may
4443     # overwrite some of them when testing with obscure command lines.
4444     # This happens at least with the AIX C compiler.
4445     : > sub/conftest.c
4446     for i in 1 2 3 4 5 6; do
4447       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4448       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4449       # Solaris 10 /bin/sh.
4450       echo '/* dummy */' > sub/conftst$i.h
4451     done
4452     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4453
4454     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4455     # mode.  It turns out that the SunPro C++ compiler does not properly
4456     # handle '-M -o', and we need to detect this.  Also, some Intel
4457     # versions had trouble with output in subdirs.
4458     am__obj=sub/conftest.${OBJEXT-o}
4459     am__minus_obj="-o $am__obj"
4460     case $depmode in
4461     gcc)
4462       # This depmode causes a compiler race in universal mode.
4463       test "$am__universal" = false || continue
4464       ;;
4465     nosideeffect)
4466       # After this tag, mechanisms are not by side-effect, so they'll
4467       # only be used when explicitly requested.
4468       if test "x$enable_dependency_tracking" = xyes; then
4469         continue
4470       else
4471         break
4472       fi
4473       ;;
4474     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4475       # This compiler won't grok '-c -o', but also, the minuso test has
4476       # not run yet.  These depmodes are late enough in the game, and
4477       # so weak that their functioning should not be impacted.
4478       am__obj=conftest.${OBJEXT-o}
4479       am__minus_obj=
4480       ;;
4481     none) break ;;
4482     esac
4483     if depmode=$depmode \
4484        source=sub/conftest.c object=$am__obj \
4485        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4486        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4487          >/dev/null 2>conftest.err &&
4488        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4490        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4492       # icc doesn't choke on unknown options, it will just issue warnings
4493       # or remarks (even with -Werror).  So we grep stderr for any message
4494       # that says an option was ignored or not supported.
4495       # When given -MP, icc 7.0 and 7.1 complain thusly:
4496       #   icc: Command line warning: ignoring option '-M'; no argument required
4497       # The diagnosis changed in icc 8.0:
4498       #   icc: Command line remark: option '-MP' not supported
4499       if (grep 'ignoring option' conftest.err ||
4500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4501         am_cv_CC_dependencies_compiler_type=$depmode
4502         break
4503       fi
4504     fi
4505   done
4506
4507   cd ..
4508   rm -rf conftest.dir
4509 else
4510   am_cv_CC_dependencies_compiler_type=none
4511 fi
4512
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4515 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4517
4518  if
4519   test "x$enable_dependency_tracking" != xno \
4520   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4521   am__fastdepCC_TRUE=
4522   am__fastdepCC_FALSE='#'
4523 else
4524   am__fastdepCC_TRUE='#'
4525   am__fastdepCC_FALSE=
4526 fi
4527
4528
4529
4530 if test -n "$ac_tool_prefix"; then
4531   for ac_prog in ar lib "link -lib"
4532   do
4533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_AR+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -n "$AR"; then
4541   ac_cv_prog_AR="$AR" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 AR=$ac_cv_prog_AR
4561 if test -n "$AR"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4563 $as_echo "$AR" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570     test -n "$AR" && break
4571   done
4572 fi
4573 if test -z "$AR"; then
4574   ac_ct_AR=$AR
4575   for ac_prog in ar lib "link -lib"
4576 do
4577   # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   if test -n "$ac_ct_AR"; then
4585   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592     for ac_exec_ext in '' $ac_executable_extensions; do
4593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594     ac_cv_prog_ac_ct_AR="$ac_prog"
4595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599   done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4605 if test -n "$ac_ct_AR"; then
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4607 $as_echo "$ac_ct_AR" >&6; }
4608 else
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612
4613
4614   test -n "$ac_ct_AR" && break
4615 done
4616
4617   if test "x$ac_ct_AR" = x; then
4618     AR="false"
4619   else
4620     case $cross_compiling:$ac_tool_warned in
4621 yes:)
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4625 esac
4626     AR=$ac_ct_AR
4627   fi
4628 fi
4629
4630 : ${AR=ar}
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4633 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4634 if ${am_cv_ar_interface+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643    am_cv_ar_interface=ar
4644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646 int some_variable = 0;
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4650       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4651   (eval $am_ar_try) 2>&5
4652   ac_status=$?
4653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654   test $ac_status = 0; }
4655       if test "$ac_status" -eq 0; then
4656         am_cv_ar_interface=ar
4657       else
4658         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4659         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4660   (eval $am_ar_try) 2>&5
4661   ac_status=$?
4662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663   test $ac_status = 0; }
4664         if test "$ac_status" -eq 0; then
4665           am_cv_ar_interface=lib
4666         else
4667           am_cv_ar_interface=unknown
4668         fi
4669       fi
4670       rm -f conftest.lib libconftest.a
4671
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674    ac_ext=c
4675 ac_cpp='$CPP $CPPFLAGS'
4676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4682 $as_echo "$am_cv_ar_interface" >&6; }
4683
4684 case $am_cv_ar_interface in
4685 ar)
4686   ;;
4687 lib)
4688   # Microsoft lib, so override with the ar-lib wrapper script.
4689   # FIXME: It is wrong to rewrite AR.
4690   # But if we don't then we get into trouble of one sort or another.
4691   # A longer-term fix would be to have automake use am__AR in this case,
4692   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4693   # similar.
4694   AR="$am_aux_dir/ar-lib $AR"
4695   ;;
4696 unknown)
4697   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4698   ;;
4699 esac
4700
4701
4702 case `pwd` in
4703   *\ * | *\     *)
4704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4705 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4706 esac
4707
4708
4709
4710 macro_version='2.4.2.418'
4711 macro_revision='2.4.2.418'
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 ltmain=$ac_aux_dir/ltmain.sh
4726
4727 # Make sure we can run config.sub.
4728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4729   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4732 $as_echo_n "checking build system type... " >&6; }
4733 if ${ac_cv_build+:} false; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   ac_build_alias=$build_alias
4737 test "x$ac_build_alias" = x &&
4738   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4739 test "x$ac_build_alias" = x &&
4740   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4742   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4746 $as_echo "$ac_cv_build" >&6; }
4747 case $ac_cv_build in
4748 *-*-*) ;;
4749 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4750 esac
4751 build=$ac_cv_build
4752 ac_save_IFS=$IFS; IFS='-'
4753 set x $ac_cv_build
4754 shift
4755 build_cpu=$1
4756 build_vendor=$2
4757 shift; shift
4758 # Remember, the first character of IFS is used to create $*,
4759 # except with old shells:
4760 build_os=$*
4761 IFS=$ac_save_IFS
4762 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4763
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4766 $as_echo_n "checking host system type... " >&6; }
4767 if ${ac_cv_host+:} false; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   if test "x$host_alias" = x; then
4771   ac_cv_host=$ac_cv_build
4772 else
4773   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4774     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4775 fi
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4779 $as_echo "$ac_cv_host" >&6; }
4780 case $ac_cv_host in
4781 *-*-*) ;;
4782 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4783 esac
4784 host=$ac_cv_host
4785 ac_save_IFS=$IFS; IFS='-'
4786 set x $ac_cv_host
4787 shift
4788 host_cpu=$1
4789 host_vendor=$2
4790 shift; shift
4791 # Remember, the first character of IFS is used to create $*,
4792 # except with old shells:
4793 host_os=$*
4794 IFS=$ac_save_IFS
4795 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4796
4797
4798 # Backslashify metacharacters that are still active within
4799 # double-quoted strings.
4800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4801
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4804
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4808
4809 # Sed substitution to delay expansion of an escaped single quote.
4810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4811
4812 # Sed substitution to avoid accidental globbing in evaled expressions
4813 no_glob_subst='s/\*/\\\*/g'
4814
4815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4820 $as_echo_n "checking how to print strings... " >&6; }
4821 # Test print first, because it will be a builtin if present.
4822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4823    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4824   ECHO='print -r --'
4825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4826   ECHO='printf %s\n'
4827 else
4828   # Use this function as a fallback that always works.
4829   func_fallback_echo ()
4830   {
4831     eval 'cat <<_LTECHO_EOF
4832 $1
4833 _LTECHO_EOF'
4834   }
4835   ECHO='func_fallback_echo'
4836 fi
4837
4838 # func_echo_all arg...
4839 # Invoke $ECHO with all args, space-separated.
4840 func_echo_all ()
4841 {
4842     $ECHO ""
4843 }
4844
4845 case $ECHO in
4846   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4847 $as_echo "printf" >&6; } ;;
4848   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4849 $as_echo "print -r" >&6; } ;;
4850   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4851 $as_echo "cat" >&6; } ;;
4852 esac
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4869 if ${ac_cv_path_SED+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4873      for ac_i in 1 2 3 4 5 6 7; do
4874        ac_script="$ac_script$as_nl$ac_script"
4875      done
4876      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4877      { ac_script=; unset ac_script;}
4878      if test -z "$SED"; then
4879   ac_path_SED_found=false
4880   # Loop through the user's path and test for each of PROGNAME-LIST
4881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886     for ac_prog in sed gsed; do
4887     for ac_exec_ext in '' $ac_executable_extensions; do
4888       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4889       as_fn_executable_p "$ac_path_SED" || continue
4890 # Check for GNU ac_path_SED and select it if it is found.
4891   # Check for GNU $ac_path_SED
4892 case `"$ac_path_SED" --version 2>&1` in
4893 *GNU*)
4894   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4895 *)
4896   ac_count=0
4897   $as_echo_n 0123456789 >"conftest.in"
4898   while :
4899   do
4900     cat "conftest.in" "conftest.in" >"conftest.tmp"
4901     mv "conftest.tmp" "conftest.in"
4902     cp "conftest.in" "conftest.nl"
4903     $as_echo '' >> "conftest.nl"
4904     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906     as_fn_arith $ac_count + 1 && ac_count=$as_val
4907     if test $ac_count -gt ${ac_path_SED_max-0}; then
4908       # Best one so far, save it but keep looking for a better one
4909       ac_cv_path_SED="$ac_path_SED"
4910       ac_path_SED_max=$ac_count
4911     fi
4912     # 10*(2^10) chars as input seems more than enough
4913     test $ac_count -gt 10 && break
4914   done
4915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4916 esac
4917
4918       $ac_path_SED_found && break 3
4919     done
4920   done
4921   done
4922 IFS=$as_save_IFS
4923   if test -z "$ac_cv_path_SED"; then
4924     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4925   fi
4926 else
4927   ac_cv_path_SED=$SED
4928 fi
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4932 $as_echo "$ac_cv_path_SED" >&6; }
4933  SED="$ac_cv_path_SED"
4934   rm -f conftest.sed
4935
4936 test -z "$SED" && SED=sed
4937 Xsed="$SED -e 1s/^X//"
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4951 if ${ac_cv_path_GREP+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -z "$GREP"; then
4955   ac_path_GREP_found=false
4956   # Loop through the user's path and test for each of PROGNAME-LIST
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_prog in grep ggrep; do
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4965       as_fn_executable_p "$ac_path_GREP" || continue
4966 # Check for GNU ac_path_GREP and select it if it is found.
4967   # Check for GNU $ac_path_GREP
4968 case `"$ac_path_GREP" --version 2>&1` in
4969 *GNU*)
4970   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4971 *)
4972   ac_count=0
4973   $as_echo_n 0123456789 >"conftest.in"
4974   while :
4975   do
4976     cat "conftest.in" "conftest.in" >"conftest.tmp"
4977     mv "conftest.tmp" "conftest.in"
4978     cp "conftest.in" "conftest.nl"
4979     $as_echo 'GREP' >> "conftest.nl"
4980     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4982     as_fn_arith $ac_count + 1 && ac_count=$as_val
4983     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4984       # Best one so far, save it but keep looking for a better one
4985       ac_cv_path_GREP="$ac_path_GREP"
4986       ac_path_GREP_max=$ac_count
4987     fi
4988     # 10*(2^10) chars as input seems more than enough
4989     test $ac_count -gt 10 && break
4990   done
4991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 esac
4993
4994       $ac_path_GREP_found && break 3
4995     done
4996   done
4997   done
4998 IFS=$as_save_IFS
4999   if test -z "$ac_cv_path_GREP"; then
5000     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001   fi
5002 else
5003   ac_cv_path_GREP=$GREP
5004 fi
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5008 $as_echo "$ac_cv_path_GREP" >&6; }
5009  GREP="$ac_cv_path_GREP"
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5013 $as_echo_n "checking for egrep... " >&6; }
5014 if ${ac_cv_path_EGREP+:} false; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5018    then ac_cv_path_EGREP="$GREP -E"
5019    else
5020      if test -z "$EGREP"; then
5021   ac_path_EGREP_found=false
5022   # Loop through the user's path and test for each of PROGNAME-LIST
5023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_prog in egrep; do
5029     for ac_exec_ext in '' $ac_executable_extensions; do
5030       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5031       as_fn_executable_p "$ac_path_EGREP" || continue
5032 # Check for GNU ac_path_EGREP and select it if it is found.
5033   # Check for GNU $ac_path_EGREP
5034 case `"$ac_path_EGREP" --version 2>&1` in
5035 *GNU*)
5036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5037 *)
5038   ac_count=0
5039   $as_echo_n 0123456789 >"conftest.in"
5040   while :
5041   do
5042     cat "conftest.in" "conftest.in" >"conftest.tmp"
5043     mv "conftest.tmp" "conftest.in"
5044     cp "conftest.in" "conftest.nl"
5045     $as_echo 'EGREP' >> "conftest.nl"
5046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5048     as_fn_arith $ac_count + 1 && ac_count=$as_val
5049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5050       # Best one so far, save it but keep looking for a better one
5051       ac_cv_path_EGREP="$ac_path_EGREP"
5052       ac_path_EGREP_max=$ac_count
5053     fi
5054     # 10*(2^10) chars as input seems more than enough
5055     test $ac_count -gt 10 && break
5056   done
5057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5058 esac
5059
5060       $ac_path_EGREP_found && break 3
5061     done
5062   done
5063   done
5064 IFS=$as_save_IFS
5065   if test -z "$ac_cv_path_EGREP"; then
5066     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5067   fi
5068 else
5069   ac_cv_path_EGREP=$EGREP
5070 fi
5071
5072    fi
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5075 $as_echo "$ac_cv_path_EGREP" >&6; }
5076  EGREP="$ac_cv_path_EGREP"
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5080 $as_echo_n "checking for fgrep... " >&6; }
5081 if ${ac_cv_path_FGREP+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5085    then ac_cv_path_FGREP="$GREP -F"
5086    else
5087      if test -z "$FGREP"; then
5088   ac_path_FGREP_found=false
5089   # Loop through the user's path and test for each of PROGNAME-LIST
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_prog in fgrep; do
5096     for ac_exec_ext in '' $ac_executable_extensions; do
5097       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5098       as_fn_executable_p "$ac_path_FGREP" || continue
5099 # Check for GNU ac_path_FGREP and select it if it is found.
5100   # Check for GNU $ac_path_FGREP
5101 case `"$ac_path_FGREP" --version 2>&1` in
5102 *GNU*)
5103   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5104 *)
5105   ac_count=0
5106   $as_echo_n 0123456789 >"conftest.in"
5107   while :
5108   do
5109     cat "conftest.in" "conftest.in" >"conftest.tmp"
5110     mv "conftest.tmp" "conftest.in"
5111     cp "conftest.in" "conftest.nl"
5112     $as_echo 'FGREP' >> "conftest.nl"
5113     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115     as_fn_arith $ac_count + 1 && ac_count=$as_val
5116     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5117       # Best one so far, save it but keep looking for a better one
5118       ac_cv_path_FGREP="$ac_path_FGREP"
5119       ac_path_FGREP_max=$ac_count
5120     fi
5121     # 10*(2^10) chars as input seems more than enough
5122     test $ac_count -gt 10 && break
5123   done
5124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 esac
5126
5127       $ac_path_FGREP_found && break 3
5128     done
5129   done
5130   done
5131 IFS=$as_save_IFS
5132   if test -z "$ac_cv_path_FGREP"; then
5133     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5134   fi
5135 else
5136   ac_cv_path_FGREP=$FGREP
5137 fi
5138
5139    fi
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5142 $as_echo "$ac_cv_path_FGREP" >&6; }
5143  FGREP="$ac_cv_path_FGREP"
5144
5145
5146 test -z "$GREP" && GREP=grep
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 # Check whether --with-gnu-ld was given.
5167 if test "${with_gnu_ld+set}" = set; then :
5168   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5169 else
5170   with_gnu_ld=no
5171 fi
5172
5173 ac_prog=ld
5174 if test yes = "$GCC"; then
5175   # Check if gcc -print-prog-name=ld gives a path.
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5177 $as_echo_n "checking for ld used by $CC... " >&6; }
5178   case $host in
5179   *-*-mingw*)
5180     # gcc leaves a trailing carriage return, which upsets mingw
5181     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5182   *)
5183     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5184   esac
5185   case $ac_prog in
5186     # Accept absolute paths.
5187     [\\/]* | ?:[\\/]*)
5188       re_direlt='/[^/][^/]*/\.\./'
5189       # Canonicalize the pathname of ld
5190       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5191       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5192         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5193       done
5194       test -z "$LD" && LD=$ac_prog
5195       ;;
5196   "")
5197     # If it fails, then pretend we aren't using GCC.
5198     ac_prog=ld
5199     ;;
5200   *)
5201     # If it is relative, then search for the first ld in PATH.
5202     with_gnu_ld=unknown
5203     ;;
5204   esac
5205 elif test yes = "$with_gnu_ld"; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5207 $as_echo_n "checking for GNU ld... " >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5210 $as_echo_n "checking for non-GNU ld... " >&6; }
5211 fi
5212 if ${lt_cv_path_LD+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -z "$LD"; then
5216   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5217   for ac_dir in $PATH; do
5218     IFS=$lt_save_ifs
5219     test -z "$ac_dir" && ac_dir=.
5220     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5221       lt_cv_path_LD=$ac_dir/$ac_prog
5222       # Check to see if the program is GNU ld.  I'd rather use --version,
5223       # but apparently some variants of GNU ld only accept -v.
5224       # Break only if it was the GNU/non-GNU ld that we prefer.
5225       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5226       *GNU* | *'with BFD'*)
5227         test no != "$with_gnu_ld" && break
5228         ;;
5229       *)
5230         test yes != "$with_gnu_ld" && break
5231         ;;
5232       esac
5233     fi
5234   done
5235   IFS=$lt_save_ifs
5236 else
5237   lt_cv_path_LD=$LD # Let the user override the test with a path.
5238 fi
5239 fi
5240
5241 LD=$lt_cv_path_LD
5242 if test -n "$LD"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5244 $as_echo "$LD" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5252 if ${lt_cv_prog_gnu_ld+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5256 case `$LD -v 2>&1 </dev/null` in
5257 *GNU* | *'with BFD'*)
5258   lt_cv_prog_gnu_ld=yes
5259   ;;
5260 *)
5261   lt_cv_prog_gnu_ld=no
5262   ;;
5263 esac
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5267 with_gnu_ld=$lt_cv_prog_gnu_ld
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5279 if ${lt_cv_path_NM+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$NM"; then
5283   # Let the user override the test.
5284   lt_cv_path_NM=$NM
5285 else
5286   lt_nm_to_check=${ac_tool_prefix}nm
5287   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5288     lt_nm_to_check="$lt_nm_to_check nm"
5289   fi
5290   for lt_tmp_nm in $lt_nm_to_check; do
5291     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5292     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5293       IFS=$lt_save_ifs
5294       test -z "$ac_dir" && ac_dir=.
5295       tmp_nm=$ac_dir/$lt_tmp_nm
5296       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5297         # Check to see if the nm accepts a BSD-compat flag.
5298         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5299         #   nm: unknown option "B" ignored
5300         # Tru64's nm complains that /dev/null is an invalid object file
5301         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5302         */dev/null* | *'Invalid file or object type'*)
5303           lt_cv_path_NM="$tmp_nm -B"
5304           break 2
5305           ;;
5306         *)
5307           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5308           */dev/null*)
5309             lt_cv_path_NM="$tmp_nm -p"
5310             break 2
5311             ;;
5312           *)
5313             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5314             continue # so that we can try to find one that supports BSD flags
5315             ;;
5316           esac
5317           ;;
5318         esac
5319       fi
5320     done
5321     IFS=$lt_save_ifs
5322   done
5323   : ${lt_cv_path_NM=no}
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5327 $as_echo "$lt_cv_path_NM" >&6; }
5328 if test no != "$lt_cv_path_NM"; then
5329   NM=$lt_cv_path_NM
5330 else
5331   # Didn't find any BSD compatible name lister, look for dumpbin.
5332   if test -n "$DUMPBIN"; then :
5333     # Let the user override the test.
5334   else
5335     if test -n "$ac_tool_prefix"; then
5336   for ac_prog in dumpbin "link -dump"
5337   do
5338     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_DUMPBIN+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test -n "$DUMPBIN"; then
5346   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 DUMPBIN=$ac_cv_prog_DUMPBIN
5366 if test -n "$DUMPBIN"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5368 $as_echo "$DUMPBIN" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374
5375     test -n "$DUMPBIN" && break
5376   done
5377 fi
5378 if test -z "$DUMPBIN"; then
5379   ac_ct_DUMPBIN=$DUMPBIN
5380   for ac_prog in dumpbin "link -dump"
5381 do
5382   # Extract the first word of "$ac_prog", so it can be a program name with args.
5383 set dummy $ac_prog; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if test -n "$ac_ct_DUMPBIN"; then
5390   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404   done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5410 if test -n "$ac_ct_DUMPBIN"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5412 $as_echo "$ac_ct_DUMPBIN" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418
5419   test -n "$ac_ct_DUMPBIN" && break
5420 done
5421
5422   if test "x$ac_ct_DUMPBIN" = x; then
5423     DUMPBIN=":"
5424   else
5425     case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431     DUMPBIN=$ac_ct_DUMPBIN
5432   fi
5433 fi
5434
5435     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5436     *COFF*)
5437       DUMPBIN="$DUMPBIN -symbols -headers"
5438       ;;
5439     *)
5440       DUMPBIN=:
5441       ;;
5442     esac
5443   fi
5444
5445   if test : != "$DUMPBIN"; then
5446     NM=$DUMPBIN
5447   fi
5448 fi
5449 test -z "$NM" && NM=nm
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5458 if ${lt_cv_nm_interface+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   lt_cv_nm_interface="BSD nm"
5462   echo "int some_variable = 0;" > conftest.$ac_ext
5463   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5464   (eval "$ac_compile" 2>conftest.err)
5465   cat conftest.err >&5
5466   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5467   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5468   cat conftest.err >&5
5469   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5470   cat conftest.out >&5
5471   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5472     lt_cv_nm_interface="MS dumpbin"
5473   fi
5474   rm -f conftest*
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5477 $as_echo "$lt_cv_nm_interface" >&6; }
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5480 $as_echo_n "checking whether ln -s works... " >&6; }
5481 LN_S=$as_ln_s
5482 if test "$LN_S" = "ln -s"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5487 $as_echo "no, using $LN_S" >&6; }
5488 fi
5489
5490 # find the maximum length of command line arguments
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5493 if ${lt_cv_sys_max_cmd_len+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496     i=0
5497   teststring=ABCD
5498
5499   case $build_os in
5500   msdosdjgpp*)
5501     # On DJGPP, this test can blow up pretty badly due to problems in libc
5502     # (any single argument exceeding 2000 bytes causes a buffer overrun
5503     # during glob expansion).  Even if it were fixed, the result of this
5504     # check would be larger than it should be.
5505     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5506     ;;
5507
5508   gnu*)
5509     # Under GNU Hurd, this test is not required because there is
5510     # no limit to the length of command line arguments.
5511     # Libtool will interpret -1 as no limit whatsoever
5512     lt_cv_sys_max_cmd_len=-1;
5513     ;;
5514
5515   cygwin* | mingw* | cegcc*)
5516     # On Win9x/ME, this test blows up -- it succeeds, but takes
5517     # about 5 minutes as the teststring grows exponentially.
5518     # Worse, since 9x/ME are not pre-emptively multitasking,
5519     # you end up with a "frozen" computer, even though with patience
5520     # the test eventually succeeds (with a max line length of 256k).
5521     # Instead, let's just punt: use the minimum linelength reported by
5522     # all of the supported platforms: 8192 (on NT/2K/XP).
5523     lt_cv_sys_max_cmd_len=8192;
5524     ;;
5525
5526   mint*)
5527     # On MiNT this can take a long time and run out of memory.
5528     lt_cv_sys_max_cmd_len=8192;
5529     ;;
5530
5531   amigaos*)
5532     # On AmigaOS with pdksh, this test takes hours, literally.
5533     # So we just punt and use a minimum line length of 8192.
5534     lt_cv_sys_max_cmd_len=8192;
5535     ;;
5536
5537   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5538     # This has been around since 386BSD, at least.  Likely further.
5539     if test -x /sbin/sysctl; then
5540       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5541     elif test -x /usr/sbin/sysctl; then
5542       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5543     else
5544       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5545     fi
5546     # And add a safety zone
5547     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5549     ;;
5550
5551   interix*)
5552     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5553     lt_cv_sys_max_cmd_len=196608
5554     ;;
5555
5556   os2*)
5557     # The test takes a long time on OS/2.
5558     lt_cv_sys_max_cmd_len=8192
5559     ;;
5560
5561   osf*)
5562     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5563     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5564     # nice to cause kernel panics so lets avoid the loop below.
5565     # First set a reasonable default.
5566     lt_cv_sys_max_cmd_len=16384
5567     #
5568     if test -x /sbin/sysconfig; then
5569       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5570         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5571       esac
5572     fi
5573     ;;
5574   sco3.2v5*)
5575     lt_cv_sys_max_cmd_len=102400
5576     ;;
5577   sysv5* | sco5v6* | sysv4.2uw2*)
5578     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5579     if test -n "$kargmax"; then
5580       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5581     else
5582       lt_cv_sys_max_cmd_len=32768
5583     fi
5584     ;;
5585   *)
5586     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5587     if test -n "$lt_cv_sys_max_cmd_len" && \
5588        test undefined != "$lt_cv_sys_max_cmd_len"; then
5589       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5590       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5591     else
5592       # Make teststring a little bigger before we do anything with it.
5593       # a 1K string should be a reasonable start.
5594       for i in 1 2 3 4 5 6 7 8; do
5595         teststring=$teststring$teststring
5596       done
5597       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5598       # If test is not a shell built-in, we'll probably end up computing a
5599       # maximum length that is only half of the actual maximum length, but
5600       # we can't tell.
5601       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5602                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5603               test 17 != "$i" # 1/2 MB should be enough
5604       do
5605         i=`expr $i + 1`
5606         teststring=$teststring$teststring
5607       done
5608       # Only check the string length outside the loop.
5609       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5610       teststring=
5611       # Add a significant safety factor because C++ compilers can tack on
5612       # massive amounts of additional arguments before passing them to the
5613       # linker.  It appears as though 1/2 is a usable value.
5614       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5615     fi
5616     ;;
5617   esac
5618
5619 fi
5620
5621 if test -n "$lt_cv_sys_max_cmd_len"; then
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5623 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5626 $as_echo "none" >&6; }
5627 fi
5628 max_cmd_len=$lt_cv_sys_max_cmd_len
5629
5630
5631
5632
5633
5634
5635 : ${CP="cp -f"}
5636 : ${MV="mv -f"}
5637 : ${RM="rm -f"}
5638
5639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5640   lt_unset=unset
5641 else
5642   lt_unset=false
5643 fi
5644
5645
5646
5647
5648
5649 # test EBCDIC or ASCII
5650 case `echo X|tr X '\101'` in
5651  A) # ASCII based system
5652     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5653   lt_SP2NL='tr \040 \012'
5654   lt_NL2SP='tr \015\012 \040\040'
5655   ;;
5656  *) # EBCDIC based system
5657   lt_SP2NL='tr \100 \n'
5658   lt_NL2SP='tr \r\n \100\100'
5659   ;;
5660 esac
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5671 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5672 if ${lt_cv_to_host_file_cmd+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   case $host in
5676   *-*-mingw* )
5677     case $build in
5678       *-*-mingw* ) # actually msys
5679         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5680         ;;
5681       *-*-cygwin* )
5682         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5683         ;;
5684       * ) # otherwise, assume *nix
5685         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5686         ;;
5687     esac
5688     ;;
5689   *-*-cygwin* )
5690     case $build in
5691       *-*-mingw* ) # actually msys
5692         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5693         ;;
5694       *-*-cygwin* )
5695         lt_cv_to_host_file_cmd=func_convert_file_noop
5696         ;;
5697       * ) # otherwise, assume *nix
5698         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5699         ;;
5700     esac
5701     ;;
5702   * ) # unhandled hosts (and "normal" native builds)
5703     lt_cv_to_host_file_cmd=func_convert_file_noop
5704     ;;
5705 esac
5706
5707 fi
5708
5709 to_host_file_cmd=$lt_cv_to_host_file_cmd
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5711 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5712
5713
5714
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5718 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5719 if ${lt_cv_to_tool_file_cmd+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   #assume ordinary cross tools, or native build.
5723 lt_cv_to_tool_file_cmd=func_convert_file_noop
5724 case $host in
5725   *-*-mingw* )
5726     case $build in
5727       *-*-mingw* ) # actually msys
5728         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5729         ;;
5730     esac
5731     ;;
5732 esac
5733
5734 fi
5735
5736 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5738 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5745 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5746 if ${lt_cv_ld_reload_flag+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   lt_cv_ld_reload_flag='-r'
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5752 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5753 reload_flag=$lt_cv_ld_reload_flag
5754 case $reload_flag in
5755 "" | " "*) ;;
5756 *) reload_flag=" $reload_flag" ;;
5757 esac
5758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5759 case $host_os in
5760   cygwin* | mingw* | pw32* | cegcc*)
5761     if test yes != "$GCC"; then
5762       reload_cmds=false
5763     fi
5764     ;;
5765   darwin*)
5766     if test yes = "$GCC"; then
5767       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5768     else
5769       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5770     fi
5771     ;;
5772 esac
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 if test -n "$ac_tool_prefix"; then
5783   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_OBJDUMP+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -n "$OBJDUMP"; then
5791   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 OBJDUMP=$ac_cv_prog_OBJDUMP
5811 if test -n "$OBJDUMP"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5813 $as_echo "$OBJDUMP" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820 fi
5821 if test -z "$ac_cv_prog_OBJDUMP"; then
5822   ac_ct_OBJDUMP=$OBJDUMP
5823   # Extract the first word of "objdump", so it can be a program name with args.
5824 set dummy objdump; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   if test -n "$ac_ct_OBJDUMP"; then
5831   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_exec_ext in '' $ac_executable_extensions; do
5839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845   done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5851 if test -n "$ac_ct_OBJDUMP"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5853 $as_echo "$ac_ct_OBJDUMP" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859   if test "x$ac_ct_OBJDUMP" = x; then
5860     OBJDUMP="false"
5861   else
5862     case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868     OBJDUMP=$ac_ct_OBJDUMP
5869   fi
5870 else
5871   OBJDUMP="$ac_cv_prog_OBJDUMP"
5872 fi
5873
5874 test -z "$OBJDUMP" && OBJDUMP=objdump
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5886 if ${lt_cv_deplibs_check_method+:} false; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   lt_cv_file_magic_cmd='$MAGIC_CMD'
5890 lt_cv_file_magic_test_file=
5891 lt_cv_deplibs_check_method='unknown'
5892 # Need to set the preceding variable on all platforms that support
5893 # interlibrary dependencies.
5894 # 'none' -- dependencies not supported.
5895 # 'unknown' -- same as none, but documents that we really don't know.
5896 # 'pass_all' -- all dependencies passed with no checks.
5897 # 'test_compile' -- check by making test program.
5898 # 'file_magic [[regex]]' -- check by looking for files in library path
5899 # that responds to the $file_magic_cmd with a given extended regex.
5900 # If you have 'file' or equivalent on your system and you're not sure
5901 # whether 'pass_all' will *always* work, you probably want this one.
5902
5903 case $host_os in
5904 aix[4-9]*)
5905   lt_cv_deplibs_check_method=pass_all
5906   ;;
5907
5908 beos*)
5909   lt_cv_deplibs_check_method=pass_all
5910   ;;
5911
5912 bsdi[45]*)
5913   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5914   lt_cv_file_magic_cmd='/usr/bin/file -L'
5915   lt_cv_file_magic_test_file=/shlib/libc.so
5916   ;;
5917
5918 cygwin*)
5919   # func_win32_libid is a shell function defined in ltmain.sh
5920   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5921   lt_cv_file_magic_cmd='func_win32_libid'
5922   ;;
5923
5924 mingw* | pw32*)
5925   # Base MSYS/MinGW do not provide the 'file' command needed by
5926   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5927   # unless we find 'file', for example because we are cross-compiling.
5928   if ( file / ) >/dev/null 2>&1; then
5929     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930     lt_cv_file_magic_cmd='func_win32_libid'
5931   else
5932     # Keep this pattern in sync with the one in func_win32_libid.
5933     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5934     lt_cv_file_magic_cmd='$OBJDUMP -f'
5935   fi
5936   ;;
5937
5938 cegcc*)
5939   # use the weaker test based on 'objdump'. See mingw*.
5940   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5941   lt_cv_file_magic_cmd='$OBJDUMP -f'
5942   ;;
5943
5944 darwin* | rhapsody*)
5945   lt_cv_deplibs_check_method=pass_all
5946   ;;
5947
5948 freebsd* | dragonfly*)
5949   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5950     case $host_cpu in
5951     i*86 )
5952       # Not sure whether the presence of OpenBSD here was a mistake.
5953       # Let's accept both of them until this is cleared up.
5954       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5955       lt_cv_file_magic_cmd=/usr/bin/file
5956       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5957       ;;
5958     esac
5959   else
5960     lt_cv_deplibs_check_method=pass_all
5961   fi
5962   ;;
5963
5964 haiku*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 hpux10.20* | hpux11*)
5969   lt_cv_file_magic_cmd=/usr/bin/file
5970   case $host_cpu in
5971   ia64*)
5972     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5973     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5974     ;;
5975   hppa*64*)
5976     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]'
5977     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5978     ;;
5979   *)
5980     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5981     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5982     ;;
5983   esac
5984   ;;
5985
5986 interix[3-9]*)
5987   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5988   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5989   ;;
5990
5991 irix5* | irix6* | nonstopux*)
5992   case $LD in
5993   *-32|*"-32 ") libmagic=32-bit;;
5994   *-n32|*"-n32 ") libmagic=N32;;
5995   *-64|*"-64 ") libmagic=64-bit;;
5996   *) libmagic=never-match;;
5997   esac
5998   lt_cv_deplibs_check_method=pass_all
5999   ;;
6000
6001 # This must be glibc/ELF.
6002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 netbsd*)
6007   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6008     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6009   else
6010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6011   fi
6012   ;;
6013
6014 newos6*)
6015   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6016   lt_cv_file_magic_cmd=/usr/bin/file
6017   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6018   ;;
6019
6020 *nto* | *qnx*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 openbsd* | bitrig*)
6025   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6026     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6027   else
6028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6029   fi
6030   ;;
6031
6032 osf3* | osf4* | osf5*)
6033   lt_cv_deplibs_check_method=pass_all
6034   ;;
6035
6036 rdos*)
6037   lt_cv_deplibs_check_method=pass_all
6038   ;;
6039
6040 solaris*)
6041   lt_cv_deplibs_check_method=pass_all
6042   ;;
6043
6044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6045   lt_cv_deplibs_check_method=pass_all
6046   ;;
6047
6048 sysv4 | sysv4.3*)
6049   case $host_vendor in
6050   motorola)
6051     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]'
6052     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6053     ;;
6054   ncr)
6055     lt_cv_deplibs_check_method=pass_all
6056     ;;
6057   sequent)
6058     lt_cv_file_magic_cmd='/bin/file'
6059     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6060     ;;
6061   sni)
6062     lt_cv_file_magic_cmd='/bin/file'
6063     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6064     lt_cv_file_magic_test_file=/lib/libc.so
6065     ;;
6066   siemens)
6067     lt_cv_deplibs_check_method=pass_all
6068     ;;
6069   pc)
6070     lt_cv_deplibs_check_method=pass_all
6071     ;;
6072   esac
6073   ;;
6074
6075 tpf*)
6076   lt_cv_deplibs_check_method=pass_all
6077   ;;
6078 esac
6079
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6082 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6083
6084 file_magic_glob=
6085 want_nocaseglob=no
6086 if test "$build" = "$host"; then
6087   case $host_os in
6088   mingw* | pw32*)
6089     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6090       want_nocaseglob=yes
6091     else
6092       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6093     fi
6094     ;;
6095   esac
6096 fi
6097
6098 file_magic_cmd=$lt_cv_file_magic_cmd
6099 deplibs_check_method=$lt_cv_deplibs_check_method
6100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 if test -n "$ac_tool_prefix"; then
6124   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_DLLTOOL+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$DLLTOOL"; then
6132   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 DLLTOOL=$ac_cv_prog_DLLTOOL
6152 if test -n "$DLLTOOL"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6154 $as_echo "$DLLTOOL" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_DLLTOOL"; then
6163   ac_ct_DLLTOOL=$DLLTOOL
6164   # Extract the first word of "dlltool", so it can be a program name with args.
6165 set dummy dlltool; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   if test -n "$ac_ct_DLLTOOL"; then
6172   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186   done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6192 if test -n "$ac_ct_DLLTOOL"; then
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6194 $as_echo "$ac_ct_DLLTOOL" >&6; }
6195 else
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200   if test "x$ac_ct_DLLTOOL" = x; then
6201     DLLTOOL="false"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     DLLTOOL=$ac_ct_DLLTOOL
6210   fi
6211 else
6212   DLLTOOL="$ac_cv_prog_DLLTOOL"
6213 fi
6214
6215 test -z "$DLLTOOL" && DLLTOOL=dlltool
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6227 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6228 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   lt_cv_sharedlib_from_linklib_cmd='unknown'
6232
6233 case $host_os in
6234 cygwin* | mingw* | pw32* | cegcc*)
6235   # two different shell functions defined in ltmain.sh;
6236   # decide which one to use based on capabilities of $DLLTOOL
6237   case `$DLLTOOL --help 2>&1` in
6238   *--identify-strict*)
6239     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6240     ;;
6241   *)
6242     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6243     ;;
6244   esac
6245   ;;
6246 *)
6247   # fallback: assume linklib IS sharedlib
6248   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6249   ;;
6250 esac
6251
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6254 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6255 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6256 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6257
6258
6259
6260
6261
6262
6263
6264 if test -n "$ac_tool_prefix"; then
6265   for ac_prog in ar
6266   do
6267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_AR+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   if test -n "$AR"; then
6275   ac_cv_prog_AR="$AR" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282     for ac_exec_ext in '' $ac_executable_extensions; do
6283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289   done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 AR=$ac_cv_prog_AR
6295 if test -n "$AR"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6297 $as_echo "$AR" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304     test -n "$AR" && break
6305   done
6306 fi
6307 if test -z "$AR"; then
6308   ac_ct_AR=$AR
6309   for ac_prog in ar
6310 do
6311   # Extract the first word of "$ac_prog", so it can be a program name with args.
6312 set dummy $ac_prog; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   if test -n "$ac_ct_AR"; then
6319   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_prog_ac_ct_AR="$ac_prog"
6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333   done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6339 if test -n "$ac_ct_AR"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6341 $as_echo "$ac_ct_AR" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346
6347
6348   test -n "$ac_ct_AR" && break
6349 done
6350
6351   if test "x$ac_ct_AR" = x; then
6352     AR="false"
6353   else
6354     case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360     AR=$ac_ct_AR
6361   fi
6362 fi
6363
6364 : ${AR=ar}
6365 : ${AR_FLAGS=cru}
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6378 $as_echo_n "checking for archiver @FILE support... " >&6; }
6379 if ${lt_cv_ar_at_file+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   lt_cv_ar_at_file=no
6383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h.  */
6385
6386 int
6387 main ()
6388 {
6389
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395   echo conftest.$ac_objext > conftest.lst
6396       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6397       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6398   (eval $lt_ar_try) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401   test $ac_status = 0; }
6402       if test 0 -eq "$ac_status"; then
6403         # Ensure the archiver fails upon bogus file names.
6404         rm -f conftest.$ac_objext libconftest.a
6405         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6406   (eval $lt_ar_try) 2>&5
6407   ac_status=$?
6408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409   test $ac_status = 0; }
6410         if test 0 -ne "$ac_status"; then
6411           lt_cv_ar_at_file=@
6412         fi
6413       fi
6414       rm -f conftest.* libconftest.a
6415
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6421 $as_echo "$lt_cv_ar_at_file" >&6; }
6422
6423 if test no = "$lt_cv_ar_at_file"; then
6424   archiver_list_spec=
6425 else
6426   archiver_list_spec=$lt_cv_ar_at_file
6427 fi
6428
6429
6430
6431
6432
6433
6434
6435 if test -n "$ac_tool_prefix"; then
6436   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}strip; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_STRIP+:} false; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$STRIP"; then
6444   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451     for ac_exec_ext in '' $ac_executable_extensions; do
6452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458   done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 STRIP=$ac_cv_prog_STRIP
6464 if test -n "$STRIP"; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6466 $as_echo "$STRIP" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_STRIP"; then
6475   ac_ct_STRIP=$STRIP
6476   # Extract the first word of "strip", so it can be a program name with args.
6477 set dummy strip; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   if test -n "$ac_ct_STRIP"; then
6484   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491     for ac_exec_ext in '' $ac_executable_extensions; do
6492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493     ac_cv_prog_ac_ct_STRIP="strip"
6494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498   done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6504 if test -n "$ac_ct_STRIP"; then
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6506 $as_echo "$ac_ct_STRIP" >&6; }
6507 else
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512   if test "x$ac_ct_STRIP" = x; then
6513     STRIP=":"
6514   else
6515     case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521     STRIP=$ac_ct_STRIP
6522   fi
6523 else
6524   STRIP="$ac_cv_prog_STRIP"
6525 fi
6526
6527 test -z "$STRIP" && STRIP=:
6528
6529
6530
6531
6532
6533
6534 if test -n "$ac_tool_prefix"; then
6535   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_RANLIB+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$RANLIB"; then
6543   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 RANLIB=$ac_cv_prog_RANLIB
6563 if test -n "$RANLIB"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6565 $as_echo "$RANLIB" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_RANLIB"; then
6574   ac_ct_RANLIB=$RANLIB
6575   # Extract the first word of "ranlib", so it can be a program name with args.
6576 set dummy ranlib; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   if test -n "$ac_ct_RANLIB"; then
6583   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590     for ac_exec_ext in '' $ac_executable_extensions; do
6591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_prog_ac_ct_RANLIB="ranlib"
6593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597   done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6603 if test -n "$ac_ct_RANLIB"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6605 $as_echo "$ac_ct_RANLIB" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611   if test "x$ac_ct_RANLIB" = x; then
6612     RANLIB=":"
6613   else
6614     case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620     RANLIB=$ac_ct_RANLIB
6621   fi
6622 else
6623   RANLIB="$ac_cv_prog_RANLIB"
6624 fi
6625
6626 test -z "$RANLIB" && RANLIB=:
6627
6628
6629
6630
6631
6632
6633 # Determine commands to create old-style static archives.
6634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6635 old_postinstall_cmds='chmod 644 $oldlib'
6636 old_postuninstall_cmds=
6637
6638 if test -n "$RANLIB"; then
6639   case $host_os in
6640   bitrig* | openbsd*)
6641     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6642     ;;
6643   *)
6644     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6645     ;;
6646   esac
6647   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6648 fi
6649
6650 case $host_os in
6651   darwin*)
6652     lock_old_archive_extraction=yes ;;
6653   *)
6654     lock_old_archive_extraction=no ;;
6655 esac
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 # If no C compiler was specified, use CC.
6696 LTCC=${LTCC-"$CC"}
6697
6698 # If no C compiler flags were specified, use CFLAGS.
6699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6700
6701 # Allow CC to be a program name with arguments.
6702 compiler=$CC
6703
6704
6705 # Check for command to grab the raw symbol name followed by C symbol from nm.
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6707 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6708 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711
6712 # These are sane defaults that work on at least a few old systems.
6713 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6714
6715 # Character class describing NM global symbol codes.
6716 symcode='[BCDEGRST]'
6717
6718 # Regexp to match symbols that can be accessed directly from C.
6719 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6720
6721 # Define system-specific variables.
6722 case $host_os in
6723 aix*)
6724   symcode='[BCDT]'
6725   ;;
6726 cygwin* | mingw* | pw32* | cegcc*)
6727   symcode='[ABCDGISTW]'
6728   ;;
6729 hpux*)
6730   if test ia64 = "$host_cpu"; then
6731     symcode='[ABCDEGRST]'
6732   fi
6733   ;;
6734 irix* | nonstopux*)
6735   symcode='[BCDEGRST]'
6736   ;;
6737 osf*)
6738   symcode='[BCDEGQRST]'
6739   ;;
6740 solaris*)
6741   symcode='[BDRT]'
6742   ;;
6743 sco3.2v5*)
6744   symcode='[DT]'
6745   ;;
6746 sysv4.2uw2*)
6747   symcode='[DT]'
6748   ;;
6749 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6750   symcode='[ABDT]'
6751   ;;
6752 sysv4)
6753   symcode='[DFNSTU]'
6754   ;;
6755 esac
6756
6757 # If we're using GNU nm, then use its standard symbol codes.
6758 case `$NM -V 2>&1` in
6759 *GNU* | *'with BFD'*)
6760   symcode='[ABCDGIRSTW]' ;;
6761 esac
6762
6763 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6764   # Gets list of data symbols to import.
6765   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6766   # Adjust the below global symbol transforms to fixup imported variables.
6767   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6768   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6769   lt_c_name_lib_hook="\
6770   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6771   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6772 else
6773   # Disable hooks by default.
6774   lt_cv_sys_global_symbol_to_import=
6775   lt_cdecl_hook=
6776   lt_c_name_hook=
6777   lt_c_name_lib_hook=
6778 fi
6779
6780 # Transform an extracted symbol line into a proper C declaration.
6781 # Some systems (esp. on ia64) link data and code symbols differently,
6782 # so use this general approach.
6783 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6784 $lt_cdecl_hook\
6785 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6786 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6787
6788 # Transform an extracted symbol line into symbol name and symbol address
6789 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6790 $lt_c_name_hook\
6791 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6792 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6793
6794 # Transform an extracted symbol line into symbol name with lib prefix and
6795 # symbol address.
6796 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6797 $lt_c_name_lib_hook\
6798 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6799 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6800 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6801
6802 # Handle CRLF in mingw tool chain
6803 opt_cr=
6804 case $build_os in
6805 mingw*)
6806   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6807   ;;
6808 esac
6809
6810 # Try without a prefix underscore, then with it.
6811 for ac_symprfx in "" "_"; do
6812
6813   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6814   symxfrm="\\1 $ac_symprfx\\2 \\2"
6815
6816   # Write the raw and C identifiers.
6817   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6818     # Fake it for dumpbin and say T for any non-static function,
6819     # D for any global variable and I for any imported variable.
6820     # Also find C++ and __fastcall symbols from MSVC++,
6821     # which start with @ or ?.
6822     lt_cv_sys_global_symbol_pipe="$AWK '"\
6823 "     {last_section=section; section=\$ 3};"\
6824 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6825 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6826 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6827 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6828 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6829 "     \$ 0!~/External *\|/{next};"\
6830 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6831 "     {if(hide[section]) next};"\
6832 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6833 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6834 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6835 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6836 "     ' prfx=^$ac_symprfx"
6837   else
6838     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6839   fi
6840   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6841
6842   # Check to see that the pipe works correctly.
6843   pipe_works=no
6844
6845   rm -f conftest*
6846   cat > conftest.$ac_ext <<_LT_EOF
6847 #ifdef __cplusplus
6848 extern "C" {
6849 #endif
6850 char nm_test_var;
6851 void nm_test_func(void);
6852 void nm_test_func(void){}
6853 #ifdef __cplusplus
6854 }
6855 #endif
6856 int main(){nm_test_var='a';nm_test_func();return(0);}
6857 _LT_EOF
6858
6859   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860   (eval $ac_compile) 2>&5
6861   ac_status=$?
6862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863   test $ac_status = 0; }; then
6864     # Now try to grab the symbols.
6865     nlist=conftest.nm
6866     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6867   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6868   ac_status=$?
6869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870   test $ac_status = 0; } && test -s "$nlist"; then
6871       # Try sorting and uniquifying the output.
6872       if sort "$nlist" | uniq > "$nlist"T; then
6873         mv -f "$nlist"T "$nlist"
6874       else
6875         rm -f "$nlist"T
6876       fi
6877
6878       # Make sure that we snagged all the symbols we need.
6879       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6880         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6881           cat <<_LT_EOF > conftest.$ac_ext
6882 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6883 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6884 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6885    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6886 # define LT_DLSYM_CONST
6887 #elif defined __osf__
6888 /* This system does not cope well with relocations in const data.  */
6889 # define LT_DLSYM_CONST
6890 #else
6891 # define LT_DLSYM_CONST const
6892 #endif
6893
6894 #ifdef __cplusplus
6895 extern "C" {
6896 #endif
6897
6898 _LT_EOF
6899           # Now generate the symbol file.
6900           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6901
6902           cat <<_LT_EOF >> conftest.$ac_ext
6903
6904 /* The mapping between symbol names and symbols.  */
6905 LT_DLSYM_CONST struct {
6906   const char *name;
6907   void       *address;
6908 }
6909 lt__PROGRAM__LTX_preloaded_symbols[] =
6910 {
6911   { "@PROGRAM@", (void *) 0 },
6912 _LT_EOF
6913           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6914           cat <<\_LT_EOF >> conftest.$ac_ext
6915   {0, (void *) 0}
6916 };
6917
6918 /* This works around a problem in FreeBSD linker */
6919 #ifdef FREEBSD_WORKAROUND
6920 static const void *lt_preloaded_setup() {
6921   return lt__PROGRAM__LTX_preloaded_symbols;
6922 }
6923 #endif
6924
6925 #ifdef __cplusplus
6926 }
6927 #endif
6928 _LT_EOF
6929           # Now try linking the two files.
6930           mv conftest.$ac_objext conftstm.$ac_objext
6931           lt_globsym_save_LIBS=$LIBS
6932           lt_globsym_save_CFLAGS=$CFLAGS
6933           LIBS=conftstm.$ac_objext
6934           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6935           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6940             pipe_works=yes
6941           fi
6942           LIBS=$lt_globsym_save_LIBS
6943           CFLAGS=$lt_globsym_save_CFLAGS
6944         else
6945           echo "cannot find nm_test_func in $nlist" >&5
6946         fi
6947       else
6948         echo "cannot find nm_test_var in $nlist" >&5
6949       fi
6950     else
6951       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6952     fi
6953   else
6954     echo "$progname: failed program was:" >&5
6955     cat conftest.$ac_ext >&5
6956   fi
6957   rm -rf conftest* conftst*
6958
6959   # Do not use the global_symbol_pipe unless it works.
6960   if test yes = "$pipe_works"; then
6961     break
6962   else
6963     lt_cv_sys_global_symbol_pipe=
6964   fi
6965 done
6966
6967 fi
6968
6969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6970   lt_cv_sys_global_symbol_to_cdecl=
6971 fi
6972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6974 $as_echo "failed" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6977 $as_echo "ok" >&6; }
6978 fi
6979
6980 # Response file support.
6981 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6982   nm_file_list_spec='@'
6983 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6984   nm_file_list_spec='@'
6985 fi
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7024 $as_echo_n "checking for sysroot... " >&6; }
7025
7026 # Check whether --with-sysroot was given.
7027 if test "${with_sysroot+set}" = set; then :
7028   withval=$with_sysroot;
7029 else
7030   with_sysroot=no
7031 fi
7032
7033
7034 lt_sysroot=
7035 case $with_sysroot in #(
7036  yes)
7037    if test yes = "$GCC"; then
7038      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7039    fi
7040    ;; #(
7041  /*)
7042    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7043    ;; #(
7044  no|'')
7045    ;; #(
7046  *)
7047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7048 $as_echo "$with_sysroot" >&6; }
7049    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7050    ;;
7051 esac
7052
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7054 $as_echo "${lt_sysroot:-no}" >&6; }
7055
7056
7057
7058
7059
7060 # Check whether --enable-libtool-lock was given.
7061 if test "${enable_libtool_lock+set}" = set; then :
7062   enableval=$enable_libtool_lock;
7063 fi
7064
7065 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7066
7067 # Some flags need to be propagated to the compiler or linker for good
7068 # libtool support.
7069 case $host in
7070 ia64-*-hpux*)
7071   # Find out what ABI is being produced by ac_compile, and set mode
7072   # options accordingly.
7073   echo 'int i;' > conftest.$ac_ext
7074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075   (eval $ac_compile) 2>&5
7076   ac_status=$?
7077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078   test $ac_status = 0; }; then
7079     case `/usr/bin/file conftest.$ac_objext` in
7080       *ELF-32*)
7081         HPUX_IA64_MODE=32
7082         ;;
7083       *ELF-64*)
7084         HPUX_IA64_MODE=64
7085         ;;
7086     esac
7087   fi
7088   rm -rf conftest*
7089   ;;
7090 *-*-irix6*)
7091   # Find out what ABI is being produced by ac_compile, and set linker
7092   # options accordingly.
7093   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095   (eval $ac_compile) 2>&5
7096   ac_status=$?
7097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098   test $ac_status = 0; }; then
7099     if test yes = "$lt_cv_prog_gnu_ld"; then
7100       case `/usr/bin/file conftest.$ac_objext` in
7101         *32-bit*)
7102           LD="${LD-ld} -melf32bsmip"
7103           ;;
7104         *N32*)
7105           LD="${LD-ld} -melf32bmipn32"
7106           ;;
7107         *64-bit*)
7108           LD="${LD-ld} -melf64bmip"
7109         ;;
7110       esac
7111     else
7112       case `/usr/bin/file conftest.$ac_objext` in
7113         *32-bit*)
7114           LD="${LD-ld} -32"
7115           ;;
7116         *N32*)
7117           LD="${LD-ld} -n32"
7118           ;;
7119         *64-bit*)
7120           LD="${LD-ld} -64"
7121           ;;
7122       esac
7123     fi
7124   fi
7125   rm -rf conftest*
7126   ;;
7127
7128 mips64*-*linux*)
7129   # Find out what ABI is being produced by ac_compile, and set linker
7130   # options accordingly.
7131   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7132   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7133   (eval $ac_compile) 2>&5
7134   ac_status=$?
7135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136   test $ac_status = 0; }; then
7137     emul=elf
7138     case `/usr/bin/file conftest.$ac_objext` in
7139       *32-bit*)
7140         emul="${emul}32"
7141         ;;
7142       *64-bit*)
7143         emul="${emul}64"
7144         ;;
7145     esac
7146     case `/usr/bin/file conftest.$ac_objext` in
7147       *MSB*)
7148         emul="${emul}btsmip"
7149         ;;
7150       *LSB*)
7151         emul="${emul}ltsmip"
7152         ;;
7153     esac
7154     case `/usr/bin/file conftest.$ac_objext` in
7155       *N32*)
7156         emul="${emul}n32"
7157         ;;
7158     esac
7159     LD="${LD-ld} -m $emul"
7160   fi
7161   rm -rf conftest*
7162   ;;
7163
7164 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7165 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7166   # Find out what ABI is being produced by ac_compile, and set linker
7167   # options accordingly.  Note that the listed cases only cover the
7168   # situations where additional linker options are needed (such as when
7169   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7170   # vice versa); the common cases where no linker options are needed do
7171   # not appear in the list.
7172   echo 'int i;' > conftest.$ac_ext
7173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174   (eval $ac_compile) 2>&5
7175   ac_status=$?
7176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177   test $ac_status = 0; }; then
7178     case `/usr/bin/file conftest.o` in
7179       *32-bit*)
7180         case $host in
7181           x86_64-*kfreebsd*-gnu)
7182             LD="${LD-ld} -m elf_i386_fbsd"
7183             ;;
7184           x86_64-*linux*)
7185             case `/usr/bin/file conftest.o` in
7186               *x86-64*)
7187                 LD="${LD-ld} -m elf32_x86_64"
7188                 ;;
7189               *)
7190                 LD="${LD-ld} -m elf_i386"
7191                 ;;
7192             esac
7193             ;;
7194           powerpc64le-*linux*)
7195             LD="${LD-ld} -m elf32lppclinux"
7196             ;;
7197           powerpc64-*linux*)
7198             LD="${LD-ld} -m elf32ppclinux"
7199             ;;
7200           s390x-*linux*)
7201             LD="${LD-ld} -m elf_s390"
7202             ;;
7203           sparc64-*linux*)
7204             LD="${LD-ld} -m elf32_sparc"
7205             ;;
7206         esac
7207         ;;
7208       *64-bit*)
7209         case $host in
7210           x86_64-*kfreebsd*-gnu)
7211             LD="${LD-ld} -m elf_x86_64_fbsd"
7212             ;;
7213           x86_64-*linux*)
7214             LD="${LD-ld} -m elf_x86_64"
7215             ;;
7216           powerpcle-*linux*)
7217             LD="${LD-ld} -m elf64lppc"
7218             ;;
7219           powerpc-*linux*)
7220             LD="${LD-ld} -m elf64ppc"
7221             ;;
7222           s390*-*linux*|s390*-*tpf*)
7223             LD="${LD-ld} -m elf64_s390"
7224             ;;
7225           sparc*-*linux*)
7226             LD="${LD-ld} -m elf64_sparc"
7227             ;;
7228         esac
7229         ;;
7230     esac
7231   fi
7232   rm -rf conftest*
7233   ;;
7234
7235 *-*-sco3.2v5*)
7236   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7237   SAVE_CFLAGS=$CFLAGS
7238   CFLAGS="$CFLAGS -belf"
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7240 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7241 if ${lt_cv_cc_needs_belf+:} false; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249
7250      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h.  */
7252
7253 int
7254 main ()
7255 {
7256
7257   ;
7258   return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_link "$LINENO"; then :
7262   lt_cv_cc_needs_belf=yes
7263 else
7264   lt_cv_cc_needs_belf=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext \
7267     conftest$ac_exeext conftest.$ac_ext
7268      ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7276 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7277   if test yes != "$lt_cv_cc_needs_belf"; then
7278     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7279     CFLAGS=$SAVE_CFLAGS
7280   fi
7281   ;;
7282 *-*solaris*)
7283   # Find out what ABI is being produced by ac_compile, and set linker
7284   # options accordingly.
7285   echo 'int i;' > conftest.$ac_ext
7286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287   (eval $ac_compile) 2>&5
7288   ac_status=$?
7289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290   test $ac_status = 0; }; then
7291     case `/usr/bin/file conftest.o` in
7292     *64-bit*)
7293       case $lt_cv_prog_gnu_ld in
7294       yes*)
7295         case $host in
7296         i?86-*-solaris*|x86_64-*-solaris*)
7297           LD="${LD-ld} -m elf_x86_64"
7298           ;;
7299         sparc*-*-solaris*)
7300           LD="${LD-ld} -m elf64_sparc"
7301           ;;
7302         esac
7303         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7304         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7305           LD=${LD-ld}_sol2
7306         fi
7307         ;;
7308       *)
7309         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310           LD="${LD-ld} -64"
7311         fi
7312         ;;
7313       esac
7314       ;;
7315     esac
7316   fi
7317   rm -rf conftest*
7318   ;;
7319 esac
7320
7321 need_locks=$enable_libtool_lock
7322
7323 if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}mt; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$MANIFEST_TOOL"; then
7332   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7352 if test -n "$MANIFEST_TOOL"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7354 $as_echo "$MANIFEST_TOOL" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7363   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7364   # Extract the first word of "mt", so it can be a program name with args.
7365 set dummy mt; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_MANIFEST_TOOL"; then
7372   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7392 if test -n "$ac_ct_MANIFEST_TOOL"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7394 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7401     MANIFEST_TOOL=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7410   fi
7411 else
7412   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7413 fi
7414
7415 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7417 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7418 if ${lt_cv_path_mainfest_tool+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   lt_cv_path_mainfest_tool=no
7422   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7423   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7424   cat conftest.err >&5
7425   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7426     lt_cv_path_mainfest_tool=yes
7427   fi
7428   rm -f conftest*
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7431 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7432 if test yes != "$lt_cv_path_mainfest_tool"; then
7433   MANIFEST_TOOL=:
7434 fi
7435
7436
7437
7438
7439
7440
7441   case $host_os in
7442     rhapsody* | darwin*)
7443     if test -n "$ac_tool_prefix"; then
7444   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   if test -n "$DSYMUTIL"; then
7452   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459     for ac_exec_ext in '' $ac_executable_extensions; do
7460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466   done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7472 if test -n "$DSYMUTIL"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7474 $as_echo "$DSYMUTIL" >&6; }
7475 else
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 fi
7482 if test -z "$ac_cv_prog_DSYMUTIL"; then
7483   ac_ct_DSYMUTIL=$DSYMUTIL
7484   # Extract the first word of "dsymutil", so it can be a program name with args.
7485 set dummy dsymutil; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$ac_ct_DSYMUTIL"; then
7492   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7512 if test -n "$ac_ct_DSYMUTIL"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7514 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520   if test "x$ac_ct_DSYMUTIL" = x; then
7521     DSYMUTIL=":"
7522   else
7523     case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529     DSYMUTIL=$ac_ct_DSYMUTIL
7530   fi
7531 else
7532   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7533 fi
7534
7535     if test -n "$ac_tool_prefix"; then
7536   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_NMEDIT+:} false; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$NMEDIT"; then
7544   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 NMEDIT=$ac_cv_prog_NMEDIT
7564 if test -n "$NMEDIT"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7566 $as_echo "$NMEDIT" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572
7573 fi
7574 if test -z "$ac_cv_prog_NMEDIT"; then
7575   ac_ct_NMEDIT=$NMEDIT
7576   # Extract the first word of "nmedit", so it can be a program name with args.
7577 set dummy nmedit; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$ac_ct_NMEDIT"; then
7584   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7604 if test -n "$ac_ct_NMEDIT"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7606 $as_echo "$ac_ct_NMEDIT" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612   if test "x$ac_ct_NMEDIT" = x; then
7613     NMEDIT=":"
7614   else
7615     case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621     NMEDIT=$ac_ct_NMEDIT
7622   fi
7623 else
7624   NMEDIT="$ac_cv_prog_NMEDIT"
7625 fi
7626
7627     if test -n "$ac_tool_prefix"; then
7628   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_LIPO+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$LIPO"; then
7636   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_exec_ext in '' $ac_executable_extensions; do
7644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650   done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 LIPO=$ac_cv_prog_LIPO
7656 if test -n "$LIPO"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7658 $as_echo "$LIPO" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664
7665 fi
7666 if test -z "$ac_cv_prog_LIPO"; then
7667   ac_ct_LIPO=$LIPO
7668   # Extract the first word of "lipo", so it can be a program name with args.
7669 set dummy lipo; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$ac_ct_LIPO"; then
7676   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_prog_ac_ct_LIPO="lipo"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7696 if test -n "$ac_ct_LIPO"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7698 $as_echo "$ac_ct_LIPO" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704   if test "x$ac_ct_LIPO" = x; then
7705     LIPO=":"
7706   else
7707     case $cross_compiling:$ac_tool_warned in
7708 yes:)
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7712 esac
7713     LIPO=$ac_ct_LIPO
7714   fi
7715 else
7716   LIPO="$ac_cv_prog_LIPO"
7717 fi
7718
7719     if test -n "$ac_tool_prefix"; then
7720   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}otool; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_prog_OTOOL+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   if test -n "$OTOOL"; then
7728   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735     for ac_exec_ext in '' $ac_executable_extensions; do
7736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742   done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 OTOOL=$ac_cv_prog_OTOOL
7748 if test -n "$OTOOL"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7750 $as_echo "$OTOOL" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757 fi
7758 if test -z "$ac_cv_prog_OTOOL"; then
7759   ac_ct_OTOOL=$OTOOL
7760   # Extract the first word of "otool", so it can be a program name with args.
7761 set dummy otool; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$ac_ct_OTOOL"; then
7768   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775     for ac_exec_ext in '' $ac_executable_extensions; do
7776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_prog_ac_ct_OTOOL="otool"
7778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782   done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7788 if test -n "$ac_ct_OTOOL"; then
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7790 $as_echo "$ac_ct_OTOOL" >&6; }
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796   if test "x$ac_ct_OTOOL" = x; then
7797     OTOOL=":"
7798   else
7799     case $cross_compiling:$ac_tool_warned in
7800 yes:)
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7804 esac
7805     OTOOL=$ac_ct_OTOOL
7806   fi
7807 else
7808   OTOOL="$ac_cv_prog_OTOOL"
7809 fi
7810
7811     if test -n "$ac_tool_prefix"; then
7812   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_OTOOL64+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$OTOOL64"; then
7820   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 OTOOL64=$ac_cv_prog_OTOOL64
7840 if test -n "$OTOOL64"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7842 $as_echo "$OTOOL64" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 fi
7850 if test -z "$ac_cv_prog_OTOOL64"; then
7851   ac_ct_OTOOL64=$OTOOL64
7852   # Extract the first word of "otool64", so it can be a program name with args.
7853 set dummy otool64; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$ac_ct_OTOOL64"; then
7860   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_prog_ac_ct_OTOOL64="otool64"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7880 if test -n "$ac_ct_OTOOL64"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7882 $as_echo "$ac_ct_OTOOL64" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888   if test "x$ac_ct_OTOOL64" = x; then
7889     OTOOL64=":"
7890   else
7891     case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897     OTOOL64=$ac_ct_OTOOL64
7898   fi
7899 else
7900   OTOOL64="$ac_cv_prog_OTOOL64"
7901 fi
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7930 $as_echo_n "checking for -single_module linker flag... " >&6; }
7931 if ${lt_cv_apple_cc_single_mod+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   lt_cv_apple_cc_single_mod=no
7935       if test -z "$LT_MULTI_MODULE"; then
7936         # By default we will add the -single_module flag. You can override
7937         # by either setting the environment variable LT_MULTI_MODULE
7938         # non-empty at configure time, or by adding -multi_module to the
7939         # link flags.
7940         rm -rf libconftest.dylib*
7941         echo "int foo(void){return 1;}" > conftest.c
7942         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7943 -dynamiclib -Wl,-single_module conftest.c" >&5
7944         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7945           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7946         _lt_result=$?
7947         # If there is a non-empty error log, and "single_module"
7948         # appears in it, assume the flag caused a linker warning
7949         if test -s conftest.err && $GREP single_module conftest.err; then
7950           cat conftest.err >&5
7951         # Otherwise, if the output was created with a 0 exit code from
7952         # the compiler, it worked.
7953         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7954           lt_cv_apple_cc_single_mod=yes
7955         else
7956           cat conftest.err >&5
7957         fi
7958         rm -rf libconftest.dylib*
7959         rm -f conftest.*
7960       fi
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7963 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7964
7965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7966 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7967 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   lt_cv_ld_exported_symbols_list=no
7971       save_LDFLAGS=$LDFLAGS
7972       echo "_main" > conftest.sym
7973       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7974       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h.  */
7976
7977 int
7978 main ()
7979 {
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986   lt_cv_ld_exported_symbols_list=yes
7987 else
7988   lt_cv_ld_exported_symbols_list=no
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext \
7991     conftest$ac_exeext conftest.$ac_ext
7992         LDFLAGS=$save_LDFLAGS
7993
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7996 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7997
7998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7999 $as_echo_n "checking for -force_load linker flag... " >&6; }
8000 if ${lt_cv_ld_force_load+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   lt_cv_ld_force_load=no
8004       cat > conftest.c << _LT_EOF
8005 int forced_loaded() { return 2;}
8006 _LT_EOF
8007       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8008       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8009       echo "$AR cru libconftest.a conftest.o" >&5
8010       $AR cru libconftest.a conftest.o 2>&5
8011       echo "$RANLIB libconftest.a" >&5
8012       $RANLIB libconftest.a 2>&5
8013       cat > conftest.c << _LT_EOF
8014 int main() { return 0;}
8015 _LT_EOF
8016       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8017       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8018       _lt_result=$?
8019       if test -s conftest.err && $GREP force_load conftest.err; then
8020         cat conftest.err >&5
8021       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8022         lt_cv_ld_force_load=yes
8023       else
8024         cat conftest.err >&5
8025       fi
8026         rm -f conftest.err libconftest.a conftest conftest.c
8027         rm -rf conftest.dSYM
8028
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8031 $as_echo "$lt_cv_ld_force_load" >&6; }
8032     case $host_os in
8033     rhapsody* | darwin1.[012])
8034       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8035     darwin1.*)
8036       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8037     darwin*) # darwin 5.x on
8038       # if running on 10.5 or later, the deployment target defaults
8039       # to the OS version, if on x86, and 10.4, the deployment
8040       # target defaults to 10.4. Don't you love it?
8041       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8042         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8043           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8044         10.[012]*)
8045           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8046         10.*)
8047           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8048       esac
8049     ;;
8050   esac
8051     if test yes = "$lt_cv_apple_cc_single_mod"; then
8052       _lt_dar_single_mod='$single_module'
8053     fi
8054     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8055       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8056     else
8057       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8058     fi
8059     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8060       _lt_dsymutil='~$DSYMUTIL $lib || :'
8061     else
8062       _lt_dsymutil=
8063     fi
8064     ;;
8065   esac
8066
8067 ac_ext=c
8068 ac_cpp='$CPP $CPPFLAGS'
8069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8074 # On Suns, sometimes $CPP names a directory.
8075 if test -n "$CPP" && test -d "$CPP"; then
8076   CPP=
8077 fi
8078 if test -z "$CPP"; then
8079   if ${ac_cv_prog_CPP+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082       # Double quotes because CPP needs to be expanded
8083     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8084     do
8085       ac_preproc_ok=false
8086 for ac_c_preproc_warn_flag in '' yes
8087 do
8088   # Use a header file that comes with gcc, so configuring glibc
8089   # with a fresh cross-compiler works.
8090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8091   # <limits.h> exists even on freestanding compilers.
8092   # On the NeXT, cc -E runs the code through the compiler's parser,
8093   # not just through cpp. "Syntax error" is here to catch this case.
8094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h.  */
8096 #ifdef __STDC__
8097 # include <limits.h>
8098 #else
8099 # include <assert.h>
8100 #endif
8101                      Syntax error
8102 _ACEOF
8103 if ac_fn_c_try_cpp "$LINENO"; then :
8104
8105 else
8106   # Broken: fails on valid input.
8107 continue
8108 fi
8109 rm -f conftest.err conftest.i conftest.$ac_ext
8110
8111   # OK, works on sane cases.  Now check whether nonexistent headers
8112   # can be detected and how.
8113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h.  */
8115 #include <ac_nonexistent.h>
8116 _ACEOF
8117 if ac_fn_c_try_cpp "$LINENO"; then :
8118   # Broken: success on invalid input.
8119 continue
8120 else
8121   # Passes both tests.
8122 ac_preproc_ok=:
8123 break
8124 fi
8125 rm -f conftest.err conftest.i conftest.$ac_ext
8126
8127 done
8128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8129 rm -f conftest.i conftest.err conftest.$ac_ext
8130 if $ac_preproc_ok; then :
8131   break
8132 fi
8133
8134     done
8135     ac_cv_prog_CPP=$CPP
8136
8137 fi
8138   CPP=$ac_cv_prog_CPP
8139 else
8140   ac_cv_prog_CPP=$CPP
8141 fi
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8143 $as_echo "$CPP" >&6; }
8144 ac_preproc_ok=false
8145 for ac_c_preproc_warn_flag in '' yes
8146 do
8147   # Use a header file that comes with gcc, so configuring glibc
8148   # with a fresh cross-compiler works.
8149   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8150   # <limits.h> exists even on freestanding compilers.
8151   # On the NeXT, cc -E runs the code through the compiler's parser,
8152   # not just through cpp. "Syntax error" is here to catch this case.
8153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h.  */
8155 #ifdef __STDC__
8156 # include <limits.h>
8157 #else
8158 # include <assert.h>
8159 #endif
8160                      Syntax error
8161 _ACEOF
8162 if ac_fn_c_try_cpp "$LINENO"; then :
8163
8164 else
8165   # Broken: fails on valid input.
8166 continue
8167 fi
8168 rm -f conftest.err conftest.i conftest.$ac_ext
8169
8170   # OK, works on sane cases.  Now check whether nonexistent headers
8171   # can be detected and how.
8172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h.  */
8174 #include <ac_nonexistent.h>
8175 _ACEOF
8176 if ac_fn_c_try_cpp "$LINENO"; then :
8177   # Broken: success on invalid input.
8178 continue
8179 else
8180   # Passes both tests.
8181 ac_preproc_ok=:
8182 break
8183 fi
8184 rm -f conftest.err conftest.i conftest.$ac_ext
8185
8186 done
8187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8188 rm -f conftest.i conftest.err conftest.$ac_ext
8189 if $ac_preproc_ok; then :
8190
8191 else
8192   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8194 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8195 See \`config.log' for more details" "$LINENO" 5; }
8196 fi
8197
8198 ac_ext=c
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8206 $as_echo_n "checking for ANSI C header files... " >&6; }
8207 if ${ac_cv_header_stdc+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h.  */
8212 #include <stdlib.h>
8213 #include <stdarg.h>
8214 #include <string.h>
8215 #include <float.h>
8216
8217 int
8218 main ()
8219 {
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"; then :
8226   ac_cv_header_stdc=yes
8227 else
8228   ac_cv_header_stdc=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231
8232 if test $ac_cv_header_stdc = yes; then
8233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h.  */
8236 #include <string.h>
8237
8238 _ACEOF
8239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8240   $EGREP "memchr" >/dev/null 2>&1; then :
8241
8242 else
8243   ac_cv_header_stdc=no
8244 fi
8245 rm -f conftest*
8246
8247 fi
8248
8249 if test $ac_cv_header_stdc = yes; then
8250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h.  */
8253 #include <stdlib.h>
8254
8255 _ACEOF
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257   $EGREP "free" >/dev/null 2>&1; then :
8258
8259 else
8260   ac_cv_header_stdc=no
8261 fi
8262 rm -f conftest*
8263
8264 fi
8265
8266 if test $ac_cv_header_stdc = yes; then
8267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8268   if test "$cross_compiling" = yes; then :
8269   :
8270 else
8271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273 #include <ctype.h>
8274 #include <stdlib.h>
8275 #if ((' ' & 0x0FF) == 0x020)
8276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8278 #else
8279 # define ISLOWER(c) \
8280                    (('a' <= (c) && (c) <= 'i') \
8281                      || ('j' <= (c) && (c) <= 'r') \
8282                      || ('s' <= (c) && (c) <= 'z'))
8283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8284 #endif
8285
8286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8287 int
8288 main ()
8289 {
8290   int i;
8291   for (i = 0; i < 256; i++)
8292     if (XOR (islower (i), ISLOWER (i))
8293         || toupper (i) != TOUPPER (i))
8294       return 2;
8295   return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_run "$LINENO"; then :
8299
8300 else
8301   ac_cv_header_stdc=no
8302 fi
8303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8304   conftest.$ac_objext conftest.beam conftest.$ac_ext
8305 fi
8306
8307 fi
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8310 $as_echo "$ac_cv_header_stdc" >&6; }
8311 if test $ac_cv_header_stdc = yes; then
8312
8313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8314
8315 fi
8316
8317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8319                   inttypes.h stdint.h unistd.h
8320 do :
8321   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8323 "
8324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8325   cat >>confdefs.h <<_ACEOF
8326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334 for ac_header in dlfcn.h
8335 do :
8336   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8337 "
8338 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8339   cat >>confdefs.h <<_ACEOF
8340 #define HAVE_DLFCN_H 1
8341 _ACEOF
8342
8343 fi
8344
8345 done
8346
8347
8348
8349
8350
8351 # Set options
8352 # Check whether --enable-static was given.
8353 if test "${enable_static+set}" = set; then :
8354   enableval=$enable_static; p=${PACKAGE-default}
8355     case $enableval in
8356     yes) enable_static=yes ;;
8357     no) enable_static=no ;;
8358     *)
8359      enable_static=no
8360       # Look at the argument we got.  We use all the common list separators.
8361       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8362       for pkg in $enableval; do
8363         IFS=$lt_save_ifs
8364         if test "X$pkg" = "X$p"; then
8365           enable_static=yes
8366         fi
8367       done
8368       IFS=$lt_save_ifs
8369       ;;
8370     esac
8371 else
8372   enable_static=no
8373 fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384         enable_dlopen=no
8385
8386
8387   enable_win32_dll=no
8388
8389
8390             # Check whether --enable-shared was given.
8391 if test "${enable_shared+set}" = set; then :
8392   enableval=$enable_shared; p=${PACKAGE-default}
8393     case $enableval in
8394     yes) enable_shared=yes ;;
8395     no) enable_shared=no ;;
8396     *)
8397       enable_shared=no
8398       # Look at the argument we got.  We use all the common list separators.
8399       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8400       for pkg in $enableval; do
8401         IFS=$lt_save_ifs
8402         if test "X$pkg" = "X$p"; then
8403           enable_shared=yes
8404         fi
8405       done
8406       IFS=$lt_save_ifs
8407       ;;
8408     esac
8409 else
8410   enable_shared=yes
8411 fi
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 # Check whether --with-pic was given.
8424 if test "${with_pic+set}" = set; then :
8425   withval=$with_pic; lt_p=${PACKAGE-default}
8426     case $withval in
8427     yes|no) pic_mode=$withval ;;
8428     *)
8429       pic_mode=default
8430       # Look at the argument we got.  We use all the common list separators.
8431       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8432       for lt_pkg in $withval; do
8433         IFS=$lt_save_ifs
8434         if test "X$lt_pkg" = "X$lt_p"; then
8435           pic_mode=yes
8436         fi
8437       done
8438       IFS=$lt_save_ifs
8439       ;;
8440     esac
8441 else
8442   pic_mode=default
8443 fi
8444
8445
8446
8447
8448
8449
8450
8451
8452   # Check whether --enable-fast-install was given.
8453 if test "${enable_fast_install+set}" = set; then :
8454   enableval=$enable_fast_install; p=${PACKAGE-default}
8455     case $enableval in
8456     yes) enable_fast_install=yes ;;
8457     no) enable_fast_install=no ;;
8458     *)
8459       enable_fast_install=no
8460       # Look at the argument we got.  We use all the common list separators.
8461       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8462       for pkg in $enableval; do
8463         IFS=$lt_save_ifs
8464         if test "X$pkg" = "X$p"; then
8465           enable_fast_install=yes
8466         fi
8467       done
8468       IFS=$lt_save_ifs
8469       ;;
8470     esac
8471 else
8472   enable_fast_install=yes
8473 fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485 # This can be used to rebuild libtool when needed
8486 LIBTOOL_DEPS=$ltmain
8487
8488 # Always use our own libtool.
8489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 test -z "$LN_S" && LN_S="ln -s"
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535 if test -n "${ZSH_VERSION+set}"; then
8536    setopt NO_GLOB_SUBST
8537 fi
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8540 $as_echo_n "checking for objdir... " >&6; }
8541 if ${lt_cv_objdir+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   rm -f .libs 2>/dev/null
8545 mkdir .libs 2>/dev/null
8546 if test -d .libs; then
8547   lt_cv_objdir=.libs
8548 else
8549   # MS-DOS does not allow filenames that begin with a dot.
8550   lt_cv_objdir=_libs
8551 fi
8552 rmdir .libs 2>/dev/null
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8555 $as_echo "$lt_cv_objdir" >&6; }
8556 objdir=$lt_cv_objdir
8557
8558
8559
8560
8561
8562 cat >>confdefs.h <<_ACEOF
8563 #define LT_OBJDIR "$lt_cv_objdir/"
8564 _ACEOF
8565
8566
8567
8568
8569 case $host_os in
8570 aix3*)
8571   # AIX sometimes has problems with the GCC collect2 program.  For some
8572   # reason, if we set the COLLECT_NAMES environment variable, the problems
8573   # vanish in a puff of smoke.
8574   if test set != "${COLLECT_NAMES+set}"; then
8575     COLLECT_NAMES=
8576     export COLLECT_NAMES
8577   fi
8578   ;;
8579 esac
8580
8581 # Global variables:
8582 ofile=libtool
8583 can_build_shared=yes
8584
8585 # All known linkers require a '.a' archive for static linking (except MSVC,
8586 # which needs '.lib').
8587 libext=a
8588
8589 with_gnu_ld=$lt_cv_prog_gnu_ld
8590
8591 old_CC=$CC
8592 old_CFLAGS=$CFLAGS
8593
8594 # Set sane defaults for various variables
8595 test -z "$CC" && CC=cc
8596 test -z "$LTCC" && LTCC=$CC
8597 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8598 test -z "$LD" && LD=ld
8599 test -z "$ac_objext" && ac_objext=o
8600
8601 for cc_temp in $compiler""; do
8602   case $cc_temp in
8603     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8604     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8605     \-*) ;;
8606     *) break;;
8607   esac
8608 done
8609 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8610
8611
8612 # Only perform the check for file, if the check method requires it
8613 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8614 case $deplibs_check_method in
8615 file_magic*)
8616   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8618 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8619 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   case $MAGIC_CMD in
8623 [\\/*] |  ?:[\\/]*)
8624   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8625   ;;
8626 *)
8627   lt_save_MAGIC_CMD=$MAGIC_CMD
8628   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8629   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8630   for ac_dir in $ac_dummy; do
8631     IFS=$lt_save_ifs
8632     test -z "$ac_dir" && ac_dir=.
8633     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8634       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8635       if test -n "$file_magic_test_file"; then
8636         case $deplibs_check_method in
8637         "file_magic "*)
8638           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8639           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8640           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8641             $EGREP "$file_magic_regex" > /dev/null; then
8642             :
8643           else
8644             cat <<_LT_EOF 1>&2
8645
8646 *** Warning: the command libtool uses to detect shared libraries,
8647 *** $file_magic_cmd, produces output that libtool cannot recognize.
8648 *** The result is that libtool may fail to recognize shared libraries
8649 *** as such.  This will affect the creation of libtool libraries that
8650 *** depend on shared libraries, but programs linked with such libtool
8651 *** libraries will work regardless of this problem.  Nevertheless, you
8652 *** may want to report the problem to your system manager and/or to
8653 *** bug-libtool@gnu.org
8654
8655 _LT_EOF
8656           fi ;;
8657         esac
8658       fi
8659       break
8660     fi
8661   done
8662   IFS=$lt_save_ifs
8663   MAGIC_CMD=$lt_save_MAGIC_CMD
8664   ;;
8665 esac
8666 fi
8667
8668 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8669 if test -n "$MAGIC_CMD"; then
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8671 $as_echo "$MAGIC_CMD" >&6; }
8672 else
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677
8678
8679
8680
8681 if test -z "$lt_cv_path_MAGIC_CMD"; then
8682   if test -n "$ac_tool_prefix"; then
8683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8684 $as_echo_n "checking for file... " >&6; }
8685 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8686   $as_echo_n "(cached) " >&6
8687 else
8688   case $MAGIC_CMD in
8689 [\\/*] |  ?:[\\/]*)
8690   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8691   ;;
8692 *)
8693   lt_save_MAGIC_CMD=$MAGIC_CMD
8694   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8695   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8696   for ac_dir in $ac_dummy; do
8697     IFS=$lt_save_ifs
8698     test -z "$ac_dir" && ac_dir=.
8699     if test -f "$ac_dir/file"; then
8700       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8701       if test -n "$file_magic_test_file"; then
8702         case $deplibs_check_method in
8703         "file_magic "*)
8704           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8705           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8706           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8707             $EGREP "$file_magic_regex" > /dev/null; then
8708             :
8709           else
8710             cat <<_LT_EOF 1>&2
8711
8712 *** Warning: the command libtool uses to detect shared libraries,
8713 *** $file_magic_cmd, produces output that libtool cannot recognize.
8714 *** The result is that libtool may fail to recognize shared libraries
8715 *** as such.  This will affect the creation of libtool libraries that
8716 *** depend on shared libraries, but programs linked with such libtool
8717 *** libraries will work regardless of this problem.  Nevertheless, you
8718 *** may want to report the problem to your system manager and/or to
8719 *** bug-libtool@gnu.org
8720
8721 _LT_EOF
8722           fi ;;
8723         esac
8724       fi
8725       break
8726     fi
8727   done
8728   IFS=$lt_save_ifs
8729   MAGIC_CMD=$lt_save_MAGIC_CMD
8730   ;;
8731 esac
8732 fi
8733
8734 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8735 if test -n "$MAGIC_CMD"; then
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8737 $as_echo "$MAGIC_CMD" >&6; }
8738 else
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8741 fi
8742
8743
8744   else
8745     MAGIC_CMD=:
8746   fi
8747 fi
8748
8749   fi
8750   ;;
8751 esac
8752
8753 # Use C for the default configuration in the libtool script
8754
8755 lt_save_CC=$CC
8756 ac_ext=c
8757 ac_cpp='$CPP $CPPFLAGS'
8758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8761
8762
8763 # Source file extension for C test sources.
8764 ac_ext=c
8765
8766 # Object file extension for compiled C test sources.
8767 objext=o
8768 objext=$objext
8769
8770 # Code to be used in simple compile tests
8771 lt_simple_compile_test_code="int some_variable = 0;"
8772
8773 # Code to be used in simple link tests
8774 lt_simple_link_test_code='int main(){return(0);}'
8775
8776
8777
8778
8779
8780
8781
8782 # If no C compiler was specified, use CC.
8783 LTCC=${LTCC-"$CC"}
8784
8785 # If no C compiler flags were specified, use CFLAGS.
8786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8787
8788 # Allow CC to be a program name with arguments.
8789 compiler=$CC
8790
8791 # Save the default compiler, since it gets overwritten when the other
8792 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8793 compiler_DEFAULT=$CC
8794
8795 # save warnings/boilerplate of simple test code
8796 ac_outfile=conftest.$ac_objext
8797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8799 _lt_compiler_boilerplate=`cat conftest.err`
8800 $RM conftest*
8801
8802 ac_outfile=conftest.$ac_objext
8803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8805 _lt_linker_boilerplate=`cat conftest.err`
8806 $RM -r conftest*
8807
8808
8809 ## CAVEAT EMPTOR:
8810 ## There is no encapsulation within the following macros, do not change
8811 ## the running order or otherwise move them around unless you know exactly
8812 ## what you are doing...
8813 if test -n "$compiler"; then
8814
8815 lt_prog_compiler_no_builtin_flag=
8816
8817 if test yes = "$GCC"; then
8818   case $cc_basename in
8819   nvcc*)
8820     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8821   *)
8822     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8823   esac
8824
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8826 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8827 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   lt_cv_prog_compiler_rtti_exceptions=no
8831    ac_outfile=conftest.$ac_objext
8832    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8834    # Insert the option either (1) after the last *FLAGS variable, or
8835    # (2) before a word containing "conftest.", or (3) at the end.
8836    # Note that $ac_compile itself does not contain backslashes and begins
8837    # with a dollar sign (not a hyphen), so the echo should work correctly.
8838    # The option is referenced via a variable to avoid confusing sed.
8839    lt_compile=`echo "$ac_compile" | $SED \
8840    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8842    -e 's:$: $lt_compiler_flag:'`
8843    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8844    (eval "$lt_compile" 2>conftest.err)
8845    ac_status=$?
8846    cat conftest.err >&5
8847    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848    if (exit $ac_status) && test -s "$ac_outfile"; then
8849      # The compiler can only warn and ignore the option if not recognized
8850      # So say no if there are warnings other than the usual output.
8851      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8852      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8853      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8854        lt_cv_prog_compiler_rtti_exceptions=yes
8855      fi
8856    fi
8857    $RM conftest*
8858
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8861 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8862
8863 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8864     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8865 else
8866     :
8867 fi
8868
8869 fi
8870
8871
8872
8873
8874
8875
8876   lt_prog_compiler_wl=
8877 lt_prog_compiler_pic=
8878 lt_prog_compiler_static=
8879
8880
8881   if test yes = "$GCC"; then
8882     lt_prog_compiler_wl='-Wl,'
8883     lt_prog_compiler_static='-static'
8884
8885     case $host_os in
8886       aix*)
8887       # All AIX code is PIC.
8888       if test ia64 = "$host_cpu"; then
8889         # AIX 5 now supports IA64 processor
8890         lt_prog_compiler_static='-Bstatic'
8891       fi
8892       lt_prog_compiler_pic='-fPIC'
8893       ;;
8894
8895     amigaos*)
8896       case $host_cpu in
8897       powerpc)
8898             # see comment about AmigaOS4 .so support
8899             lt_prog_compiler_pic='-fPIC'
8900         ;;
8901       m68k)
8902             # FIXME: we need at least 68020 code to build shared libraries, but
8903             # adding the '-m68020' flag to GCC prevents building anything better,
8904             # like '-m68040'.
8905             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8906         ;;
8907       esac
8908       ;;
8909
8910     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8911       # PIC is the default for these OSes.
8912       ;;
8913
8914     mingw* | cygwin* | pw32* | os2* | cegcc*)
8915       # This hack is so that the source file can tell whether it is being
8916       # built for inclusion in a dll (and should export symbols for example).
8917       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8918       # (--disable-auto-import) libraries
8919       lt_prog_compiler_pic='-DDLL_EXPORT'
8920       ;;
8921
8922     darwin* | rhapsody*)
8923       # PIC is the default on this platform
8924       # Common symbols not allowed in MH_DYLIB files
8925       lt_prog_compiler_pic='-fno-common'
8926       ;;
8927
8928     haiku*)
8929       # PIC is the default for Haiku.
8930       # The "-static" flag exists, but is broken.
8931       lt_prog_compiler_static=
8932       ;;
8933
8934     hpux*)
8935       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8936       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8937       # sets the default TLS model and affects inlining.
8938       case $host_cpu in
8939       hppa*64*)
8940         # +Z the default
8941         ;;
8942       *)
8943         lt_prog_compiler_pic='-fPIC'
8944         ;;
8945       esac
8946       ;;
8947
8948     interix[3-9]*)
8949       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8950       # Instead, we relocate shared libraries at runtime.
8951       ;;
8952
8953     msdosdjgpp*)
8954       # Just because we use GCC doesn't mean we suddenly get shared libraries
8955       # on systems that don't support them.
8956       lt_prog_compiler_can_build_shared=no
8957       enable_shared=no
8958       ;;
8959
8960     *nto* | *qnx*)
8961       # QNX uses GNU C++, but need to define -shared option too, otherwise
8962       # it will coredump.
8963       lt_prog_compiler_pic='-fPIC -shared'
8964       ;;
8965
8966     sysv4*MP*)
8967       if test -d /usr/nec; then
8968         lt_prog_compiler_pic=-Kconform_pic
8969       fi
8970       ;;
8971
8972     *)
8973       lt_prog_compiler_pic='-fPIC'
8974       ;;
8975     esac
8976
8977     case $cc_basename in
8978     nvcc*) # Cuda Compiler Driver 2.2
8979       lt_prog_compiler_wl='-Xlinker '
8980       if test -n "$lt_prog_compiler_pic"; then
8981         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8982       fi
8983       ;;
8984     esac
8985   else
8986     # PORTME Check for flag to pass linker flags through the system compiler.
8987     case $host_os in
8988     aix*)
8989       lt_prog_compiler_wl='-Wl,'
8990       if test ia64 = "$host_cpu"; then
8991         # AIX 5 now supports IA64 processor
8992         lt_prog_compiler_static='-Bstatic'
8993       else
8994         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8995       fi
8996       ;;
8997
8998     darwin* | rhapsody*)
8999       # PIC is the default on this platform
9000       # Common symbols not allowed in MH_DYLIB files
9001       lt_prog_compiler_pic='-fno-common'
9002       case $cc_basename in
9003       nagfor*)
9004         # NAG Fortran compiler
9005         lt_prog_compiler_wl='-Wl,-Wl,,'
9006         lt_prog_compiler_pic='-PIC'
9007         lt_prog_compiler_static='-Bstatic'
9008         ;;
9009       esac
9010       ;;
9011
9012     mingw* | cygwin* | pw32* | os2* | cegcc*)
9013       # This hack is so that the source file can tell whether it is being
9014       # built for inclusion in a dll (and should export symbols for example).
9015       lt_prog_compiler_pic='-DDLL_EXPORT'
9016       ;;
9017
9018     hpux9* | hpux10* | hpux11*)
9019       lt_prog_compiler_wl='-Wl,'
9020       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9021       # not for PA HP-UX.
9022       case $host_cpu in
9023       hppa*64*|ia64*)
9024         # +Z the default
9025         ;;
9026       *)
9027         lt_prog_compiler_pic='+Z'
9028         ;;
9029       esac
9030       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9031       lt_prog_compiler_static='$wl-a ${wl}archive'
9032       ;;
9033
9034     irix5* | irix6* | nonstopux*)
9035       lt_prog_compiler_wl='-Wl,'
9036       # PIC (with -KPIC) is the default.
9037       lt_prog_compiler_static='-non_shared'
9038       ;;
9039
9040     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9041       case $cc_basename in
9042       # old Intel for x86_64, which still supported -KPIC.
9043       ecc*)
9044         lt_prog_compiler_wl='-Wl,'
9045         lt_prog_compiler_pic='-KPIC'
9046         lt_prog_compiler_static='-static'
9047         ;;
9048       # icc used to be incompatible with GCC.
9049       # ICC 10 doesn't accept -KPIC any more.
9050       icc* | ifort*)
9051         lt_prog_compiler_wl='-Wl,'
9052         lt_prog_compiler_pic='-fPIC'
9053         lt_prog_compiler_static='-static'
9054         ;;
9055       # Lahey Fortran 8.1.
9056       lf95*)
9057         lt_prog_compiler_wl='-Wl,'
9058         lt_prog_compiler_pic='--shared'
9059         lt_prog_compiler_static='--static'
9060         ;;
9061       nagfor*)
9062         # NAG Fortran compiler
9063         lt_prog_compiler_wl='-Wl,-Wl,,'
9064         lt_prog_compiler_pic='-PIC'
9065         lt_prog_compiler_static='-Bstatic'
9066         ;;
9067       tcc*)
9068         # Fabrice Bellard et al's Tiny C Compiler
9069         lt_prog_compiler_wl='-Wl,'
9070         lt_prog_compiler_pic='-fPIC'
9071         lt_prog_compiler_static='-static'
9072         ;;
9073       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9074         # Portland Group compilers (*not* the Pentium gcc compiler,
9075         # which looks to be a dead project)
9076         lt_prog_compiler_wl='-Wl,'
9077         lt_prog_compiler_pic='-fpic'
9078         lt_prog_compiler_static='-Bstatic'
9079         ;;
9080       ccc*)
9081         lt_prog_compiler_wl='-Wl,'
9082         # All Alpha code is PIC.
9083         lt_prog_compiler_static='-non_shared'
9084         ;;
9085       xl* | bgxl* | bgf* | mpixl*)
9086         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9087         lt_prog_compiler_wl='-Wl,'
9088         lt_prog_compiler_pic='-qpic'
9089         lt_prog_compiler_static='-qstaticlink'
9090         ;;
9091       *)
9092         case `$CC -V 2>&1 | sed 5q` in
9093         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9094           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9095           lt_prog_compiler_pic='-KPIC'
9096           lt_prog_compiler_static='-Bstatic'
9097           lt_prog_compiler_wl=''
9098           ;;
9099         *Sun\ F* | *Sun*Fortran*)
9100           lt_prog_compiler_pic='-KPIC'
9101           lt_prog_compiler_static='-Bstatic'
9102           lt_prog_compiler_wl='-Qoption ld '
9103           ;;
9104         *Sun\ C*)
9105           # Sun C 5.9
9106           lt_prog_compiler_pic='-KPIC'
9107           lt_prog_compiler_static='-Bstatic'
9108           lt_prog_compiler_wl='-Wl,'
9109           ;;
9110         *Intel*\ [CF]*Compiler*)
9111           lt_prog_compiler_wl='-Wl,'
9112           lt_prog_compiler_pic='-fPIC'
9113           lt_prog_compiler_static='-static'
9114           ;;
9115         *Portland\ Group*)
9116           lt_prog_compiler_wl='-Wl,'
9117           lt_prog_compiler_pic='-fpic'
9118           lt_prog_compiler_static='-Bstatic'
9119           ;;
9120         esac
9121         ;;
9122       esac
9123       ;;
9124
9125     newsos6)
9126       lt_prog_compiler_pic='-KPIC'
9127       lt_prog_compiler_static='-Bstatic'
9128       ;;
9129
9130     *nto* | *qnx*)
9131       # QNX uses GNU C++, but need to define -shared option too, otherwise
9132       # it will coredump.
9133       lt_prog_compiler_pic='-fPIC -shared'
9134       ;;
9135
9136     osf3* | osf4* | osf5*)
9137       lt_prog_compiler_wl='-Wl,'
9138       # All OSF/1 code is PIC.
9139       lt_prog_compiler_static='-non_shared'
9140       ;;
9141
9142     rdos*)
9143       lt_prog_compiler_static='-non_shared'
9144       ;;
9145
9146     solaris*)
9147       lt_prog_compiler_pic='-KPIC'
9148       lt_prog_compiler_static='-Bstatic'
9149       case $cc_basename in
9150       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9151         lt_prog_compiler_wl='-Qoption ld ';;
9152       *)
9153         lt_prog_compiler_wl='-Wl,';;
9154       esac
9155       ;;
9156
9157     sunos4*)
9158       lt_prog_compiler_wl='-Qoption ld '
9159       lt_prog_compiler_pic='-PIC'
9160       lt_prog_compiler_static='-Bstatic'
9161       ;;
9162
9163     sysv4 | sysv4.2uw2* | sysv4.3*)
9164       lt_prog_compiler_wl='-Wl,'
9165       lt_prog_compiler_pic='-KPIC'
9166       lt_prog_compiler_static='-Bstatic'
9167       ;;
9168
9169     sysv4*MP*)
9170       if test -d /usr/nec; then
9171         lt_prog_compiler_pic='-Kconform_pic'
9172         lt_prog_compiler_static='-Bstatic'
9173       fi
9174       ;;
9175
9176     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9177       lt_prog_compiler_wl='-Wl,'
9178       lt_prog_compiler_pic='-KPIC'
9179       lt_prog_compiler_static='-Bstatic'
9180       ;;
9181
9182     unicos*)
9183       lt_prog_compiler_wl='-Wl,'
9184       lt_prog_compiler_can_build_shared=no
9185       ;;
9186
9187     uts4*)
9188       lt_prog_compiler_pic='-pic'
9189       lt_prog_compiler_static='-Bstatic'
9190       ;;
9191
9192     *)
9193       lt_prog_compiler_can_build_shared=no
9194       ;;
9195     esac
9196   fi
9197
9198 case $host_os in
9199   # For platforms that do not support PIC, -DPIC is meaningless:
9200   *djgpp*)
9201     lt_prog_compiler_pic=
9202     ;;
9203   *)
9204     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9205     ;;
9206 esac
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9209 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9210 if ${lt_cv_prog_compiler_pic+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9216 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9217 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9218
9219 #
9220 # Check to make sure the PIC flag actually works.
9221 #
9222 if test -n "$lt_prog_compiler_pic"; then
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9224 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9225 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   lt_cv_prog_compiler_pic_works=no
9229    ac_outfile=conftest.$ac_objext
9230    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9232    # Insert the option either (1) after the last *FLAGS variable, or
9233    # (2) before a word containing "conftest.", or (3) at the end.
9234    # Note that $ac_compile itself does not contain backslashes and begins
9235    # with a dollar sign (not a hyphen), so the echo should work correctly.
9236    # The option is referenced via a variable to avoid confusing sed.
9237    lt_compile=`echo "$ac_compile" | $SED \
9238    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240    -e 's:$: $lt_compiler_flag:'`
9241    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242    (eval "$lt_compile" 2>conftest.err)
9243    ac_status=$?
9244    cat conftest.err >&5
9245    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246    if (exit $ac_status) && test -s "$ac_outfile"; then
9247      # The compiler can only warn and ignore the option if not recognized
9248      # So say no if there are warnings other than the usual output.
9249      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9250      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9252        lt_cv_prog_compiler_pic_works=yes
9253      fi
9254    fi
9255    $RM conftest*
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9259 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9260
9261 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9262     case $lt_prog_compiler_pic in
9263      "" | " "*) ;;
9264      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9265      esac
9266 else
9267     lt_prog_compiler_pic=
9268      lt_prog_compiler_can_build_shared=no
9269 fi
9270
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283 #
9284 # Check to make sure the static flag actually works.
9285 #
9286 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9288 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9289 if ${lt_cv_prog_compiler_static_works+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   lt_cv_prog_compiler_static_works=no
9293    save_LDFLAGS=$LDFLAGS
9294    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9295    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9296    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9297      # The linker can only warn and ignore the option if not recognized
9298      # So say no if there are warnings
9299      if test -s conftest.err; then
9300        # Append any errors to the config.log.
9301        cat conftest.err 1>&5
9302        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9303        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9304        if diff conftest.exp conftest.er2 >/dev/null; then
9305          lt_cv_prog_compiler_static_works=yes
9306        fi
9307      else
9308        lt_cv_prog_compiler_static_works=yes
9309      fi
9310    fi
9311    $RM -r conftest*
9312    LDFLAGS=$save_LDFLAGS
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9316 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9317
9318 if test yes = "$lt_cv_prog_compiler_static_works"; then
9319     :
9320 else
9321     lt_prog_compiler_static=
9322 fi
9323
9324
9325
9326
9327
9328
9329
9330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9332 if ${lt_cv_prog_compiler_c_o+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   lt_cv_prog_compiler_c_o=no
9336    $RM -r conftest 2>/dev/null
9337    mkdir conftest
9338    cd conftest
9339    mkdir out
9340    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9341
9342    lt_compiler_flag="-o out/conftest2.$ac_objext"
9343    # Insert the option either (1) after the last *FLAGS variable, or
9344    # (2) before a word containing "conftest.", or (3) at the end.
9345    # Note that $ac_compile itself does not contain backslashes and begins
9346    # with a dollar sign (not a hyphen), so the echo should work correctly.
9347    lt_compile=`echo "$ac_compile" | $SED \
9348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9350    -e 's:$: $lt_compiler_flag:'`
9351    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9352    (eval "$lt_compile" 2>out/conftest.err)
9353    ac_status=$?
9354    cat out/conftest.err >&5
9355    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9357    then
9358      # The compiler can only warn and ignore the option if not recognized
9359      # So say no if there are warnings
9360      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9361      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9362      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9363        lt_cv_prog_compiler_c_o=yes
9364      fi
9365    fi
9366    chmod u+w . 2>&5
9367    $RM conftest*
9368    # SGI C++ compiler will create directory out/ii_files/ for
9369    # template instantiation
9370    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9371    $RM out/* && rmdir out
9372    cd ..
9373    $RM -r conftest
9374    $RM conftest*
9375
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9378 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9379
9380
9381
9382
9383
9384
9385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9387 if ${lt_cv_prog_compiler_c_o+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   lt_cv_prog_compiler_c_o=no
9391    $RM -r conftest 2>/dev/null
9392    mkdir conftest
9393    cd conftest
9394    mkdir out
9395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9396
9397    lt_compiler_flag="-o out/conftest2.$ac_objext"
9398    # Insert the option either (1) after the last *FLAGS variable, or
9399    # (2) before a word containing "conftest.", or (3) at the end.
9400    # Note that $ac_compile itself does not contain backslashes and begins
9401    # with a dollar sign (not a hyphen), so the echo should work correctly.
9402    lt_compile=`echo "$ac_compile" | $SED \
9403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9405    -e 's:$: $lt_compiler_flag:'`
9406    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9407    (eval "$lt_compile" 2>out/conftest.err)
9408    ac_status=$?
9409    cat out/conftest.err >&5
9410    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9412    then
9413      # The compiler can only warn and ignore the option if not recognized
9414      # So say no if there are warnings
9415      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9416      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9417      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9418        lt_cv_prog_compiler_c_o=yes
9419      fi
9420    fi
9421    chmod u+w . 2>&5
9422    $RM conftest*
9423    # SGI C++ compiler will create directory out/ii_files/ for
9424    # template instantiation
9425    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9426    $RM out/* && rmdir out
9427    cd ..
9428    $RM -r conftest
9429    $RM conftest*
9430
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9433 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9434
9435
9436
9437
9438 hard_links=nottested
9439 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9440   # do not overwrite the value of need_locks provided by the user
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9442 $as_echo_n "checking if we can lock with hard links... " >&6; }
9443   hard_links=yes
9444   $RM conftest*
9445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9446   touch conftest.a
9447   ln conftest.a conftest.b 2>&5 || hard_links=no
9448   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9450 $as_echo "$hard_links" >&6; }
9451   if test no = "$hard_links"; then
9452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9453 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9454     need_locks=warn
9455   fi
9456 else
9457   need_locks=no
9458 fi
9459
9460
9461
9462
9463
9464
9465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9466 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9467
9468   runpath_var=
9469   allow_undefined_flag=
9470   always_export_symbols=no
9471   archive_cmds=
9472   archive_expsym_cmds=
9473   compiler_needs_object=no
9474   enable_shared_with_static_runtimes=no
9475   export_dynamic_flag_spec=
9476   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9477   hardcode_automatic=no
9478   hardcode_direct=no
9479   hardcode_direct_absolute=no
9480   hardcode_libdir_flag_spec=
9481   hardcode_libdir_separator=
9482   hardcode_minus_L=no
9483   hardcode_shlibpath_var=unsupported
9484   inherit_rpath=no
9485   link_all_deplibs=unknown
9486   module_cmds=
9487   module_expsym_cmds=
9488   old_archive_from_new_cmds=
9489   old_archive_from_expsyms_cmds=
9490   thread_safe_flag_spec=
9491   whole_archive_flag_spec=
9492   # include_expsyms should be a list of space-separated symbols to be *always*
9493   # included in the symbol list
9494   include_expsyms=
9495   # exclude_expsyms can be an extended regexp of symbols to exclude
9496   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9497   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9498   # as well as any symbol that contains 'd'.
9499   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9500   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9501   # platforms (ab)use it in PIC code, but their linkers get confused if
9502   # the symbol is explicitly referenced.  Since portable code cannot
9503   # rely on this symbol name, it's probably fine to never include it in
9504   # preloaded symbol tables.
9505   # Exclude shared library initialization/finalization symbols.
9506   extract_expsyms_cmds=
9507
9508   case $host_os in
9509   cygwin* | mingw* | pw32* | cegcc*)
9510     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9511     # When not using gcc, we currently assume that we are using
9512     # Microsoft Visual C++.
9513     if test yes != "$GCC"; then
9514       with_gnu_ld=no
9515     fi
9516     ;;
9517   interix*)
9518     # we just hope/assume this is gcc and not c89 (= MSVC++)
9519     with_gnu_ld=yes
9520     ;;
9521   openbsd* | bitrig*)
9522     with_gnu_ld=no
9523     ;;
9524   esac
9525
9526   ld_shlibs=yes
9527
9528   # On some targets, GNU ld is compatible enough with the native linker
9529   # that we're better off using the native interface for both.
9530   lt_use_gnu_ld_interface=no
9531   if test yes = "$with_gnu_ld"; then
9532     case $host_os in
9533       aix*)
9534         # The AIX port of GNU ld has always aspired to compatibility
9535         # with the native linker.  However, as the warning in the GNU ld
9536         # block says, versions before 2.19.5* couldn't really create working
9537         # shared libraries, regardless of the interface used.
9538         case `$LD -v 2>&1` in
9539           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9540           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9541           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9542           *)
9543             lt_use_gnu_ld_interface=yes
9544             ;;
9545         esac
9546         ;;
9547       *)
9548         lt_use_gnu_ld_interface=yes
9549         ;;
9550     esac
9551   fi
9552
9553   if test yes = "$lt_use_gnu_ld_interface"; then
9554     # If archive_cmds runs LD, not CC, wlarc should be empty
9555     wlarc='$wl'
9556
9557     # Set some defaults for GNU ld with shared library support. These
9558     # are reset later if shared libraries are not supported. Putting them
9559     # here allows them to be overridden if necessary.
9560     runpath_var=LD_RUN_PATH
9561     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9562     export_dynamic_flag_spec='$wl--export-dynamic'
9563     # ancient GNU ld didn't support --whole-archive et. al.
9564     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9565       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9566     else
9567       whole_archive_flag_spec=
9568     fi
9569     supports_anon_versioning=no
9570     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9571       *GNU\ gold*) supports_anon_versioning=yes ;;
9572       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9573       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9574       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9575       *\ 2.11.*) ;; # other 2.11 versions
9576       *) supports_anon_versioning=yes ;;
9577     esac
9578
9579     # See if GNU ld supports shared libraries.
9580     case $host_os in
9581     aix[3-9]*)
9582       # On AIX/PPC, the GNU linker is very broken
9583       if test ia64 != "$host_cpu"; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: the GNU linker, at least up to release 2.19, is reported
9588 *** to be unable to reliably create shared libraries on AIX.
9589 *** Therefore, libtool is disabling shared libraries support.  If you
9590 *** really care for shared libraries, you may want to install binutils
9591 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9592 *** You will then need to restart the configuration process.
9593
9594 _LT_EOF
9595       fi
9596       ;;
9597
9598     amigaos*)
9599       case $host_cpu in
9600       powerpc)
9601             # see comment about AmigaOS4 .so support
9602             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9603             archive_expsym_cmds=''
9604         ;;
9605       m68k)
9606             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)'
9607             hardcode_libdir_flag_spec='-L$libdir'
9608             hardcode_minus_L=yes
9609         ;;
9610       esac
9611       ;;
9612
9613     beos*)
9614       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615         allow_undefined_flag=unsupported
9616         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9617         # support --undefined.  This deserves some investigation.  FIXME
9618         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9619       else
9620         ld_shlibs=no
9621       fi
9622       ;;
9623
9624     cygwin* | mingw* | pw32* | cegcc*)
9625       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9626       # as there is no search path for DLLs.
9627       hardcode_libdir_flag_spec='-L$libdir'
9628       export_dynamic_flag_spec='$wl--export-all-symbols'
9629       allow_undefined_flag=unsupported
9630       always_export_symbols=no
9631       enable_shared_with_static_runtimes=yes
9632       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'
9633       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9634
9635       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9637         # If the export-symbols file already is a .def file, use it as
9638         # is; otherwise, prepend EXPORTS...
9639         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9640           cp $export_symbols $output_objdir/$soname.def;
9641         else
9642           echo EXPORTS > $output_objdir/$soname.def;
9643           cat $export_symbols >> $output_objdir/$soname.def;
9644         fi~
9645         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9646       else
9647         ld_shlibs=no
9648       fi
9649       ;;
9650
9651     haiku*)
9652       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9653       link_all_deplibs=yes
9654       ;;
9655
9656     interix[3-9]*)
9657       hardcode_direct=no
9658       hardcode_shlibpath_var=no
9659       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9660       export_dynamic_flag_spec='$wl-E'
9661       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9662       # Instead, shared libraries are loaded at an image base (0x10000000 by
9663       # default) and relocated if they conflict, which is a slow very memory
9664       # consuming and fragmenting process.  To avoid this, we pick a random,
9665       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9666       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9667       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9668       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'
9669       ;;
9670
9671     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9672       tmp_diet=no
9673       if test linux-dietlibc = "$host_os"; then
9674         case $cc_basename in
9675           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9676         esac
9677       fi
9678       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9679          && test no = "$tmp_diet"
9680       then
9681         tmp_addflag=' $pic_flag'
9682         tmp_sharedflag='-shared'
9683         case $cc_basename,$host_cpu in
9684         pgcc*)                          # Portland Group C compiler
9685           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'
9686           tmp_addflag=' $pic_flag'
9687           ;;
9688         pgf77* | pgf90* | pgf95* | pgfortran*)
9689                                         # Portland Group f77 and f90 compilers
9690           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'
9691           tmp_addflag=' $pic_flag -Mnomain' ;;
9692         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9693           tmp_addflag=' -i_dynamic' ;;
9694         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9695           tmp_addflag=' -i_dynamic -nofor_main' ;;
9696         ifc* | ifort*)                  # Intel Fortran compiler
9697           tmp_addflag=' -nofor_main' ;;
9698         lf95*)                          # Lahey Fortran 8.1
9699           whole_archive_flag_spec=
9700           tmp_sharedflag='--shared' ;;
9701         nagfor*)                        # NAGFOR 5.3
9702           tmp_sharedflag='-Wl,-shared' ;;
9703         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9704           tmp_sharedflag='-qmkshrobj'
9705           tmp_addflag= ;;
9706         nvcc*)  # Cuda Compiler Driver 2.2
9707           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'
9708           compiler_needs_object=yes
9709           ;;
9710         esac
9711         case `$CC -V 2>&1 | sed 5q` in
9712         *Sun\ C*)                       # Sun C 5.9
9713           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'
9714           compiler_needs_object=yes
9715           tmp_sharedflag='-G' ;;
9716         *Sun\ F*)                       # Sun Fortran 8.3
9717           tmp_sharedflag='-G' ;;
9718         esac
9719         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720
9721         if test yes = "$supports_anon_versioning"; then
9722           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9723             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9724             echo "local: *; };" >> $output_objdir/$libname.ver~
9725             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9726         fi
9727
9728         case $cc_basename in
9729         xlf* | bgf* | bgxlf* | mpixlf*)
9730           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9731           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9732           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9733           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9734           if test yes = "$supports_anon_versioning"; then
9735             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9736               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9737               echo "local: *; };" >> $output_objdir/$libname.ver~
9738               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9739           fi
9740           ;;
9741         esac
9742       else
9743         ld_shlibs=no
9744       fi
9745       ;;
9746
9747     netbsd*)
9748       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9749         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9750         wlarc=
9751       else
9752         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9754       fi
9755       ;;
9756
9757     solaris*)
9758       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9759         ld_shlibs=no
9760         cat <<_LT_EOF 1>&2
9761
9762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9763 *** create shared libraries on Solaris systems.  Therefore, libtool
9764 *** is disabling shared libraries support.  We urge you to upgrade GNU
9765 *** binutils to release 2.9.1 or newer.  Another option is to modify
9766 *** your PATH or compiler configuration so that the native linker is
9767 *** used, and then restart.
9768
9769 _LT_EOF
9770       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9771         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9772         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9773       else
9774         ld_shlibs=no
9775       fi
9776       ;;
9777
9778     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9779       case `$LD -v 2>&1` in
9780         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9781         ld_shlibs=no
9782         cat <<_LT_EOF 1>&2
9783
9784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9785 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9786 *** is disabling shared libraries support.  We urge you to upgrade GNU
9787 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9788 *** your PATH or compiler configuration so that the native linker is
9789 *** used, and then restart.
9790
9791 _LT_EOF
9792         ;;
9793         *)
9794           # For security reasons, it is highly recommended that you always
9795           # use absolute paths for naming shared libraries, and exclude the
9796           # DT_RUNPATH tag from executables and libraries.  But doing so
9797           # requires that you compile everything twice, which is a pain.
9798           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9800             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9802           else
9803             ld_shlibs=no
9804           fi
9805         ;;
9806       esac
9807       ;;
9808
9809     sunos4*)
9810       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811       wlarc=
9812       hardcode_direct=yes
9813       hardcode_shlibpath_var=no
9814       ;;
9815
9816     *)
9817       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9818         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9819         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9820       else
9821         ld_shlibs=no
9822       fi
9823       ;;
9824     esac
9825
9826     if test no = "$ld_shlibs"; then
9827       runpath_var=
9828       hardcode_libdir_flag_spec=
9829       export_dynamic_flag_spec=
9830       whole_archive_flag_spec=
9831     fi
9832   else
9833     # PORTME fill in a description of your system's linker (not GNU ld)
9834     case $host_os in
9835     aix3*)
9836       allow_undefined_flag=unsupported
9837       always_export_symbols=yes
9838       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'
9839       # Note: this linker hardcodes the directories in LIBPATH if there
9840       # are no directories specified by -L.
9841       hardcode_minus_L=yes
9842       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9843         # Neither direct hardcoding nor static linking is supported with a
9844         # broken collect2.
9845         hardcode_direct=unsupported
9846       fi
9847       ;;
9848
9849     aix[4-9]*)
9850       if test ia64 = "$host_cpu"; then
9851         # On IA64, the linker does run time linking by default, so we don't
9852         # have to do anything special.
9853         aix_use_runtimelinking=no
9854         exp_sym_flag='-Bexport'
9855         no_entry_flag=
9856       else
9857         # If we're using GNU nm, then we don't want the "-C" option.
9858         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9859         # Also, AIX nm treats weak defined symbols like other global
9860         # defined symbols, whereas GNU nm marks them as "W".
9861         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9862           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'
9863         else
9864           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'
9865         fi
9866         aix_use_runtimelinking=no
9867
9868         # Test if we are trying to use run time linking or normal
9869         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9870         # need to do runtime linking.
9871         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9872           for ld_flag in $LDFLAGS; do
9873           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9874             aix_use_runtimelinking=yes
9875             break
9876           fi
9877           done
9878           ;;
9879         esac
9880
9881         exp_sym_flag='-bexport'
9882         no_entry_flag='-bnoentry'
9883       fi
9884
9885       # When large executables or shared objects are built, AIX ld can
9886       # have problems creating the table of contents.  If linking a library
9887       # or program results in "error TOC overflow" add -mminimal-toc to
9888       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9889       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9890
9891       archive_cmds=''
9892       hardcode_direct=yes
9893       hardcode_direct_absolute=yes
9894       hardcode_libdir_separator=':'
9895       link_all_deplibs=yes
9896       file_list_spec='$wl-f,'
9897
9898       if test yes = "$GCC"; then
9899         case $host_os in aix4.[012]|aix4.[012].*)
9900         # We only want to do this on AIX 4.2 and lower, the check
9901         # below for broken collect2 doesn't work under 4.3+
9902           collect2name=`$CC -print-prog-name=collect2`
9903           if test -f "$collect2name" &&
9904            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9905           then
9906           # We have reworked collect2
9907           :
9908           else
9909           # We have old collect2
9910           hardcode_direct=unsupported
9911           # It fails to find uninstalled libraries when the uninstalled
9912           # path is not listed in the libpath.  Setting hardcode_minus_L
9913           # to unsupported forces relinking
9914           hardcode_minus_L=yes
9915           hardcode_libdir_flag_spec='-L$libdir'
9916           hardcode_libdir_separator=
9917           fi
9918           ;;
9919         esac
9920         shared_flag='-shared'
9921         if test yes = "$aix_use_runtimelinking"; then
9922           shared_flag="$shared_flag "'$wl-G'
9923         fi
9924       else
9925         # not using gcc
9926         if test ia64 = "$host_cpu"; then
9927         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9928         # chokes on -Wl,-G. The following line is correct:
9929           shared_flag='-G'
9930         else
9931           if test yes = "$aix_use_runtimelinking"; then
9932             shared_flag='$wl-G'
9933           else
9934             shared_flag='$wl-bM:SRE'
9935           fi
9936         fi
9937       fi
9938
9939       export_dynamic_flag_spec='$wl-bexpall'
9940       # It seems that -bexpall does not export symbols beginning with
9941       # underscore (_), so it is better to generate a list of symbols to export.
9942       always_export_symbols=yes
9943       if test yes = "$aix_use_runtimelinking"; then
9944         # Warning - without using the other runtime loading flags (-brtl),
9945         # -berok will link without error, but may produce a broken library.
9946         allow_undefined_flag='-berok'
9947         # Determine the default libpath from the value encoded in an
9948         # empty executable.
9949         if test set = "${lt_cv_aix_libpath+set}"; then
9950   aix_libpath=$lt_cv_aix_libpath
9951 else
9952   if ${lt_cv_aix_libpath_+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h.  */
9957
9958 int
9959 main ()
9960 {
9961
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 if ac_fn_c_try_link "$LINENO"; then :
9967
9968   lt_aix_libpath_sed='
9969       /Import File Strings/,/^$/ {
9970           /^0/ {
9971               s/^0  *\([^ ]*\) *$/\1/
9972               p
9973           }
9974       }'
9975   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9976   # Check for a 64-bit object if we didn't find anything.
9977   if test -z "$lt_cv_aix_libpath_"; then
9978     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979   fi
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982     conftest$ac_exeext conftest.$ac_ext
9983   if test -z "$lt_cv_aix_libpath_"; then
9984     lt_cv_aix_libpath_=/usr/lib:/lib
9985   fi
9986
9987 fi
9988
9989   aix_libpath=$lt_cv_aix_libpath_
9990 fi
9991
9992         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9993         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9994       else
9995         if test ia64 = "$host_cpu"; then
9996           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9997           allow_undefined_flag="-z nodefs"
9998           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"
9999         else
10000          # Determine the default libpath from the value encoded in an
10001          # empty executable.
10002          if test set = "${lt_cv_aix_libpath+set}"; then
10003   aix_libpath=$lt_cv_aix_libpath
10004 else
10005   if ${lt_cv_aix_libpath_+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 int
10012 main ()
10013 {
10014
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020
10021   lt_aix_libpath_sed='
10022       /Import File Strings/,/^$/ {
10023           /^0/ {
10024               s/^0  *\([^ ]*\) *$/\1/
10025               p
10026           }
10027       }'
10028   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029   # Check for a 64-bit object if we didn't find anything.
10030   if test -z "$lt_cv_aix_libpath_"; then
10031     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032   fi
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035     conftest$ac_exeext conftest.$ac_ext
10036   if test -z "$lt_cv_aix_libpath_"; then
10037     lt_cv_aix_libpath_=/usr/lib:/lib
10038   fi
10039
10040 fi
10041
10042   aix_libpath=$lt_cv_aix_libpath_
10043 fi
10044
10045          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10046           # Warning - without using the other run time loading flags,
10047           # -berok will link without error, but may produce a broken library.
10048           no_undefined_flag=' $wl-bernotok'
10049           allow_undefined_flag=' $wl-berok'
10050           if test yes = "$with_gnu_ld"; then
10051             # We only use this code for GNU lds that support --whole-archive.
10052             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10053           else
10054             # Exported symbols can be pulled into shared objects from archives
10055             whole_archive_flag_spec='$convenience'
10056           fi
10057           archive_cmds_need_lc=yes
10058           # This is similar to how AIX traditionally builds its shared libraries.
10059           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'
10060         fi
10061       fi
10062       ;;
10063
10064     amigaos*)
10065       case $host_cpu in
10066       powerpc)
10067             # see comment about AmigaOS4 .so support
10068             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069             archive_expsym_cmds=''
10070         ;;
10071       m68k)
10072             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)'
10073             hardcode_libdir_flag_spec='-L$libdir'
10074             hardcode_minus_L=yes
10075         ;;
10076       esac
10077       ;;
10078
10079     bsdi[45]*)
10080       export_dynamic_flag_spec=-rdynamic
10081       ;;
10082
10083     cygwin* | mingw* | pw32* | cegcc*)
10084       # When not using gcc, we currently assume that we are using
10085       # Microsoft Visual C++.
10086       # hardcode_libdir_flag_spec is actually meaningless, as there is
10087       # no search path for DLLs.
10088       case $cc_basename in
10089       cl*)
10090         # Native MSVC
10091         hardcode_libdir_flag_spec=' '
10092         allow_undefined_flag=unsupported
10093         always_export_symbols=yes
10094         file_list_spec='@'
10095         # Tell ltmain to make .lib files, not .a files.
10096         libext=lib
10097         # Tell ltmain to make .dll files, not .so files.
10098         shrext_cmds=.dll
10099         # FIXME: Setting linknames here is a bad hack.
10100         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10101         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10102             cp "$export_symbols" "$output_objdir/$soname.def";
10103             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10104           else
10105             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10106           fi~
10107           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10108           linknames='
10109         # The linker will not automatically build a static lib if we build a DLL.
10110         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10111         enable_shared_with_static_runtimes=yes
10112         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10113         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10114         # Don't use ranlib
10115         old_postinstall_cmds='chmod 644 $oldlib'
10116         postlink_cmds='lt_outputfile="@OUTPUT@"~
10117           lt_tool_outputfile="@TOOL_OUTPUT@"~
10118           case $lt_outputfile in
10119             *.exe|*.EXE) ;;
10120             *)
10121               lt_outputfile=$lt_outputfile.exe
10122               lt_tool_outputfile=$lt_tool_outputfile.exe
10123               ;;
10124           esac~
10125           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10126             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10127             $RM "$lt_outputfile.manifest";
10128           fi'
10129         ;;
10130       *)
10131         # Assume MSVC wrapper
10132         hardcode_libdir_flag_spec=' '
10133         allow_undefined_flag=unsupported
10134         # Tell ltmain to make .lib files, not .a files.
10135         libext=lib
10136         # Tell ltmain to make .dll files, not .so files.
10137         shrext_cmds=.dll
10138         # FIXME: Setting linknames here is a bad hack.
10139         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10140         # The linker will automatically build a .lib file if we build a DLL.
10141         old_archive_from_new_cmds='true'
10142         # FIXME: Should let the user specify the lib program.
10143         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10144         enable_shared_with_static_runtimes=yes
10145         ;;
10146       esac
10147       ;;
10148
10149     darwin* | rhapsody*)
10150
10151
10152   archive_cmds_need_lc=no
10153   hardcode_direct=no
10154   hardcode_automatic=yes
10155   hardcode_shlibpath_var=unsupported
10156   if test yes = "$lt_cv_ld_force_load"; then
10157     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\"`'
10158
10159   else
10160     whole_archive_flag_spec=''
10161   fi
10162   link_all_deplibs=yes
10163   allow_undefined_flag=$_lt_dar_allow_undefined
10164   case $cc_basename in
10165      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10166      *) _lt_dar_can_shared=$GCC ;;
10167   esac
10168   if test yes = "$_lt_dar_can_shared"; then
10169     output_verbose_link_cmd=func_echo_all
10170     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10171     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10172     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"
10173     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"
10174
10175   else
10176   ld_shlibs=no
10177   fi
10178
10179       ;;
10180
10181     dgux*)
10182       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183       hardcode_libdir_flag_spec='-L$libdir'
10184       hardcode_shlibpath_var=no
10185       ;;
10186
10187     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10188     # support.  Future versions do this automatically, but an explicit c++rt0.o
10189     # does not break anything, and helps significantly (at the cost of a little
10190     # extra space).
10191     freebsd2.2*)
10192       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10193       hardcode_libdir_flag_spec='-R$libdir'
10194       hardcode_direct=yes
10195       hardcode_shlibpath_var=no
10196       ;;
10197
10198     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10199     freebsd2.*)
10200       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10201       hardcode_direct=yes
10202       hardcode_minus_L=yes
10203       hardcode_shlibpath_var=no
10204       ;;
10205
10206     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10207     freebsd* | dragonfly*)
10208       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_direct=yes
10211       hardcode_shlibpath_var=no
10212       ;;
10213
10214     hpux9*)
10215       if test yes = "$GCC"; then
10216         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10217       else
10218         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10219       fi
10220       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10221       hardcode_libdir_separator=:
10222       hardcode_direct=yes
10223
10224       # hardcode_minus_L: Not really in the search PATH,
10225       # but as the default location of the library.
10226       hardcode_minus_L=yes
10227       export_dynamic_flag_spec='$wl-E'
10228       ;;
10229
10230     hpux10*)
10231       if test yes,no = "$GCC,$with_gnu_ld"; then
10232         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233       else
10234         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10235       fi
10236       if test no = "$with_gnu_ld"; then
10237         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10238         hardcode_libdir_separator=:
10239         hardcode_direct=yes
10240         hardcode_direct_absolute=yes
10241         export_dynamic_flag_spec='$wl-E'
10242         # hardcode_minus_L: Not really in the search PATH,
10243         # but as the default location of the library.
10244         hardcode_minus_L=yes
10245       fi
10246       ;;
10247
10248     hpux11*)
10249       if test yes,no = "$GCC,$with_gnu_ld"; then
10250         case $host_cpu in
10251         hppa*64*)
10252           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10253           ;;
10254         ia64*)
10255           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10256           ;;
10257         *)
10258           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10259           ;;
10260         esac
10261       else
10262         case $host_cpu in
10263         hppa*64*)
10264           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10265           ;;
10266         ia64*)
10267           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10268           ;;
10269         *)
10270
10271           # Older versions of the 11.00 compiler do not understand -b yet
10272           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10273           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10274 $as_echo_n "checking if $CC understands -b... " >&6; }
10275 if ${lt_cv_prog_compiler__b+:} false; then :
10276   $as_echo_n "(cached) " >&6
10277 else
10278   lt_cv_prog_compiler__b=no
10279    save_LDFLAGS=$LDFLAGS
10280    LDFLAGS="$LDFLAGS -b"
10281    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10282    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10283      # The linker can only warn and ignore the option if not recognized
10284      # So say no if there are warnings
10285      if test -s conftest.err; then
10286        # Append any errors to the config.log.
10287        cat conftest.err 1>&5
10288        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10289        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10290        if diff conftest.exp conftest.er2 >/dev/null; then
10291          lt_cv_prog_compiler__b=yes
10292        fi
10293      else
10294        lt_cv_prog_compiler__b=yes
10295      fi
10296    fi
10297    $RM -r conftest*
10298    LDFLAGS=$save_LDFLAGS
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10302 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10303
10304 if test yes = "$lt_cv_prog_compiler__b"; then
10305     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10308 fi
10309
10310           ;;
10311         esac
10312       fi
10313       if test no = "$with_gnu_ld"; then
10314         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10315         hardcode_libdir_separator=:
10316
10317         case $host_cpu in
10318         hppa*64*|ia64*)
10319           hardcode_direct=no
10320           hardcode_shlibpath_var=no
10321           ;;
10322         *)
10323           hardcode_direct=yes
10324           hardcode_direct_absolute=yes
10325           export_dynamic_flag_spec='$wl-E'
10326
10327           # hardcode_minus_L: Not really in the search PATH,
10328           # but as the default location of the library.
10329           hardcode_minus_L=yes
10330           ;;
10331         esac
10332       fi
10333       ;;
10334
10335     irix5* | irix6* | nonstopux*)
10336       if test yes = "$GCC"; then
10337         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'
10338         # Try to use the -exported_symbol ld option, if it does not
10339         # work, assume that -exports_file does not work either and
10340         # implicitly export all symbols.
10341         # This should be the same for all languages, so no per-tag cache variable.
10342         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10343 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10344 if ${lt_cv_irix_exported_symbol+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   save_LDFLAGS=$LDFLAGS
10348            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10349            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h.  */
10351 int foo (void) { return 0; }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354   lt_cv_irix_exported_symbol=yes
10355 else
10356   lt_cv_irix_exported_symbol=no
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359     conftest$ac_exeext conftest.$ac_ext
10360            LDFLAGS=$save_LDFLAGS
10361 fi
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10363 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10364         if test yes = "$lt_cv_irix_exported_symbol"; then
10365           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'
10366         fi
10367       else
10368         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'
10369         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'
10370       fi
10371       archive_cmds_need_lc='no'
10372       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10373       hardcode_libdir_separator=:
10374       inherit_rpath=yes
10375       link_all_deplibs=yes
10376       ;;
10377
10378     netbsd*)
10379       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10380         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10381       else
10382         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10383       fi
10384       hardcode_libdir_flag_spec='-R$libdir'
10385       hardcode_direct=yes
10386       hardcode_shlibpath_var=no
10387       ;;
10388
10389     newsos6)
10390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391       hardcode_direct=yes
10392       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10393       hardcode_libdir_separator=:
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     *nto* | *qnx*)
10398       ;;
10399
10400     openbsd* | bitrig*)
10401       if test -f /usr/libexec/ld.so; then
10402         hardcode_direct=yes
10403         hardcode_shlibpath_var=no
10404         hardcode_direct_absolute=yes
10405         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10406           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10408           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10409           export_dynamic_flag_spec='$wl-E'
10410         else
10411           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10412           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10413         fi
10414       else
10415         ld_shlibs=no
10416       fi
10417       ;;
10418
10419     os2*)
10420       hardcode_libdir_flag_spec='-L$libdir'
10421       hardcode_minus_L=yes
10422       allow_undefined_flag=unsupported
10423       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'
10424       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10425       ;;
10426
10427     osf3*)
10428       if test yes = "$GCC"; then
10429         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10430         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'
10431       else
10432         allow_undefined_flag=' -expect_unresolved \*'
10433         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'
10434       fi
10435       archive_cmds_need_lc='no'
10436       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10437       hardcode_libdir_separator=:
10438       ;;
10439
10440     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10441       if test yes = "$GCC"; then
10442         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10443         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'
10444         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10445       else
10446         allow_undefined_flag=' -expect_unresolved \*'
10447         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'
10448         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~
10449           $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'
10450
10451         # Both c and cxx compiler support -rpath directly
10452         hardcode_libdir_flag_spec='-rpath $libdir'
10453       fi
10454       archive_cmds_need_lc='no'
10455       hardcode_libdir_separator=:
10456       ;;
10457
10458     solaris*)
10459       no_undefined_flag=' -z defs'
10460       if test yes = "$GCC"; then
10461         wlarc='$wl'
10462         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10463         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10464           $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'
10465       else
10466         case `$CC -V 2>&1` in
10467         *"Compilers 5.0"*)
10468           wlarc=''
10469           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10472           ;;
10473         *)
10474           wlarc='$wl'
10475           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10476           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10478           ;;
10479         esac
10480       fi
10481       hardcode_libdir_flag_spec='-R$libdir'
10482       hardcode_shlibpath_var=no
10483       case $host_os in
10484       solaris2.[0-5] | solaris2.[0-5].*) ;;
10485       *)
10486         # The compiler driver will combine and reorder linker options,
10487         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10488         # but is careful enough not to reorder.
10489         # Supported since Solaris 2.6 (maybe 2.5.1?)
10490         if test yes = "$GCC"; then
10491           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10492         else
10493           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10494         fi
10495         ;;
10496       esac
10497       link_all_deplibs=yes
10498       ;;
10499
10500     sunos4*)
10501       if test sequent = "$host_vendor"; then
10502         # Use $CC to link under sequent, because it throws in some extra .o
10503         # files that make .init and .fini sections work.
10504         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10505       else
10506         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10507       fi
10508       hardcode_libdir_flag_spec='-L$libdir'
10509       hardcode_direct=yes
10510       hardcode_minus_L=yes
10511       hardcode_shlibpath_var=no
10512       ;;
10513
10514     sysv4)
10515       case $host_vendor in
10516         sni)
10517           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518           hardcode_direct=yes # is this really true???
10519         ;;
10520         siemens)
10521           ## LD is ld it makes a PLAMLIB
10522           ## CC just makes a GrossModule.
10523           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10524           reload_cmds='$CC -r -o $output$reload_objs'
10525           hardcode_direct=no
10526         ;;
10527         motorola)
10528           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10530         ;;
10531       esac
10532       runpath_var='LD_RUN_PATH'
10533       hardcode_shlibpath_var=no
10534       ;;
10535
10536     sysv4.3*)
10537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538       hardcode_shlibpath_var=no
10539       export_dynamic_flag_spec='-Bexport'
10540       ;;
10541
10542     sysv4*MP*)
10543       if test -d /usr/nec; then
10544         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545         hardcode_shlibpath_var=no
10546         runpath_var=LD_RUN_PATH
10547         hardcode_runpath_var=yes
10548         ld_shlibs=yes
10549       fi
10550       ;;
10551
10552     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10553       no_undefined_flag='$wl-z,text'
10554       archive_cmds_need_lc=no
10555       hardcode_shlibpath_var=no
10556       runpath_var='LD_RUN_PATH'
10557
10558       if test yes = "$GCC"; then
10559         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561       else
10562         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564       fi
10565       ;;
10566
10567     sysv5* | sco3.2v5* | sco5v6*)
10568       # Note: We CANNOT use -z defs as we might desire, because we do not
10569       # link with -lc, and that would cause any symbols used from libc to
10570       # always be unresolved, which means just about no library would
10571       # ever link correctly.  If we're not using GNU ld we use -z text
10572       # though, which does catch some bad symbols but isn't as heavy-handed
10573       # as -z defs.
10574       no_undefined_flag='$wl-z,text'
10575       allow_undefined_flag='$wl-z,nodefs'
10576       archive_cmds_need_lc=no
10577       hardcode_shlibpath_var=no
10578       hardcode_libdir_flag_spec='$wl-R,$libdir'
10579       hardcode_libdir_separator=':'
10580       link_all_deplibs=yes
10581       export_dynamic_flag_spec='$wl-Bexport'
10582       runpath_var='LD_RUN_PATH'
10583
10584       if test yes = "$GCC"; then
10585         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587       else
10588         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590       fi
10591       ;;
10592
10593     uts4*)
10594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595       hardcode_libdir_flag_spec='-L$libdir'
10596       hardcode_shlibpath_var=no
10597       ;;
10598
10599     *)
10600       ld_shlibs=no
10601       ;;
10602     esac
10603
10604     if test sni = "$host_vendor"; then
10605       case $host in
10606       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10607         export_dynamic_flag_spec='$wl-Blargedynsym'
10608         ;;
10609       esac
10610     fi
10611   fi
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10614 $as_echo "$ld_shlibs" >&6; }
10615 test no = "$ld_shlibs" && can_build_shared=no
10616
10617 with_gnu_ld=$with_gnu_ld
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633 #
10634 # Do we need to explicitly link libc?
10635 #
10636 case "x$archive_cmds_need_lc" in
10637 x|xyes)
10638   # Assume -lc should be added
10639   archive_cmds_need_lc=yes
10640
10641   if test yes,yes = "$GCC,$enable_shared"; then
10642     case $archive_cmds in
10643     *'~'*)
10644       # FIXME: we may have to deal with multi-command sequences.
10645       ;;
10646     '$CC '*)
10647       # Test whether the compiler implicitly links with -lc since on some
10648       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10649       # to ld, don't add -lc before -lgcc.
10650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10651 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10652 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   $RM conftest*
10656         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10659   (eval $ac_compile) 2>&5
10660   ac_status=$?
10661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662   test $ac_status = 0; } 2>conftest.err; then
10663           soname=conftest
10664           lib=conftest
10665           libobjs=conftest.$ac_objext
10666           deplibs=
10667           wl=$lt_prog_compiler_wl
10668           pic_flag=$lt_prog_compiler_pic
10669           compiler_flags=-v
10670           linker_flags=-v
10671           verstring=
10672           output_objdir=.
10673           libname=conftest
10674           lt_save_allow_undefined_flag=$allow_undefined_flag
10675           allow_undefined_flag=
10676           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10677   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10678   ac_status=$?
10679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680   test $ac_status = 0; }
10681           then
10682             lt_cv_archive_cmds_need_lc=no
10683           else
10684             lt_cv_archive_cmds_need_lc=yes
10685           fi
10686           allow_undefined_flag=$lt_save_allow_undefined_flag
10687         else
10688           cat conftest.err 1>&5
10689         fi
10690         $RM conftest*
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10694 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10695       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10696       ;;
10697     esac
10698   fi
10699   ;;
10700 esac
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10855
10856 if test yes = "$GCC"; then
10857   case $host_os in
10858     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10859     *) lt_awk_arg='/^libraries:/' ;;
10860   esac
10861   case $host_os in
10862     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10863     *) lt_sed_strip_eq='s|=/|/|g' ;;
10864   esac
10865   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10866   case $lt_search_path_spec in
10867   *\;*)
10868     # if the path contains ";" then we assume it to be the separator
10869     # otherwise default to the standard path separator (i.e. ":") - it is
10870     # assumed that no part of a normal pathname contains ";" but that should
10871     # okay in the real world where ";" in dirpaths is itself problematic.
10872     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10873     ;;
10874   *)
10875     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10876     ;;
10877   esac
10878   # Ok, now we have the path, separated by spaces, we can step through it
10879   # and add multilib dir if necessary...
10880   lt_tmp_lt_search_path_spec=
10881   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10882   # ...but if some path component already ends with the multilib dir we assume
10883   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10884   case "$lt_multi_os_dir; $lt_search_path_spec " in
10885   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10886     lt_multi_os_dir=
10887     ;;
10888   esac
10889   for lt_sys_path in $lt_search_path_spec; do
10890     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10891       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10892     elif test -n "$lt_multi_os_dir"; then
10893       test -d "$lt_sys_path" && \
10894         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10895     fi
10896   done
10897   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10898 BEGIN {RS = " "; FS = "/|\n";} {
10899   lt_foo = "";
10900   lt_count = 0;
10901   for (lt_i = NF; lt_i > 0; lt_i--) {
10902     if ($lt_i != "" && $lt_i != ".") {
10903       if ($lt_i == "..") {
10904         lt_count++;
10905       } else {
10906         if (lt_count == 0) {
10907           lt_foo = "/" $lt_i lt_foo;
10908         } else {
10909           lt_count--;
10910         }
10911       }
10912     }
10913   }
10914   if (lt_foo != "") { lt_freq[lt_foo]++; }
10915   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10916 }'`
10917   # AWK program above erroneously prepends '/' to C:/dos/paths
10918   # for these hosts.
10919   case $host_os in
10920     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10921       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10922   esac
10923   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10924 else
10925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10926 fi
10927 library_names_spec=
10928 libname_spec='lib$name'
10929 soname_spec=
10930 shrext_cmds=.so
10931 postinstall_cmds=
10932 postuninstall_cmds=
10933 finish_cmds=
10934 finish_eval=
10935 shlibpath_var=
10936 shlibpath_overrides_runpath=unknown
10937 version_type=none
10938 dynamic_linker="$host_os ld.so"
10939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10940 need_lib_prefix=unknown
10941 hardcode_into_libs=no
10942
10943 # when you set need_version to no, make sure it does not cause -set_version
10944 # flags to be left without arguments
10945 need_version=unknown
10946
10947 case $host_os in
10948 aix3*)
10949   version_type=linux # correct to gnu/linux during the next big refactor
10950   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10951   shlibpath_var=LIBPATH
10952
10953   # AIX 3 has no versioning support, so we append a major version to the name.
10954   soname_spec='$libname$release$shared_ext$major'
10955   ;;
10956
10957 aix[4-9]*)
10958   version_type=linux # correct to gnu/linux during the next big refactor
10959   need_lib_prefix=no
10960   need_version=no
10961   hardcode_into_libs=yes
10962   if test ia64 = "$host_cpu"; then
10963     # AIX 5 supports IA64
10964     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10965     shlibpath_var=LD_LIBRARY_PATH
10966   else
10967     # With GCC up to 2.95.x, collect2 would create an import file
10968     # for dependence libraries.  The import file would start with
10969     # the line '#! .'.  This would cause the generated library to
10970     # depend on '.', always an invalid library.  This was fixed in
10971     # development snapshots of GCC prior to 3.0.
10972     case $host_os in
10973       aix4 | aix4.[01] | aix4.[01].*)
10974       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10975            echo ' yes '
10976            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10977         :
10978       else
10979         can_build_shared=no
10980       fi
10981       ;;
10982     esac
10983     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10984     # soname into executable. Probably we can add versioning support to
10985     # collect2, so additional links can be useful in future.
10986     if test yes = "$aix_use_runtimelinking"; then
10987       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988       # instead of lib<name>.a to let people know that these are not
10989       # typical AIX shared libraries.
10990       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10991     else
10992       # We preserve .a as extension for shared libraries through AIX4.2
10993       # and later when we are not doing run time linking.
10994       library_names_spec='$libname$release.a $libname.a'
10995       soname_spec='$libname$release$shared_ext$major'
10996     fi
10997     shlibpath_var=LIBPATH
10998   fi
10999   ;;
11000
11001 amigaos*)
11002   case $host_cpu in
11003   powerpc)
11004     # Since July 2007 AmigaOS4 officially supports .so libraries.
11005     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11006     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007     ;;
11008   m68k)
11009     library_names_spec='$libname.ixlibrary $libname.a'
11010     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11011     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11012     ;;
11013   esac
11014   ;;
11015
11016 beos*)
11017   library_names_spec='$libname$shared_ext'
11018   dynamic_linker="$host_os ld.so"
11019   shlibpath_var=LIBRARY_PATH
11020   ;;
11021
11022 bsdi[45]*)
11023   version_type=linux # correct to gnu/linux during the next big refactor
11024   need_version=no
11025   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11026   soname_spec='$libname$release$shared_ext$major'
11027   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11028   shlibpath_var=LD_LIBRARY_PATH
11029   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11030   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11031   # the default ld.so.conf also contains /usr/contrib/lib and
11032   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11033   # libtool to hard-code these into programs
11034   ;;
11035
11036 cygwin* | mingw* | pw32* | cegcc*)
11037   version_type=windows
11038   shrext_cmds=.dll
11039   need_version=no
11040   need_lib_prefix=no
11041
11042   case $GCC,$cc_basename in
11043   yes,*)
11044     # gcc
11045     library_names_spec='$libname.dll.a'
11046     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11047     postinstall_cmds='base_file=`basename \$file`~
11048       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11049       dldir=$destdir/`dirname \$dlpath`~
11050       test -d \$dldir || mkdir -p \$dldir~
11051       $install_prog $dir/$dlname \$dldir/$dlname~
11052       chmod a+x \$dldir/$dlname~
11053       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11054         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11055       fi'
11056     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11057       dlpath=$dir/\$dldll~
11058        $RM \$dlpath'
11059     shlibpath_overrides_runpath=yes
11060
11061     case $host_os in
11062     cygwin*)
11063       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11064       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11065
11066       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11067       ;;
11068     mingw* | cegcc*)
11069       # MinGW DLLs use traditional 'lib' prefix
11070       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11071       ;;
11072     pw32*)
11073       # pw32 DLLs use 'pw' prefix rather than 'lib'
11074       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11075       ;;
11076     esac
11077     dynamic_linker='Win32 ld.exe'
11078     ;;
11079
11080   *,cl*)
11081     # Native MSVC
11082     libname_spec='$name'
11083     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11084     library_names_spec='$libname.dll.lib'
11085
11086     case $build_os in
11087     mingw*)
11088       sys_lib_search_path_spec=
11089       lt_save_ifs=$IFS
11090       IFS=';'
11091       for lt_path in $LIB
11092       do
11093         IFS=$lt_save_ifs
11094         # Let DOS variable expansion print the short 8.3 style file name.
11095         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11096         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11097       done
11098       IFS=$lt_save_ifs
11099       # Convert to MSYS style.
11100       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11101       ;;
11102     cygwin*)
11103       # Convert to unix form, then to dos form, then back to unix form
11104       # but this time dos style (no spaces!) so that the unix form looks
11105       # like /cygdrive/c/PROGRA~1:/cygdr...
11106       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11107       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11108       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11109       ;;
11110     *)
11111       sys_lib_search_path_spec=$LIB
11112       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11113         # It is most probably a Windows format PATH.
11114         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11115       else
11116         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11117       fi
11118       # FIXME: find the short name or the path components, as spaces are
11119       # common. (e.g. "Program Files" -> "PROGRA~1")
11120       ;;
11121     esac
11122
11123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124     postinstall_cmds='base_file=`basename \$file`~
11125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11126       dldir=$destdir/`dirname \$dlpath`~
11127       test -d \$dldir || mkdir -p \$dldir~
11128       $install_prog $dir/$dlname \$dldir/$dlname'
11129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11130       dlpath=$dir/\$dldll~
11131        $RM \$dlpath'
11132     shlibpath_overrides_runpath=yes
11133     dynamic_linker='Win32 link.exe'
11134     ;;
11135
11136   *)
11137     # Assume MSVC wrapper
11138     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11139     dynamic_linker='Win32 ld.exe'
11140     ;;
11141   esac
11142   # FIXME: first we should search . and the directory the executable is in
11143   shlibpath_var=PATH
11144   ;;
11145
11146 darwin* | rhapsody*)
11147   dynamic_linker="$host_os dyld"
11148   version_type=darwin
11149   need_lib_prefix=no
11150   need_version=no
11151   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11152   soname_spec='$libname$release$major$shared_ext'
11153   shlibpath_overrides_runpath=yes
11154   shlibpath_var=DYLD_LIBRARY_PATH
11155   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11156
11157   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11158   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11159   ;;
11160
11161 dgux*)
11162   version_type=linux # correct to gnu/linux during the next big refactor
11163   need_lib_prefix=no
11164   need_version=no
11165   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166   soname_spec='$libname$release$shared_ext$major'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   ;;
11169
11170 freebsd* | dragonfly*)
11171   # DragonFly does not have aout.  When/if they implement a new
11172   # versioning mechanism, adjust this.
11173   if test -x /usr/bin/objformat; then
11174     objformat=`/usr/bin/objformat`
11175   else
11176     case $host_os in
11177     freebsd[23].*) objformat=aout ;;
11178     *) objformat=elf ;;
11179     esac
11180   fi
11181   version_type=freebsd-$objformat
11182   case $version_type in
11183     freebsd-elf*)
11184       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11185       need_version=no
11186       need_lib_prefix=no
11187       ;;
11188     freebsd-*)
11189       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11190       need_version=yes
11191       ;;
11192   esac
11193   shlibpath_var=LD_LIBRARY_PATH
11194   case $host_os in
11195   freebsd2.*)
11196     shlibpath_overrides_runpath=yes
11197     ;;
11198   freebsd3.[01]* | freebsdelf3.[01]*)
11199     shlibpath_overrides_runpath=yes
11200     hardcode_into_libs=yes
11201     ;;
11202   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11203   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11204     shlibpath_overrides_runpath=no
11205     hardcode_into_libs=yes
11206     ;;
11207   *) # from 4.6 on, and DragonFly
11208     shlibpath_overrides_runpath=yes
11209     hardcode_into_libs=yes
11210     ;;
11211   esac
11212   ;;
11213
11214 haiku*)
11215   version_type=linux # correct to gnu/linux during the next big refactor
11216   need_lib_prefix=no
11217   need_version=no
11218   dynamic_linker="$host_os runtime_loader"
11219   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220   soname_spec='$libname$release$shared_ext$major'
11221   shlibpath_var=LIBRARY_PATH
11222   shlibpath_overrides_runpath=no
11223   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11224   hardcode_into_libs=yes
11225   ;;
11226
11227 hpux9* | hpux10* | hpux11*)
11228   # Give a soname corresponding to the major version so that dld.sl refuses to
11229   # link against other versions.
11230   version_type=sunos
11231   need_lib_prefix=no
11232   need_version=no
11233   case $host_cpu in
11234   ia64*)
11235     shrext_cmds='.so'
11236     hardcode_into_libs=yes
11237     dynamic_linker="$host_os dld.so"
11238     shlibpath_var=LD_LIBRARY_PATH
11239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11240     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241     soname_spec='$libname$release$shared_ext$major'
11242     if test 32 = "$HPUX_IA64_MODE"; then
11243       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11244     else
11245       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11246     fi
11247     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11248     ;;
11249   hppa*64*)
11250     shrext_cmds='.sl'
11251     hardcode_into_libs=yes
11252     dynamic_linker="$host_os dld.sl"
11253     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11255     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256     soname_spec='$libname$release$shared_ext$major'
11257     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11259     ;;
11260   *)
11261     shrext_cmds='.sl'
11262     dynamic_linker="$host_os dld.sl"
11263     shlibpath_var=SHLIB_PATH
11264     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11265     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11266     soname_spec='$libname$release$shared_ext$major'
11267     ;;
11268   esac
11269   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11270   postinstall_cmds='chmod 555 $lib'
11271   # or fails outright, so override atomically:
11272   install_override_mode=555
11273   ;;
11274
11275 interix[3-9]*)
11276   version_type=linux # correct to gnu/linux during the next big refactor
11277   need_lib_prefix=no
11278   need_version=no
11279   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11280   soname_spec='$libname$release$shared_ext$major'
11281   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11282   shlibpath_var=LD_LIBRARY_PATH
11283   shlibpath_overrides_runpath=no
11284   hardcode_into_libs=yes
11285   ;;
11286
11287 irix5* | irix6* | nonstopux*)
11288   case $host_os in
11289     nonstopux*) version_type=nonstopux ;;
11290     *)
11291         if test yes = "$lt_cv_prog_gnu_ld"; then
11292                 version_type=linux # correct to gnu/linux during the next big refactor
11293         else
11294                 version_type=irix
11295         fi ;;
11296   esac
11297   need_lib_prefix=no
11298   need_version=no
11299   soname_spec='$libname$release$shared_ext$major'
11300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11301   case $host_os in
11302   irix5* | nonstopux*)
11303     libsuff= shlibsuff=
11304     ;;
11305   *)
11306     case $LD in # libtool.m4 will add one of these switches to LD
11307     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11308       libsuff= shlibsuff= libmagic=32-bit;;
11309     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11310       libsuff=32 shlibsuff=N32 libmagic=N32;;
11311     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11312       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11313     *) libsuff= shlibsuff= libmagic=never-match;;
11314     esac
11315     ;;
11316   esac
11317   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11318   shlibpath_overrides_runpath=no
11319   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11320   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11321   hardcode_into_libs=yes
11322   ;;
11323
11324 # No shared lib support for Linux oldld, aout, or coff.
11325 linux*oldld* | linux*aout* | linux*coff*)
11326   dynamic_linker=no
11327   ;;
11328
11329 linux*android*)
11330   version_type=none # Android doesn't support versioned libraries.
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='$libname$release$shared_ext'
11334   soname_spec='$libname$release$shared_ext'
11335   finish_cmds=
11336   shlibpath_var=LD_LIBRARY_PATH
11337   shlibpath_overrides_runpath=yes
11338
11339   # This implies no fast_install, which is unacceptable.
11340   # Some rework will be needed to allow for fast_install
11341   # before this can be enabled.
11342   hardcode_into_libs=yes
11343
11344   dynamic_linker='Android linker'
11345   # Don't embed -rpath directories since the linker doesn't support them.
11346   hardcode_libdir_flag_spec='-L$libdir'
11347   ;;
11348
11349 # This must be glibc/ELF.
11350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11351   version_type=linux # correct to gnu/linux during the next big refactor
11352   need_lib_prefix=no
11353   need_version=no
11354   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11355   soname_spec='$libname$release$shared_ext$major'
11356   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   shlibpath_overrides_runpath=no
11359
11360   # Some binutils ld are patched to set DT_RUNPATH
11361   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   lt_cv_shlibpath_overrides_runpath=no
11365     save_LDFLAGS=$LDFLAGS
11366     save_libdir=$libdir
11367     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11368          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h.  */
11371
11372 int
11373 main ()
11374 {
11375
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11382   lt_cv_shlibpath_overrides_runpath=yes
11383 fi
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386     conftest$ac_exeext conftest.$ac_ext
11387     LDFLAGS=$save_LDFLAGS
11388     libdir=$save_libdir
11389
11390 fi
11391
11392   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11393
11394   # This implies no fast_install, which is unacceptable.
11395   # Some rework will be needed to allow for fast_install
11396   # before this can be enabled.
11397   hardcode_into_libs=yes
11398
11399   # Append ld.so.conf contents to the search path
11400   if test -f /etc/ld.so.conf; then
11401     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' ' '`
11402     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11403   fi
11404
11405   # We used to test for /lib/ld.so.1 and disable shared libraries on
11406   # powerpc, because MkLinux only supported shared libraries with the
11407   # GNU dynamic linker.  Since this was broken with cross compilers,
11408   # most powerpc-linux boxes support dynamic linking these days and
11409   # people can always --disable-shared, the test was removed, and we
11410   # assume the GNU/Linux dynamic linker is in use.
11411   dynamic_linker='GNU/Linux ld.so'
11412   ;;
11413
11414 netbsd*)
11415   version_type=sunos
11416   need_lib_prefix=no
11417   need_version=no
11418   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11419     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11421     dynamic_linker='NetBSD (a.out) ld.so'
11422   else
11423     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424     soname_spec='$libname$release$shared_ext$major'
11425     dynamic_linker='NetBSD ld.elf_so'
11426   fi
11427   shlibpath_var=LD_LIBRARY_PATH
11428   shlibpath_overrides_runpath=yes
11429   hardcode_into_libs=yes
11430   ;;
11431
11432 newsos6)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=yes
11437   ;;
11438
11439 *nto* | *qnx*)
11440   version_type=qnx
11441   need_lib_prefix=no
11442   need_version=no
11443   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444   soname_spec='$libname$release$shared_ext$major'
11445   shlibpath_var=LD_LIBRARY_PATH
11446   shlibpath_overrides_runpath=no
11447   hardcode_into_libs=yes
11448   dynamic_linker='ldqnx.so'
11449   ;;
11450
11451 openbsd* | bitrig*)
11452   version_type=sunos
11453   sys_lib_dlsearch_path_spec=/usr/lib
11454   need_lib_prefix=no
11455   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11456     need_version=no
11457   else
11458     need_version=yes
11459   fi
11460   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11461   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   shlibpath_overrides_runpath=yes
11464   ;;
11465
11466 os2*)
11467   libname_spec='$name'
11468   shrext_cmds=.dll
11469   need_lib_prefix=no
11470   library_names_spec='$libname$shared_ext $libname.a'
11471   dynamic_linker='OS/2 ld.exe'
11472   shlibpath_var=LIBPATH
11473   ;;
11474
11475 osf3* | osf4* | osf5*)
11476   version_type=osf
11477   need_lib_prefix=no
11478   need_version=no
11479   soname_spec='$libname$release$shared_ext$major'
11480   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11483   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11484   ;;
11485
11486 rdos*)
11487   dynamic_linker=no
11488   ;;
11489
11490 solaris*)
11491   version_type=linux # correct to gnu/linux during the next big refactor
11492   need_lib_prefix=no
11493   need_version=no
11494   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11495   soname_spec='$libname$release$shared_ext$major'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   shlibpath_overrides_runpath=yes
11498   hardcode_into_libs=yes
11499   # ldd complains unless libraries are executable
11500   postinstall_cmds='chmod +x $lib'
11501   ;;
11502
11503 sunos4*)
11504   version_type=sunos
11505   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11506   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   shlibpath_overrides_runpath=yes
11509   if test yes = "$with_gnu_ld"; then
11510     need_lib_prefix=no
11511   fi
11512   need_version=yes
11513   ;;
11514
11515 sysv4 | sysv4.3*)
11516   version_type=linux # correct to gnu/linux during the next big refactor
11517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518   soname_spec='$libname$release$shared_ext$major'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   case $host_vendor in
11521     sni)
11522       shlibpath_overrides_runpath=no
11523       need_lib_prefix=no
11524       runpath_var=LD_RUN_PATH
11525       ;;
11526     siemens)
11527       need_lib_prefix=no
11528       ;;
11529     motorola)
11530       need_lib_prefix=no
11531       need_version=no
11532       shlibpath_overrides_runpath=no
11533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11534       ;;
11535   esac
11536   ;;
11537
11538 sysv4*MP*)
11539   if test -d /usr/nec; then
11540     version_type=linux # correct to gnu/linux during the next big refactor
11541     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11542     soname_spec='$libname$shared_ext.$major'
11543     shlibpath_var=LD_LIBRARY_PATH
11544   fi
11545   ;;
11546
11547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11548   version_type=freebsd-elf
11549   need_lib_prefix=no
11550   need_version=no
11551   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11552   soname_spec='$libname$release$shared_ext$major'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   shlibpath_overrides_runpath=yes
11555   hardcode_into_libs=yes
11556   if test yes = "$with_gnu_ld"; then
11557     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11558   else
11559     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11560     case $host_os in
11561       sco3.2v5*)
11562         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11563         ;;
11564     esac
11565   fi
11566   sys_lib_dlsearch_path_spec='/usr/lib'
11567   ;;
11568
11569 tpf*)
11570   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11571   version_type=linux # correct to gnu/linux during the next big refactor
11572   need_lib_prefix=no
11573   need_version=no
11574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   shlibpath_overrides_runpath=no
11577   hardcode_into_libs=yes
11578   ;;
11579
11580 uts4*)
11581   version_type=linux # correct to gnu/linux during the next big refactor
11582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583   soname_spec='$libname$release$shared_ext$major'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   ;;
11586
11587 *)
11588   dynamic_linker=no
11589   ;;
11590 esac
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11592 $as_echo "$dynamic_linker" >&6; }
11593 test no = "$dynamic_linker" && can_build_shared=no
11594
11595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11596 if test yes = "$GCC"; then
11597   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11598 fi
11599
11600 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11601   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11602 fi
11603 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11604   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11605 fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11699 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11700 hardcode_action=
11701 if test -n "$hardcode_libdir_flag_spec" ||
11702    test -n "$runpath_var" ||
11703    test yes = "$hardcode_automatic"; then
11704
11705   # We can hardcode non-existent directories.
11706   if test no != "$hardcode_direct" &&
11707      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11708      # have to relink, otherwise we might link with an installed library
11709      # when we should be linking with a yet-to-be-installed one
11710      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11711      test no != "$hardcode_minus_L"; then
11712     # Linking always hardcodes the temporary library directory.
11713     hardcode_action=relink
11714   else
11715     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11716     hardcode_action=immediate
11717   fi
11718 else
11719   # We cannot hardcode anything, or else we can only hardcode existing
11720   # directories.
11721   hardcode_action=unsupported
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11724 $as_echo "$hardcode_action" >&6; }
11725
11726 if test relink = "$hardcode_action" ||
11727    test yes = "$inherit_rpath"; then
11728   # Fast installation is not supported
11729   enable_fast_install=no
11730 elif test yes = "$shlibpath_overrides_runpath" ||
11731      test no = "$enable_shared"; then
11732   # Fast installation is not necessary
11733   enable_fast_install=needless
11734 fi
11735
11736
11737
11738
11739
11740
11741   if test yes != "$enable_dlopen"; then
11742   enable_dlopen=unknown
11743   enable_dlopen_self=unknown
11744   enable_dlopen_self_static=unknown
11745 else
11746   lt_cv_dlopen=no
11747   lt_cv_dlopen_libs=
11748
11749   case $host_os in
11750   beos*)
11751     lt_cv_dlopen=load_add_on
11752     lt_cv_dlopen_libs=
11753     lt_cv_dlopen_self=yes
11754     ;;
11755
11756   mingw* | pw32* | cegcc*)
11757     lt_cv_dlopen=LoadLibrary
11758     lt_cv_dlopen_libs=
11759     ;;
11760
11761   cygwin*)
11762     lt_cv_dlopen=dlopen
11763     lt_cv_dlopen_libs=
11764     ;;
11765
11766   darwin*)
11767     # if libdl is installed we need to link against it
11768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11769 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11770 if ${ac_cv_lib_dl_dlopen+:} false; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-ldl  $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h.  */
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779    Use char because int might match the return type of a GCC
11780    builtin and then its argument prototype would still apply.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char dlopen ();
11785 int
11786 main ()
11787 {
11788 return dlopen ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794   ac_cv_lib_dl_dlopen=yes
11795 else
11796   ac_cv_lib_dl_dlopen=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799     conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11803 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11804 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11805   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11806 else
11807
11808     lt_cv_dlopen=dyld
11809     lt_cv_dlopen_libs=
11810     lt_cv_dlopen_self=yes
11811
11812 fi
11813
11814     ;;
11815
11816   tpf*)
11817     # Don't try to run any link tests for TPF.  We know it's impossible
11818     # because TPF is a cross-compiler, and we know how we open DSOs.
11819     lt_cv_dlopen=dlopen
11820     lt_cv_dlopen_libs=
11821     lt_cv_dlopen_self=no
11822     ;;
11823
11824   *)
11825     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11826 if test "x$ac_cv_func_shl_load" = xyes; then :
11827   lt_cv_dlopen=shl_load
11828 else
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11830 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11831 if ${ac_cv_lib_dld_shl_load+:} false; then :
11832   $as_echo_n "(cached) " >&6
11833 else
11834   ac_check_lib_save_LIBS=$LIBS
11835 LIBS="-ldld  $LIBS"
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h.  */
11838
11839 /* Override any GCC internal prototype to avoid an error.
11840    Use char because int might match the return type of a GCC
11841    builtin and then its argument prototype would still apply.  */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char shl_load ();
11846 int
11847 main ()
11848 {
11849 return shl_load ();
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 if ac_fn_c_try_link "$LINENO"; then :
11855   ac_cv_lib_dld_shl_load=yes
11856 else
11857   ac_cv_lib_dld_shl_load=no
11858 fi
11859 rm -f core conftest.err conftest.$ac_objext \
11860     conftest$ac_exeext conftest.$ac_ext
11861 LIBS=$ac_check_lib_save_LIBS
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11864 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11865 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11866   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11867 else
11868   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11869 if test "x$ac_cv_func_dlopen" = xyes; then :
11870   lt_cv_dlopen=dlopen
11871 else
11872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11873 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11874 if ${ac_cv_lib_dl_dlopen+:} false; then :
11875   $as_echo_n "(cached) " >&6
11876 else
11877   ac_check_lib_save_LIBS=$LIBS
11878 LIBS="-ldl  $LIBS"
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char dlopen ();
11889 int
11890 main ()
11891 {
11892 return dlopen ();
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_link "$LINENO"; then :
11898   ac_cv_lib_dl_dlopen=yes
11899 else
11900   ac_cv_lib_dl_dlopen=no
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext \
11903     conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11907 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11908 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11909   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11910 else
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11912 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11913 if ${ac_cv_lib_svld_dlopen+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   ac_check_lib_save_LIBS=$LIBS
11917 LIBS="-lsvld  $LIBS"
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h.  */
11920
11921 /* Override any GCC internal prototype to avoid an error.
11922    Use char because int might match the return type of a GCC
11923    builtin and then its argument prototype would still apply.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 char dlopen ();
11928 int
11929 main ()
11930 {
11931 return dlopen ();
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_link "$LINENO"; then :
11937   ac_cv_lib_svld_dlopen=yes
11938 else
11939   ac_cv_lib_svld_dlopen=no
11940 fi
11941 rm -f core conftest.err conftest.$ac_objext \
11942     conftest$ac_exeext conftest.$ac_ext
11943 LIBS=$ac_check_lib_save_LIBS
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11946 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11947 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11948   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11949 else
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11951 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11952 if ${ac_cv_lib_dld_dld_link+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   ac_check_lib_save_LIBS=$LIBS
11956 LIBS="-ldld  $LIBS"
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h.  */
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961    Use char because int might match the return type of a GCC
11962    builtin and then its argument prototype would still apply.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char dld_link ();
11967 int
11968 main ()
11969 {
11970 return dld_link ();
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976   ac_cv_lib_dld_dld_link=yes
11977 else
11978   ac_cv_lib_dld_dld_link=no
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext \
11981     conftest$ac_exeext conftest.$ac_ext
11982 LIBS=$ac_check_lib_save_LIBS
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11985 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11986 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11987   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11988 fi
11989
11990
11991 fi
11992
11993
11994 fi
11995
11996
11997 fi
11998
11999
12000 fi
12001
12002
12003 fi
12004
12005     ;;
12006   esac
12007
12008   if test no = "$lt_cv_dlopen"; then
12009     enable_dlopen=no
12010   else
12011     enable_dlopen=yes
12012   fi
12013
12014   case $lt_cv_dlopen in
12015   dlopen)
12016     save_CPPFLAGS=$CPPFLAGS
12017     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12018
12019     save_LDFLAGS=$LDFLAGS
12020     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12021
12022     save_LIBS=$LIBS
12023     LIBS="$lt_cv_dlopen_libs $LIBS"
12024
12025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12026 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12027 if ${lt_cv_dlopen_self+:} false; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030           if test yes = "$cross_compiling"; then :
12031   lt_cv_dlopen_self=cross
12032 else
12033   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12034   lt_status=$lt_dlunknown
12035   cat > conftest.$ac_ext <<_LT_EOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12038
12039 #if HAVE_DLFCN_H
12040 #include <dlfcn.h>
12041 #endif
12042
12043 #include <stdio.h>
12044
12045 #ifdef RTLD_GLOBAL
12046 #  define LT_DLGLOBAL           RTLD_GLOBAL
12047 #else
12048 #  ifdef DL_GLOBAL
12049 #    define LT_DLGLOBAL         DL_GLOBAL
12050 #  else
12051 #    define LT_DLGLOBAL         0
12052 #  endif
12053 #endif
12054
12055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12056    find out it does not work in some platform. */
12057 #ifndef LT_DLLAZY_OR_NOW
12058 #  ifdef RTLD_LAZY
12059 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12060 #  else
12061 #    ifdef DL_LAZY
12062 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12063 #    else
12064 #      ifdef RTLD_NOW
12065 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12066 #      else
12067 #        ifdef DL_NOW
12068 #          define LT_DLLAZY_OR_NOW      DL_NOW
12069 #        else
12070 #          define LT_DLLAZY_OR_NOW      0
12071 #        endif
12072 #      endif
12073 #    endif
12074 #  endif
12075 #endif
12076
12077 /* When -fvisbility=hidden is used, assume the code has been annotated
12078    correspondingly for the symbols needed.  */
12079 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12080 int fnord () __attribute__((visibility("default")));
12081 #endif
12082
12083 int fnord () { return 42; }
12084 int main ()
12085 {
12086   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12087   int status = $lt_dlunknown;
12088
12089   if (self)
12090     {
12091       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12092       else
12093         {
12094           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12095           else puts (dlerror ());
12096         }
12097       /* dlclose (self); */
12098     }
12099   else
12100     puts (dlerror ());
12101
12102   return status;
12103 }
12104 _LT_EOF
12105   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12106   (eval $ac_link) 2>&5
12107   ac_status=$?
12108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12110     (./conftest; exit; ) >&5 2>/dev/null
12111     lt_status=$?
12112     case x$lt_status in
12113       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12114       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12115       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12116     esac
12117   else :
12118     # compilation failed
12119     lt_cv_dlopen_self=no
12120   fi
12121 fi
12122 rm -fr conftest*
12123
12124
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12127 $as_echo "$lt_cv_dlopen_self" >&6; }
12128
12129     if test yes = "$lt_cv_dlopen_self"; then
12130       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12132 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12133 if ${lt_cv_dlopen_self_static+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136           if test yes = "$cross_compiling"; then :
12137   lt_cv_dlopen_self_static=cross
12138 else
12139   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12140   lt_status=$lt_dlunknown
12141   cat > conftest.$ac_ext <<_LT_EOF
12142 #line $LINENO "configure"
12143 #include "confdefs.h"
12144
12145 #if HAVE_DLFCN_H
12146 #include <dlfcn.h>
12147 #endif
12148
12149 #include <stdio.h>
12150
12151 #ifdef RTLD_GLOBAL
12152 #  define LT_DLGLOBAL           RTLD_GLOBAL
12153 #else
12154 #  ifdef DL_GLOBAL
12155 #    define LT_DLGLOBAL         DL_GLOBAL
12156 #  else
12157 #    define LT_DLGLOBAL         0
12158 #  endif
12159 #endif
12160
12161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12162    find out it does not work in some platform. */
12163 #ifndef LT_DLLAZY_OR_NOW
12164 #  ifdef RTLD_LAZY
12165 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12166 #  else
12167 #    ifdef DL_LAZY
12168 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12169 #    else
12170 #      ifdef RTLD_NOW
12171 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12172 #      else
12173 #        ifdef DL_NOW
12174 #          define LT_DLLAZY_OR_NOW      DL_NOW
12175 #        else
12176 #          define LT_DLLAZY_OR_NOW      0
12177 #        endif
12178 #      endif
12179 #    endif
12180 #  endif
12181 #endif
12182
12183 /* When -fvisbility=hidden is used, assume the code has been annotated
12184    correspondingly for the symbols needed.  */
12185 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12186 int fnord () __attribute__((visibility("default")));
12187 #endif
12188
12189 int fnord () { return 42; }
12190 int main ()
12191 {
12192   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12193   int status = $lt_dlunknown;
12194
12195   if (self)
12196     {
12197       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12198       else
12199         {
12200           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12201           else puts (dlerror ());
12202         }
12203       /* dlclose (self); */
12204     }
12205   else
12206     puts (dlerror ());
12207
12208   return status;
12209 }
12210 _LT_EOF
12211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12212   (eval $ac_link) 2>&5
12213   ac_status=$?
12214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12216     (./conftest; exit; ) >&5 2>/dev/null
12217     lt_status=$?
12218     case x$lt_status in
12219       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12220       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12221       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12222     esac
12223   else :
12224     # compilation failed
12225     lt_cv_dlopen_self_static=no
12226   fi
12227 fi
12228 rm -fr conftest*
12229
12230
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12233 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12234     fi
12235
12236     CPPFLAGS=$save_CPPFLAGS
12237     LDFLAGS=$save_LDFLAGS
12238     LIBS=$save_LIBS
12239     ;;
12240   esac
12241
12242   case $lt_cv_dlopen_self in
12243   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12244   *) enable_dlopen_self=unknown ;;
12245   esac
12246
12247   case $lt_cv_dlopen_self_static in
12248   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12249   *) enable_dlopen_self_static=unknown ;;
12250   esac
12251 fi
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269 striplib=
12270 old_striplib=
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12272 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12273 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12274   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12275   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12277 $as_echo "yes" >&6; }
12278 else
12279 # FIXME - insert some real tests, host_os isn't really good enough
12280   case $host_os in
12281   darwin*)
12282     if test -n "$STRIP"; then
12283       striplib="$STRIP -x"
12284       old_striplib="$STRIP -S"
12285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12286 $as_echo "yes" >&6; }
12287     else
12288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290     fi
12291     ;;
12292   *)
12293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295     ;;
12296   esac
12297 fi
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310   # Report what library types will actually be built
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12312 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12314 $as_echo "$can_build_shared" >&6; }
12315
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12317 $as_echo_n "checking whether to build shared libraries... " >&6; }
12318   test no = "$can_build_shared" && enable_shared=no
12319
12320   # On AIX, shared libraries and static libraries use the same namespace, and
12321   # are all built from PIC.
12322   case $host_os in
12323   aix3*)
12324     test yes = "$enable_shared" && enable_static=no
12325     if test -n "$RANLIB"; then
12326       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12327       postinstall_cmds='$RANLIB $lib'
12328     fi
12329     ;;
12330
12331   aix[4-9]*)
12332     if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
12333       test yes = "$enable_shared" && enable_static=no
12334     fi
12335     ;;
12336   esac
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12338 $as_echo "$enable_shared" >&6; }
12339
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12341 $as_echo_n "checking whether to build static libraries... " >&6; }
12342   # Make sure either enable_shared or enable_static is yes.
12343   test yes = "$enable_shared" || enable_static=yes
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12345 $as_echo "$enable_static" >&6; }
12346
12347
12348
12349
12350 fi
12351 ac_ext=c
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357 CC=$lt_save_CC
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373         ac_config_commands="$ac_config_commands libtool"
12374
12375
12376
12377
12378 # Only expand once:
12379
12380
12381
12382 # Check for programs
12383 ac_ext=c
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388 if test -n "$ac_tool_prefix"; then
12389   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_CC+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -n "$CC"; then
12397   ac_cv_prog_CC="$CC" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 CC=$ac_cv_prog_CC
12417 if test -n "$CC"; then
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12419 $as_echo "$CC" >&6; }
12420 else
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425
12426 fi
12427 if test -z "$ac_cv_prog_CC"; then
12428   ac_ct_CC=$CC
12429   # Extract the first word of "gcc", so it can be a program name with args.
12430 set dummy gcc; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   if test -n "$ac_ct_CC"; then
12437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442   IFS=$as_save_IFS
12443   test -z "$as_dir" && as_dir=.
12444     for ac_exec_ext in '' $ac_executable_extensions; do
12445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446     ac_cv_prog_ac_ct_CC="gcc"
12447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448     break 2
12449   fi
12450 done
12451   done
12452 IFS=$as_save_IFS
12453
12454 fi
12455 fi
12456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12457 if test -n "$ac_ct_CC"; then
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12459 $as_echo "$ac_ct_CC" >&6; }
12460 else
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12463 fi
12464
12465   if test "x$ac_ct_CC" = x; then
12466     CC=""
12467   else
12468     case $cross_compiling:$ac_tool_warned in
12469 yes:)
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12472 ac_tool_warned=yes ;;
12473 esac
12474     CC=$ac_ct_CC
12475   fi
12476 else
12477   CC="$ac_cv_prog_CC"
12478 fi
12479
12480 if test -z "$CC"; then
12481           if test -n "$ac_tool_prefix"; then
12482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12483 set dummy ${ac_tool_prefix}cc; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_prog_CC+:} false; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   if test -n "$CC"; then
12490   ac_cv_prog_CC="$CC" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495   IFS=$as_save_IFS
12496   test -z "$as_dir" && as_dir=.
12497     for ac_exec_ext in '' $ac_executable_extensions; do
12498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499     ac_cv_prog_CC="${ac_tool_prefix}cc"
12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501     break 2
12502   fi
12503 done
12504   done
12505 IFS=$as_save_IFS
12506
12507 fi
12508 fi
12509 CC=$ac_cv_prog_CC
12510 if test -n "$CC"; then
12511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12512 $as_echo "$CC" >&6; }
12513 else
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518
12519   fi
12520 fi
12521 if test -z "$CC"; then
12522   # Extract the first word of "cc", so it can be a program name with args.
12523 set dummy cc; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_prog_CC+:} false; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529   if test -n "$CC"; then
12530   ac_cv_prog_CC="$CC" # Let the user override the test.
12531 else
12532   ac_prog_rejected=no
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536   IFS=$as_save_IFS
12537   test -z "$as_dir" && as_dir=.
12538     for ac_exec_ext in '' $ac_executable_extensions; do
12539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12541        ac_prog_rejected=yes
12542        continue
12543      fi
12544     ac_cv_prog_CC="cc"
12545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546     break 2
12547   fi
12548 done
12549   done
12550 IFS=$as_save_IFS
12551
12552 if test $ac_prog_rejected = yes; then
12553   # We found a bogon in the path, so make sure we never use it.
12554   set dummy $ac_cv_prog_CC
12555   shift
12556   if test $# != 0; then
12557     # We chose a different compiler from the bogus one.
12558     # However, it has the same basename, so the bogon will be chosen
12559     # first if we set CC to just the basename; use the full file name.
12560     shift
12561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12562   fi
12563 fi
12564 fi
12565 fi
12566 CC=$ac_cv_prog_CC
12567 if test -n "$CC"; then
12568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12569 $as_echo "$CC" >&6; }
12570 else
12571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12573 fi
12574
12575
12576 fi
12577 if test -z "$CC"; then
12578   if test -n "$ac_tool_prefix"; then
12579   for ac_prog in cl.exe
12580   do
12581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if ${ac_cv_prog_CC+:} false; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   if test -n "$CC"; then
12589   ac_cv_prog_CC="$CC" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594   IFS=$as_save_IFS
12595   test -z "$as_dir" && as_dir=.
12596     for ac_exec_ext in '' $ac_executable_extensions; do
12597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600     break 2
12601   fi
12602 done
12603   done
12604 IFS=$as_save_IFS
12605
12606 fi
12607 fi
12608 CC=$ac_cv_prog_CC
12609 if test -n "$CC"; then
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12611 $as_echo "$CC" >&6; }
12612 else
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617
12618     test -n "$CC" && break
12619   done
12620 fi
12621 if test -z "$CC"; then
12622   ac_ct_CC=$CC
12623   for ac_prog in cl.exe
12624 do
12625   # Extract the first word of "$ac_prog", so it can be a program name with args.
12626 set dummy $ac_prog; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "$ac_ct_CC"; then
12633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642     ac_cv_prog_ac_ct_CC="$ac_prog"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12653 if test -n "$ac_ct_CC"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12655 $as_echo "$ac_ct_CC" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661
12662   test -n "$ac_ct_CC" && break
12663 done
12664
12665   if test "x$ac_ct_CC" = x; then
12666     CC=""
12667   else
12668     case $cross_compiling:$ac_tool_warned in
12669 yes:)
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12672 ac_tool_warned=yes ;;
12673 esac
12674     CC=$ac_ct_CC
12675   fi
12676 fi
12677
12678 fi
12679
12680
12681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12683 as_fn_error $? "no acceptable C compiler found in \$PATH
12684 See \`config.log' for more details" "$LINENO" 5; }
12685
12686 # Provide some information about the compiler.
12687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12688 set X $ac_compile
12689 ac_compiler=$2
12690 for ac_option in --version -v -V -qversion; do
12691   { { ac_try="$ac_compiler $ac_option >&5"
12692 case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12697 $as_echo "$ac_try_echo"; } >&5
12698   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12699   ac_status=$?
12700   if test -s conftest.err; then
12701     sed '10a\
12702 ... rest of stderr output deleted ...
12703          10q' conftest.err >conftest.er1
12704     cat conftest.er1 >&5
12705   fi
12706   rm -f conftest.er1 conftest.err
12707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12708   test $ac_status = 0; }
12709 done
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12713 if ${ac_cv_c_compiler_gnu+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h.  */
12718
12719 int
12720 main ()
12721 {
12722 #ifndef __GNUC__
12723        choke me
12724 #endif
12725
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731   ac_compiler_gnu=yes
12732 else
12733   ac_compiler_gnu=no
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12737
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12741 if test $ac_compiler_gnu = yes; then
12742   GCC=yes
12743 else
12744   GCC=
12745 fi
12746 ac_test_CFLAGS=${CFLAGS+set}
12747 ac_save_CFLAGS=$CFLAGS
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12750 if ${ac_cv_prog_cc_g+:} false; then :
12751   $as_echo_n "(cached) " >&6
12752 else
12753   ac_save_c_werror_flag=$ac_c_werror_flag
12754    ac_c_werror_flag=yes
12755    ac_cv_prog_cc_g=no
12756    CFLAGS="-g"
12757    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h.  */
12759
12760 int
12761 main ()
12762 {
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_compile "$LINENO"; then :
12769   ac_cv_prog_cc_g=yes
12770 else
12771   CFLAGS=""
12772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784
12785 else
12786   ac_c_werror_flag=$ac_save_c_werror_flag
12787          CFLAGS="-g"
12788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h.  */
12790
12791 int
12792 main ()
12793 {
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_compile "$LINENO"; then :
12800   ac_cv_prog_cc_g=yes
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807    ac_c_werror_flag=$ac_save_c_werror_flag
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12810 $as_echo "$ac_cv_prog_cc_g" >&6; }
12811 if test "$ac_test_CFLAGS" = set; then
12812   CFLAGS=$ac_save_CFLAGS
12813 elif test $ac_cv_prog_cc_g = yes; then
12814   if test "$GCC" = yes; then
12815     CFLAGS="-g -O2"
12816   else
12817     CFLAGS="-g"
12818   fi
12819 else
12820   if test "$GCC" = yes; then
12821     CFLAGS="-O2"
12822   else
12823     CFLAGS=
12824   fi
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12828 if ${ac_cv_prog_cc_c89+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831   ac_cv_prog_cc_c89=no
12832 ac_save_CC=$CC
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h.  */
12835 #include <stdarg.h>
12836 #include <stdio.h>
12837 struct stat;
12838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12839 struct buf { int x; };
12840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12841 static char *e (p, i)
12842      char **p;
12843      int i;
12844 {
12845   return p[i];
12846 }
12847 static char *f (char * (*g) (char **, int), char **p, ...)
12848 {
12849   char *s;
12850   va_list v;
12851   va_start (v,p);
12852   s = g (p, va_arg (v,int));
12853   va_end (v);
12854   return s;
12855 }
12856
12857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12858    function prototypes and stuff, but not '\xHH' hex character constants.
12859    These don't provoke an error unfortunately, instead are silently treated
12860    as 'x'.  The following induces an error, until -std is added to get
12861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12862    array size at least.  It's necessary to write '\x00'==0 to get something
12863    that's true only with -std.  */
12864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12865
12866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12867    inside strings and character constants.  */
12868 #define FOO(x) 'x'
12869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12870
12871 int test (int i, double x);
12872 struct s1 {int (*f) (int a);};
12873 struct s2 {int (*f) (double a);};
12874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12875 int argc;
12876 char **argv;
12877 int
12878 main ()
12879 {
12880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12881   ;
12882   return 0;
12883 }
12884 _ACEOF
12885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12887 do
12888   CC="$ac_save_CC $ac_arg"
12889   if ac_fn_c_try_compile "$LINENO"; then :
12890   ac_cv_prog_cc_c89=$ac_arg
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext
12893   test "x$ac_cv_prog_cc_c89" != "xno" && break
12894 done
12895 rm -f conftest.$ac_ext
12896 CC=$ac_save_CC
12897
12898 fi
12899 # AC_CACHE_VAL
12900 case "x$ac_cv_prog_cc_c89" in
12901   x)
12902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12903 $as_echo "none needed" >&6; } ;;
12904   xno)
12905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12906 $as_echo "unsupported" >&6; } ;;
12907   *)
12908     CC="$CC $ac_cv_prog_cc_c89"
12909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12911 esac
12912 if test "x$ac_cv_prog_cc_c89" != xno; then :
12913
12914 fi
12915
12916 ac_ext=c
12917 ac_cpp='$CPP $CPPFLAGS'
12918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12921
12922 ac_ext=c
12923 ac_cpp='$CPP $CPPFLAGS'
12924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12929 if ${am_cv_prog_cc_c_o+:} false; then :
12930   $as_echo_n "(cached) " >&6
12931 else
12932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h.  */
12934
12935 int
12936 main ()
12937 {
12938
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943   # Make sure it works both with $CC and with simple cc.
12944   # Following AC_PROG_CC_C_O, we do the test twice because some
12945   # compilers refuse to overwrite an existing .o file with -o,
12946   # though they will create one.
12947   am_cv_prog_cc_c_o=yes
12948   for am_i in 1 2; do
12949     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12950    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12951    ac_status=$?
12952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953    (exit $ac_status); } \
12954          && test -f conftest2.$ac_objext; then
12955       : OK
12956     else
12957       am_cv_prog_cc_c_o=no
12958       break
12959     fi
12960   done
12961   rm -f core conftest*
12962   unset am_i
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12966 if test "$am_cv_prog_cc_c_o" != yes; then
12967    # Losing compiler, so override with the script.
12968    # FIXME: It is wrong to rewrite CC.
12969    # But if we don't then we get into trouble of one sort or another.
12970    # A longer-term fix would be to have automake use am__CC in this case,
12971    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12972    CC="$am_aux_dir/compile $CC"
12973 fi
12974 ac_ext=c
12975 ac_cpp='$CPP $CPPFLAGS'
12976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979
12980
12981 depcc="$CC"   am_compiler_list=
12982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12984 $as_echo_n "checking dependency style of $depcc... " >&6; }
12985 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12989   # We make a subdir and do the tests there.  Otherwise we can end up
12990   # making bogus files that we don't know about and never remove.  For
12991   # instance it was reported that on HP-UX the gcc test will end up
12992   # making a dummy file named 'D' -- because '-MD' means "put the output
12993   # in D".
12994   rm -rf conftest.dir
12995   mkdir conftest.dir
12996   # Copy depcomp to subdir because otherwise we won't find it if we're
12997   # using a relative directory.
12998   cp "$am_depcomp" conftest.dir
12999   cd conftest.dir
13000   # We will build objects and dependencies in a subdirectory because
13001   # it helps to detect inapplicable dependency modes.  For instance
13002   # both Tru64's cc and ICC support -MD to output dependencies as a
13003   # side effect of compilation, but ICC will put the dependencies in
13004   # the current directory while Tru64 will put them in the object
13005   # directory.
13006   mkdir sub
13007
13008   am_cv_CC_dependencies_compiler_type=none
13009   if test "$am_compiler_list" = ""; then
13010      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13011   fi
13012   am__universal=false
13013   case " $depcc " in #(
13014      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13015      esac
13016
13017   for depmode in $am_compiler_list; do
13018     # Setup a source with many dependencies, because some compilers
13019     # like to wrap large dependency lists on column 80 (with \), and
13020     # we should not choose a depcomp mode which is confused by this.
13021     #
13022     # We need to recreate these files for each test, as the compiler may
13023     # overwrite some of them when testing with obscure command lines.
13024     # This happens at least with the AIX C compiler.
13025     : > sub/conftest.c
13026     for i in 1 2 3 4 5 6; do
13027       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13028       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13029       # Solaris 10 /bin/sh.
13030       echo '/* dummy */' > sub/conftst$i.h
13031     done
13032     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13033
13034     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13035     # mode.  It turns out that the SunPro C++ compiler does not properly
13036     # handle '-M -o', and we need to detect this.  Also, some Intel
13037     # versions had trouble with output in subdirs.
13038     am__obj=sub/conftest.${OBJEXT-o}
13039     am__minus_obj="-o $am__obj"
13040     case $depmode in
13041     gcc)
13042       # This depmode causes a compiler race in universal mode.
13043       test "$am__universal" = false || continue
13044       ;;
13045     nosideeffect)
13046       # After this tag, mechanisms are not by side-effect, so they'll
13047       # only be used when explicitly requested.
13048       if test "x$enable_dependency_tracking" = xyes; then
13049         continue
13050       else
13051         break
13052       fi
13053       ;;
13054     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13055       # This compiler won't grok '-c -o', but also, the minuso test has
13056       # not run yet.  These depmodes are late enough in the game, and
13057       # so weak that their functioning should not be impacted.
13058       am__obj=conftest.${OBJEXT-o}
13059       am__minus_obj=
13060       ;;
13061     none) break ;;
13062     esac
13063     if depmode=$depmode \
13064        source=sub/conftest.c object=$am__obj \
13065        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13066        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13067          >/dev/null 2>conftest.err &&
13068        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13069        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13070        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13071        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13072       # icc doesn't choke on unknown options, it will just issue warnings
13073       # or remarks (even with -Werror).  So we grep stderr for any message
13074       # that says an option was ignored or not supported.
13075       # When given -MP, icc 7.0 and 7.1 complain thusly:
13076       #   icc: Command line warning: ignoring option '-M'; no argument required
13077       # The diagnosis changed in icc 8.0:
13078       #   icc: Command line remark: option '-MP' not supported
13079       if (grep 'ignoring option' conftest.err ||
13080           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13081         am_cv_CC_dependencies_compiler_type=$depmode
13082         break
13083       fi
13084     fi
13085   done
13086
13087   cd ..
13088   rm -rf conftest.dir
13089 else
13090   am_cv_CC_dependencies_compiler_type=none
13091 fi
13092
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13097
13098  if
13099   test "x$enable_dependency_tracking" != xno \
13100   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13101   am__fastdepCC_TRUE=
13102   am__fastdepCC_FALSE='#'
13103 else
13104   am__fastdepCC_TRUE='#'
13105   am__fastdepCC_FALSE=
13106 fi
13107
13108
13109
13110 ac_ext=cpp
13111 ac_cpp='$CXXCPP $CPPFLAGS'
13112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13115 if test -z "$CXX"; then
13116   if test -n "$CCC"; then
13117     CXX=$CCC
13118   else
13119     if test -n "$ac_tool_prefix"; then
13120   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13121   do
13122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_prog_CXX+:} false; then :
13127   $as_echo_n "(cached) " >&6
13128 else
13129   if test -n "$CXX"; then
13130   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13131 else
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135   IFS=$as_save_IFS
13136   test -z "$as_dir" && as_dir=.
13137     for ac_exec_ext in '' $ac_executable_extensions; do
13138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141     break 2
13142   fi
13143 done
13144   done
13145 IFS=$as_save_IFS
13146
13147 fi
13148 fi
13149 CXX=$ac_cv_prog_CXX
13150 if test -n "$CXX"; then
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13152 $as_echo "$CXX" >&6; }
13153 else
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 fi
13157
13158
13159     test -n "$CXX" && break
13160   done
13161 fi
13162 if test -z "$CXX"; then
13163   ac_ct_CXX=$CXX
13164   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13165 do
13166   # Extract the first word of "$ac_prog", so it can be a program name with args.
13167 set dummy $ac_prog; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   if test -n "$ac_ct_CXX"; then
13174   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179   IFS=$as_save_IFS
13180   test -z "$as_dir" && as_dir=.
13181     for ac_exec_ext in '' $ac_executable_extensions; do
13182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13183     ac_cv_prog_ac_ct_CXX="$ac_prog"
13184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185     break 2
13186   fi
13187 done
13188   done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13194 if test -n "$ac_ct_CXX"; then
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13196 $as_echo "$ac_ct_CXX" >&6; }
13197 else
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201
13202
13203   test -n "$ac_ct_CXX" && break
13204 done
13205
13206   if test "x$ac_ct_CXX" = x; then
13207     CXX="g++"
13208   else
13209     case $cross_compiling:$ac_tool_warned in
13210 yes:)
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13214 esac
13215     CXX=$ac_ct_CXX
13216   fi
13217 fi
13218
13219   fi
13220 fi
13221 # Provide some information about the compiler.
13222 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13223 set X $ac_compile
13224 ac_compiler=$2
13225 for ac_option in --version -v -V -qversion; do
13226   { { ac_try="$ac_compiler $ac_option >&5"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13232 $as_echo "$ac_try_echo"; } >&5
13233   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13234   ac_status=$?
13235   if test -s conftest.err; then
13236     sed '10a\
13237 ... rest of stderr output deleted ...
13238          10q' conftest.err >conftest.er1
13239     cat conftest.er1 >&5
13240   fi
13241   rm -f conftest.er1 conftest.err
13242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243   test $ac_status = 0; }
13244 done
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13247 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13248 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13249   $as_echo_n "(cached) " >&6
13250 else
13251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h.  */
13253
13254 int
13255 main ()
13256 {
13257 #ifndef __GNUC__
13258        choke me
13259 #endif
13260
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_cxx_try_compile "$LINENO"; then :
13266   ac_compiler_gnu=yes
13267 else
13268   ac_compiler_gnu=no
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13272
13273 fi
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13275 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13276 if test $ac_compiler_gnu = yes; then
13277   GXX=yes
13278 else
13279   GXX=
13280 fi
13281 ac_test_CXXFLAGS=${CXXFLAGS+set}
13282 ac_save_CXXFLAGS=$CXXFLAGS
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13284 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13285 if ${ac_cv_prog_cxx_g+:} false; then :
13286   $as_echo_n "(cached) " >&6
13287 else
13288   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13289    ac_cxx_werror_flag=yes
13290    ac_cv_prog_cxx_g=no
13291    CXXFLAGS="-g"
13292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h.  */
13294
13295 int
13296 main ()
13297 {
13298
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 if ac_fn_cxx_try_compile "$LINENO"; then :
13304   ac_cv_prog_cxx_g=yes
13305 else
13306   CXXFLAGS=""
13307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h.  */
13309
13310 int
13311 main ()
13312 {
13313
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_cxx_try_compile "$LINENO"; then :
13319
13320 else
13321   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13322          CXXFLAGS="-g"
13323          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h.  */
13325
13326 int
13327 main ()
13328 {
13329
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_cxx_try_compile "$LINENO"; then :
13335   ac_cv_prog_cxx_g=yes
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 fi
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13345 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13346 if test "$ac_test_CXXFLAGS" = set; then
13347   CXXFLAGS=$ac_save_CXXFLAGS
13348 elif test $ac_cv_prog_cxx_g = yes; then
13349   if test "$GXX" = yes; then
13350     CXXFLAGS="-g -O2"
13351   else
13352     CXXFLAGS="-g"
13353   fi
13354 else
13355   if test "$GXX" = yes; then
13356     CXXFLAGS="-O2"
13357   else
13358     CXXFLAGS=
13359   fi
13360 fi
13361 ac_ext=c
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13366
13367 depcc="$CXX"  am_compiler_list=
13368
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13370 $as_echo_n "checking dependency style of $depcc... " >&6; }
13371 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13372   $as_echo_n "(cached) " >&6
13373 else
13374   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13375   # We make a subdir and do the tests there.  Otherwise we can end up
13376   # making bogus files that we don't know about and never remove.  For
13377   # instance it was reported that on HP-UX the gcc test will end up
13378   # making a dummy file named 'D' -- because '-MD' means "put the output
13379   # in D".
13380   rm -rf conftest.dir
13381   mkdir conftest.dir
13382   # Copy depcomp to subdir because otherwise we won't find it if we're
13383   # using a relative directory.
13384   cp "$am_depcomp" conftest.dir
13385   cd conftest.dir
13386   # We will build objects and dependencies in a subdirectory because
13387   # it helps to detect inapplicable dependency modes.  For instance
13388   # both Tru64's cc and ICC support -MD to output dependencies as a
13389   # side effect of compilation, but ICC will put the dependencies in
13390   # the current directory while Tru64 will put them in the object
13391   # directory.
13392   mkdir sub
13393
13394   am_cv_CXX_dependencies_compiler_type=none
13395   if test "$am_compiler_list" = ""; then
13396      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13397   fi
13398   am__universal=false
13399   case " $depcc " in #(
13400      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13401      esac
13402
13403   for depmode in $am_compiler_list; do
13404     # Setup a source with many dependencies, because some compilers
13405     # like to wrap large dependency lists on column 80 (with \), and
13406     # we should not choose a depcomp mode which is confused by this.
13407     #
13408     # We need to recreate these files for each test, as the compiler may
13409     # overwrite some of them when testing with obscure command lines.
13410     # This happens at least with the AIX C compiler.
13411     : > sub/conftest.c
13412     for i in 1 2 3 4 5 6; do
13413       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13414       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13415       # Solaris 10 /bin/sh.
13416       echo '/* dummy */' > sub/conftst$i.h
13417     done
13418     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13419
13420     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13421     # mode.  It turns out that the SunPro C++ compiler does not properly
13422     # handle '-M -o', and we need to detect this.  Also, some Intel
13423     # versions had trouble with output in subdirs.
13424     am__obj=sub/conftest.${OBJEXT-o}
13425     am__minus_obj="-o $am__obj"
13426     case $depmode in
13427     gcc)
13428       # This depmode causes a compiler race in universal mode.
13429       test "$am__universal" = false || continue
13430       ;;
13431     nosideeffect)
13432       # After this tag, mechanisms are not by side-effect, so they'll
13433       # only be used when explicitly requested.
13434       if test "x$enable_dependency_tracking" = xyes; then
13435         continue
13436       else
13437         break
13438       fi
13439       ;;
13440     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13441       # This compiler won't grok '-c -o', but also, the minuso test has
13442       # not run yet.  These depmodes are late enough in the game, and
13443       # so weak that their functioning should not be impacted.
13444       am__obj=conftest.${OBJEXT-o}
13445       am__minus_obj=
13446       ;;
13447     none) break ;;
13448     esac
13449     if depmode=$depmode \
13450        source=sub/conftest.c object=$am__obj \
13451        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13452        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13453          >/dev/null 2>conftest.err &&
13454        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13455        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13456        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13457        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13458       # icc doesn't choke on unknown options, it will just issue warnings
13459       # or remarks (even with -Werror).  So we grep stderr for any message
13460       # that says an option was ignored or not supported.
13461       # When given -MP, icc 7.0 and 7.1 complain thusly:
13462       #   icc: Command line warning: ignoring option '-M'; no argument required
13463       # The diagnosis changed in icc 8.0:
13464       #   icc: Command line remark: option '-MP' not supported
13465       if (grep 'ignoring option' conftest.err ||
13466           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13467         am_cv_CXX_dependencies_compiler_type=$depmode
13468         break
13469       fi
13470     fi
13471   done
13472
13473   cd ..
13474   rm -rf conftest.dir
13475 else
13476   am_cv_CXX_dependencies_compiler_type=none
13477 fi
13478
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13481 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13482 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13483
13484  if
13485   test "x$enable_dependency_tracking" != xno \
13486   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13487   am__fastdepCXX_TRUE=
13488   am__fastdepCXX_FALSE='#'
13489 else
13490   am__fastdepCXX_TRUE='#'
13491   am__fastdepCXX_FALSE=
13492 fi
13493
13494
13495
13496
13497 func_stripname_cnf ()
13498 {
13499   case $2 in
13500   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13501   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13502   esac
13503 } # func_stripname_cnf
13504
13505       if test -n "$CXX" && ( test no != "$CXX" &&
13506     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13507     (test g++ != "$CXX"))); then
13508   ac_ext=cpp
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13514 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13515 if test -z "$CXXCPP"; then
13516   if ${ac_cv_prog_CXXCPP+:} false; then :
13517   $as_echo_n "(cached) " >&6
13518 else
13519       # Double quotes because CXXCPP needs to be expanded
13520     for CXXCPP in "$CXX -E" "/lib/cpp"
13521     do
13522       ac_preproc_ok=false
13523 for ac_cxx_preproc_warn_flag in '' yes
13524 do
13525   # Use a header file that comes with gcc, so configuring glibc
13526   # with a fresh cross-compiler works.
13527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13528   # <limits.h> exists even on freestanding compilers.
13529   # On the NeXT, cc -E runs the code through the compiler's parser,
13530   # not just through cpp. "Syntax error" is here to catch this case.
13531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h.  */
13533 #ifdef __STDC__
13534 # include <limits.h>
13535 #else
13536 # include <assert.h>
13537 #endif
13538                      Syntax error
13539 _ACEOF
13540 if ac_fn_cxx_try_cpp "$LINENO"; then :
13541
13542 else
13543   # Broken: fails on valid input.
13544 continue
13545 fi
13546 rm -f conftest.err conftest.i conftest.$ac_ext
13547
13548   # OK, works on sane cases.  Now check whether nonexistent headers
13549   # can be detected and how.
13550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h.  */
13552 #include <ac_nonexistent.h>
13553 _ACEOF
13554 if ac_fn_cxx_try_cpp "$LINENO"; then :
13555   # Broken: success on invalid input.
13556 continue
13557 else
13558   # Passes both tests.
13559 ac_preproc_ok=:
13560 break
13561 fi
13562 rm -f conftest.err conftest.i conftest.$ac_ext
13563
13564 done
13565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13566 rm -f conftest.i conftest.err conftest.$ac_ext
13567 if $ac_preproc_ok; then :
13568   break
13569 fi
13570
13571     done
13572     ac_cv_prog_CXXCPP=$CXXCPP
13573
13574 fi
13575   CXXCPP=$ac_cv_prog_CXXCPP
13576 else
13577   ac_cv_prog_CXXCPP=$CXXCPP
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13580 $as_echo "$CXXCPP" >&6; }
13581 ac_preproc_ok=false
13582 for ac_cxx_preproc_warn_flag in '' yes
13583 do
13584   # Use a header file that comes with gcc, so configuring glibc
13585   # with a fresh cross-compiler works.
13586   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13587   # <limits.h> exists even on freestanding compilers.
13588   # On the NeXT, cc -E runs the code through the compiler's parser,
13589   # not just through cpp. "Syntax error" is here to catch this case.
13590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h.  */
13592 #ifdef __STDC__
13593 # include <limits.h>
13594 #else
13595 # include <assert.h>
13596 #endif
13597                      Syntax error
13598 _ACEOF
13599 if ac_fn_cxx_try_cpp "$LINENO"; then :
13600
13601 else
13602   # Broken: fails on valid input.
13603 continue
13604 fi
13605 rm -f conftest.err conftest.i conftest.$ac_ext
13606
13607   # OK, works on sane cases.  Now check whether nonexistent headers
13608   # can be detected and how.
13609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h.  */
13611 #include <ac_nonexistent.h>
13612 _ACEOF
13613 if ac_fn_cxx_try_cpp "$LINENO"; then :
13614   # Broken: success on invalid input.
13615 continue
13616 else
13617   # Passes both tests.
13618 ac_preproc_ok=:
13619 break
13620 fi
13621 rm -f conftest.err conftest.i conftest.$ac_ext
13622
13623 done
13624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13625 rm -f conftest.i conftest.err conftest.$ac_ext
13626 if $ac_preproc_ok; then :
13627
13628 else
13629   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13631 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13632 See \`config.log' for more details" "$LINENO" 5; }
13633 fi
13634
13635 ac_ext=c
13636 ac_cpp='$CPP $CPPFLAGS'
13637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13640
13641 else
13642   _lt_caught_CXX_error=yes
13643 fi
13644
13645 ac_ext=cpp
13646 ac_cpp='$CXXCPP $CPPFLAGS'
13647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13650
13651 archive_cmds_need_lc_CXX=no
13652 allow_undefined_flag_CXX=
13653 always_export_symbols_CXX=no
13654 archive_expsym_cmds_CXX=
13655 compiler_needs_object_CXX=no
13656 export_dynamic_flag_spec_CXX=
13657 hardcode_direct_CXX=no
13658 hardcode_direct_absolute_CXX=no
13659 hardcode_libdir_flag_spec_CXX=
13660 hardcode_libdir_separator_CXX=
13661 hardcode_minus_L_CXX=no
13662 hardcode_shlibpath_var_CXX=unsupported
13663 hardcode_automatic_CXX=no
13664 inherit_rpath_CXX=no
13665 module_cmds_CXX=
13666 module_expsym_cmds_CXX=
13667 link_all_deplibs_CXX=unknown
13668 old_archive_cmds_CXX=$old_archive_cmds
13669 reload_flag_CXX=$reload_flag
13670 reload_cmds_CXX=$reload_cmds
13671 no_undefined_flag_CXX=
13672 whole_archive_flag_spec_CXX=
13673 enable_shared_with_static_runtimes_CXX=no
13674
13675 # Source file extension for C++ test sources.
13676 ac_ext=cpp
13677
13678 # Object file extension for compiled C++ test sources.
13679 objext=o
13680 objext_CXX=$objext
13681
13682 # No sense in running all these tests if we already determined that
13683 # the CXX compiler isn't working.  Some variables (like enable_shared)
13684 # are currently assumed to apply to all compilers on this platform,
13685 # and will be corrupted by setting them based on a non-working compiler.
13686 if test yes != "$_lt_caught_CXX_error"; then
13687   # Code to be used in simple compile tests
13688   lt_simple_compile_test_code="int some_variable = 0;"
13689
13690   # Code to be used in simple link tests
13691   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13692
13693   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13694
13695
13696
13697
13698
13699
13700 # If no C compiler was specified, use CC.
13701 LTCC=${LTCC-"$CC"}
13702
13703 # If no C compiler flags were specified, use CFLAGS.
13704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13705
13706 # Allow CC to be a program name with arguments.
13707 compiler=$CC
13708
13709
13710   # save warnings/boilerplate of simple test code
13711   ac_outfile=conftest.$ac_objext
13712 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13714 _lt_compiler_boilerplate=`cat conftest.err`
13715 $RM conftest*
13716
13717   ac_outfile=conftest.$ac_objext
13718 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13720 _lt_linker_boilerplate=`cat conftest.err`
13721 $RM -r conftest*
13722
13723
13724   # Allow CC to be a program name with arguments.
13725   lt_save_CC=$CC
13726   lt_save_CFLAGS=$CFLAGS
13727   lt_save_LD=$LD
13728   lt_save_GCC=$GCC
13729   GCC=$GXX
13730   lt_save_with_gnu_ld=$with_gnu_ld
13731   lt_save_path_LD=$lt_cv_path_LD
13732   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13733     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13734   else
13735     $as_unset lt_cv_prog_gnu_ld
13736   fi
13737   if test -n "${lt_cv_path_LDCXX+set}"; then
13738     lt_cv_path_LD=$lt_cv_path_LDCXX
13739   else
13740     $as_unset lt_cv_path_LD
13741   fi
13742   test -z "${LDCXX+set}" || LD=$LDCXX
13743   CC=${CXX-"c++"}
13744   CFLAGS=$CXXFLAGS
13745   compiler=$CC
13746   compiler_CXX=$CC
13747   for cc_temp in $compiler""; do
13748   case $cc_temp in
13749     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13750     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13751     \-*) ;;
13752     *) break;;
13753   esac
13754 done
13755 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13756
13757
13758   if test -n "$compiler"; then
13759     # We don't want -fno-exception when compiling C++ code, so set the
13760     # no_builtin_flag separately
13761     if test yes = "$GXX"; then
13762       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13763     else
13764       lt_prog_compiler_no_builtin_flag_CXX=
13765     fi
13766
13767     if test yes = "$GXX"; then
13768       # Set up default GNU C++ configuration
13769
13770
13771
13772 # Check whether --with-gnu-ld was given.
13773 if test "${with_gnu_ld+set}" = set; then :
13774   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13775 else
13776   with_gnu_ld=no
13777 fi
13778
13779 ac_prog=ld
13780 if test yes = "$GCC"; then
13781   # Check if gcc -print-prog-name=ld gives a path.
13782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13783 $as_echo_n "checking for ld used by $CC... " >&6; }
13784   case $host in
13785   *-*-mingw*)
13786     # gcc leaves a trailing carriage return, which upsets mingw
13787     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13788   *)
13789     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13790   esac
13791   case $ac_prog in
13792     # Accept absolute paths.
13793     [\\/]* | ?:[\\/]*)
13794       re_direlt='/[^/][^/]*/\.\./'
13795       # Canonicalize the pathname of ld
13796       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13797       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13798         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13799       done
13800       test -z "$LD" && LD=$ac_prog
13801       ;;
13802   "")
13803     # If it fails, then pretend we aren't using GCC.
13804     ac_prog=ld
13805     ;;
13806   *)
13807     # If it is relative, then search for the first ld in PATH.
13808     with_gnu_ld=unknown
13809     ;;
13810   esac
13811 elif test yes = "$with_gnu_ld"; then
13812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13813 $as_echo_n "checking for GNU ld... " >&6; }
13814 else
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13816 $as_echo_n "checking for non-GNU ld... " >&6; }
13817 fi
13818 if ${lt_cv_path_LD+:} false; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   if test -z "$LD"; then
13822   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13823   for ac_dir in $PATH; do
13824     IFS=$lt_save_ifs
13825     test -z "$ac_dir" && ac_dir=.
13826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13827       lt_cv_path_LD=$ac_dir/$ac_prog
13828       # Check to see if the program is GNU ld.  I'd rather use --version,
13829       # but apparently some variants of GNU ld only accept -v.
13830       # Break only if it was the GNU/non-GNU ld that we prefer.
13831       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13832       *GNU* | *'with BFD'*)
13833         test no != "$with_gnu_ld" && break
13834         ;;
13835       *)
13836         test yes != "$with_gnu_ld" && break
13837         ;;
13838       esac
13839     fi
13840   done
13841   IFS=$lt_save_ifs
13842 else
13843   lt_cv_path_LD=$LD # Let the user override the test with a path.
13844 fi
13845 fi
13846
13847 LD=$lt_cv_path_LD
13848 if test -n "$LD"; then
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13850 $as_echo "$LD" >&6; }
13851 else
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13858 if ${lt_cv_prog_gnu_ld+:} false; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13862 case `$LD -v 2>&1 </dev/null` in
13863 *GNU* | *'with BFD'*)
13864   lt_cv_prog_gnu_ld=yes
13865   ;;
13866 *)
13867   lt_cv_prog_gnu_ld=no
13868   ;;
13869 esac
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13873 with_gnu_ld=$lt_cv_prog_gnu_ld
13874
13875
13876
13877
13878
13879
13880
13881       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13882       # archiving commands below assume that GNU ld is being used.
13883       if test yes = "$with_gnu_ld"; then
13884         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13885         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'
13886
13887         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13888         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13889
13890         # If archive_cmds runs LD, not CC, wlarc should be empty
13891         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13892         #     investigate it a little bit more. (MM)
13893         wlarc='$wl'
13894
13895         # ancient GNU ld didn't support --whole-archive et. al.
13896         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13897           $GREP 'no-whole-archive' > /dev/null; then
13898           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13899         else
13900           whole_archive_flag_spec_CXX=
13901         fi
13902       else
13903         with_gnu_ld=no
13904         wlarc=
13905
13906         # A generic and very simple default shared library creation
13907         # command for GNU C++ for the case where it uses the native
13908         # linker, instead of GNU ld.  If possible, this setting should
13909         # overridden to take advantage of the native linker features on
13910         # the platform it is being used on.
13911         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13912       fi
13913
13914       # Commands to make compiler produce verbose output that lists
13915       # what "hidden" libraries, object files and flags are used when
13916       # linking a shared library.
13917       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13918
13919     else
13920       GXX=no
13921       with_gnu_ld=no
13922       wlarc=
13923     fi
13924
13925     # PORTME: fill in a description of your system's C++ link characteristics
13926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13928     ld_shlibs_CXX=yes
13929     case $host_os in
13930       aix3*)
13931         # FIXME: insert proper C++ library support
13932         ld_shlibs_CXX=no
13933         ;;
13934       aix[4-9]*)
13935         if test ia64 = "$host_cpu"; then
13936           # On IA64, the linker does run time linking by default, so we don't
13937           # have to do anything special.
13938           aix_use_runtimelinking=no
13939           exp_sym_flag='-Bexport'
13940           no_entry_flag=
13941         else
13942           aix_use_runtimelinking=no
13943
13944           # Test if we are trying to use run time linking or normal
13945           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13946           # need to do runtime linking.
13947           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13948             for ld_flag in $LDFLAGS; do
13949               case $ld_flag in
13950               *-brtl*)
13951                 aix_use_runtimelinking=yes
13952                 break
13953                 ;;
13954               esac
13955             done
13956             ;;
13957           esac
13958
13959           exp_sym_flag='-bexport'
13960           no_entry_flag='-bnoentry'
13961         fi
13962
13963         # When large executables or shared objects are built, AIX ld can
13964         # have problems creating the table of contents.  If linking a library
13965         # or program results in "error TOC overflow" add -mminimal-toc to
13966         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13967         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13968
13969         archive_cmds_CXX=''
13970         hardcode_direct_CXX=yes
13971         hardcode_direct_absolute_CXX=yes
13972         hardcode_libdir_separator_CXX=':'
13973         link_all_deplibs_CXX=yes
13974         file_list_spec_CXX='$wl-f,'
13975
13976         if test yes = "$GXX"; then
13977           case $host_os in aix4.[012]|aix4.[012].*)
13978           # We only want to do this on AIX 4.2 and lower, the check
13979           # below for broken collect2 doesn't work under 4.3+
13980           collect2name=`$CC -print-prog-name=collect2`
13981           if test -f "$collect2name" &&
13982              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13983           then
13984             # We have reworked collect2
13985             :
13986           else
13987             # We have old collect2
13988             hardcode_direct_CXX=unsupported
13989             # It fails to find uninstalled libraries when the uninstalled
13990             # path is not listed in the libpath.  Setting hardcode_minus_L
13991             # to unsupported forces relinking
13992             hardcode_minus_L_CXX=yes
13993             hardcode_libdir_flag_spec_CXX='-L$libdir'
13994             hardcode_libdir_separator_CXX=
13995           fi
13996           esac
13997           shared_flag='-shared'
13998           if test yes = "$aix_use_runtimelinking"; then
13999             shared_flag=$shared_flag' $wl-G'
14000           fi
14001         else
14002           # not using gcc
14003           if test ia64 = "$host_cpu"; then
14004           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14005           # chokes on -Wl,-G. The following line is correct:
14006           shared_flag='-G'
14007           else
14008             if test yes = "$aix_use_runtimelinking"; then
14009               shared_flag='$wl-G'
14010             else
14011               shared_flag='$wl-bM:SRE'
14012             fi
14013           fi
14014         fi
14015
14016         export_dynamic_flag_spec_CXX='$wl-bexpall'
14017         # It seems that -bexpall does not export symbols beginning with
14018         # underscore (_), so it is better to generate a list of symbols to
14019         # export.
14020         always_export_symbols_CXX=yes
14021         if test yes = "$aix_use_runtimelinking"; then
14022           # Warning - without using the other runtime loading flags (-brtl),
14023           # -berok will link without error, but may produce a broken library.
14024           allow_undefined_flag_CXX='-berok'
14025           # Determine the default libpath from the value encoded in an empty
14026           # executable.
14027           if test set = "${lt_cv_aix_libpath+set}"; then
14028   aix_libpath=$lt_cv_aix_libpath
14029 else
14030   if ${lt_cv_aix_libpath__CXX+:} false; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h.  */
14035
14036 int
14037 main ()
14038 {
14039
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_cxx_try_link "$LINENO"; then :
14045
14046   lt_aix_libpath_sed='
14047       /Import File Strings/,/^$/ {
14048           /^0/ {
14049               s/^0  *\([^ ]*\) *$/\1/
14050               p
14051           }
14052       }'
14053   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14054   # Check for a 64-bit object if we didn't find anything.
14055   if test -z "$lt_cv_aix_libpath__CXX"; then
14056     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14057   fi
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060     conftest$ac_exeext conftest.$ac_ext
14061   if test -z "$lt_cv_aix_libpath__CXX"; then
14062     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14063   fi
14064
14065 fi
14066
14067   aix_libpath=$lt_cv_aix_libpath__CXX
14068 fi
14069
14070           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14071
14072           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14073         else
14074           if test ia64 = "$host_cpu"; then
14075             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14076             allow_undefined_flag_CXX="-z nodefs"
14077             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"
14078           else
14079             # Determine the default libpath from the value encoded in an
14080             # empty executable.
14081             if test set = "${lt_cv_aix_libpath+set}"; then
14082   aix_libpath=$lt_cv_aix_libpath
14083 else
14084   if ${lt_cv_aix_libpath__CXX+:} false; then :
14085   $as_echo_n "(cached) " >&6
14086 else
14087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h.  */
14089
14090 int
14091 main ()
14092 {
14093
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 if ac_fn_cxx_try_link "$LINENO"; then :
14099
14100   lt_aix_libpath_sed='
14101       /Import File Strings/,/^$/ {
14102           /^0/ {
14103               s/^0  *\([^ ]*\) *$/\1/
14104               p
14105           }
14106       }'
14107   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14108   # Check for a 64-bit object if we didn't find anything.
14109   if test -z "$lt_cv_aix_libpath__CXX"; then
14110     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14111   fi
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114     conftest$ac_exeext conftest.$ac_ext
14115   if test -z "$lt_cv_aix_libpath__CXX"; then
14116     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14117   fi
14118
14119 fi
14120
14121   aix_libpath=$lt_cv_aix_libpath__CXX
14122 fi
14123
14124             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14125             # Warning - without using the other run time loading flags,
14126             # -berok will link without error, but may produce a broken library.
14127             no_undefined_flag_CXX=' $wl-bernotok'
14128             allow_undefined_flag_CXX=' $wl-berok'
14129             if test yes = "$with_gnu_ld"; then
14130               # We only use this code for GNU lds that support --whole-archive.
14131               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14132             else
14133               # Exported symbols can be pulled into shared objects from archives
14134               whole_archive_flag_spec_CXX='$convenience'
14135             fi
14136             archive_cmds_need_lc_CXX=yes
14137             # This is similar to how AIX traditionally builds its shared
14138             # libraries.
14139             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'
14140           fi
14141         fi
14142         ;;
14143
14144       beos*)
14145         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14146           allow_undefined_flag_CXX=unsupported
14147           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14148           # support --undefined.  This deserves some investigation.  FIXME
14149           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14150         else
14151           ld_shlibs_CXX=no
14152         fi
14153         ;;
14154
14155       chorus*)
14156         case $cc_basename in
14157           *)
14158           # FIXME: insert proper C++ library support
14159           ld_shlibs_CXX=no
14160           ;;
14161         esac
14162         ;;
14163
14164       cygwin* | mingw* | pw32* | cegcc*)
14165         case $GXX,$cc_basename in
14166         ,cl* | no,cl*)
14167           # Native MSVC
14168           # hardcode_libdir_flag_spec is actually meaningless, as there is
14169           # no search path for DLLs.
14170           hardcode_libdir_flag_spec_CXX=' '
14171           allow_undefined_flag_CXX=unsupported
14172           always_export_symbols_CXX=yes
14173           file_list_spec_CXX='@'
14174           # Tell ltmain to make .lib files, not .a files.
14175           libext=lib
14176           # Tell ltmain to make .dll files, not .so files.
14177           shrext_cmds=.dll
14178           # FIXME: Setting linknames here is a bad hack.
14179           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14180           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14181               cp "$export_symbols" "$output_objdir/$soname.def";
14182               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14183             else
14184               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14185             fi~
14186             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14187             linknames='
14188           # The linker will not automatically build a static lib if we build a DLL.
14189           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14190           enable_shared_with_static_runtimes_CXX=yes
14191           # Don't use ranlib
14192           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14193           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14194             lt_tool_outputfile="@TOOL_OUTPUT@"~
14195             case $lt_outputfile in
14196               *.exe|*.EXE) ;;
14197               *)
14198                 lt_outputfile=$lt_outputfile.exe
14199                 lt_tool_outputfile=$lt_tool_outputfile.exe
14200                 ;;
14201             esac~
14202             func_to_tool_file "$lt_outputfile"~
14203             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14204               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14205               $RM "$lt_outputfile.manifest";
14206             fi'
14207           ;;
14208         *)
14209           # g++
14210           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14211           # as there is no search path for DLLs.
14212           hardcode_libdir_flag_spec_CXX='-L$libdir'
14213           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14214           allow_undefined_flag_CXX=unsupported
14215           always_export_symbols_CXX=no
14216           enable_shared_with_static_runtimes_CXX=yes
14217
14218           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14219             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'
14220             # If the export-symbols file already is a .def file, use it as
14221             # is; otherwise, prepend EXPORTS...
14222             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14223               cp $export_symbols $output_objdir/$soname.def;
14224             else
14225               echo EXPORTS > $output_objdir/$soname.def;
14226               cat $export_symbols >> $output_objdir/$soname.def;
14227             fi~
14228             $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'
14229           else
14230             ld_shlibs_CXX=no
14231           fi
14232           ;;
14233         esac
14234         ;;
14235       darwin* | rhapsody*)
14236
14237
14238   archive_cmds_need_lc_CXX=no
14239   hardcode_direct_CXX=no
14240   hardcode_automatic_CXX=yes
14241   hardcode_shlibpath_var_CXX=unsupported
14242   if test yes = "$lt_cv_ld_force_load"; then
14243     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\"`'
14244
14245   else
14246     whole_archive_flag_spec_CXX=''
14247   fi
14248   link_all_deplibs_CXX=yes
14249   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14250   case $cc_basename in
14251      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14252      *) _lt_dar_can_shared=$GCC ;;
14253   esac
14254   if test yes = "$_lt_dar_can_shared"; then
14255     output_verbose_link_cmd=func_echo_all
14256     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"
14257     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14258     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"
14259     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"
14260        if test yes != "$lt_cv_apple_cc_single_mod"; then
14261       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"
14262       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"
14263     fi
14264
14265   else
14266   ld_shlibs_CXX=no
14267   fi
14268
14269         ;;
14270
14271       dgux*)
14272         case $cc_basename in
14273           ec++*)
14274             # FIXME: insert proper C++ library support
14275             ld_shlibs_CXX=no
14276             ;;
14277           ghcx*)
14278             # Green Hills C++ Compiler
14279             # FIXME: insert proper C++ library support
14280             ld_shlibs_CXX=no
14281             ;;
14282           *)
14283             # FIXME: insert proper C++ library support
14284             ld_shlibs_CXX=no
14285             ;;
14286         esac
14287         ;;
14288
14289       freebsd2.*)
14290         # C++ shared libraries reported to be fairly broken before
14291         # switch to ELF
14292         ld_shlibs_CXX=no
14293         ;;
14294
14295       freebsd-elf*)
14296         archive_cmds_need_lc_CXX=no
14297         ;;
14298
14299       freebsd* | dragonfly*)
14300         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14301         # conventions
14302         ld_shlibs_CXX=yes
14303         ;;
14304
14305       haiku*)
14306         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14307         link_all_deplibs_CXX=yes
14308         ;;
14309
14310       hpux9*)
14311         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14312         hardcode_libdir_separator_CXX=:
14313         export_dynamic_flag_spec_CXX='$wl-E'
14314         hardcode_direct_CXX=yes
14315         hardcode_minus_L_CXX=yes # Not in the search PATH,
14316                                              # but as the default
14317                                              # location of the library.
14318
14319         case $cc_basename in
14320           CC*)
14321             # FIXME: insert proper C++ library support
14322             ld_shlibs_CXX=no
14323             ;;
14324           aCC*)
14325             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14326             # Commands to make compiler produce verbose output that lists
14327             # what "hidden" libraries, object files and flags are used when
14328             # linking a shared library.
14329             #
14330             # There doesn't appear to be a way to prevent this compiler from
14331             # explicitly linking system object files so we need to strip them
14332             # from the output so that they don't get included in the library
14333             # dependencies.
14334             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"'
14335             ;;
14336           *)
14337             if test yes = "$GXX"; then
14338               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14339             else
14340               # FIXME: insert proper C++ library support
14341               ld_shlibs_CXX=no
14342             fi
14343             ;;
14344         esac
14345         ;;
14346
14347       hpux10*|hpux11*)
14348         if test no = "$with_gnu_ld"; then
14349           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14350           hardcode_libdir_separator_CXX=:
14351
14352           case $host_cpu in
14353             hppa*64*|ia64*)
14354               ;;
14355             *)
14356               export_dynamic_flag_spec_CXX='$wl-E'
14357               ;;
14358           esac
14359         fi
14360         case $host_cpu in
14361           hppa*64*|ia64*)
14362             hardcode_direct_CXX=no
14363             hardcode_shlibpath_var_CXX=no
14364             ;;
14365           *)
14366             hardcode_direct_CXX=yes
14367             hardcode_direct_absolute_CXX=yes
14368             hardcode_minus_L_CXX=yes # Not in the search PATH,
14369                                                  # but as the default
14370                                                  # location of the library.
14371             ;;
14372         esac
14373
14374         case $cc_basename in
14375           CC*)
14376             # FIXME: insert proper C++ library support
14377             ld_shlibs_CXX=no
14378             ;;
14379           aCC*)
14380             case $host_cpu in
14381               hppa*64*)
14382                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14383                 ;;
14384               ia64*)
14385                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14386                 ;;
14387               *)
14388                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14389                 ;;
14390             esac
14391             # Commands to make compiler produce verbose output that lists
14392             # what "hidden" libraries, object files and flags are used when
14393             # linking a shared library.
14394             #
14395             # There doesn't appear to be a way to prevent this compiler from
14396             # explicitly linking system object files so we need to strip them
14397             # from the output so that they don't get included in the library
14398             # dependencies.
14399             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"'
14400             ;;
14401           *)
14402             if test yes = "$GXX"; then
14403               if test no = "$with_gnu_ld"; then
14404                 case $host_cpu in
14405                   hppa*64*)
14406                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14407                     ;;
14408                   ia64*)
14409                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14410                     ;;
14411                   *)
14412                     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'
14413                     ;;
14414                 esac
14415               fi
14416             else
14417               # FIXME: insert proper C++ library support
14418               ld_shlibs_CXX=no
14419             fi
14420             ;;
14421         esac
14422         ;;
14423
14424       interix[3-9]*)
14425         hardcode_direct_CXX=no
14426         hardcode_shlibpath_var_CXX=no
14427         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14428         export_dynamic_flag_spec_CXX='$wl-E'
14429         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14430         # Instead, shared libraries are loaded at an image base (0x10000000 by
14431         # default) and relocated if they conflict, which is a slow very memory
14432         # consuming and fragmenting process.  To avoid this, we pick a random,
14433         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14434         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14435         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'
14436         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'
14437         ;;
14438       irix5* | irix6*)
14439         case $cc_basename in
14440           CC*)
14441             # SGI C++
14442             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'
14443
14444             # Archives containing C++ object files must be created using
14445             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14446             # necessary to make sure instantiated templates are included
14447             # in the archive.
14448             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14449             ;;
14450           *)
14451             if test yes = "$GXX"; then
14452               if test no = "$with_gnu_ld"; then
14453                 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'
14454               else
14455                 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'
14456               fi
14457             fi
14458             link_all_deplibs_CXX=yes
14459             ;;
14460         esac
14461         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14462         hardcode_libdir_separator_CXX=:
14463         inherit_rpath_CXX=yes
14464         ;;
14465
14466       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14467         case $cc_basename in
14468           KCC*)
14469             # Kuck and Associates, Inc. (KAI) C++ Compiler
14470
14471             # KCC will only create a shared library if the output file
14472             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14473             # to its proper name (with version) after linking.
14474             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'
14475             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'
14476             # Commands to make compiler produce verbose output that lists
14477             # what "hidden" libraries, object files and flags are used when
14478             # linking a shared library.
14479             #
14480             # There doesn't appear to be a way to prevent this compiler from
14481             # explicitly linking system object files so we need to strip them
14482             # from the output so that they don't get included in the library
14483             # dependencies.
14484             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"'
14485
14486             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14487             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14488
14489             # Archives containing C++ object files must be created using
14490             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14491             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14492             ;;
14493           icpc* | ecpc* )
14494             # Intel C++
14495             with_gnu_ld=yes
14496             # version 8.0 and above of icpc choke on multiply defined symbols
14497             # if we add $predep_objects and $postdep_objects, however 7.1 and
14498             # earlier do not add the objects themselves.
14499             case `$CC -V 2>&1` in
14500               *"Version 7."*)
14501                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14502                 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'
14503                 ;;
14504               *)  # Version 8.0 or newer
14505                 tmp_idyn=
14506                 case $host_cpu in
14507                   ia64*) tmp_idyn=' -i_dynamic';;
14508                 esac
14509                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14510                 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'
14511                 ;;
14512             esac
14513             archive_cmds_need_lc_CXX=no
14514             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14515             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14516             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14517             ;;
14518           pgCC* | pgcpp*)
14519             # Portland Group C++ compiler
14520             case `$CC -V` in
14521             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14522               prelink_cmds_CXX='tpldir=Template.dir~
14523                rm -rf $tpldir~
14524                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14525                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14526               old_archive_cmds_CXX='tpldir=Template.dir~
14527                 rm -rf $tpldir~
14528                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14529                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14530                 $RANLIB $oldlib'
14531               archive_cmds_CXX='tpldir=Template.dir~
14532                 rm -rf $tpldir~
14533                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14534                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14535               archive_expsym_cmds_CXX='tpldir=Template.dir~
14536                 rm -rf $tpldir~
14537                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14538                 $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'
14539               ;;
14540             *) # Version 6 and above use weak symbols
14541               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14542               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'
14543               ;;
14544             esac
14545
14546             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14547             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14548             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'
14549             ;;
14550           cxx*)
14551             # Compaq C++
14552             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14553             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'
14554
14555             runpath_var=LD_RUN_PATH
14556             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14557             hardcode_libdir_separator_CXX=:
14558
14559             # Commands to make compiler produce verbose output that lists
14560             # what "hidden" libraries, object files and flags are used when
14561             # linking a shared library.
14562             #
14563             # There doesn't appear to be a way to prevent this compiler from
14564             # explicitly linking system object files so we need to strip them
14565             # from the output so that they don't get included in the library
14566             # dependencies.
14567             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'
14568             ;;
14569           xl* | mpixl* | bgxl*)
14570             # IBM XL 8.0 on PPC, with GNU ld
14571             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14572             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14573             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14574             if test yes = "$supports_anon_versioning"; then
14575               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14576                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14577                 echo "local: *; };" >> $output_objdir/$libname.ver~
14578                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14579             fi
14580             ;;
14581           *)
14582             case `$CC -V 2>&1 | sed 5q` in
14583             *Sun\ C*)
14584               # Sun C++ 5.9
14585               no_undefined_flag_CXX=' -zdefs'
14586               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14587               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'
14588               hardcode_libdir_flag_spec_CXX='-R$libdir'
14589               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'
14590               compiler_needs_object_CXX=yes
14591
14592               # Not sure whether something based on
14593               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14594               # would be better.
14595               output_verbose_link_cmd='func_echo_all'
14596
14597               # Archives containing C++ object files must be created using
14598               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14599               # necessary to make sure instantiated templates are included
14600               # in the archive.
14601               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14602               ;;
14603             esac
14604             ;;
14605         esac
14606         ;;
14607
14608       lynxos*)
14609         # FIXME: insert proper C++ library support
14610         ld_shlibs_CXX=no
14611         ;;
14612
14613       m88k*)
14614         # FIXME: insert proper C++ library support
14615         ld_shlibs_CXX=no
14616         ;;
14617
14618       mvs*)
14619         case $cc_basename in
14620           cxx*)
14621             # FIXME: insert proper C++ library support
14622             ld_shlibs_CXX=no
14623             ;;
14624           *)
14625             # FIXME: insert proper C++ library support
14626             ld_shlibs_CXX=no
14627             ;;
14628         esac
14629         ;;
14630
14631       netbsd*)
14632         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14633           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14634           wlarc=
14635           hardcode_libdir_flag_spec_CXX='-R$libdir'
14636           hardcode_direct_CXX=yes
14637           hardcode_shlibpath_var_CXX=no
14638         fi
14639         # Workaround some broken pre-1.5 toolchains
14640         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14641         ;;
14642
14643       *nto* | *qnx*)
14644         ld_shlibs_CXX=yes
14645         ;;
14646
14647       openbsd* | bitrig*)
14648         if test -f /usr/libexec/ld.so; then
14649           hardcode_direct_CXX=yes
14650           hardcode_shlibpath_var_CXX=no
14651           hardcode_direct_absolute_CXX=yes
14652           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14653           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14654           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14655             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14656             export_dynamic_flag_spec_CXX='$wl-E'
14657             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14658           fi
14659           output_verbose_link_cmd=func_echo_all
14660         else
14661           ld_shlibs_CXX=no
14662         fi
14663         ;;
14664
14665       osf3* | osf4* | osf5*)
14666         case $cc_basename in
14667           KCC*)
14668             # Kuck and Associates, Inc. (KAI) C++ Compiler
14669
14670             # KCC will only create a shared library if the output file
14671             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14672             # to its proper name (with version) after linking.
14673             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'
14674
14675             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14676             hardcode_libdir_separator_CXX=:
14677
14678             # Archives containing C++ object files must be created using
14679             # the KAI C++ compiler.
14680             case $host in
14681               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14682               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14683             esac
14684             ;;
14685           RCC*)
14686             # Rational C++ 2.4.1
14687             # FIXME: insert proper C++ library support
14688             ld_shlibs_CXX=no
14689             ;;
14690           cxx*)
14691             case $host in
14692               osf3*)
14693                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14694                 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'
14695                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14696                 ;;
14697               *)
14698                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14699                 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'
14700                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14701                   echo "-hidden">> $lib.exp~
14702                   $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~
14703                   $RM $lib.exp'
14704                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14705                 ;;
14706             esac
14707
14708             hardcode_libdir_separator_CXX=:
14709
14710             # Commands to make compiler produce verbose output that lists
14711             # what "hidden" libraries, object files and flags are used when
14712             # linking a shared library.
14713             #
14714             # There doesn't appear to be a way to prevent this compiler from
14715             # explicitly linking system object files so we need to strip them
14716             # from the output so that they don't get included in the library
14717             # dependencies.
14718             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"'
14719             ;;
14720           *)
14721             if test yes,no = "$GXX,$with_gnu_ld"; then
14722               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14723               case $host in
14724                 osf3*)
14725                   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'
14726                   ;;
14727                 *)
14728                   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'
14729                   ;;
14730               esac
14731
14732               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14733               hardcode_libdir_separator_CXX=:
14734
14735               # Commands to make compiler produce verbose output that lists
14736               # what "hidden" libraries, object files and flags are used when
14737               # linking a shared library.
14738               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14739
14740             else
14741               # FIXME: insert proper C++ library support
14742               ld_shlibs_CXX=no
14743             fi
14744             ;;
14745         esac
14746         ;;
14747
14748       psos*)
14749         # FIXME: insert proper C++ library support
14750         ld_shlibs_CXX=no
14751         ;;
14752
14753       sunos4*)
14754         case $cc_basename in
14755           CC*)
14756             # Sun C++ 4.x
14757             # FIXME: insert proper C++ library support
14758             ld_shlibs_CXX=no
14759             ;;
14760           lcc*)
14761             # Lucid
14762             # FIXME: insert proper C++ library support
14763             ld_shlibs_CXX=no
14764             ;;
14765           *)
14766             # FIXME: insert proper C++ library support
14767             ld_shlibs_CXX=no
14768             ;;
14769         esac
14770         ;;
14771
14772       solaris*)
14773         case $cc_basename in
14774           CC* | sunCC*)
14775             # Sun C++ 4.2, 5.x and Centerline C++
14776             archive_cmds_need_lc_CXX=yes
14777             no_undefined_flag_CXX=' -zdefs'
14778             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14779             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14780               $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'
14781
14782             hardcode_libdir_flag_spec_CXX='-R$libdir'
14783             hardcode_shlibpath_var_CXX=no
14784             case $host_os in
14785               solaris2.[0-5] | solaris2.[0-5].*) ;;
14786               *)
14787                 # The compiler driver will combine and reorder linker options,
14788                 # but understands '-z linker_flag'.
14789                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14790                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14791                 ;;
14792             esac
14793             link_all_deplibs_CXX=yes
14794
14795             output_verbose_link_cmd='func_echo_all'
14796
14797             # Archives containing C++ object files must be created using
14798             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14799             # necessary to make sure instantiated templates are included
14800             # in the archive.
14801             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14802             ;;
14803           gcx*)
14804             # Green Hills C++ Compiler
14805             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14806
14807             # The C++ compiler must be used to create the archive.
14808             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14809             ;;
14810           *)
14811             # GNU C++ compiler with Solaris linker
14812             if test yes,no = "$GXX,$with_gnu_ld"; then
14813               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14814               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14815                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14816                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14817                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14818
14819                 # Commands to make compiler produce verbose output that lists
14820                 # what "hidden" libraries, object files and flags are used when
14821                 # linking a shared library.
14822                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14823               else
14824                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14825                 # platform.
14826                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14827                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14828                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14829
14830                 # Commands to make compiler produce verbose output that lists
14831                 # what "hidden" libraries, object files and flags are used when
14832                 # linking a shared library.
14833                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14834               fi
14835
14836               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14837               case $host_os in
14838                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14839                 *)
14840                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14841                   ;;
14842               esac
14843             fi
14844             ;;
14845         esac
14846         ;;
14847
14848     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14849       no_undefined_flag_CXX='$wl-z,text'
14850       archive_cmds_need_lc_CXX=no
14851       hardcode_shlibpath_var_CXX=no
14852       runpath_var='LD_RUN_PATH'
14853
14854       case $cc_basename in
14855         CC*)
14856           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14857           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858           ;;
14859         *)
14860           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14862           ;;
14863       esac
14864       ;;
14865
14866       sysv5* | sco3.2v5* | sco5v6*)
14867         # Note: We CANNOT use -z defs as we might desire, because we do not
14868         # link with -lc, and that would cause any symbols used from libc to
14869         # always be unresolved, which means just about no library would
14870         # ever link correctly.  If we're not using GNU ld we use -z text
14871         # though, which does catch some bad symbols but isn't as heavy-handed
14872         # as -z defs.
14873         no_undefined_flag_CXX='$wl-z,text'
14874         allow_undefined_flag_CXX='$wl-z,nodefs'
14875         archive_cmds_need_lc_CXX=no
14876         hardcode_shlibpath_var_CXX=no
14877         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14878         hardcode_libdir_separator_CXX=':'
14879         link_all_deplibs_CXX=yes
14880         export_dynamic_flag_spec_CXX='$wl-Bexport'
14881         runpath_var='LD_RUN_PATH'
14882
14883         case $cc_basename in
14884           CC*)
14885             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14888               '"$old_archive_cmds_CXX"
14889             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14890               '"$reload_cmds_CXX"
14891             ;;
14892           *)
14893             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14895             ;;
14896         esac
14897       ;;
14898
14899       tandem*)
14900         case $cc_basename in
14901           NCC*)
14902             # NonStop-UX NCC 3.20
14903             # FIXME: insert proper C++ library support
14904             ld_shlibs_CXX=no
14905             ;;
14906           *)
14907             # FIXME: insert proper C++ library support
14908             ld_shlibs_CXX=no
14909             ;;
14910         esac
14911         ;;
14912
14913       vxworks*)
14914         # FIXME: insert proper C++ library support
14915         ld_shlibs_CXX=no
14916         ;;
14917
14918       *)
14919         # FIXME: insert proper C++ library support
14920         ld_shlibs_CXX=no
14921         ;;
14922     esac
14923
14924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14925 $as_echo "$ld_shlibs_CXX" >&6; }
14926     test no = "$ld_shlibs_CXX" && can_build_shared=no
14927
14928     GCC_CXX=$GXX
14929     LD_CXX=$LD
14930
14931     ## CAVEAT EMPTOR:
14932     ## There is no encapsulation within the following macros, do not change
14933     ## the running order or otherwise move them around unless you know exactly
14934     ## what you are doing...
14935     # Dependencies to place before and after the object being linked:
14936 predep_objects_CXX=
14937 postdep_objects_CXX=
14938 predeps_CXX=
14939 postdeps_CXX=
14940 compiler_lib_search_path_CXX=
14941
14942 cat > conftest.$ac_ext <<_LT_EOF
14943 class Foo
14944 {
14945 public:
14946   Foo (void) { a = 0; }
14947 private:
14948   int a;
14949 };
14950 _LT_EOF
14951
14952
14953 _lt_libdeps_save_CFLAGS=$CFLAGS
14954 case "$CC $CFLAGS " in #(
14955 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14956 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14957 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14958 esac
14959
14960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14961   (eval $ac_compile) 2>&5
14962   ac_status=$?
14963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14964   test $ac_status = 0; }; then
14965   # Parse the compiler output and extract the necessary
14966   # objects, libraries and library flags.
14967
14968   # Sentinel used to keep track of whether or not we are before
14969   # the conftest object file.
14970   pre_test_object_deps_done=no
14971
14972   for p in `eval "$output_verbose_link_cmd"`; do
14973     case $prev$p in
14974
14975     -L* | -R* | -l*)
14976        # Some compilers place space between "-{L,R}" and the path.
14977        # Remove the space.
14978        if test x-L = "$p" ||
14979           test x-R = "$p"; then
14980          prev=$p
14981          continue
14982        fi
14983
14984        # Expand the sysroot to ease extracting the directories later.
14985        if test -z "$prev"; then
14986          case $p in
14987          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14988          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14989          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14990          esac
14991        fi
14992        case $p in
14993        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14994        esac
14995        if test no = "$pre_test_object_deps_done"; then
14996          case $prev in
14997          -L | -R)
14998            # Internal compiler library paths should come after those
14999            # provided the user.  The postdeps already come after the
15000            # user supplied libs so there is no need to process them.
15001            if test -z "$compiler_lib_search_path_CXX"; then
15002              compiler_lib_search_path_CXX=$prev$p
15003            else
15004              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15005            fi
15006            ;;
15007          # The "-l" case would never come before the object being
15008          # linked, so don't bother handling this case.
15009          esac
15010        else
15011          if test -z "$postdeps_CXX"; then
15012            postdeps_CXX=$prev$p
15013          else
15014            postdeps_CXX="${postdeps_CXX} $prev$p"
15015          fi
15016        fi
15017        prev=
15018        ;;
15019
15020     *.lto.$objext) ;; # Ignore GCC LTO objects
15021     *.$objext)
15022        # This assumes that the test object file only shows up
15023        # once in the compiler output.
15024        if test "$p" = "conftest.$objext"; then
15025          pre_test_object_deps_done=yes
15026          continue
15027        fi
15028
15029        if test no = "$pre_test_object_deps_done"; then
15030          if test -z "$predep_objects_CXX"; then
15031            predep_objects_CXX=$p
15032          else
15033            predep_objects_CXX="$predep_objects_CXX $p"
15034          fi
15035        else
15036          if test -z "$postdep_objects_CXX"; then
15037            postdep_objects_CXX=$p
15038          else
15039            postdep_objects_CXX="$postdep_objects_CXX $p"
15040          fi
15041        fi
15042        ;;
15043
15044     *) ;; # Ignore the rest.
15045
15046     esac
15047   done
15048
15049   # Clean up.
15050   rm -f a.out a.exe
15051 else
15052   echo "libtool.m4: error: problem compiling CXX test program"
15053 fi
15054
15055 $RM -f confest.$objext
15056 CFLAGS=$_lt_libdeps_save_CFLAGS
15057
15058 # PORTME: override above test on systems where it is broken
15059 case $host_os in
15060 interix[3-9]*)
15061   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15062   # hack all around it, let's just trust "g++" to DTRT.
15063   predep_objects_CXX=
15064   postdep_objects_CXX=
15065   postdeps_CXX=
15066   ;;
15067
15068 linux*)
15069   case `$CC -V 2>&1 | sed 5q` in
15070   *Sun\ C*)
15071     # Sun C++ 5.9
15072
15073     # The more standards-conforming stlport4 library is
15074     # incompatible with the Cstd library. Avoid specifying
15075     # it if it's in CXXFLAGS. Ignore libCrun as
15076     # -library=stlport4 depends on it.
15077     case " $CXX $CXXFLAGS " in
15078     *" -library=stlport4 "*)
15079       solaris_use_stlport4=yes
15080       ;;
15081     esac
15082
15083     if test yes != "$solaris_use_stlport4"; then
15084       postdeps_CXX='-library=Cstd -library=Crun'
15085     fi
15086     ;;
15087   esac
15088   ;;
15089
15090 solaris*)
15091   case $cc_basename in
15092   CC* | sunCC*)
15093     # The more standards-conforming stlport4 library is
15094     # incompatible with the Cstd library. Avoid specifying
15095     # it if it's in CXXFLAGS. Ignore libCrun as
15096     # -library=stlport4 depends on it.
15097     case " $CXX $CXXFLAGS " in
15098     *" -library=stlport4 "*)
15099       solaris_use_stlport4=yes
15100       ;;
15101     esac
15102
15103     # Adding this requires a known-good setup of shared libraries for
15104     # Sun compiler versions before 5.6, else PIC objects from an old
15105     # archive will be linked into the output, leading to subtle bugs.
15106     if test yes != "$solaris_use_stlport4"; then
15107       postdeps_CXX='-library=Cstd -library=Crun'
15108     fi
15109     ;;
15110   esac
15111   ;;
15112 esac
15113
15114
15115 case " $postdeps_CXX " in
15116 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15117 esac
15118  compiler_lib_search_dirs_CXX=
15119 if test -n "${compiler_lib_search_path_CXX}"; then
15120  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15121 fi
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153     lt_prog_compiler_wl_CXX=
15154 lt_prog_compiler_pic_CXX=
15155 lt_prog_compiler_static_CXX=
15156
15157
15158   # C++ specific cases for pic, static, wl, etc.
15159   if test yes = "$GXX"; then
15160     lt_prog_compiler_wl_CXX='-Wl,'
15161     lt_prog_compiler_static_CXX='-static'
15162
15163     case $host_os in
15164     aix*)
15165       # All AIX code is PIC.
15166       if test ia64 = "$host_cpu"; then
15167         # AIX 5 now supports IA64 processor
15168         lt_prog_compiler_static_CXX='-Bstatic'
15169       fi
15170       lt_prog_compiler_pic_CXX='-fPIC'
15171       ;;
15172
15173     amigaos*)
15174       case $host_cpu in
15175       powerpc)
15176             # see comment about AmigaOS4 .so support
15177             lt_prog_compiler_pic_CXX='-fPIC'
15178         ;;
15179       m68k)
15180             # FIXME: we need at least 68020 code to build shared libraries, but
15181             # adding the '-m68020' flag to GCC prevents building anything better,
15182             # like '-m68040'.
15183             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15184         ;;
15185       esac
15186       ;;
15187
15188     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15189       # PIC is the default for these OSes.
15190       ;;
15191     mingw* | cygwin* | os2* | pw32* | cegcc*)
15192       # This hack is so that the source file can tell whether it is being
15193       # built for inclusion in a dll (and should export symbols for example).
15194       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15195       # (--disable-auto-import) libraries
15196       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15197       ;;
15198     darwin* | rhapsody*)
15199       # PIC is the default on this platform
15200       # Common symbols not allowed in MH_DYLIB files
15201       lt_prog_compiler_pic_CXX='-fno-common'
15202       ;;
15203     *djgpp*)
15204       # DJGPP does not support shared libraries at all
15205       lt_prog_compiler_pic_CXX=
15206       ;;
15207     haiku*)
15208       # PIC is the default for Haiku.
15209       # The "-static" flag exists, but is broken.
15210       lt_prog_compiler_static_CXX=
15211       ;;
15212     interix[3-9]*)
15213       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15214       # Instead, we relocate shared libraries at runtime.
15215       ;;
15216     sysv4*MP*)
15217       if test -d /usr/nec; then
15218         lt_prog_compiler_pic_CXX=-Kconform_pic
15219       fi
15220       ;;
15221     hpux*)
15222       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15223       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15224       # sets the default TLS model and affects inlining.
15225       case $host_cpu in
15226       hppa*64*)
15227         ;;
15228       *)
15229         lt_prog_compiler_pic_CXX='-fPIC'
15230         ;;
15231       esac
15232       ;;
15233     *qnx* | *nto*)
15234       # QNX uses GNU C++, but need to define -shared option too, otherwise
15235       # it will coredump.
15236       lt_prog_compiler_pic_CXX='-fPIC -shared'
15237       ;;
15238     *)
15239       lt_prog_compiler_pic_CXX='-fPIC'
15240       ;;
15241     esac
15242   else
15243     case $host_os in
15244       aix[4-9]*)
15245         # All AIX code is PIC.
15246         if test ia64 = "$host_cpu"; then
15247           # AIX 5 now supports IA64 processor
15248           lt_prog_compiler_static_CXX='-Bstatic'
15249         else
15250           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15251         fi
15252         ;;
15253       chorus*)
15254         case $cc_basename in
15255         cxch68*)
15256           # Green Hills C++ Compiler
15257           # _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"
15258           ;;
15259         esac
15260         ;;
15261       mingw* | cygwin* | os2* | pw32* | cegcc*)
15262         # This hack is so that the source file can tell whether it is being
15263         # built for inclusion in a dll (and should export symbols for example).
15264         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15265         ;;
15266       dgux*)
15267         case $cc_basename in
15268           ec++*)
15269             lt_prog_compiler_pic_CXX='-KPIC'
15270             ;;
15271           ghcx*)
15272             # Green Hills C++ Compiler
15273             lt_prog_compiler_pic_CXX='-pic'
15274             ;;
15275           *)
15276             ;;
15277         esac
15278         ;;
15279       freebsd* | dragonfly*)
15280         # FreeBSD uses GNU C++
15281         ;;
15282       hpux9* | hpux10* | hpux11*)
15283         case $cc_basename in
15284           CC*)
15285             lt_prog_compiler_wl_CXX='-Wl,'
15286             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15287             if test ia64 != "$host_cpu"; then
15288               lt_prog_compiler_pic_CXX='+Z'
15289             fi
15290             ;;
15291           aCC*)
15292             lt_prog_compiler_wl_CXX='-Wl,'
15293             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15294             case $host_cpu in
15295             hppa*64*|ia64*)
15296               # +Z the default
15297               ;;
15298             *)
15299               lt_prog_compiler_pic_CXX='+Z'
15300               ;;
15301             esac
15302             ;;
15303           *)
15304             ;;
15305         esac
15306         ;;
15307       interix*)
15308         # This is c89, which is MS Visual C++ (no shared libs)
15309         # Anyone wants to do a port?
15310         ;;
15311       irix5* | irix6* | nonstopux*)
15312         case $cc_basename in
15313           CC*)
15314             lt_prog_compiler_wl_CXX='-Wl,'
15315             lt_prog_compiler_static_CXX='-non_shared'
15316             # CC pic flag -KPIC is the default.
15317             ;;
15318           *)
15319             ;;
15320         esac
15321         ;;
15322       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15323         case $cc_basename in
15324           KCC*)
15325             # KAI C++ Compiler
15326             lt_prog_compiler_wl_CXX='--backend -Wl,'
15327             lt_prog_compiler_pic_CXX='-fPIC'
15328             ;;
15329           ecpc* )
15330             # old Intel C++ for x86_64, which still supported -KPIC.
15331             lt_prog_compiler_wl_CXX='-Wl,'
15332             lt_prog_compiler_pic_CXX='-KPIC'
15333             lt_prog_compiler_static_CXX='-static'
15334             ;;
15335           icpc* )
15336             # Intel C++, used to be incompatible with GCC.
15337             # ICC 10 doesn't accept -KPIC any more.
15338             lt_prog_compiler_wl_CXX='-Wl,'
15339             lt_prog_compiler_pic_CXX='-fPIC'
15340             lt_prog_compiler_static_CXX='-static'
15341             ;;
15342           pgCC* | pgcpp*)
15343             # Portland Group C++ compiler
15344             lt_prog_compiler_wl_CXX='-Wl,'
15345             lt_prog_compiler_pic_CXX='-fpic'
15346             lt_prog_compiler_static_CXX='-Bstatic'
15347             ;;
15348           cxx*)
15349             # Compaq C++
15350             # Make sure the PIC flag is empty.  It appears that all Alpha
15351             # Linux and Compaq Tru64 Unix objects are PIC.
15352             lt_prog_compiler_pic_CXX=
15353             lt_prog_compiler_static_CXX='-non_shared'
15354             ;;
15355           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15356             # IBM XL 8.0, 9.0 on PPC and BlueGene
15357             lt_prog_compiler_wl_CXX='-Wl,'
15358             lt_prog_compiler_pic_CXX='-qpic'
15359             lt_prog_compiler_static_CXX='-qstaticlink'
15360             ;;
15361           *)
15362             case `$CC -V 2>&1 | sed 5q` in
15363             *Sun\ C*)
15364               # Sun C++ 5.9
15365               lt_prog_compiler_pic_CXX='-KPIC'
15366               lt_prog_compiler_static_CXX='-Bstatic'
15367               lt_prog_compiler_wl_CXX='-Qoption ld '
15368               ;;
15369             esac
15370             ;;
15371         esac
15372         ;;
15373       lynxos*)
15374         ;;
15375       m88k*)
15376         ;;
15377       mvs*)
15378         case $cc_basename in
15379           cxx*)
15380             lt_prog_compiler_pic_CXX='-W c,exportall'
15381             ;;
15382           *)
15383             ;;
15384         esac
15385         ;;
15386       netbsd*)
15387         ;;
15388       *qnx* | *nto*)
15389         # QNX uses GNU C++, but need to define -shared option too, otherwise
15390         # it will coredump.
15391         lt_prog_compiler_pic_CXX='-fPIC -shared'
15392         ;;
15393       osf3* | osf4* | osf5*)
15394         case $cc_basename in
15395           KCC*)
15396             lt_prog_compiler_wl_CXX='--backend -Wl,'
15397             ;;
15398           RCC*)
15399             # Rational C++ 2.4.1
15400             lt_prog_compiler_pic_CXX='-pic'
15401             ;;
15402           cxx*)
15403             # Digital/Compaq C++
15404             lt_prog_compiler_wl_CXX='-Wl,'
15405             # Make sure the PIC flag is empty.  It appears that all Alpha
15406             # Linux and Compaq Tru64 Unix objects are PIC.
15407             lt_prog_compiler_pic_CXX=
15408             lt_prog_compiler_static_CXX='-non_shared'
15409             ;;
15410           *)
15411             ;;
15412         esac
15413         ;;
15414       psos*)
15415         ;;
15416       solaris*)
15417         case $cc_basename in
15418           CC* | sunCC*)
15419             # Sun C++ 4.2, 5.x and Centerline C++
15420             lt_prog_compiler_pic_CXX='-KPIC'
15421             lt_prog_compiler_static_CXX='-Bstatic'
15422             lt_prog_compiler_wl_CXX='-Qoption ld '
15423             ;;
15424           gcx*)
15425             # Green Hills C++ Compiler
15426             lt_prog_compiler_pic_CXX='-PIC'
15427             ;;
15428           *)
15429             ;;
15430         esac
15431         ;;
15432       sunos4*)
15433         case $cc_basename in
15434           CC*)
15435             # Sun C++ 4.x
15436             lt_prog_compiler_pic_CXX='-pic'
15437             lt_prog_compiler_static_CXX='-Bstatic'
15438             ;;
15439           lcc*)
15440             # Lucid
15441             lt_prog_compiler_pic_CXX='-pic'
15442             ;;
15443           *)
15444             ;;
15445         esac
15446         ;;
15447       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15448         case $cc_basename in
15449           CC*)
15450             lt_prog_compiler_wl_CXX='-Wl,'
15451             lt_prog_compiler_pic_CXX='-KPIC'
15452             lt_prog_compiler_static_CXX='-Bstatic'
15453             ;;
15454         esac
15455         ;;
15456       tandem*)
15457         case $cc_basename in
15458           NCC*)
15459             # NonStop-UX NCC 3.20
15460             lt_prog_compiler_pic_CXX='-KPIC'
15461             ;;
15462           *)
15463             ;;
15464         esac
15465         ;;
15466       vxworks*)
15467         ;;
15468       *)
15469         lt_prog_compiler_can_build_shared_CXX=no
15470         ;;
15471     esac
15472   fi
15473
15474 case $host_os in
15475   # For platforms that do not support PIC, -DPIC is meaningless:
15476   *djgpp*)
15477     lt_prog_compiler_pic_CXX=
15478     ;;
15479   *)
15480     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15481     ;;
15482 esac
15483
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15485 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15486 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15487   $as_echo_n "(cached) " >&6
15488 else
15489   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15490 fi
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15492 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15493 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15494
15495 #
15496 # Check to make sure the PIC flag actually works.
15497 #
15498 if test -n "$lt_prog_compiler_pic_CXX"; then
15499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15500 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15501 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15502   $as_echo_n "(cached) " >&6
15503 else
15504   lt_cv_prog_compiler_pic_works_CXX=no
15505    ac_outfile=conftest.$ac_objext
15506    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15507    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15508    # Insert the option either (1) after the last *FLAGS variable, or
15509    # (2) before a word containing "conftest.", or (3) at the end.
15510    # Note that $ac_compile itself does not contain backslashes and begins
15511    # with a dollar sign (not a hyphen), so the echo should work correctly.
15512    # The option is referenced via a variable to avoid confusing sed.
15513    lt_compile=`echo "$ac_compile" | $SED \
15514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15516    -e 's:$: $lt_compiler_flag:'`
15517    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15518    (eval "$lt_compile" 2>conftest.err)
15519    ac_status=$?
15520    cat conftest.err >&5
15521    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522    if (exit $ac_status) && test -s "$ac_outfile"; then
15523      # The compiler can only warn and ignore the option if not recognized
15524      # So say no if there are warnings other than the usual output.
15525      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15528        lt_cv_prog_compiler_pic_works_CXX=yes
15529      fi
15530    fi
15531    $RM conftest*
15532
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15535 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15536
15537 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15538     case $lt_prog_compiler_pic_CXX in
15539      "" | " "*) ;;
15540      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15541      esac
15542 else
15543     lt_prog_compiler_pic_CXX=
15544      lt_prog_compiler_can_build_shared_CXX=no
15545 fi
15546
15547 fi
15548
15549
15550
15551
15552
15553 #
15554 # Check to make sure the static flag actually works.
15555 #
15556 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15558 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15559 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15560   $as_echo_n "(cached) " >&6
15561 else
15562   lt_cv_prog_compiler_static_works_CXX=no
15563    save_LDFLAGS=$LDFLAGS
15564    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15565    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15566    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15567      # The linker can only warn and ignore the option if not recognized
15568      # So say no if there are warnings
15569      if test -s conftest.err; then
15570        # Append any errors to the config.log.
15571        cat conftest.err 1>&5
15572        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15573        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15574        if diff conftest.exp conftest.er2 >/dev/null; then
15575          lt_cv_prog_compiler_static_works_CXX=yes
15576        fi
15577      else
15578        lt_cv_prog_compiler_static_works_CXX=yes
15579      fi
15580    fi
15581    $RM -r conftest*
15582    LDFLAGS=$save_LDFLAGS
15583
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15586 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15587
15588 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15589     :
15590 else
15591     lt_prog_compiler_static_CXX=
15592 fi
15593
15594
15595
15596
15597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15599 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   lt_cv_prog_compiler_c_o_CXX=no
15603    $RM -r conftest 2>/dev/null
15604    mkdir conftest
15605    cd conftest
15606    mkdir out
15607    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15608
15609    lt_compiler_flag="-o out/conftest2.$ac_objext"
15610    # Insert the option either (1) after the last *FLAGS variable, or
15611    # (2) before a word containing "conftest.", or (3) at the end.
15612    # Note that $ac_compile itself does not contain backslashes and begins
15613    # with a dollar sign (not a hyphen), so the echo should work correctly.
15614    lt_compile=`echo "$ac_compile" | $SED \
15615    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15616    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15617    -e 's:$: $lt_compiler_flag:'`
15618    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15619    (eval "$lt_compile" 2>out/conftest.err)
15620    ac_status=$?
15621    cat out/conftest.err >&5
15622    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15624    then
15625      # The compiler can only warn and ignore the option if not recognized
15626      # So say no if there are warnings
15627      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15628      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15629      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15630        lt_cv_prog_compiler_c_o_CXX=yes
15631      fi
15632    fi
15633    chmod u+w . 2>&5
15634    $RM conftest*
15635    # SGI C++ compiler will create directory out/ii_files/ for
15636    # template instantiation
15637    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15638    $RM out/* && rmdir out
15639    cd ..
15640    $RM -r conftest
15641    $RM conftest*
15642
15643 fi
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15645 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15646
15647
15648
15649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15651 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15652   $as_echo_n "(cached) " >&6
15653 else
15654   lt_cv_prog_compiler_c_o_CXX=no
15655    $RM -r conftest 2>/dev/null
15656    mkdir conftest
15657    cd conftest
15658    mkdir out
15659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15660
15661    lt_compiler_flag="-o out/conftest2.$ac_objext"
15662    # Insert the option either (1) after the last *FLAGS variable, or
15663    # (2) before a word containing "conftest.", or (3) at the end.
15664    # Note that $ac_compile itself does not contain backslashes and begins
15665    # with a dollar sign (not a hyphen), so the echo should work correctly.
15666    lt_compile=`echo "$ac_compile" | $SED \
15667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15669    -e 's:$: $lt_compiler_flag:'`
15670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15671    (eval "$lt_compile" 2>out/conftest.err)
15672    ac_status=$?
15673    cat out/conftest.err >&5
15674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15676    then
15677      # The compiler can only warn and ignore the option if not recognized
15678      # So say no if there are warnings
15679      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15680      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15681      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15682        lt_cv_prog_compiler_c_o_CXX=yes
15683      fi
15684    fi
15685    chmod u+w . 2>&5
15686    $RM conftest*
15687    # SGI C++ compiler will create directory out/ii_files/ for
15688    # template instantiation
15689    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15690    $RM out/* && rmdir out
15691    cd ..
15692    $RM -r conftest
15693    $RM conftest*
15694
15695 fi
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15697 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15698
15699
15700
15701
15702 hard_links=nottested
15703 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15704   # do not overwrite the value of need_locks provided by the user
15705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15706 $as_echo_n "checking if we can lock with hard links... " >&6; }
15707   hard_links=yes
15708   $RM conftest*
15709   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15710   touch conftest.a
15711   ln conftest.a conftest.b 2>&5 || hard_links=no
15712   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15714 $as_echo "$hard_links" >&6; }
15715   if test no = "$hard_links"; then
15716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15717 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15718     need_locks=warn
15719   fi
15720 else
15721   need_locks=no
15722 fi
15723
15724
15725
15726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15728
15729   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15730   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15731   case $host_os in
15732   aix[4-9]*)
15733     # If we're using GNU nm, then we don't want the "-C" option.
15734     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15735     # Also, AIX nm treats weak defined symbols like other global defined
15736     # symbols, whereas GNU nm marks them as "W".
15737     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15738       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'
15739     else
15740       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'
15741     fi
15742     ;;
15743   pw32*)
15744     export_symbols_cmds_CXX=$ltdll_cmds
15745     ;;
15746   cygwin* | mingw* | cegcc*)
15747     case $cc_basename in
15748     cl*)
15749       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15750       ;;
15751     *)
15752       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'
15753       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15754       ;;
15755     esac
15756     ;;
15757   *)
15758     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15759     ;;
15760   esac
15761
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15763 $as_echo "$ld_shlibs_CXX" >&6; }
15764 test no = "$ld_shlibs_CXX" && can_build_shared=no
15765
15766 with_gnu_ld_CXX=$with_gnu_ld
15767
15768
15769
15770
15771
15772
15773 #
15774 # Do we need to explicitly link libc?
15775 #
15776 case "x$archive_cmds_need_lc_CXX" in
15777 x|xyes)
15778   # Assume -lc should be added
15779   archive_cmds_need_lc_CXX=yes
15780
15781   if test yes,yes = "$GCC,$enable_shared"; then
15782     case $archive_cmds_CXX in
15783     *'~'*)
15784       # FIXME: we may have to deal with multi-command sequences.
15785       ;;
15786     '$CC '*)
15787       # Test whether the compiler implicitly links with -lc since on some
15788       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15789       # to ld, don't add -lc before -lgcc.
15790       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15792 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15793   $as_echo_n "(cached) " >&6
15794 else
15795   $RM conftest*
15796         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797
15798         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15799   (eval $ac_compile) 2>&5
15800   ac_status=$?
15801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15802   test $ac_status = 0; } 2>conftest.err; then
15803           soname=conftest
15804           lib=conftest
15805           libobjs=conftest.$ac_objext
15806           deplibs=
15807           wl=$lt_prog_compiler_wl_CXX
15808           pic_flag=$lt_prog_compiler_pic_CXX
15809           compiler_flags=-v
15810           linker_flags=-v
15811           verstring=
15812           output_objdir=.
15813           libname=conftest
15814           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15815           allow_undefined_flag_CXX=
15816           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15817   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15818   ac_status=$?
15819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820   test $ac_status = 0; }
15821           then
15822             lt_cv_archive_cmds_need_lc_CXX=no
15823           else
15824             lt_cv_archive_cmds_need_lc_CXX=yes
15825           fi
15826           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15827         else
15828           cat conftest.err 1>&5
15829         fi
15830         $RM conftest*
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15834 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15835       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15836       ;;
15837     esac
15838   fi
15839   ;;
15840 esac
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15905
15906 library_names_spec=
15907 libname_spec='lib$name'
15908 soname_spec=
15909 shrext_cmds=.so
15910 postinstall_cmds=
15911 postuninstall_cmds=
15912 finish_cmds=
15913 finish_eval=
15914 shlibpath_var=
15915 shlibpath_overrides_runpath=unknown
15916 version_type=none
15917 dynamic_linker="$host_os ld.so"
15918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15919 need_lib_prefix=unknown
15920 hardcode_into_libs=no
15921
15922 # when you set need_version to no, make sure it does not cause -set_version
15923 # flags to be left without arguments
15924 need_version=unknown
15925
15926 case $host_os in
15927 aix3*)
15928   version_type=linux # correct to gnu/linux during the next big refactor
15929   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15930   shlibpath_var=LIBPATH
15931
15932   # AIX 3 has no versioning support, so we append a major version to the name.
15933   soname_spec='$libname$release$shared_ext$major'
15934   ;;
15935
15936 aix[4-9]*)
15937   version_type=linux # correct to gnu/linux during the next big refactor
15938   need_lib_prefix=no
15939   need_version=no
15940   hardcode_into_libs=yes
15941   if test ia64 = "$host_cpu"; then
15942     # AIX 5 supports IA64
15943     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15944     shlibpath_var=LD_LIBRARY_PATH
15945   else
15946     # With GCC up to 2.95.x, collect2 would create an import file
15947     # for dependence libraries.  The import file would start with
15948     # the line '#! .'.  This would cause the generated library to
15949     # depend on '.', always an invalid library.  This was fixed in
15950     # development snapshots of GCC prior to 3.0.
15951     case $host_os in
15952       aix4 | aix4.[01] | aix4.[01].*)
15953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15954            echo ' yes '
15955            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15956         :
15957       else
15958         can_build_shared=no
15959       fi
15960       ;;
15961     esac
15962     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15963     # soname into executable. Probably we can add versioning support to
15964     # collect2, so additional links can be useful in future.
15965     if test yes = "$aix_use_runtimelinking"; then
15966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15967       # instead of lib<name>.a to let people know that these are not
15968       # typical AIX shared libraries.
15969       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15970     else
15971       # We preserve .a as extension for shared libraries through AIX4.2
15972       # and later when we are not doing run time linking.
15973       library_names_spec='$libname$release.a $libname.a'
15974       soname_spec='$libname$release$shared_ext$major'
15975     fi
15976     shlibpath_var=LIBPATH
15977   fi
15978   ;;
15979
15980 amigaos*)
15981   case $host_cpu in
15982   powerpc)
15983     # Since July 2007 AmigaOS4 officially supports .so libraries.
15984     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15985     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15986     ;;
15987   m68k)
15988     library_names_spec='$libname.ixlibrary $libname.a'
15989     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15990     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15991     ;;
15992   esac
15993   ;;
15994
15995 beos*)
15996   library_names_spec='$libname$shared_ext'
15997   dynamic_linker="$host_os ld.so"
15998   shlibpath_var=LIBRARY_PATH
15999   ;;
16000
16001 bsdi[45]*)
16002   version_type=linux # correct to gnu/linux during the next big refactor
16003   need_version=no
16004   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16005   soname_spec='$libname$release$shared_ext$major'
16006   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16007   shlibpath_var=LD_LIBRARY_PATH
16008   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16009   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16010   # the default ld.so.conf also contains /usr/contrib/lib and
16011   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16012   # libtool to hard-code these into programs
16013   ;;
16014
16015 cygwin* | mingw* | pw32* | cegcc*)
16016   version_type=windows
16017   shrext_cmds=.dll
16018   need_version=no
16019   need_lib_prefix=no
16020
16021   case $GCC,$cc_basename in
16022   yes,*)
16023     # gcc
16024     library_names_spec='$libname.dll.a'
16025     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16026     postinstall_cmds='base_file=`basename \$file`~
16027       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16028       dldir=$destdir/`dirname \$dlpath`~
16029       test -d \$dldir || mkdir -p \$dldir~
16030       $install_prog $dir/$dlname \$dldir/$dlname~
16031       chmod a+x \$dldir/$dlname~
16032       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16033         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16034       fi'
16035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16036       dlpath=$dir/\$dldll~
16037        $RM \$dlpath'
16038     shlibpath_overrides_runpath=yes
16039
16040     case $host_os in
16041     cygwin*)
16042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16043       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16044
16045       ;;
16046     mingw* | cegcc*)
16047       # MinGW DLLs use traditional 'lib' prefix
16048       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16049       ;;
16050     pw32*)
16051       # pw32 DLLs use 'pw' prefix rather than 'lib'
16052       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16053       ;;
16054     esac
16055     dynamic_linker='Win32 ld.exe'
16056     ;;
16057
16058   *,cl*)
16059     # Native MSVC
16060     libname_spec='$name'
16061     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16062     library_names_spec='$libname.dll.lib'
16063
16064     case $build_os in
16065     mingw*)
16066       sys_lib_search_path_spec=
16067       lt_save_ifs=$IFS
16068       IFS=';'
16069       for lt_path in $LIB
16070       do
16071         IFS=$lt_save_ifs
16072         # Let DOS variable expansion print the short 8.3 style file name.
16073         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16074         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16075       done
16076       IFS=$lt_save_ifs
16077       # Convert to MSYS style.
16078       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16079       ;;
16080     cygwin*)
16081       # Convert to unix form, then to dos form, then back to unix form
16082       # but this time dos style (no spaces!) so that the unix form looks
16083       # like /cygdrive/c/PROGRA~1:/cygdr...
16084       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16085       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16086       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16087       ;;
16088     *)
16089       sys_lib_search_path_spec=$LIB
16090       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16091         # It is most probably a Windows format PATH.
16092         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16093       else
16094         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16095       fi
16096       # FIXME: find the short name or the path components, as spaces are
16097       # common. (e.g. "Program Files" -> "PROGRA~1")
16098       ;;
16099     esac
16100
16101     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16102     postinstall_cmds='base_file=`basename \$file`~
16103       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16104       dldir=$destdir/`dirname \$dlpath`~
16105       test -d \$dldir || mkdir -p \$dldir~
16106       $install_prog $dir/$dlname \$dldir/$dlname'
16107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108       dlpath=$dir/\$dldll~
16109        $RM \$dlpath'
16110     shlibpath_overrides_runpath=yes
16111     dynamic_linker='Win32 link.exe'
16112     ;;
16113
16114   *)
16115     # Assume MSVC wrapper
16116     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16117     dynamic_linker='Win32 ld.exe'
16118     ;;
16119   esac
16120   # FIXME: first we should search . and the directory the executable is in
16121   shlibpath_var=PATH
16122   ;;
16123
16124 darwin* | rhapsody*)
16125   dynamic_linker="$host_os dyld"
16126   version_type=darwin
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16130   soname_spec='$libname$release$major$shared_ext'
16131   shlibpath_overrides_runpath=yes
16132   shlibpath_var=DYLD_LIBRARY_PATH
16133   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16134
16135   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16136   ;;
16137
16138 dgux*)
16139   version_type=linux # correct to gnu/linux during the next big refactor
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16143   soname_spec='$libname$release$shared_ext$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 freebsd* | dragonfly*)
16148   # DragonFly does not have aout.  When/if they implement a new
16149   # versioning mechanism, adjust this.
16150   if test -x /usr/bin/objformat; then
16151     objformat=`/usr/bin/objformat`
16152   else
16153     case $host_os in
16154     freebsd[23].*) objformat=aout ;;
16155     *) objformat=elf ;;
16156     esac
16157   fi
16158   version_type=freebsd-$objformat
16159   case $version_type in
16160     freebsd-elf*)
16161       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16162       need_version=no
16163       need_lib_prefix=no
16164       ;;
16165     freebsd-*)
16166       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16167       need_version=yes
16168       ;;
16169   esac
16170   shlibpath_var=LD_LIBRARY_PATH
16171   case $host_os in
16172   freebsd2.*)
16173     shlibpath_overrides_runpath=yes
16174     ;;
16175   freebsd3.[01]* | freebsdelf3.[01]*)
16176     shlibpath_overrides_runpath=yes
16177     hardcode_into_libs=yes
16178     ;;
16179   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16180   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16181     shlibpath_overrides_runpath=no
16182     hardcode_into_libs=yes
16183     ;;
16184   *) # from 4.6 on, and DragonFly
16185     shlibpath_overrides_runpath=yes
16186     hardcode_into_libs=yes
16187     ;;
16188   esac
16189   ;;
16190
16191 haiku*)
16192   version_type=linux # correct to gnu/linux during the next big refactor
16193   need_lib_prefix=no
16194   need_version=no
16195   dynamic_linker="$host_os runtime_loader"
16196   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16197   soname_spec='$libname$release$shared_ext$major'
16198   shlibpath_var=LIBRARY_PATH
16199   shlibpath_overrides_runpath=no
16200   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16201   hardcode_into_libs=yes
16202   ;;
16203
16204 hpux9* | hpux10* | hpux11*)
16205   # Give a soname corresponding to the major version so that dld.sl refuses to
16206   # link against other versions.
16207   version_type=sunos
16208   need_lib_prefix=no
16209   need_version=no
16210   case $host_cpu in
16211   ia64*)
16212     shrext_cmds='.so'
16213     hardcode_into_libs=yes
16214     dynamic_linker="$host_os dld.so"
16215     shlibpath_var=LD_LIBRARY_PATH
16216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16217     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16218     soname_spec='$libname$release$shared_ext$major'
16219     if test 32 = "$HPUX_IA64_MODE"; then
16220       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16221     else
16222       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16223     fi
16224     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16225     ;;
16226   hppa*64*)
16227     shrext_cmds='.sl'
16228     hardcode_into_libs=yes
16229     dynamic_linker="$host_os dld.sl"
16230     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16232     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16233     soname_spec='$libname$release$shared_ext$major'
16234     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16236     ;;
16237   *)
16238     shrext_cmds='.sl'
16239     dynamic_linker="$host_os dld.sl"
16240     shlibpath_var=SHLIB_PATH
16241     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16242     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16243     soname_spec='$libname$release$shared_ext$major'
16244     ;;
16245   esac
16246   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16247   postinstall_cmds='chmod 555 $lib'
16248   # or fails outright, so override atomically:
16249   install_override_mode=555
16250   ;;
16251
16252 interix[3-9]*)
16253   version_type=linux # correct to gnu/linux during the next big refactor
16254   need_lib_prefix=no
16255   need_version=no
16256   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16257   soname_spec='$libname$release$shared_ext$major'
16258   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16259   shlibpath_var=LD_LIBRARY_PATH
16260   shlibpath_overrides_runpath=no
16261   hardcode_into_libs=yes
16262   ;;
16263
16264 irix5* | irix6* | nonstopux*)
16265   case $host_os in
16266     nonstopux*) version_type=nonstopux ;;
16267     *)
16268         if test yes = "$lt_cv_prog_gnu_ld"; then
16269                 version_type=linux # correct to gnu/linux during the next big refactor
16270         else
16271                 version_type=irix
16272         fi ;;
16273   esac
16274   need_lib_prefix=no
16275   need_version=no
16276   soname_spec='$libname$release$shared_ext$major'
16277   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16278   case $host_os in
16279   irix5* | nonstopux*)
16280     libsuff= shlibsuff=
16281     ;;
16282   *)
16283     case $LD in # libtool.m4 will add one of these switches to LD
16284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16285       libsuff= shlibsuff= libmagic=32-bit;;
16286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16287       libsuff=32 shlibsuff=N32 libmagic=N32;;
16288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16290     *) libsuff= shlibsuff= libmagic=never-match;;
16291     esac
16292     ;;
16293   esac
16294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16295   shlibpath_overrides_runpath=no
16296   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16297   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16298   hardcode_into_libs=yes
16299   ;;
16300
16301 # No shared lib support for Linux oldld, aout, or coff.
16302 linux*oldld* | linux*aout* | linux*coff*)
16303   dynamic_linker=no
16304   ;;
16305
16306 linux*android*)
16307   version_type=none # Android doesn't support versioned libraries.
16308   need_lib_prefix=no
16309   need_version=no
16310   library_names_spec='$libname$release$shared_ext'
16311   soname_spec='$libname$release$shared_ext'
16312   finish_cmds=
16313   shlibpath_var=LD_LIBRARY_PATH
16314   shlibpath_overrides_runpath=yes
16315
16316   # This implies no fast_install, which is unacceptable.
16317   # Some rework will be needed to allow for fast_install
16318   # before this can be enabled.
16319   hardcode_into_libs=yes
16320
16321   dynamic_linker='Android linker'
16322   # Don't embed -rpath directories since the linker doesn't support them.
16323   hardcode_libdir_flag_spec_CXX='-L$libdir'
16324   ;;
16325
16326 # This must be glibc/ELF.
16327 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16328   version_type=linux # correct to gnu/linux during the next big refactor
16329   need_lib_prefix=no
16330   need_version=no
16331   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16332   soname_spec='$libname$release$shared_ext$major'
16333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16334   shlibpath_var=LD_LIBRARY_PATH
16335   shlibpath_overrides_runpath=no
16336
16337   # Some binutils ld are patched to set DT_RUNPATH
16338   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16339   $as_echo_n "(cached) " >&6
16340 else
16341   lt_cv_shlibpath_overrides_runpath=no
16342     save_LDFLAGS=$LDFLAGS
16343     save_libdir=$libdir
16344     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16345          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h.  */
16348
16349 int
16350 main ()
16351 {
16352
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 if ac_fn_cxx_try_link "$LINENO"; then :
16358   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16359   lt_cv_shlibpath_overrides_runpath=yes
16360 fi
16361 fi
16362 rm -f core conftest.err conftest.$ac_objext \
16363     conftest$ac_exeext conftest.$ac_ext
16364     LDFLAGS=$save_LDFLAGS
16365     libdir=$save_libdir
16366
16367 fi
16368
16369   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16370
16371   # This implies no fast_install, which is unacceptable.
16372   # Some rework will be needed to allow for fast_install
16373   # before this can be enabled.
16374   hardcode_into_libs=yes
16375
16376   # Append ld.so.conf contents to the search path
16377   if test -f /etc/ld.so.conf; then
16378     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' ' '`
16379     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16380   fi
16381
16382   # We used to test for /lib/ld.so.1 and disable shared libraries on
16383   # powerpc, because MkLinux only supported shared libraries with the
16384   # GNU dynamic linker.  Since this was broken with cross compilers,
16385   # most powerpc-linux boxes support dynamic linking these days and
16386   # people can always --disable-shared, the test was removed, and we
16387   # assume the GNU/Linux dynamic linker is in use.
16388   dynamic_linker='GNU/Linux ld.so'
16389   ;;
16390
16391 netbsd*)
16392   version_type=sunos
16393   need_lib_prefix=no
16394   need_version=no
16395   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16396     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16397     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16398     dynamic_linker='NetBSD (a.out) ld.so'
16399   else
16400     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16401     soname_spec='$libname$release$shared_ext$major'
16402     dynamic_linker='NetBSD ld.elf_so'
16403   fi
16404   shlibpath_var=LD_LIBRARY_PATH
16405   shlibpath_overrides_runpath=yes
16406   hardcode_into_libs=yes
16407   ;;
16408
16409 newsos6)
16410   version_type=linux # correct to gnu/linux during the next big refactor
16411   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414   ;;
16415
16416 *nto* | *qnx*)
16417   version_type=qnx
16418   need_lib_prefix=no
16419   need_version=no
16420   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16421   soname_spec='$libname$release$shared_ext$major'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   shlibpath_overrides_runpath=no
16424   hardcode_into_libs=yes
16425   dynamic_linker='ldqnx.so'
16426   ;;
16427
16428 openbsd* | bitrig*)
16429   version_type=sunos
16430   sys_lib_dlsearch_path_spec=/usr/lib
16431   need_lib_prefix=no
16432   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16433     need_version=no
16434   else
16435     need_version=yes
16436   fi
16437   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439   shlibpath_var=LD_LIBRARY_PATH
16440   shlibpath_overrides_runpath=yes
16441   ;;
16442
16443 os2*)
16444   libname_spec='$name'
16445   shrext_cmds=.dll
16446   need_lib_prefix=no
16447   library_names_spec='$libname$shared_ext $libname.a'
16448   dynamic_linker='OS/2 ld.exe'
16449   shlibpath_var=LIBPATH
16450   ;;
16451
16452 osf3* | osf4* | osf5*)
16453   version_type=osf
16454   need_lib_prefix=no
16455   need_version=no
16456   soname_spec='$libname$release$shared_ext$major'
16457   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16458   shlibpath_var=LD_LIBRARY_PATH
16459   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16460   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16461   ;;
16462
16463 rdos*)
16464   dynamic_linker=no
16465   ;;
16466
16467 solaris*)
16468   version_type=linux # correct to gnu/linux during the next big refactor
16469   need_lib_prefix=no
16470   need_version=no
16471   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16472   soname_spec='$libname$release$shared_ext$major'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   shlibpath_overrides_runpath=yes
16475   hardcode_into_libs=yes
16476   # ldd complains unless libraries are executable
16477   postinstall_cmds='chmod +x $lib'
16478   ;;
16479
16480 sunos4*)
16481   version_type=sunos
16482   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16483   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16484   shlibpath_var=LD_LIBRARY_PATH
16485   shlibpath_overrides_runpath=yes
16486   if test yes = "$with_gnu_ld"; then
16487     need_lib_prefix=no
16488   fi
16489   need_version=yes
16490   ;;
16491
16492 sysv4 | sysv4.3*)
16493   version_type=linux # correct to gnu/linux during the next big refactor
16494   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16495   soname_spec='$libname$release$shared_ext$major'
16496   shlibpath_var=LD_LIBRARY_PATH
16497   case $host_vendor in
16498     sni)
16499       shlibpath_overrides_runpath=no
16500       need_lib_prefix=no
16501       runpath_var=LD_RUN_PATH
16502       ;;
16503     siemens)
16504       need_lib_prefix=no
16505       ;;
16506     motorola)
16507       need_lib_prefix=no
16508       need_version=no
16509       shlibpath_overrides_runpath=no
16510       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16511       ;;
16512   esac
16513   ;;
16514
16515 sysv4*MP*)
16516   if test -d /usr/nec; then
16517     version_type=linux # correct to gnu/linux during the next big refactor
16518     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16519     soname_spec='$libname$shared_ext.$major'
16520     shlibpath_var=LD_LIBRARY_PATH
16521   fi
16522   ;;
16523
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16525   version_type=freebsd-elf
16526   need_lib_prefix=no
16527   need_version=no
16528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16529   soname_spec='$libname$release$shared_ext$major'
16530   shlibpath_var=LD_LIBRARY_PATH
16531   shlibpath_overrides_runpath=yes
16532   hardcode_into_libs=yes
16533   if test yes = "$with_gnu_ld"; then
16534     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16535   else
16536     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16537     case $host_os in
16538       sco3.2v5*)
16539         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16540         ;;
16541     esac
16542   fi
16543   sys_lib_dlsearch_path_spec='/usr/lib'
16544   ;;
16545
16546 tpf*)
16547   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16548   version_type=linux # correct to gnu/linux during the next big refactor
16549   need_lib_prefix=no
16550   need_version=no
16551   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   shlibpath_overrides_runpath=no
16554   hardcode_into_libs=yes
16555   ;;
16556
16557 uts4*)
16558   version_type=linux # correct to gnu/linux during the next big refactor
16559   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16560   soname_spec='$libname$release$shared_ext$major'
16561   shlibpath_var=LD_LIBRARY_PATH
16562   ;;
16563
16564 *)
16565   dynamic_linker=no
16566   ;;
16567 esac
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16569 $as_echo "$dynamic_linker" >&6; }
16570 test no = "$dynamic_linker" && can_build_shared=no
16571
16572 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16573 if test yes = "$GCC"; then
16574   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16575 fi
16576
16577 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16578   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16579 fi
16580 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16581   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16582 fi
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16623 hardcode_action_CXX=
16624 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16625    test -n "$runpath_var_CXX" ||
16626    test yes = "$hardcode_automatic_CXX"; then
16627
16628   # We can hardcode non-existent directories.
16629   if test no != "$hardcode_direct_CXX" &&
16630      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16631      # have to relink, otherwise we might link with an installed library
16632      # when we should be linking with a yet-to-be-installed one
16633      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16634      test no != "$hardcode_minus_L_CXX"; then
16635     # Linking always hardcodes the temporary library directory.
16636     hardcode_action_CXX=relink
16637   else
16638     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16639     hardcode_action_CXX=immediate
16640   fi
16641 else
16642   # We cannot hardcode anything, or else we can only hardcode existing
16643   # directories.
16644   hardcode_action_CXX=unsupported
16645 fi
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16647 $as_echo "$hardcode_action_CXX" >&6; }
16648
16649 if test relink = "$hardcode_action_CXX" ||
16650    test yes = "$inherit_rpath_CXX"; then
16651   # Fast installation is not supported
16652   enable_fast_install=no
16653 elif test yes = "$shlibpath_overrides_runpath" ||
16654      test no = "$enable_shared"; then
16655   # Fast installation is not necessary
16656   enable_fast_install=needless
16657 fi
16658
16659
16660
16661
16662
16663
16664
16665   fi # test -n "$compiler"
16666
16667   CC=$lt_save_CC
16668   CFLAGS=$lt_save_CFLAGS
16669   LDCXX=$LD
16670   LD=$lt_save_LD
16671   GCC=$lt_save_GCC
16672   with_gnu_ld=$lt_save_with_gnu_ld
16673   lt_cv_path_LDCXX=$lt_cv_path_LD
16674   lt_cv_path_LD=$lt_save_path_LD
16675   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16676   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16677 fi # test yes != "$_lt_caught_CXX_error"
16678
16679 ac_ext=c
16680 ac_cpp='$CPP $CPPFLAGS'
16681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16684
16685
16686
16687
16688 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16689         if test -n "$ac_tool_prefix"; then
16690   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16691 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693 $as_echo_n "checking for $ac_word... " >&6; }
16694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697   case $PKG_CONFIG in
16698   [\\/]* | ?:[\\/]*)
16699   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16700   ;;
16701   *)
16702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16704 do
16705   IFS=$as_save_IFS
16706   test -z "$as_dir" && as_dir=.
16707     for ac_exec_ext in '' $ac_executable_extensions; do
16708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711     break 2
16712   fi
16713 done
16714   done
16715 IFS=$as_save_IFS
16716
16717   ;;
16718 esac
16719 fi
16720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16721 if test -n "$PKG_CONFIG"; then
16722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16723 $as_echo "$PKG_CONFIG" >&6; }
16724 else
16725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727 fi
16728
16729
16730 fi
16731 if test -z "$ac_cv_path_PKG_CONFIG"; then
16732   ac_pt_PKG_CONFIG=$PKG_CONFIG
16733   # Extract the first word of "pkg-config", so it can be a program name with args.
16734 set dummy pkg-config; ac_word=$2
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16736 $as_echo_n "checking for $ac_word... " >&6; }
16737 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16738   $as_echo_n "(cached) " >&6
16739 else
16740   case $ac_pt_PKG_CONFIG in
16741   [\\/]* | ?:[\\/]*)
16742   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16743   ;;
16744   *)
16745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16747 do
16748   IFS=$as_save_IFS
16749   test -z "$as_dir" && as_dir=.
16750     for ac_exec_ext in '' $ac_executable_extensions; do
16751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754     break 2
16755   fi
16756 done
16757   done
16758 IFS=$as_save_IFS
16759
16760   ;;
16761 esac
16762 fi
16763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16764 if test -n "$ac_pt_PKG_CONFIG"; then
16765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16766 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16767 else
16768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769 $as_echo "no" >&6; }
16770 fi
16771
16772   if test "x$ac_pt_PKG_CONFIG" = x; then
16773     PKG_CONFIG=""
16774   else
16775     case $cross_compiling:$ac_tool_warned in
16776 yes:)
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16779 ac_tool_warned=yes ;;
16780 esac
16781     PKG_CONFIG=$ac_pt_PKG_CONFIG
16782   fi
16783 else
16784   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16785 fi
16786
16787 fi
16788 if test -n "$PKG_CONFIG"; then
16789         _pkg_min_version=0.20
16790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16791 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16792         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16793                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795         else
16796                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16797 $as_echo "no" >&6; }
16798                 PKG_CONFIG=""
16799         fi
16800
16801 fi
16802
16803 RAGEL=${RAGEL-"${am_missing_run}ragel"}
16804
16805
16806 GIT=${GIT-"${am_missing_run}git"}
16807
16808
16809 # Version
16810
16811
16812
16813
16814 HB_VERSION_MAJOR=0
16815 HB_VERSION_MINOR=9
16816 HB_VERSION_MICRO=40
16817 HB_VERSION=0.9.40
16818
16819
16820
16821
16822
16823 # Libtool version
16824
16825
16826
16827
16828 HB_LIBTOOL_VERSION_INFO=940:0:940
16829
16830
16831 # Documentation
16832 have_gtk_doc=false
16833
16834
16835
16836
16837   gtk_doc_requires="gtk-doc >= 1.15"
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16839 $as_echo_n "checking for gtk-doc... " >&6; }
16840   if test -n "$PKG_CONFIG" && \
16841     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16842   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16843   ac_status=$?
16844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16845   test $ac_status = 0; }; then
16846   have_gtk_doc=yes
16847 else
16848   have_gtk_doc=no
16849 fi
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16851 $as_echo "$have_gtk_doc" >&6; }
16852
16853   if test "$have_gtk_doc" = "no"; then
16854       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16855   You will not be able to create source packages with 'make dist'
16856   because $gtk_doc_requires is not found." >&5
16857 $as_echo "$as_me: WARNING:
16858   You will not be able to create source packages with 'make dist'
16859   because $gtk_doc_requires is not found." >&2;}
16860   fi
16861
16862             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16863 set dummy gtkdoc-check; ac_word=$2
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865 $as_echo_n "checking for $ac_word... " >&6; }
16866 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
16867   $as_echo_n "(cached) " >&6
16868 else
16869   if test -n "$GTKDOC_CHECK"; then
16870   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16871 else
16872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16873 for as_dir in $PATH
16874 do
16875   IFS=$as_save_IFS
16876   test -z "$as_dir" && as_dir=.
16877     for ac_exec_ext in '' $ac_executable_extensions; do
16878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16879     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881     break 2
16882   fi
16883 done
16884   done
16885 IFS=$as_save_IFS
16886
16887 fi
16888 fi
16889 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16890 if test -n "$GTKDOC_CHECK"; then
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16892 $as_echo "$GTKDOC_CHECK" >&6; }
16893 else
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895 $as_echo "no" >&6; }
16896 fi
16897
16898
16899   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16900 set dummy gtkdoc-check; ac_word=$2
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16902 $as_echo_n "checking for $ac_word... " >&6; }
16903 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
16904   $as_echo_n "(cached) " >&6
16905 else
16906   case $GTKDOC_CHECK_PATH in
16907   [\\/]* | ?:[\\/]*)
16908   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16909   ;;
16910   *)
16911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16913 do
16914   IFS=$as_save_IFS
16915   test -z "$as_dir" && as_dir=.
16916     for ac_exec_ext in '' $ac_executable_extensions; do
16917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
16919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920     break 2
16921   fi
16922 done
16923   done
16924 IFS=$as_save_IFS
16925
16926   ;;
16927 esac
16928 fi
16929 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
16930 if test -n "$GTKDOC_CHECK_PATH"; then
16931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
16932 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
16933 else
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16936 fi
16937
16938
16939   for ac_prog in gtkdoc-rebase
16940 do
16941   # Extract the first word of "$ac_prog", so it can be a program name with args.
16942 set dummy $ac_prog; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16944 $as_echo_n "checking for $ac_word... " >&6; }
16945 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948   case $GTKDOC_REBASE in
16949   [\\/]* | ?:[\\/]*)
16950   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16951   ;;
16952   *)
16953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16955 do
16956   IFS=$as_save_IFS
16957   test -z "$as_dir" && as_dir=.
16958     for ac_exec_ext in '' $ac_executable_extensions; do
16959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
16961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962     break 2
16963   fi
16964 done
16965   done
16966 IFS=$as_save_IFS
16967
16968   ;;
16969 esac
16970 fi
16971 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16972 if test -n "$GTKDOC_REBASE"; then
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16974 $as_echo "$GTKDOC_REBASE" >&6; }
16975 else
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16977 $as_echo "no" >&6; }
16978 fi
16979
16980
16981   test -n "$GTKDOC_REBASE" && break
16982 done
16983 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16984
16985   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16986 set dummy gtkdoc-mkpdf; ac_word=$2
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16988 $as_echo_n "checking for $ac_word... " >&6; }
16989 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
16990   $as_echo_n "(cached) " >&6
16991 else
16992   case $GTKDOC_MKPDF in
16993   [\\/]* | ?:[\\/]*)
16994   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16995   ;;
16996   *)
16997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16998 for as_dir in $PATH
16999 do
17000   IFS=$as_save_IFS
17001   test -z "$as_dir" && as_dir=.
17002     for ac_exec_ext in '' $ac_executable_extensions; do
17003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17004     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17006     break 2
17007   fi
17008 done
17009   done
17010 IFS=$as_save_IFS
17011
17012   ;;
17013 esac
17014 fi
17015 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17016 if test -n "$GTKDOC_MKPDF"; then
17017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17018 $as_echo "$GTKDOC_MKPDF" >&6; }
17019 else
17020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17021 $as_echo "no" >&6; }
17022 fi
17023
17024
17025
17026
17027 # Check whether --with-html-dir was given.
17028 if test "${with_html_dir+set}" = set; then :
17029   withval=$with_html_dir;
17030 else
17031   with_html_dir='${datadir}/gtk-doc/html'
17032 fi
17033
17034   HTML_DIR="$with_html_dir"
17035
17036
17037     # Check whether --enable-gtk-doc was given.
17038 if test "${enable_gtk_doc+set}" = set; then :
17039   enableval=$enable_gtk_doc;
17040 else
17041   enable_gtk_doc=no
17042 fi
17043
17044
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17046 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17048 $as_echo "$enable_gtk_doc" >&6; }
17049
17050   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
17051     as_fn_error $? "
17052   You must have $gtk_doc_requires installed to build documentation for
17053   $PACKAGE_NAME. Please install gtk-doc or disable building the
17054   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
17055   fi
17056
17057     if test "x$PACKAGE_NAME" != "xglib"; then
17058
17059 pkg_failed=no
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17061 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17062
17063 if test -n "$PKG_CONFIG"; then
17064     if test -n "$GTKDOC_DEPS_CFLAGS"; then
17065         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17066     else
17067         if test -n "$PKG_CONFIG" && \
17068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17069   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17070   ac_status=$?
17071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17072   test $ac_status = 0; }; then
17073   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17074 else
17075   pkg_failed=yes
17076 fi
17077     fi
17078 else
17079         pkg_failed=untried
17080 fi
17081 if test -n "$PKG_CONFIG"; then
17082     if test -n "$GTKDOC_DEPS_LIBS"; then
17083         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17084     else
17085         if test -n "$PKG_CONFIG" && \
17086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17087   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17088   ac_status=$?
17089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090   test $ac_status = 0; }; then
17091   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17092 else
17093   pkg_failed=yes
17094 fi
17095     fi
17096 else
17097         pkg_failed=untried
17098 fi
17099
17100
17101
17102 if test $pkg_failed = yes; then
17103
17104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17105         _pkg_short_errors_supported=yes
17106 else
17107         _pkg_short_errors_supported=no
17108 fi
17109         if test $_pkg_short_errors_supported = yes; then
17110                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17111         else
17112                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17113         fi
17114         # Put the nasty error message in config.log where it belongs
17115         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17116
17117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118 $as_echo "no" >&6; }
17119                 :
17120 elif test $pkg_failed = untried; then
17121         :
17122 else
17123         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17124         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17126 $as_echo "yes" >&6; }
17127         :
17128 fi
17129   fi
17130
17131     # Check whether --enable-gtk-doc-html was given.
17132 if test "${enable_gtk_doc_html+set}" = set; then :
17133   enableval=$enable_gtk_doc_html;
17134 else
17135   enable_gtk_doc_html=yes
17136 fi
17137
17138     # Check whether --enable-gtk-doc-pdf was given.
17139 if test "${enable_gtk_doc_pdf+set}" = set; then :
17140   enableval=$enable_gtk_doc_pdf;
17141 else
17142   enable_gtk_doc_pdf=no
17143 fi
17144
17145
17146   if test -z "$GTKDOC_MKPDF"; then
17147     enable_gtk_doc_pdf=no
17148   fi
17149
17150   if test -z "$AM_DEFAULT_VERBOSITY"; then
17151     AM_DEFAULT_VERBOSITY=1
17152   fi
17153
17154
17155    if test x$have_gtk_doc = xyes; then
17156   HAVE_GTK_DOC_TRUE=
17157   HAVE_GTK_DOC_FALSE='#'
17158 else
17159   HAVE_GTK_DOC_TRUE='#'
17160   HAVE_GTK_DOC_FALSE=
17161 fi
17162
17163    if test x$enable_gtk_doc = xyes; then
17164   ENABLE_GTK_DOC_TRUE=
17165   ENABLE_GTK_DOC_FALSE='#'
17166 else
17167   ENABLE_GTK_DOC_TRUE='#'
17168   ENABLE_GTK_DOC_FALSE=
17169 fi
17170
17171    if test x$enable_gtk_doc_html = xyes; then
17172   GTK_DOC_BUILD_HTML_TRUE=
17173   GTK_DOC_BUILD_HTML_FALSE='#'
17174 else
17175   GTK_DOC_BUILD_HTML_TRUE='#'
17176   GTK_DOC_BUILD_HTML_FALSE=
17177 fi
17178
17179    if test x$enable_gtk_doc_pdf = xyes; then
17180   GTK_DOC_BUILD_PDF_TRUE=
17181   GTK_DOC_BUILD_PDF_FALSE='#'
17182 else
17183   GTK_DOC_BUILD_PDF_TRUE='#'
17184   GTK_DOC_BUILD_PDF_FALSE=
17185 fi
17186
17187    if test -n "$LIBTOOL"; then
17188   GTK_DOC_USE_LIBTOOL_TRUE=
17189   GTK_DOC_USE_LIBTOOL_FALSE='#'
17190 else
17191   GTK_DOC_USE_LIBTOOL_TRUE='#'
17192   GTK_DOC_USE_LIBTOOL_FALSE=
17193 fi
17194
17195    if test -n "$GTKDOC_REBASE"; then
17196   GTK_DOC_USE_REBASE_TRUE=
17197   GTK_DOC_USE_REBASE_FALSE='#'
17198 else
17199   GTK_DOC_USE_REBASE_TRUE='#'
17200   GTK_DOC_USE_REBASE_FALSE=
17201 fi
17202
17203
17204         if test "x$enable_gtk_doc" = xyes; then
17205                 have_gtk_doc=true
17206         fi
17207
17208
17209 # Functions and headers
17210 for ac_func in atexit mprotect sysconf getpagesize mmap isatty
17211 do :
17212   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17215   cat >>confdefs.h <<_ACEOF
17216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17217 _ACEOF
17218
17219 fi
17220 done
17221
17222 for ac_header in unistd.h sys/mman.h
17223 do :
17224   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17225 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17227   cat >>confdefs.h <<_ACEOF
17228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17229 _ACEOF
17230
17231 fi
17232
17233 done
17234
17235
17236 # Compiler flags
17237
17238 # The cast to long int works around a bug in the HP C Compiler,
17239 # see AC_CHECK_SIZEOF for more information.
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
17241 $as_echo_n "checking alignment of struct{char;}... " >&6; }
17242 if ${ac_cv_alignof_struct_char__+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
17246 #ifndef offsetof
17247 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17248 #endif
17249 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
17250
17251 else
17252   if test "$ac_cv_type_struct_char__" = yes; then
17253      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17255 as_fn_error 77 "cannot compute alignment of struct{char;}
17256 See \`config.log' for more details" "$LINENO" 5; }
17257    else
17258      ac_cv_alignof_struct_char__=0
17259    fi
17260 fi
17261
17262 fi
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
17264 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
17265
17266
17267
17268 cat >>confdefs.h <<_ACEOF
17269 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
17270 _ACEOF
17271
17272
17273 if test "x$GCC" = "xyes"; then
17274
17275         # Make symbols link locally
17276         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
17277
17278         # Make sure we don't link to libstdc++
17279         CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
17280
17281         # Assorted warnings
17282         CXXFLAGS="$CXXFLAGS -Wcast-align"
17283
17284         case "$host" in
17285                 *-*-mingw*)
17286                 ;;
17287                 *)
17288                         # Hide inline methods
17289                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
17290                 ;;
17291         esac
17292
17293         case "$host" in
17294                 arm-*-*)
17295                         if test "x$ac_cv_alignof_struct_char__" != x1; then
17296                                 # Request byte alignment
17297                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
17298                         fi
17299                 ;;
17300         esac
17301 fi
17302
17303  if test "x$GCC" = "xyes"; then
17304   HAVE_GCC_TRUE=
17305   HAVE_GCC_FALSE='#'
17306 else
17307   HAVE_GCC_TRUE='#'
17308   HAVE_GCC_FALSE=
17309 fi
17310
17311
17312 hb_os_win32=no
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17314 $as_echo_n "checking for native Win32... " >&6; }
17315 case "$host" in
17316   *-*-mingw*)
17317     hb_os_win32=yes
17318     ;;
17319 esac
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
17321 $as_echo "$hb_os_win32" >&6; }
17322  if test "$hb_os_win32" = "yes"; then
17323   OS_WIN32_TRUE=
17324   OS_WIN32_FALSE='#'
17325 else
17326   OS_WIN32_TRUE='#'
17327   OS_WIN32_FALSE=
17328 fi
17329
17330
17331 have_pthread=false
17332 if test "$hb_os_win32" = no; then
17333
17334
17335 ac_ext=c
17336 ac_cpp='$CPP $CPPFLAGS'
17337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17340
17341 ax_pthread_ok=no
17342
17343 # We used to check for pthread.h first, but this fails if pthread.h
17344 # requires special compiler flags (e.g. on True64 or Sequent).
17345 # It gets checked for in the link test anyway.
17346
17347 # First of all, check if the user has set any of the PTHREAD_LIBS,
17348 # etcetera environment variables, and if threads linking works using
17349 # them:
17350 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17351         save_CFLAGS="$CFLAGS"
17352         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17353         save_LIBS="$LIBS"
17354         LIBS="$PTHREAD_LIBS $LIBS"
17355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17356 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17357         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h.  */
17359
17360 /* Override any GCC internal prototype to avoid an error.
17361    Use char because int might match the return type of a GCC
17362    builtin and then its argument prototype would still apply.  */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 char pthread_join ();
17367 int
17368 main ()
17369 {
17370 return pthread_join ();
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 if ac_fn_c_try_link "$LINENO"; then :
17376   ax_pthread_ok=yes
17377 fi
17378 rm -f core conftest.err conftest.$ac_objext \
17379     conftest$ac_exeext conftest.$ac_ext
17380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17381 $as_echo "$ax_pthread_ok" >&6; }
17382         if test x"$ax_pthread_ok" = xno; then
17383                 PTHREAD_LIBS=""
17384                 PTHREAD_CFLAGS=""
17385         fi
17386         LIBS="$save_LIBS"
17387         CFLAGS="$save_CFLAGS"
17388 fi
17389
17390 # We must check for the threads library under a number of different
17391 # names; the ordering is very important because some systems
17392 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17393 # libraries is broken (non-POSIX).
17394
17395 # Create a list of thread flags to try.  Items starting with a "-" are
17396 # C compiler flags, and other items are library names, except for "none"
17397 # which indicates that we try without any flags at all, and "pthread-config"
17398 # which is a program returning the flags for the Pth emulation library.
17399
17400 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17401
17402 # The ordering *is* (sometimes) important.  Some notes on the
17403 # individual items follow:
17404
17405 # pthreads: AIX (must check this before -lpthread)
17406 # none: in case threads are in libc; should be tried before -Kthread and
17407 #       other compiler flags to prevent continual compiler warnings
17408 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17409 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17410 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17411 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17412 # -pthreads: Solaris/gcc
17413 # -mthreads: Mingw32/gcc, Lynx/gcc
17414 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17415 #      doesn't hurt to check since this sometimes defines pthreads too;
17416 #      also defines -D_REENTRANT)
17417 #      ... -mt is also the pthreads flag for HP/aCC
17418 # pthread: Linux, etcetera
17419 # --thread-safe: KAI C++
17420 # pthread-config: use pthread-config program (for GNU Pth library)
17421
17422 case ${host_os} in
17423         solaris*)
17424
17425         # On Solaris (at least, for some versions), libc contains stubbed
17426         # (non-functional) versions of the pthreads routines, so link-based
17427         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17428         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17429         # a function called by this macro, so we could check for that, but
17430         # who knows whether they'll stub that too in a future libc.)  So,
17431         # we'll just look for -pthreads and -lpthread first:
17432
17433         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17434         ;;
17435
17436         darwin*)
17437         ax_pthread_flags="-pthread $ax_pthread_flags"
17438         ;;
17439 esac
17440
17441 if test x"$ax_pthread_ok" = xno; then
17442 for flag in $ax_pthread_flags; do
17443
17444         case $flag in
17445                 none)
17446                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17447 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17448                 ;;
17449
17450                 -*)
17451                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17452 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17453                 PTHREAD_CFLAGS="$flag"
17454                 ;;
17455
17456                 pthread-config)
17457                 # Extract the first word of "pthread-config", so it can be a program name with args.
17458 set dummy pthread-config; ac_word=$2
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17460 $as_echo_n "checking for $ac_word... " >&6; }
17461 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17462   $as_echo_n "(cached) " >&6
17463 else
17464   if test -n "$ax_pthread_config"; then
17465   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17466 else
17467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17468 for as_dir in $PATH
17469 do
17470   IFS=$as_save_IFS
17471   test -z "$as_dir" && as_dir=.
17472     for ac_exec_ext in '' $ac_executable_extensions; do
17473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17474     ac_cv_prog_ax_pthread_config="yes"
17475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17476     break 2
17477   fi
17478 done
17479   done
17480 IFS=$as_save_IFS
17481
17482   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17483 fi
17484 fi
17485 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17486 if test -n "$ax_pthread_config"; then
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17488 $as_echo "$ax_pthread_config" >&6; }
17489 else
17490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492 fi
17493
17494
17495                 if test x"$ax_pthread_config" = xno; then continue; fi
17496                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17497                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17498                 ;;
17499
17500                 *)
17501                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17502 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17503                 PTHREAD_LIBS="-l$flag"
17504                 ;;
17505         esac
17506
17507         save_LIBS="$LIBS"
17508         save_CFLAGS="$CFLAGS"
17509         LIBS="$PTHREAD_LIBS $LIBS"
17510         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17511
17512         # Check for various functions.  We must include pthread.h,
17513         # since some functions may be macros.  (On the Sequent, we
17514         # need a special flag -Kthread to make this header compile.)
17515         # We check for pthread_join because it is in -lpthread on IRIX
17516         # while pthread_create is in libc.  We check for pthread_attr_init
17517         # due to DEC craziness with -lpthreads.  We check for
17518         # pthread_cleanup_push because it is one of the few pthread
17519         # functions on Solaris that doesn't have a non-functional libc stub.
17520         # We try pthread_create on general principles.
17521         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h.  */
17523 #include <pthread.h>
17524                         static void routine(void *a) { a = 0; }
17525                         static void *start_routine(void *a) { return a; }
17526 int
17527 main ()
17528 {
17529 pthread_t th; pthread_attr_t attr;
17530                         pthread_create(&th, 0, start_routine, 0);
17531                         pthread_join(th, 0);
17532                         pthread_attr_init(&attr);
17533                         pthread_cleanup_push(routine, 0);
17534                         pthread_cleanup_pop(0) /* ; */
17535   ;
17536   return 0;
17537 }
17538 _ACEOF
17539 if ac_fn_c_try_link "$LINENO"; then :
17540   ax_pthread_ok=yes
17541 fi
17542 rm -f core conftest.err conftest.$ac_objext \
17543     conftest$ac_exeext conftest.$ac_ext
17544
17545         LIBS="$save_LIBS"
17546         CFLAGS="$save_CFLAGS"
17547
17548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17549 $as_echo "$ax_pthread_ok" >&6; }
17550         if test "x$ax_pthread_ok" = xyes; then
17551                 break;
17552         fi
17553
17554         PTHREAD_LIBS=""
17555         PTHREAD_CFLAGS=""
17556 done
17557 fi
17558
17559 # Various other checks:
17560 if test "x$ax_pthread_ok" = xyes; then
17561         save_LIBS="$LIBS"
17562         LIBS="$PTHREAD_LIBS $LIBS"
17563         save_CFLAGS="$CFLAGS"
17564         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17565
17566         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17568 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17569         attr_name=unknown
17570         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17571             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h.  */
17573 #include <pthread.h>
17574 int
17575 main ()
17576 {
17577 int attr = $attr; return attr /* ; */
17578   ;
17579   return 0;
17580 }
17581 _ACEOF
17582 if ac_fn_c_try_link "$LINENO"; then :
17583   attr_name=$attr; break
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext \
17586     conftest$ac_exeext conftest.$ac_ext
17587         done
17588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17589 $as_echo "$attr_name" >&6; }
17590         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17591
17592 cat >>confdefs.h <<_ACEOF
17593 #define PTHREAD_CREATE_JOINABLE $attr_name
17594 _ACEOF
17595
17596         fi
17597
17598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17599 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17600         flag=no
17601         case ${host_os} in
17602             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17603             osf* | hpux*) flag="-D_REENTRANT";;
17604             solaris*)
17605             if test "$GCC" = "yes"; then
17606                 flag="-D_REENTRANT"
17607             else
17608                 flag="-mt -D_REENTRANT"
17609             fi
17610             ;;
17611         esac
17612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17613 $as_echo "${flag}" >&6; }
17614         if test "x$flag" != xno; then
17615             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17616         fi
17617
17618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17619 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17620 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17621   $as_echo_n "(cached) " >&6
17622 else
17623
17624                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h.  */
17626
17627                     #include <pthread.h>
17628 int
17629 main ()
17630 {
17631 int i = PTHREAD_PRIO_INHERIT;
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_link "$LINENO"; then :
17637   ax_cv_PTHREAD_PRIO_INHERIT=yes
17638 else
17639   ax_cv_PTHREAD_PRIO_INHERIT=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642     conftest$ac_exeext conftest.$ac_ext
17643
17644 fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17646 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17647         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
17648
17649 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17650
17651 fi
17652
17653         LIBS="$save_LIBS"
17654         CFLAGS="$save_CFLAGS"
17655
17656         # More AIX lossage: must compile with xlc_r or cc_r
17657         if test x"$GCC" != xyes; then
17658           for ac_prog in xlc_r cc_r
17659 do
17660   # Extract the first word of "$ac_prog", so it can be a program name with args.
17661 set dummy $ac_prog; ac_word=$2
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17663 $as_echo_n "checking for $ac_word... " >&6; }
17664 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17665   $as_echo_n "(cached) " >&6
17666 else
17667   if test -n "$PTHREAD_CC"; then
17668   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17669 else
17670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671 for as_dir in $PATH
17672 do
17673   IFS=$as_save_IFS
17674   test -z "$as_dir" && as_dir=.
17675     for ac_exec_ext in '' $ac_executable_extensions; do
17676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17677     ac_cv_prog_PTHREAD_CC="$ac_prog"
17678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17679     break 2
17680   fi
17681 done
17682   done
17683 IFS=$as_save_IFS
17684
17685 fi
17686 fi
17687 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17688 if test -n "$PTHREAD_CC"; then
17689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17690 $as_echo "$PTHREAD_CC" >&6; }
17691 else
17692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17693 $as_echo "no" >&6; }
17694 fi
17695
17696
17697   test -n "$PTHREAD_CC" && break
17698 done
17699 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17700
17701         else
17702           PTHREAD_CC=$CC
17703         fi
17704 else
17705         PTHREAD_CC="$CC"
17706 fi
17707
17708
17709
17710
17711
17712 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17713 if test x"$ax_pthread_ok" = xyes; then
17714         have_pthread=true
17715         :
17716 else
17717         ax_pthread_ok=no
17718
17719 fi
17720 ac_ext=c
17721 ac_cpp='$CPP $CPPFLAGS'
17722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17725
17726
17727 fi
17728 if $have_pthread; then
17729
17730 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17731
17732 fi
17733  if $have_pthread; then
17734   HAVE_PTHREAD_TRUE=
17735   HAVE_PTHREAD_FALSE='#'
17736 else
17737   HAVE_PTHREAD_TRUE='#'
17738   HAVE_PTHREAD_FALSE=
17739 fi
17740
17741
17742
17743 have_ot=true
17744 if $have_ot; then
17745
17746 $as_echo "#define HAVE_OT 1" >>confdefs.h
17747
17748 fi
17749  if $have_ot; then
17750   HAVE_OT_TRUE=
17751   HAVE_OT_FALSE='#'
17752 else
17753   HAVE_OT_TRUE='#'
17754   HAVE_OT_FALSE=
17755 fi
17756
17757
17758 have_fallback=true
17759 if $have_fallback; then
17760
17761 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
17762
17763 fi
17764  if $have_fallback; then
17765   HAVE_FALLBACK_TRUE=
17766   HAVE_FALLBACK_FALSE='#'
17767 else
17768   HAVE_FALLBACK_TRUE='#'
17769   HAVE_FALLBACK_FALSE=
17770 fi
17771
17772
17773
17774
17775 # Check whether --with-glib was given.
17776 if test "${with_glib+set}" = set; then :
17777   withval=$with_glib;
17778 else
17779   with_glib=auto
17780 fi
17781
17782 have_glib=false
17783 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
17784
17785 pkg_failed=no
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
17787 $as_echo_n "checking for GLIB... " >&6; }
17788
17789 if test -n "$PKG_CONFIG"; then
17790     if test -n "$GLIB_CFLAGS"; then
17791         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17792     else
17793         if test -n "$PKG_CONFIG" && \
17794     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
17795   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
17796   ac_status=$?
17797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17798   test $ac_status = 0; }; then
17799   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
17800 else
17801   pkg_failed=yes
17802 fi
17803     fi
17804 else
17805         pkg_failed=untried
17806 fi
17807 if test -n "$PKG_CONFIG"; then
17808     if test -n "$GLIB_LIBS"; then
17809         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17810     else
17811         if test -n "$PKG_CONFIG" && \
17812     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
17813   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
17814   ac_status=$?
17815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17816   test $ac_status = 0; }; then
17817   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
17818 else
17819   pkg_failed=yes
17820 fi
17821     fi
17822 else
17823         pkg_failed=untried
17824 fi
17825
17826
17827
17828 if test $pkg_failed = yes; then
17829
17830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17831         _pkg_short_errors_supported=yes
17832 else
17833         _pkg_short_errors_supported=no
17834 fi
17835         if test $_pkg_short_errors_supported = yes; then
17836                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
17837         else
17838                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
17839         fi
17840         # Put the nasty error message in config.log where it belongs
17841         echo "$GLIB_PKG_ERRORS" >&5
17842
17843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844 $as_echo "no" >&6; }
17845                 :
17846 elif test $pkg_failed = untried; then
17847         :
17848 else
17849         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17850         GLIB_LIBS=$pkg_cv_GLIB_LIBS
17851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17852 $as_echo "yes" >&6; }
17853         have_glib=true
17854 fi
17855 fi
17856 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
17857         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
17858 fi
17859 if $have_glib; then
17860
17861 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
17862
17863 fi
17864  if $have_glib; then
17865   HAVE_GLIB_TRUE=
17866   HAVE_GLIB_FALSE='#'
17867 else
17868   HAVE_GLIB_TRUE='#'
17869   HAVE_GLIB_FALSE=
17870 fi
17871
17872
17873
17874
17875 # Check whether --with-gobject was given.
17876 if test "${with_gobject+set}" = set; then :
17877   withval=$with_gobject;
17878 else
17879   with_gobject=no
17880 fi
17881
17882 have_gobject=false
17883 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
17884
17885 pkg_failed=no
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
17887 $as_echo_n "checking for GOBJECT... " >&6; }
17888
17889 if test -n "$PKG_CONFIG"; then
17890     if test -n "$GOBJECT_CFLAGS"; then
17891         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
17892     else
17893         if test -n "$PKG_CONFIG" && \
17894     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17895   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17896   ac_status=$?
17897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898   test $ac_status = 0; }; then
17899   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
17900 else
17901   pkg_failed=yes
17902 fi
17903     fi
17904 else
17905         pkg_failed=untried
17906 fi
17907 if test -n "$PKG_CONFIG"; then
17908     if test -n "$GOBJECT_LIBS"; then
17909         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
17910     else
17911         if test -n "$PKG_CONFIG" && \
17912     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17913   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17914   ac_status=$?
17915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916   test $ac_status = 0; }; then
17917   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
17918 else
17919   pkg_failed=yes
17920 fi
17921     fi
17922 else
17923         pkg_failed=untried
17924 fi
17925
17926
17927
17928 if test $pkg_failed = yes; then
17929
17930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17931         _pkg_short_errors_supported=yes
17932 else
17933         _pkg_short_errors_supported=no
17934 fi
17935         if test $_pkg_short_errors_supported = yes; then
17936                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
17937         else
17938                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
17939         fi
17940         # Put the nasty error message in config.log where it belongs
17941         echo "$GOBJECT_PKG_ERRORS" >&5
17942
17943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 $as_echo "no" >&6; }
17945                 :
17946 elif test $pkg_failed = untried; then
17947         :
17948 else
17949         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
17950         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
17951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17952 $as_echo "yes" >&6; }
17953         have_gobject=true
17954 fi
17955 fi
17956 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
17957         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
17958 fi
17959 if $have_gobject; then
17960
17961 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
17962
17963         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17964
17965 fi
17966  if $have_gobject; then
17967   HAVE_GOBJECT_TRUE=
17968   HAVE_GOBJECT_FALSE='#'
17969 else
17970   HAVE_GOBJECT_TRUE='#'
17971   HAVE_GOBJECT_FALSE=
17972 fi
17973
17974
17975
17976
17977 # Gobject-Introspection
17978 have_introspection=false
17979
17980         if $have_gobject; then
17981
17982
17983
17984                 # Check whether --enable-introspection was given.
17985 if test "${enable_introspection+set}" = set; then :
17986   enableval=$enable_introspection;
17987 else
17988   enable_introspection=auto
17989 fi
17990
17991
17992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
17993 $as_echo_n "checking for gobject-introspection... " >&6; }
17994
17995         case $enable_introspection in #(
17996   no) :
17997             found_introspection="no (disabled, use --enable-introspection to enable)"
17998      ;; #(
17999       yes) :
18000             if test -n "$PKG_CONFIG" && \
18001     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
18002   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
18003   ac_status=$?
18004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18005   test $ac_status = 0; }; then
18006   :
18007 else
18008   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
18009 fi
18010         if test -n "$PKG_CONFIG" && \
18011     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18012   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18013   ac_status=$?
18014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18015   test $ac_status = 0; }; then
18016   found_introspection=yes
18017 else
18018   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
18019 fi
18020      ;; #(
18021       auto) :
18022             if test -n "$PKG_CONFIG" && \
18023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18024   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18025   ac_status=$?
18026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18027   test $ac_status = 0; }; then
18028   found_introspection=yes
18029 else
18030   found_introspection=no
18031 fi
18032                 enable_introspection=$found_introspection
18033      ;; #(
18034   *) :
18035                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
18036      ;;
18037 esac
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
18039 $as_echo "$found_introspection" >&6; }
18040
18041     INTROSPECTION_SCANNER=
18042     INTROSPECTION_COMPILER=
18043     INTROSPECTION_GENERATE=
18044     INTROSPECTION_GIRDIR=
18045     INTROSPECTION_TYPELIBDIR=
18046     if test "x$found_introspection" = "xyes"; then
18047        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
18048        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
18049        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
18050        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
18051        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
18052        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
18053        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
18054        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
18055     fi
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065      if test "x$found_introspection" = "xyes"; then
18066   HAVE_INTROSPECTION_TRUE=
18067   HAVE_INTROSPECTION_FALSE='#'
18068 else
18069   HAVE_INTROSPECTION_TRUE='#'
18070   HAVE_INTROSPECTION_FALSE=
18071 fi
18072
18073
18074
18075                 if test "x$found_introspection" = xyes; then
18076                         have_introspection=true
18077                 fi
18078         else
18079                  if false; then
18080   HAVE_INTROSPECTION_TRUE=
18081   HAVE_INTROSPECTION_FALSE='#'
18082 else
18083   HAVE_INTROSPECTION_TRUE='#'
18084   HAVE_INTROSPECTION_FALSE=
18085 fi
18086
18087         fi
18088
18089
18090
18091 have_ucdn=true
18092 if $have_glib; then
18093         have_ucdn=false
18094 fi
18095 if $have_ucdn; then
18096
18097 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
18098
18099 fi
18100  if $have_ucdn; then
18101   HAVE_UCDN_TRUE=
18102   HAVE_UCDN_FALSE='#'
18103 else
18104   HAVE_UCDN_TRUE='#'
18105   HAVE_UCDN_FALSE=
18106 fi
18107
18108
18109
18110
18111 # Check whether --with-cairo was given.
18112 if test "${with_cairo+set}" = set; then :
18113   withval=$with_cairo;
18114 else
18115   with_cairo=auto
18116 fi
18117
18118 have_cairo=false
18119 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
18120
18121 pkg_failed=no
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
18123 $as_echo_n "checking for CAIRO... " >&6; }
18124
18125 if test -n "$PKG_CONFIG"; then
18126     if test -n "$CAIRO_CFLAGS"; then
18127         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18128     else
18129         if test -n "$PKG_CONFIG" && \
18130     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18131   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18132   ac_status=$?
18133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134   test $ac_status = 0; }; then
18135   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
18136 else
18137   pkg_failed=yes
18138 fi
18139     fi
18140 else
18141         pkg_failed=untried
18142 fi
18143 if test -n "$PKG_CONFIG"; then
18144     if test -n "$CAIRO_LIBS"; then
18145         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18146     else
18147         if test -n "$PKG_CONFIG" && \
18148     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18149   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18150   ac_status=$?
18151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18152   test $ac_status = 0; }; then
18153   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
18154 else
18155   pkg_failed=yes
18156 fi
18157     fi
18158 else
18159         pkg_failed=untried
18160 fi
18161
18162
18163
18164 if test $pkg_failed = yes; then
18165
18166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18167         _pkg_short_errors_supported=yes
18168 else
18169         _pkg_short_errors_supported=no
18170 fi
18171         if test $_pkg_short_errors_supported = yes; then
18172                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18173         else
18174                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18175         fi
18176         # Put the nasty error message in config.log where it belongs
18177         echo "$CAIRO_PKG_ERRORS" >&5
18178
18179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180 $as_echo "no" >&6; }
18181                 :
18182 elif test $pkg_failed = untried; then
18183         :
18184 else
18185         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18186         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188 $as_echo "yes" >&6; }
18189         have_cairo=true
18190 fi
18191 fi
18192 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
18193         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
18194 fi
18195 if $have_cairo; then
18196
18197 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18198
18199 fi
18200  if $have_cairo; then
18201   HAVE_CAIRO_TRUE=
18202   HAVE_CAIRO_FALSE='#'
18203 else
18204   HAVE_CAIRO_TRUE='#'
18205   HAVE_CAIRO_FALSE=
18206 fi
18207
18208
18209 have_cairo_ft=false
18210 if $have_cairo; then
18211
18212 pkg_failed=no
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
18214 $as_echo_n "checking for CAIRO_FT... " >&6; }
18215
18216 if test -n "$PKG_CONFIG"; then
18217     if test -n "$CAIRO_FT_CFLAGS"; then
18218         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
18219     else
18220         if test -n "$PKG_CONFIG" && \
18221     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18222   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18223   ac_status=$?
18224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18225   test $ac_status = 0; }; then
18226   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
18227 else
18228   pkg_failed=yes
18229 fi
18230     fi
18231 else
18232         pkg_failed=untried
18233 fi
18234 if test -n "$PKG_CONFIG"; then
18235     if test -n "$CAIRO_FT_LIBS"; then
18236         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
18237     else
18238         if test -n "$PKG_CONFIG" && \
18239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18240   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18241   ac_status=$?
18242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18243   test $ac_status = 0; }; then
18244   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
18245 else
18246   pkg_failed=yes
18247 fi
18248     fi
18249 else
18250         pkg_failed=untried
18251 fi
18252
18253
18254
18255 if test $pkg_failed = yes; then
18256
18257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18258         _pkg_short_errors_supported=yes
18259 else
18260         _pkg_short_errors_supported=no
18261 fi
18262         if test $_pkg_short_errors_supported = yes; then
18263                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
18264         else
18265                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
18266         fi
18267         # Put the nasty error message in config.log where it belongs
18268         echo "$CAIRO_FT_PKG_ERRORS" >&5
18269
18270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18272                 :
18273 elif test $pkg_failed = untried; then
18274         :
18275 else
18276         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
18277         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
18278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18279 $as_echo "yes" >&6; }
18280         have_cairo_ft=true
18281 fi
18282 fi
18283 if $have_cairo_ft; then
18284
18285 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
18286
18287 fi
18288  if $have_cairo_ft; then
18289   HAVE_CAIRO_FT_TRUE=
18290   HAVE_CAIRO_FT_FALSE='#'
18291 else
18292   HAVE_CAIRO_FT_TRUE='#'
18293   HAVE_CAIRO_FT_FALSE=
18294 fi
18295
18296
18297
18298
18299 # Check whether --with-icu was given.
18300 if test "${with_icu+set}" = set; then :
18301   withval=$with_icu;
18302 else
18303   with_icu=auto
18304 fi
18305
18306 have_icu=false
18307 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xauto"; then
18308
18309 pkg_failed=no
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18311 $as_echo_n "checking for ICU... " >&6; }
18312
18313 if test -n "$PKG_CONFIG"; then
18314     if test -n "$ICU_CFLAGS"; then
18315         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18316     else
18317         if test -n "$PKG_CONFIG" && \
18318     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18319   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18320   ac_status=$?
18321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18322   test $ac_status = 0; }; then
18323   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18324 else
18325   pkg_failed=yes
18326 fi
18327     fi
18328 else
18329         pkg_failed=untried
18330 fi
18331 if test -n "$PKG_CONFIG"; then
18332     if test -n "$ICU_LIBS"; then
18333         pkg_cv_ICU_LIBS="$ICU_LIBS"
18334     else
18335         if test -n "$PKG_CONFIG" && \
18336     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18337   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18338   ac_status=$?
18339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18340   test $ac_status = 0; }; then
18341   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18342 else
18343   pkg_failed=yes
18344 fi
18345     fi
18346 else
18347         pkg_failed=untried
18348 fi
18349
18350
18351
18352 if test $pkg_failed = yes; then
18353
18354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18355         _pkg_short_errors_supported=yes
18356 else
18357         _pkg_short_errors_supported=no
18358 fi
18359         if test $_pkg_short_errors_supported = yes; then
18360                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
18361         else
18362                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
18363         fi
18364         # Put the nasty error message in config.log where it belongs
18365         echo "$ICU_PKG_ERRORS" >&5
18366
18367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18368 $as_echo "no" >&6; }
18369                 :
18370 elif test $pkg_failed = untried; then
18371         :
18372 else
18373         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18374         ICU_LIBS=$pkg_cv_ICU_LIBS
18375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18376 $as_echo "yes" >&6; }
18377         have_icu=true
18378 fi
18379
18380                 if test "$have_icu" != "true"; then
18381                 if test -n "$ac_tool_prefix"; then
18382   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
18383 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18385 $as_echo_n "checking for $ac_word... " >&6; }
18386 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
18387   $as_echo_n "(cached) " >&6
18388 else
18389   if test -n "$ICU_CONFIG"; then
18390   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
18391 else
18392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18393 for as_dir in $PATH
18394 do
18395   IFS=$as_save_IFS
18396   test -z "$as_dir" && as_dir=.
18397     for ac_exec_ext in '' $ac_executable_extensions; do
18398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18399     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
18400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18401     break 2
18402   fi
18403 done
18404   done
18405 IFS=$as_save_IFS
18406
18407 fi
18408 fi
18409 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
18410 if test -n "$ICU_CONFIG"; then
18411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
18412 $as_echo "$ICU_CONFIG" >&6; }
18413 else
18414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 fi
18417
18418
18419 fi
18420 if test -z "$ac_cv_prog_ICU_CONFIG"; then
18421   ac_ct_ICU_CONFIG=$ICU_CONFIG
18422   # Extract the first word of "icu-config", so it can be a program name with args.
18423 set dummy icu-config; ac_word=$2
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18425 $as_echo_n "checking for $ac_word... " >&6; }
18426 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
18427   $as_echo_n "(cached) " >&6
18428 else
18429   if test -n "$ac_ct_ICU_CONFIG"; then
18430   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
18431 else
18432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18433 for as_dir in $PATH
18434 do
18435   IFS=$as_save_IFS
18436   test -z "$as_dir" && as_dir=.
18437     for ac_exec_ext in '' $ac_executable_extensions; do
18438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18439     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
18440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18441     break 2
18442   fi
18443 done
18444   done
18445 IFS=$as_save_IFS
18446
18447 fi
18448 fi
18449 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
18450 if test -n "$ac_ct_ICU_CONFIG"; then
18451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
18452 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
18453 else
18454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18455 $as_echo "no" >&6; }
18456 fi
18457
18458   if test "x$ac_ct_ICU_CONFIG" = x; then
18459     ICU_CONFIG="no"
18460   else
18461     case $cross_compiling:$ac_tool_warned in
18462 yes:)
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18465 ac_tool_warned=yes ;;
18466 esac
18467     ICU_CONFIG=$ac_ct_ICU_CONFIG
18468   fi
18469 else
18470   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
18471 fi
18472
18473                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
18474 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
18475                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
18476                         have_icu=true
18477                         # We don't use --cflags as this gives us a lot of things that we don't
18478                         # necessarily want, like debugging and optimization flags
18479                         # See man (1) icu-config for more info.
18480                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
18481                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
18482
18483
18484                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18485 $as_echo "yes" >&6; }
18486                 else
18487                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18488 $as_echo "no" >&6; }
18489                 fi
18490         fi
18491 fi
18492 if test "x$with_icu" = "xyes" -a "x$have_icu" != "xtrue"; then
18493         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
18494 fi
18495 if $have_icu; then
18496         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
18497
18498 $as_echo "#define HAVE_ICU 1" >>confdefs.h
18499
18500 fi
18501  if $have_icu; then
18502   HAVE_ICU_TRUE=
18503   HAVE_ICU_FALSE='#'
18504 else
18505   HAVE_ICU_TRUE='#'
18506   HAVE_ICU_FALSE=
18507 fi
18508
18509
18510
18511
18512 # Check whether --with-graphite2 was given.
18513 if test "${with_graphite2+set}" = set; then :
18514   withval=$with_graphite2;
18515 else
18516   with_graphite2=no
18517 fi
18518
18519 have_graphite2=false
18520 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
18521
18522 pkg_failed=no
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
18524 $as_echo_n "checking for GRAPHITE2... " >&6; }
18525
18526 if test -n "$PKG_CONFIG"; then
18527     if test -n "$GRAPHITE2_CFLAGS"; then
18528         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
18529     else
18530         if test -n "$PKG_CONFIG" && \
18531     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
18532   ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
18533   ac_status=$?
18534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18535   test $ac_status = 0; }; then
18536   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "graphite2" 2>/dev/null`
18537 else
18538   pkg_failed=yes
18539 fi
18540     fi
18541 else
18542         pkg_failed=untried
18543 fi
18544 if test -n "$PKG_CONFIG"; then
18545     if test -n "$GRAPHITE2_LIBS"; then
18546         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
18547     else
18548         if test -n "$PKG_CONFIG" && \
18549     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
18550   ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
18551   ac_status=$?
18552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18553   test $ac_status = 0; }; then
18554   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "graphite2" 2>/dev/null`
18555 else
18556   pkg_failed=yes
18557 fi
18558     fi
18559 else
18560         pkg_failed=untried
18561 fi
18562
18563
18564
18565 if test $pkg_failed = yes; then
18566
18567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18568         _pkg_short_errors_supported=yes
18569 else
18570         _pkg_short_errors_supported=no
18571 fi
18572         if test $_pkg_short_errors_supported = yes; then
18573                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "graphite2"`
18574         else
18575                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "graphite2"`
18576         fi
18577         # Put the nasty error message in config.log where it belongs
18578         echo "$GRAPHITE2_PKG_ERRORS" >&5
18579
18580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18581 $as_echo "no" >&6; }
18582                 :
18583 elif test $pkg_failed = untried; then
18584         :
18585 else
18586         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
18587         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
18588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18589 $as_echo "yes" >&6; }
18590         have_graphite2=true
18591 fi
18592 fi
18593 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
18594         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
18595 fi
18596 if $have_graphite2; then
18597
18598 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
18599
18600 fi
18601  if $have_graphite2; then
18602   HAVE_GRAPHITE2_TRUE=
18603   HAVE_GRAPHITE2_FALSE='#'
18604 else
18605   HAVE_GRAPHITE2_TRUE='#'
18606   HAVE_GRAPHITE2_FALSE=
18607 fi
18608
18609
18610
18611
18612 # Check whether --with-freetype was given.
18613 if test "${with_freetype+set}" = set; then :
18614   withval=$with_freetype;
18615 else
18616   with_freetype=auto
18617 fi
18618
18619 have_freetype=false
18620 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
18621         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
18622
18623 pkg_failed=no
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18625 $as_echo_n "checking for FREETYPE... " >&6; }
18626
18627 if test -n "$PKG_CONFIG"; then
18628     if test -n "$FREETYPE_CFLAGS"; then
18629         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18630     else
18631         if test -n "$PKG_CONFIG" && \
18632     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5
18633   ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5
18634   ac_status=$?
18635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18636   test $ac_status = 0; }; then
18637   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 12.0.6" 2>/dev/null`
18638 else
18639   pkg_failed=yes
18640 fi
18641     fi
18642 else
18643         pkg_failed=untried
18644 fi
18645 if test -n "$PKG_CONFIG"; then
18646     if test -n "$FREETYPE_LIBS"; then
18647         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18648     else
18649         if test -n "$PKG_CONFIG" && \
18650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5
18651   ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5
18652   ac_status=$?
18653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18654   test $ac_status = 0; }; then
18655   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 12.0.6" 2>/dev/null`
18656 else
18657   pkg_failed=yes
18658 fi
18659     fi
18660 else
18661         pkg_failed=untried
18662 fi
18663
18664
18665
18666 if test $pkg_failed = yes; then
18667
18668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18669         _pkg_short_errors_supported=yes
18670 else
18671         _pkg_short_errors_supported=no
18672 fi
18673         if test $_pkg_short_errors_supported = yes; then
18674                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 12.0.6"`
18675         else
18676                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 12.0.6"`
18677         fi
18678         # Put the nasty error message in config.log where it belongs
18679         echo "$FREETYPE_PKG_ERRORS" >&5
18680
18681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18682 $as_echo "no" >&6; }
18683                 :
18684 elif test $pkg_failed = untried; then
18685         :
18686 else
18687         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18688         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18690 $as_echo "yes" >&6; }
18691         have_freetype=true
18692 fi
18693 fi
18694 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
18695         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
18696 fi
18697 if $have_freetype; then
18698
18699 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
18700
18701 fi
18702  if $have_freetype; then
18703   HAVE_FREETYPE_TRUE=
18704   HAVE_FREETYPE_FALSE='#'
18705 else
18706   HAVE_FREETYPE_TRUE='#'
18707   HAVE_FREETYPE_FALSE=
18708 fi
18709
18710
18711
18712
18713 # Check whether --with-uniscribe was given.
18714 if test "${with_uniscribe+set}" = set; then :
18715   withval=$with_uniscribe;
18716 else
18717   with_uniscribe=no
18718 fi
18719
18720 have_uniscribe=false
18721 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
18722         for ac_header in usp10.h windows.h
18723 do :
18724   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18725 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18727   cat >>confdefs.h <<_ACEOF
18728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18729 _ACEOF
18730  have_uniscribe=true
18731 fi
18732
18733 done
18734
18735 fi
18736 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
18737         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
18738 fi
18739 if $have_uniscribe; then
18740         UNISCRIBE_CFLAGS=
18741         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
18742
18743
18744
18745 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
18746
18747 fi
18748  if $have_uniscribe; then
18749   HAVE_UNISCRIBE_TRUE=
18750   HAVE_UNISCRIBE_FALSE='#'
18751 else
18752   HAVE_UNISCRIBE_TRUE='#'
18753   HAVE_UNISCRIBE_FALSE=
18754 fi
18755
18756
18757
18758
18759 # Check whether --with-coretext was given.
18760 if test "${with_coretext+set}" = set; then :
18761   withval=$with_coretext;
18762 else
18763   with_coretext=no
18764 fi
18765
18766 have_coretext=false
18767 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
18768         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
18769 "
18770 if test "x$ac_cv_type_CTFontRef" = xyes; then :
18771   have_coretext=true
18772 fi
18773
18774
18775         if $have_coretext; then
18776                 CORETEXT_CFLAGS=
18777                 CORETEXT_LIBS="-framework ApplicationServices"
18778
18779
18780         else
18781                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
18782                 if test "x$have_coretext" != "xtrue"; then
18783                         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h>
18784 "
18785 if test "x$ac_cv_type_CTFontRef" = xyes; then :
18786   have_coretext=true
18787 fi
18788
18789                 fi
18790
18791                 if $have_coretext; then
18792                         CORETEXT_CFLAGS=
18793                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
18794
18795
18796                 fi
18797         fi
18798 fi
18799 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
18800         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
18801 fi
18802 if $have_coretext; then
18803
18804 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
18805
18806 fi
18807  if $have_coretext; then
18808   HAVE_CORETEXT_TRUE=
18809   HAVE_CORETEXT_FALSE='#'
18810 else
18811   HAVE_CORETEXT_TRUE='#'
18812   HAVE_CORETEXT_FALSE=
18813 fi
18814
18815
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
18818 $as_echo_n "checking for Intel atomic primitives... " >&6; }
18819 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
18820   $as_echo_n "(cached) " >&6
18821 else
18822
18823         hb_cv_have_intel_atomic_primitives=false
18824         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h.  */
18826
18827                 void memory_barrier (void) { __sync_synchronize (); }
18828                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
18829                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
18830                 void mutex_unlock (int *m) { __sync_lock_release (m); }
18831
18832 int
18833 main ()
18834 {
18835
18836   ;
18837   return 0;
18838 }
18839 _ACEOF
18840 if ac_fn_c_try_link "$LINENO"; then :
18841   hb_cv_have_intel_atomic_primitives=true
18842
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845     conftest$ac_exeext conftest.$ac_ext
18846
18847 fi
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
18849 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
18850 if $hb_cv_have_intel_atomic_primitives; then
18851
18852 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
18853
18854 fi
18855
18856
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
18858 $as_echo_n "checking for Solaris atomic operations... " >&6; }
18859 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
18860   $as_echo_n "(cached) " >&6
18861 else
18862
18863         hb_cv_have_solaris_atomic_ops=false
18864         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h.  */
18866
18867                 #include <atomic.h>
18868                 /* This requires Solaris Studio 12.2 or newer: */
18869                 #include <mbarrier.h>
18870                 void memory_barrier (void) { __machine_rw_barrier (); }
18871                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
18872                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
18873
18874 int
18875 main ()
18876 {
18877
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 if ac_fn_c_try_link "$LINENO"; then :
18883   hb_cv_have_solaris_atomic_ops=true
18884
18885 fi
18886 rm -f core conftest.err conftest.$ac_objext \
18887     conftest$ac_exeext conftest.$ac_ext
18888
18889 fi
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
18891 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
18892 if $hb_cv_have_solaris_atomic_ops; then
18893
18894 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
18895
18896 fi
18897
18898 if test "$os_win32" = no && ! $have_pthread; then
18899         for ac_header in sched.h
18900 do :
18901   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
18902 if test "x$ac_cv_header_sched_h" = xyes; then :
18903   cat >>confdefs.h <<_ACEOF
18904 #define HAVE_SCHED_H 1
18905 _ACEOF
18906
18907 fi
18908
18909 done
18910
18911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
18912 $as_echo_n "checking for library containing sched_yield... " >&6; }
18913 if ${ac_cv_search_sched_yield+:} false; then :
18914   $as_echo_n "(cached) " >&6
18915 else
18916   ac_func_search_save_LIBS=$LIBS
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h.  */
18919
18920 /* Override any GCC internal prototype to avoid an error.
18921    Use char because int might match the return type of a GCC
18922    builtin and then its argument prototype would still apply.  */
18923 #ifdef __cplusplus
18924 extern "C"
18925 #endif
18926 char sched_yield ();
18927 int
18928 main ()
18929 {
18930 return sched_yield ();
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 for ac_lib in '' rt; do
18936   if test -z "$ac_lib"; then
18937     ac_res="none required"
18938   else
18939     ac_res=-l$ac_lib
18940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18941   fi
18942   if ac_fn_c_try_link "$LINENO"; then :
18943   ac_cv_search_sched_yield=$ac_res
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext \
18946     conftest$ac_exeext
18947   if ${ac_cv_search_sched_yield+:} false; then :
18948   break
18949 fi
18950 done
18951 if ${ac_cv_search_sched_yield+:} false; then :
18952
18953 else
18954   ac_cv_search_sched_yield=no
18955 fi
18956 rm conftest.$ac_ext
18957 LIBS=$ac_func_search_save_LIBS
18958 fi
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
18960 $as_echo "$ac_cv_search_sched_yield" >&6; }
18961 ac_res=$ac_cv_search_sched_yield
18962 if test "$ac_res" != no; then :
18963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18964
18965 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18966
18967 fi
18968
18969 fi
18970
18971
18972 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/shaping/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml"
18973
18974
18975 cat >confcache <<\_ACEOF
18976 # This file is a shell script that caches the results of configure
18977 # tests run on this system so they can be shared between configure
18978 # scripts and configure runs, see configure's option --config-cache.
18979 # It is not useful on other systems.  If it contains results you don't
18980 # want to keep, you may remove or edit it.
18981 #
18982 # config.status only pays attention to the cache file if you give it
18983 # the --recheck option to rerun configure.
18984 #
18985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18987 # following values.
18988
18989 _ACEOF
18990
18991 # The following way of writing the cache mishandles newlines in values,
18992 # but we know of no workaround that is simple, portable, and efficient.
18993 # So, we kill variables containing newlines.
18994 # Ultrix sh set writes to stderr and can't be redirected directly,
18995 # and sets the high bit in the cache file unless we assign to the vars.
18996 (
18997   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18998     eval ac_val=\$$ac_var
18999     case $ac_val in #(
19000     *${as_nl}*)
19001       case $ac_var in #(
19002       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19004       esac
19005       case $ac_var in #(
19006       _ | IFS | as_nl) ;; #(
19007       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19008       *) { eval $ac_var=; unset $ac_var;} ;;
19009       esac ;;
19010     esac
19011   done
19012
19013   (set) 2>&1 |
19014     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19015     *${as_nl}ac_space=\ *)
19016       # `set' does not quote correctly, so add quotes: double-quote
19017       # substitution turns \\\\ into \\, and sed turns \\ into \.
19018       sed -n \
19019         "s/'/'\\\\''/g;
19020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19021       ;; #(
19022     *)
19023       # `set' quotes correctly as required by POSIX, so do not add quotes.
19024       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19025       ;;
19026     esac |
19027     sort
19028 ) |
19029   sed '
19030      /^ac_cv_env_/b end
19031      t clear
19032      :clear
19033      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19034      t end
19035      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19036      :end' >>confcache
19037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19038   if test -w "$cache_file"; then
19039     if test "x$cache_file" != "x/dev/null"; then
19040       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19041 $as_echo "$as_me: updating cache $cache_file" >&6;}
19042       if test ! -f "$cache_file" || test -h "$cache_file"; then
19043         cat confcache >"$cache_file"
19044       else
19045         case $cache_file in #(
19046         */* | ?:*)
19047           mv -f confcache "$cache_file"$$ &&
19048           mv -f "$cache_file"$$ "$cache_file" ;; #(
19049         *)
19050           mv -f confcache "$cache_file" ;;
19051         esac
19052       fi
19053     fi
19054   else
19055     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19056 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19057   fi
19058 fi
19059 rm -f confcache
19060
19061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19062 # Let make expand exec_prefix.
19063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19064
19065 DEFS=-DHAVE_CONFIG_H
19066
19067 ac_libobjs=
19068 ac_ltlibobjs=
19069 U=
19070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19071   # 1. Remove the extension, and $U if already installed.
19072   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19073   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19074   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19075   #    will be set to the directory where LIBOBJS objects are built.
19076   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19077   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19078 done
19079 LIBOBJS=$ac_libobjs
19080
19081 LTLIBOBJS=$ac_ltlibobjs
19082
19083
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19085 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19086    if test -n "$am_sleep_pid"; then
19087      # Hide warnings about reused PIDs.
19088      wait $am_sleep_pid 2>/dev/null
19089    fi
19090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19091 $as_echo "done" >&6; }
19092  if test -n "$EXEEXT"; then
19093   am__EXEEXT_TRUE=
19094   am__EXEEXT_FALSE='#'
19095 else
19096   am__EXEEXT_TRUE='#'
19097   am__EXEEXT_FALSE=
19098 fi
19099
19100 if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
19101   as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
19102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19103 fi
19104 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19105   as_fn_error $? "conditional \"AMDEP\" was never defined.
19106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19107 fi
19108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19109   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19111 fi
19112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19113   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19115 fi
19116 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19117   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19119 fi
19120 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
19121   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
19122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19123 fi
19124 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19125   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19127 fi
19128 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19129   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19131 fi
19132 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19133   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19135 fi
19136 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19137   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19139 fi
19140 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19141   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19143 fi
19144 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
19145   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
19146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19147 fi
19148 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19149   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19151 fi
19152 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19153   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19155 fi
19156 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
19157   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
19158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19159 fi
19160 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
19161   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
19162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19163 fi
19164 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
19165   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
19166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19167 fi
19168 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
19169   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
19170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19171 fi
19172 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19173   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19175 fi
19176 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19177   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19179 fi
19180 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
19181   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
19182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19183 fi
19184 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
19185   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
19186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19187 fi
19188 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
19189   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
19190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19191 fi
19192 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
19193   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
19194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19195 fi
19196 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
19197   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
19198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19199 fi
19200 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
19201   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
19202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19203 fi
19204 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
19205   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
19206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19207 fi
19208 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
19209   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
19210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19211 fi
19212
19213 : "${CONFIG_STATUS=./config.status}"
19214 ac_write_fail=0
19215 ac_clean_files_save=$ac_clean_files
19216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19218 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19219 as_write_fail=0
19220 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19221 #! $SHELL
19222 # Generated by $as_me.
19223 # Run this file to recreate the current configuration.
19224 # Compiler output produced by configure, useful for debugging
19225 # configure, is in config.log if it exists.
19226
19227 debug=false
19228 ac_cs_recheck=false
19229 ac_cs_silent=false
19230
19231 SHELL=\${CONFIG_SHELL-$SHELL}
19232 export SHELL
19233 _ASEOF
19234 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19235 ## -------------------- ##
19236 ## M4sh Initialization. ##
19237 ## -------------------- ##
19238
19239 # Be more Bourne compatible
19240 DUALCASE=1; export DUALCASE # for MKS sh
19241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19242   emulate sh
19243   NULLCMD=:
19244   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19245   # is contrary to our usage.  Disable this feature.
19246   alias -g '${1+"$@"}'='"$@"'
19247   setopt NO_GLOB_SUBST
19248 else
19249   case `(set -o) 2>/dev/null` in #(
19250   *posix*) :
19251     set -o posix ;; #(
19252   *) :
19253      ;;
19254 esac
19255 fi
19256
19257
19258 as_nl='
19259 '
19260 export as_nl
19261 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19262 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19265 # Prefer a ksh shell builtin over an external printf program on Solaris,
19266 # but without wasting forks for bash or zsh.
19267 if test -z "$BASH_VERSION$ZSH_VERSION" \
19268     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19269   as_echo='print -r --'
19270   as_echo_n='print -rn --'
19271 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19272   as_echo='printf %s\n'
19273   as_echo_n='printf %s'
19274 else
19275   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19276     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19277     as_echo_n='/usr/ucb/echo -n'
19278   else
19279     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19280     as_echo_n_body='eval
19281       arg=$1;
19282       case $arg in #(
19283       *"$as_nl"*)
19284         expr "X$arg" : "X\\(.*\\)$as_nl";
19285         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19286       esac;
19287       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19288     '
19289     export as_echo_n_body
19290     as_echo_n='sh -c $as_echo_n_body as_echo'
19291   fi
19292   export as_echo_body
19293   as_echo='sh -c $as_echo_body as_echo'
19294 fi
19295
19296 # The user is always right.
19297 if test "${PATH_SEPARATOR+set}" != set; then
19298   PATH_SEPARATOR=:
19299   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19300     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19301       PATH_SEPARATOR=';'
19302   }
19303 fi
19304
19305
19306 # IFS
19307 # We need space, tab and new line, in precisely that order.  Quoting is
19308 # there to prevent editors from complaining about space-tab.
19309 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19310 # splitting by setting IFS to empty value.)
19311 IFS=" ""        $as_nl"
19312
19313 # Find who we are.  Look in the path if we contain no directory separator.
19314 as_myself=
19315 case $0 in #((
19316   *[\\/]* ) as_myself=$0 ;;
19317   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19318 for as_dir in $PATH
19319 do
19320   IFS=$as_save_IFS
19321   test -z "$as_dir" && as_dir=.
19322     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19323   done
19324 IFS=$as_save_IFS
19325
19326      ;;
19327 esac
19328 # We did not find ourselves, most probably we were run as `sh COMMAND'
19329 # in which case we are not to be found in the path.
19330 if test "x$as_myself" = x; then
19331   as_myself=$0
19332 fi
19333 if test ! -f "$as_myself"; then
19334   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19335   exit 1
19336 fi
19337
19338 # Unset variables that we do not need and which cause bugs (e.g. in
19339 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19340 # suppresses any "Segmentation fault" message there.  '((' could
19341 # trigger a bug in pdksh 5.2.14.
19342 for as_var in BASH_ENV ENV MAIL MAILPATH
19343 do eval test x\${$as_var+set} = xset \
19344   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19345 done
19346 PS1='$ '
19347 PS2='> '
19348 PS4='+ '
19349
19350 # NLS nuisances.
19351 LC_ALL=C
19352 export LC_ALL
19353 LANGUAGE=C
19354 export LANGUAGE
19355
19356 # CDPATH.
19357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19358
19359
19360 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19361 # ----------------------------------------
19362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19364 # script with STATUS, using 1 if that was 0.
19365 as_fn_error ()
19366 {
19367   as_status=$1; test $as_status -eq 0 && as_status=1
19368   if test "$4"; then
19369     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19371   fi
19372   $as_echo "$as_me: error: $2" >&2
19373   as_fn_exit $as_status
19374 } # as_fn_error
19375
19376
19377 # as_fn_set_status STATUS
19378 # -----------------------
19379 # Set $? to STATUS, without forking.
19380 as_fn_set_status ()
19381 {
19382   return $1
19383 } # as_fn_set_status
19384
19385 # as_fn_exit STATUS
19386 # -----------------
19387 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19388 as_fn_exit ()
19389 {
19390   set +e
19391   as_fn_set_status $1
19392   exit $1
19393 } # as_fn_exit
19394
19395 # as_fn_unset VAR
19396 # ---------------
19397 # Portably unset VAR.
19398 as_fn_unset ()
19399 {
19400   { eval $1=; unset $1;}
19401 }
19402 as_unset=as_fn_unset
19403 # as_fn_append VAR VALUE
19404 # ----------------------
19405 # Append the text in VALUE to the end of the definition contained in VAR. Take
19406 # advantage of any shell optimizations that allow amortized linear growth over
19407 # repeated appends, instead of the typical quadratic growth present in naive
19408 # implementations.
19409 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19410   eval 'as_fn_append ()
19411   {
19412     eval $1+=\$2
19413   }'
19414 else
19415   as_fn_append ()
19416   {
19417     eval $1=\$$1\$2
19418   }
19419 fi # as_fn_append
19420
19421 # as_fn_arith ARG...
19422 # ------------------
19423 # Perform arithmetic evaluation on the ARGs, and store the result in the
19424 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19425 # must be portable across $(()) and expr.
19426 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19427   eval 'as_fn_arith ()
19428   {
19429     as_val=$(( $* ))
19430   }'
19431 else
19432   as_fn_arith ()
19433   {
19434     as_val=`expr "$@" || test $? -eq 1`
19435   }
19436 fi # as_fn_arith
19437
19438
19439 if expr a : '\(a\)' >/dev/null 2>&1 &&
19440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19441   as_expr=expr
19442 else
19443   as_expr=false
19444 fi
19445
19446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19447   as_basename=basename
19448 else
19449   as_basename=false
19450 fi
19451
19452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19453   as_dirname=dirname
19454 else
19455   as_dirname=false
19456 fi
19457
19458 as_me=`$as_basename -- "$0" ||
19459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19460          X"$0" : 'X\(//\)$' \| \
19461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19462 $as_echo X/"$0" |
19463     sed '/^.*\/\([^/][^/]*\)\/*$/{
19464             s//\1/
19465             q
19466           }
19467           /^X\/\(\/\/\)$/{
19468             s//\1/
19469             q
19470           }
19471           /^X\/\(\/\).*/{
19472             s//\1/
19473             q
19474           }
19475           s/.*/./; q'`
19476
19477 # Avoid depending upon Character Ranges.
19478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19481 as_cr_digits='0123456789'
19482 as_cr_alnum=$as_cr_Letters$as_cr_digits
19483
19484 ECHO_C= ECHO_N= ECHO_T=
19485 case `echo -n x` in #(((((
19486 -n*)
19487   case `echo 'xy\c'` in
19488   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19489   xy)  ECHO_C='\c';;
19490   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19491        ECHO_T=' ';;
19492   esac;;
19493 *)
19494   ECHO_N='-n';;
19495 esac
19496
19497 rm -f conf$$ conf$$.exe conf$$.file
19498 if test -d conf$$.dir; then
19499   rm -f conf$$.dir/conf$$.file
19500 else
19501   rm -f conf$$.dir
19502   mkdir conf$$.dir 2>/dev/null
19503 fi
19504 if (echo >conf$$.file) 2>/dev/null; then
19505   if ln -s conf$$.file conf$$ 2>/dev/null; then
19506     as_ln_s='ln -s'
19507     # ... but there are two gotchas:
19508     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19509     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19510     # In both cases, we have to default to `cp -pR'.
19511     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19512       as_ln_s='cp -pR'
19513   elif ln conf$$.file conf$$ 2>/dev/null; then
19514     as_ln_s=ln
19515   else
19516     as_ln_s='cp -pR'
19517   fi
19518 else
19519   as_ln_s='cp -pR'
19520 fi
19521 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19522 rmdir conf$$.dir 2>/dev/null
19523
19524
19525 # as_fn_mkdir_p
19526 # -------------
19527 # Create "$as_dir" as a directory, including parents if necessary.
19528 as_fn_mkdir_p ()
19529 {
19530
19531   case $as_dir in #(
19532   -*) as_dir=./$as_dir;;
19533   esac
19534   test -d "$as_dir" || eval $as_mkdir_p || {
19535     as_dirs=
19536     while :; do
19537       case $as_dir in #(
19538       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19539       *) as_qdir=$as_dir;;
19540       esac
19541       as_dirs="'$as_qdir' $as_dirs"
19542       as_dir=`$as_dirname -- "$as_dir" ||
19543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19544          X"$as_dir" : 'X\(//\)[^/]' \| \
19545          X"$as_dir" : 'X\(//\)$' \| \
19546          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19547 $as_echo X"$as_dir" |
19548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19549             s//\1/
19550             q
19551           }
19552           /^X\(\/\/\)[^/].*/{
19553             s//\1/
19554             q
19555           }
19556           /^X\(\/\/\)$/{
19557             s//\1/
19558             q
19559           }
19560           /^X\(\/\).*/{
19561             s//\1/
19562             q
19563           }
19564           s/.*/./; q'`
19565       test -d "$as_dir" && break
19566     done
19567     test -z "$as_dirs" || eval "mkdir $as_dirs"
19568   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19569
19570
19571 } # as_fn_mkdir_p
19572 if mkdir -p . 2>/dev/null; then
19573   as_mkdir_p='mkdir -p "$as_dir"'
19574 else
19575   test -d ./-p && rmdir ./-p
19576   as_mkdir_p=false
19577 fi
19578
19579
19580 # as_fn_executable_p FILE
19581 # -----------------------
19582 # Test if FILE is an executable regular file.
19583 as_fn_executable_p ()
19584 {
19585   test -f "$1" && test -x "$1"
19586 } # as_fn_executable_p
19587 as_test_x='test -x'
19588 as_executable_p=as_fn_executable_p
19589
19590 # Sed expression to map a string onto a valid CPP name.
19591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19592
19593 # Sed expression to map a string onto a valid variable name.
19594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19595
19596
19597 exec 6>&1
19598 ## ----------------------------------- ##
19599 ## Main body of $CONFIG_STATUS script. ##
19600 ## ----------------------------------- ##
19601 _ASEOF
19602 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19603
19604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19605 # Save the log message, to keep $0 and so on meaningful, and to
19606 # report actual input values of CONFIG_FILES etc. instead of their
19607 # values after options handling.
19608 ac_log="
19609 This file was extended by HarfBuzz $as_me 0.9.40, which was
19610 generated by GNU Autoconf 2.69.  Invocation command line was
19611
19612   CONFIG_FILES    = $CONFIG_FILES
19613   CONFIG_HEADERS  = $CONFIG_HEADERS
19614   CONFIG_LINKS    = $CONFIG_LINKS
19615   CONFIG_COMMANDS = $CONFIG_COMMANDS
19616   $ $0 $@
19617
19618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19619 "
19620
19621 _ACEOF
19622
19623 case $ac_config_files in *"
19624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19625 esac
19626
19627 case $ac_config_headers in *"
19628 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19629 esac
19630
19631
19632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19633 # Files that config.status was made for.
19634 config_files="$ac_config_files"
19635 config_headers="$ac_config_headers"
19636 config_commands="$ac_config_commands"
19637
19638 _ACEOF
19639
19640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19641 ac_cs_usage="\
19642 \`$as_me' instantiates files and other configuration actions
19643 from templates according to the current configuration.  Unless the files
19644 and actions are specified as TAGs, all are instantiated by default.
19645
19646 Usage: $0 [OPTION]... [TAG]...
19647
19648   -h, --help       print this help, then exit
19649   -V, --version    print version number and configuration settings, then exit
19650       --config     print configuration, then exit
19651   -q, --quiet, --silent
19652                    do not print progress messages
19653   -d, --debug      don't remove temporary files
19654       --recheck    update $as_me by reconfiguring in the same conditions
19655       --file=FILE[:TEMPLATE]
19656                    instantiate the configuration file FILE
19657       --header=FILE[:TEMPLATE]
19658                    instantiate the configuration header FILE
19659
19660 Configuration files:
19661 $config_files
19662
19663 Configuration headers:
19664 $config_headers
19665
19666 Configuration commands:
19667 $config_commands
19668
19669 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
19670 HarfBuzz home page: <http://harfbuzz.org/>."
19671
19672 _ACEOF
19673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19675 ac_cs_version="\\
19676 HarfBuzz config.status 0.9.40
19677 configured by $0, generated by GNU Autoconf 2.69,
19678   with options \\"\$ac_cs_config\\"
19679
19680 Copyright (C) 2012 Free Software Foundation, Inc.
19681 This config.status script is free software; the Free Software Foundation
19682 gives unlimited permission to copy, distribute and modify it."
19683
19684 ac_pwd='$ac_pwd'
19685 srcdir='$srcdir'
19686 INSTALL='$INSTALL'
19687 MKDIR_P='$MKDIR_P'
19688 AWK='$AWK'
19689 test -n "\$AWK" || AWK=awk
19690 _ACEOF
19691
19692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19693 # The default lists apply if the user does not specify any file.
19694 ac_need_defaults=:
19695 while test $# != 0
19696 do
19697   case $1 in
19698   --*=?*)
19699     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19700     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19701     ac_shift=:
19702     ;;
19703   --*=)
19704     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19705     ac_optarg=
19706     ac_shift=:
19707     ;;
19708   *)
19709     ac_option=$1
19710     ac_optarg=$2
19711     ac_shift=shift
19712     ;;
19713   esac
19714
19715   case $ac_option in
19716   # Handling of the options.
19717   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19718     ac_cs_recheck=: ;;
19719   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19720     $as_echo "$ac_cs_version"; exit ;;
19721   --config | --confi | --conf | --con | --co | --c )
19722     $as_echo "$ac_cs_config"; exit ;;
19723   --debug | --debu | --deb | --de | --d | -d )
19724     debug=: ;;
19725   --file | --fil | --fi | --f )
19726     $ac_shift
19727     case $ac_optarg in
19728     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19729     '') as_fn_error $? "missing file argument" ;;
19730     esac
19731     as_fn_append CONFIG_FILES " '$ac_optarg'"
19732     ac_need_defaults=false;;
19733   --header | --heade | --head | --hea )
19734     $ac_shift
19735     case $ac_optarg in
19736     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19737     esac
19738     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19739     ac_need_defaults=false;;
19740   --he | --h)
19741     # Conflict between --help and --header
19742     as_fn_error $? "ambiguous option: \`$1'
19743 Try \`$0 --help' for more information.";;
19744   --help | --hel | -h )
19745     $as_echo "$ac_cs_usage"; exit ;;
19746   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19747   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19748     ac_cs_silent=: ;;
19749
19750   # This is an error.
19751   -*) as_fn_error $? "unrecognized option: \`$1'
19752 Try \`$0 --help' for more information." ;;
19753
19754   *) as_fn_append ac_config_targets " $1"
19755      ac_need_defaults=false ;;
19756
19757   esac
19758   shift
19759 done
19760
19761 ac_configure_extra_args=
19762
19763 if $ac_cs_silent; then
19764   exec 6>/dev/null
19765   ac_configure_extra_args="$ac_configure_extra_args --silent"
19766 fi
19767
19768 _ACEOF
19769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19770 if \$ac_cs_recheck; then
19771   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19772   shift
19773   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19774   CONFIG_SHELL='$SHELL'
19775   export CONFIG_SHELL
19776   exec "\$@"
19777 fi
19778
19779 _ACEOF
19780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19781 exec 5>>config.log
19782 {
19783   echo
19784   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19785 ## Running $as_me. ##
19786 _ASBOX
19787   $as_echo "$ac_log"
19788 } >&5
19789
19790 _ACEOF
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 #
19793 # INIT-COMMANDS
19794 #
19795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19796
19797
19798 # The HP-UX ksh and POSIX shell print the target directory to stdout
19799 # if CDPATH is set.
19800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19801
19802 sed_quote_subst='$sed_quote_subst'
19803 double_quote_subst='$double_quote_subst'
19804 delay_variable_subst='$delay_variable_subst'
19805 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19806 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19807 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19808 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19809 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19810 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19811 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19812 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19813 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19814 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19815 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19816 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19817 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19818 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19819 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19820 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19821 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19822 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19823 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19824 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19825 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19826 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19827 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19828 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19829 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19830 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19831 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19832 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19833 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19834 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19835 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19836 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19837 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19838 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19839 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19840 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19841 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19842 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19843 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19844 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19845 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19846 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19847 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19848 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19849 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19850 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19851 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19852 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19853 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19854 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19855 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19856 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19857 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19858 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19859 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19860 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19861 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19862 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"`'
19863 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19864 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19865 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19866 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19867 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19868 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19869 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19870 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19871 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19872 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19873 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19874 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19875 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19876 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19877 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19878 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19879 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19880 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19881 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19882 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19883 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19884 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19885 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19886 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19887 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19888 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19889 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19890 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19891 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19892 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19893 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19894 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19895 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19896 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19897 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19898 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19899 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19900 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19901 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19902 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19903 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19904 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19905 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19906 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19907 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19908 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19909 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19910 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19911 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19912 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19913 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19914 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19915 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19916 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19917 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19918 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19919 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19920 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19921 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19922 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19923 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19924 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19925 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19926 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19927 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19928 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19929 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19930 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19931 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19932 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19933 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19934 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19935 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19936 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19937 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19938 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19939 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19940 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19941 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19942 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19943 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19944 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19945 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19946 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19947 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19948 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19949 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19950 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19951 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19952 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19953 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19954 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19955 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19956 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19957 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19958 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19959 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19960 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19961 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19962 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19963 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19964 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19965 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19966 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19967 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19968 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19969 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19970 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19971 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19972 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19973 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19974 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19975 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19976 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19977 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19978 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19979 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19980 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19981 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19982 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19983 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19984 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19985 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19986 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19987 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19988 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19989 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19990 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19991
19992 LTCC='$LTCC'
19993 LTCFLAGS='$LTCFLAGS'
19994 compiler='$compiler_DEFAULT'
19995
19996 # A function that is used when there is no print builtin or printf.
19997 func_fallback_echo ()
19998 {
19999   eval 'cat <<_LTECHO_EOF
20000 \$1
20001 _LTECHO_EOF'
20002 }
20003
20004 # Quote evaled strings.
20005 for var in SHELL \
20006 ECHO \
20007 PATH_SEPARATOR \
20008 SED \
20009 GREP \
20010 EGREP \
20011 FGREP \
20012 LD \
20013 NM \
20014 LN_S \
20015 lt_SP2NL \
20016 lt_NL2SP \
20017 reload_flag \
20018 OBJDUMP \
20019 deplibs_check_method \
20020 file_magic_cmd \
20021 file_magic_glob \
20022 want_nocaseglob \
20023 DLLTOOL \
20024 sharedlib_from_linklib_cmd \
20025 AR \
20026 AR_FLAGS \
20027 archiver_list_spec \
20028 STRIP \
20029 RANLIB \
20030 CC \
20031 CFLAGS \
20032 compiler \
20033 lt_cv_sys_global_symbol_pipe \
20034 lt_cv_sys_global_symbol_to_cdecl \
20035 lt_cv_sys_global_symbol_to_import \
20036 lt_cv_sys_global_symbol_to_c_name_address \
20037 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20038 lt_cv_nm_interface \
20039 nm_file_list_spec \
20040 lt_prog_compiler_no_builtin_flag \
20041 lt_prog_compiler_pic \
20042 lt_prog_compiler_wl \
20043 lt_prog_compiler_static \
20044 lt_cv_prog_compiler_c_o \
20045 need_locks \
20046 MANIFEST_TOOL \
20047 DSYMUTIL \
20048 NMEDIT \
20049 LIPO \
20050 OTOOL \
20051 OTOOL64 \
20052 shrext_cmds \
20053 export_dynamic_flag_spec \
20054 whole_archive_flag_spec \
20055 compiler_needs_object \
20056 with_gnu_ld \
20057 allow_undefined_flag \
20058 no_undefined_flag \
20059 hardcode_libdir_flag_spec \
20060 hardcode_libdir_separator \
20061 exclude_expsyms \
20062 include_expsyms \
20063 file_list_spec \
20064 variables_saved_for_relink \
20065 libname_spec \
20066 library_names_spec \
20067 soname_spec \
20068 install_override_mode \
20069 finish_eval \
20070 old_striplib \
20071 striplib \
20072 compiler_lib_search_dirs \
20073 predep_objects \
20074 postdep_objects \
20075 predeps \
20076 postdeps \
20077 compiler_lib_search_path \
20078 LD_CXX \
20079 reload_flag_CXX \
20080 compiler_CXX \
20081 lt_prog_compiler_no_builtin_flag_CXX \
20082 lt_prog_compiler_pic_CXX \
20083 lt_prog_compiler_wl_CXX \
20084 lt_prog_compiler_static_CXX \
20085 lt_cv_prog_compiler_c_o_CXX \
20086 export_dynamic_flag_spec_CXX \
20087 whole_archive_flag_spec_CXX \
20088 compiler_needs_object_CXX \
20089 with_gnu_ld_CXX \
20090 allow_undefined_flag_CXX \
20091 no_undefined_flag_CXX \
20092 hardcode_libdir_flag_spec_CXX \
20093 hardcode_libdir_separator_CXX \
20094 exclude_expsyms_CXX \
20095 include_expsyms_CXX \
20096 file_list_spec_CXX \
20097 compiler_lib_search_dirs_CXX \
20098 predep_objects_CXX \
20099 postdep_objects_CXX \
20100 predeps_CXX \
20101 postdeps_CXX \
20102 compiler_lib_search_path_CXX; do
20103     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20104     *[\\\\\\\`\\"\\\$]*)
20105       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20106       ;;
20107     *)
20108       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20109       ;;
20110     esac
20111 done
20112
20113 # Double-quote double-evaled strings.
20114 for var in reload_cmds \
20115 old_postinstall_cmds \
20116 old_postuninstall_cmds \
20117 old_archive_cmds \
20118 extract_expsyms_cmds \
20119 old_archive_from_new_cmds \
20120 old_archive_from_expsyms_cmds \
20121 archive_cmds \
20122 archive_expsym_cmds \
20123 module_cmds \
20124 module_expsym_cmds \
20125 export_symbols_cmds \
20126 prelink_cmds \
20127 postlink_cmds \
20128 postinstall_cmds \
20129 postuninstall_cmds \
20130 finish_cmds \
20131 sys_lib_search_path_spec \
20132 sys_lib_dlsearch_path_spec \
20133 reload_cmds_CXX \
20134 old_archive_cmds_CXX \
20135 old_archive_from_new_cmds_CXX \
20136 old_archive_from_expsyms_cmds_CXX \
20137 archive_cmds_CXX \
20138 archive_expsym_cmds_CXX \
20139 module_cmds_CXX \
20140 module_expsym_cmds_CXX \
20141 export_symbols_cmds_CXX \
20142 prelink_cmds_CXX \
20143 postlink_cmds_CXX; do
20144     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20145     *[\\\\\\\`\\"\\\$]*)
20146       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20147       ;;
20148     *)
20149       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20150       ;;
20151     esac
20152 done
20153
20154 ac_aux_dir='$ac_aux_dir'
20155
20156 # See if we are running on zsh, and set the options that allow our
20157 # commands through without removal of \ escapes INIT.
20158 if test -n "\${ZSH_VERSION+set}"; then
20159    setopt NO_GLOB_SUBST
20160 fi
20161
20162
20163     PACKAGE='$PACKAGE'
20164     VERSION='$VERSION'
20165     RM='$RM'
20166     ofile='$ofile'
20167
20168
20169
20170
20171
20172
20173 _ACEOF
20174
20175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20176
20177 # Handling of arguments.
20178 for ac_config_target in $ac_config_targets
20179 do
20180   case $ac_config_target in
20181     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20182     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20183     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20184     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20185     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20186     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
20187     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
20188     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20189     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20190     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
20191     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
20192     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20193     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
20194     "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
20195
20196   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20197   esac
20198 done
20199
20200
20201 # If the user did not use the arguments to specify the items to instantiate,
20202 # then the envvar interface is used.  Set only those that are not.
20203 # We use the long form for the default assignment because of an extremely
20204 # bizarre bug on SunOS 4.1.3.
20205 if $ac_need_defaults; then
20206   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20207   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20208   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20209 fi
20210
20211 # Have a temporary directory for convenience.  Make it in the build tree
20212 # simply because there is no reason against having it here, and in addition,
20213 # creating and moving files from /tmp can sometimes cause problems.
20214 # Hook for its removal unless debugging.
20215 # Note that there is a small window in which the directory will not be cleaned:
20216 # after its creation but before its name has been assigned to `$tmp'.
20217 $debug ||
20218 {
20219   tmp= ac_tmp=
20220   trap 'exit_status=$?
20221   : "${ac_tmp:=$tmp}"
20222   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20223 ' 0
20224   trap 'as_fn_exit 1' 1 2 13 15
20225 }
20226 # Create a (secure) tmp directory for tmp files.
20227
20228 {
20229   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20230   test -d "$tmp"
20231 }  ||
20232 {
20233   tmp=./conf$$-$RANDOM
20234   (umask 077 && mkdir "$tmp")
20235 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20236 ac_tmp=$tmp
20237
20238 # Set up the scripts for CONFIG_FILES section.
20239 # No need to generate them if there are no CONFIG_FILES.
20240 # This happens for instance with `./config.status config.h'.
20241 if test -n "$CONFIG_FILES"; then
20242
20243
20244 ac_cr=`echo X | tr X '\015'`
20245 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20246 # But we know of no other shell where ac_cr would be empty at this
20247 # point, so we can use a bashism as a fallback.
20248 if test "x$ac_cr" = x; then
20249   eval ac_cr=\$\'\\r\'
20250 fi
20251 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20252 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20253   ac_cs_awk_cr='\\r'
20254 else
20255   ac_cs_awk_cr=$ac_cr
20256 fi
20257
20258 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20259 _ACEOF
20260
20261
20262 {
20263   echo "cat >conf$$subs.awk <<_ACEOF" &&
20264   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20265   echo "_ACEOF"
20266 } >conf$$subs.sh ||
20267   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20268 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20269 ac_delim='%!_!# '
20270 for ac_last_try in false false false false false :; do
20271   . ./conf$$subs.sh ||
20272     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20273
20274   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20275   if test $ac_delim_n = $ac_delim_num; then
20276     break
20277   elif $ac_last_try; then
20278     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20279   else
20280     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20281   fi
20282 done
20283 rm -f conf$$subs.sh
20284
20285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20286 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20287 _ACEOF
20288 sed -n '
20289 h
20290 s/^/S["/; s/!.*/"]=/
20291 p
20292 g
20293 s/^[^!]*!//
20294 :repl
20295 t repl
20296 s/'"$ac_delim"'$//
20297 t delim
20298 :nl
20299 h
20300 s/\(.\{148\}\)..*/\1/
20301 t more1
20302 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20303 p
20304 n
20305 b repl
20306 :more1
20307 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20308 p
20309 g
20310 s/.\{148\}//
20311 t nl
20312 :delim
20313 h
20314 s/\(.\{148\}\)..*/\1/
20315 t more2
20316 s/["\\]/\\&/g; s/^/"/; s/$/"/
20317 p
20318 b
20319 :more2
20320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20321 p
20322 g
20323 s/.\{148\}//
20324 t delim
20325 ' <conf$$subs.awk | sed '
20326 /^[^""]/{
20327   N
20328   s/\n//
20329 }
20330 ' >>$CONFIG_STATUS || ac_write_fail=1
20331 rm -f conf$$subs.awk
20332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20333 _ACAWK
20334 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20335   for (key in S) S_is_set[key] = 1
20336   FS = "\a"
20337
20338 }
20339 {
20340   line = $ 0
20341   nfields = split(line, field, "@")
20342   substed = 0
20343   len = length(field[1])
20344   for (i = 2; i < nfields; i++) {
20345     key = field[i]
20346     keylen = length(key)
20347     if (S_is_set[key]) {
20348       value = S[key]
20349       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20350       len += length(value) + length(field[++i])
20351       substed = 1
20352     } else
20353       len += 1 + keylen
20354   }
20355
20356   print line
20357 }
20358
20359 _ACAWK
20360 _ACEOF
20361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20362 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20363   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20364 else
20365   cat
20366 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20367   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20368 _ACEOF
20369
20370 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20371 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20372 # trailing colons and then remove the whole line if VPATH becomes empty
20373 # (actually we leave an empty line to preserve line numbers).
20374 if test "x$srcdir" = x.; then
20375   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20376 h
20377 s///
20378 s/^/:/
20379 s/[      ]*$/:/
20380 s/:\$(srcdir):/:/g
20381 s/:\${srcdir}:/:/g
20382 s/:@srcdir@:/:/g
20383 s/^:*//
20384 s/:*$//
20385 x
20386 s/\(=[   ]*\).*/\1/
20387 G
20388 s/\n//
20389 s/^[^=]*=[       ]*$//
20390 }'
20391 fi
20392
20393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20394 fi # test -n "$CONFIG_FILES"
20395
20396 # Set up the scripts for CONFIG_HEADERS section.
20397 # No need to generate them if there are no CONFIG_HEADERS.
20398 # This happens for instance with `./config.status Makefile'.
20399 if test -n "$CONFIG_HEADERS"; then
20400 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20401 BEGIN {
20402 _ACEOF
20403
20404 # Transform confdefs.h into an awk script `defines.awk', embedded as
20405 # here-document in config.status, that substitutes the proper values into
20406 # config.h.in to produce config.h.
20407
20408 # Create a delimiter string that does not exist in confdefs.h, to ease
20409 # handling of long lines.
20410 ac_delim='%!_!# '
20411 for ac_last_try in false false :; do
20412   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20413   if test -z "$ac_tt"; then
20414     break
20415   elif $ac_last_try; then
20416     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20417   else
20418     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20419   fi
20420 done
20421
20422 # For the awk script, D is an array of macro values keyed by name,
20423 # likewise P contains macro parameters if any.  Preserve backslash
20424 # newline sequences.
20425
20426 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20427 sed -n '
20428 s/.\{148\}/&'"$ac_delim"'/g
20429 t rset
20430 :rset
20431 s/^[     ]*#[    ]*define[       ][      ]*/ /
20432 t def
20433 d
20434 :def
20435 s/\\$//
20436 t bsnl
20437 s/["\\]/\\&/g
20438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20439 D["\1"]=" \3"/p
20440 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20441 d
20442 :bsnl
20443 s/["\\]/\\&/g
20444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20445 D["\1"]=" \3\\\\\\n"\\/p
20446 t cont
20447 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20448 t cont
20449 d
20450 :cont
20451 n
20452 s/.\{148\}/&'"$ac_delim"'/g
20453 t clear
20454 :clear
20455 s/\\$//
20456 t bsnlc
20457 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20458 d
20459 :bsnlc
20460 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20461 b cont
20462 ' <confdefs.h | sed '
20463 s/'"$ac_delim"'/"\\\
20464 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20465
20466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20467   for (key in D) D_is_set[key] = 1
20468   FS = "\a"
20469 }
20470 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20471   line = \$ 0
20472   split(line, arg, " ")
20473   if (arg[1] == "#") {
20474     defundef = arg[2]
20475     mac1 = arg[3]
20476   } else {
20477     defundef = substr(arg[1], 2)
20478     mac1 = arg[2]
20479   }
20480   split(mac1, mac2, "(") #)
20481   macro = mac2[1]
20482   prefix = substr(line, 1, index(line, defundef) - 1)
20483   if (D_is_set[macro]) {
20484     # Preserve the white space surrounding the "#".
20485     print prefix "define", macro P[macro] D[macro]
20486     next
20487   } else {
20488     # Replace #undef with comments.  This is necessary, for example,
20489     # in the case of _POSIX_SOURCE, which is predefined and required
20490     # on some systems where configure will not decide to define it.
20491     if (defundef == "undef") {
20492       print "/*", prefix defundef, macro, "*/"
20493       next
20494     }
20495   }
20496 }
20497 { print }
20498 _ACAWK
20499 _ACEOF
20500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20501   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20502 fi # test -n "$CONFIG_HEADERS"
20503
20504
20505 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20506 shift
20507 for ac_tag
20508 do
20509   case $ac_tag in
20510   :[FHLC]) ac_mode=$ac_tag; continue;;
20511   esac
20512   case $ac_mode$ac_tag in
20513   :[FHL]*:*);;
20514   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20515   :[FH]-) ac_tag=-:-;;
20516   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20517   esac
20518   ac_save_IFS=$IFS
20519   IFS=:
20520   set x $ac_tag
20521   IFS=$ac_save_IFS
20522   shift
20523   ac_file=$1
20524   shift
20525
20526   case $ac_mode in
20527   :L) ac_source=$1;;
20528   :[FH])
20529     ac_file_inputs=
20530     for ac_f
20531     do
20532       case $ac_f in
20533       -) ac_f="$ac_tmp/stdin";;
20534       *) # Look for the file first in the build tree, then in the source tree
20535          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20536          # because $ac_f cannot contain `:'.
20537          test -f "$ac_f" ||
20538            case $ac_f in
20539            [\\/$]*) false;;
20540            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20541            esac ||
20542            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20543       esac
20544       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20545       as_fn_append ac_file_inputs " '$ac_f'"
20546     done
20547
20548     # Let's still pretend it is `configure' which instantiates (i.e., don't
20549     # use $as_me), people would be surprised to read:
20550     #    /* config.h.  Generated by config.status.  */
20551     configure_input='Generated from '`
20552           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20553         `' by configure.'
20554     if test x"$ac_file" != x-; then
20555       configure_input="$ac_file.  $configure_input"
20556       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20557 $as_echo "$as_me: creating $ac_file" >&6;}
20558     fi
20559     # Neutralize special characters interpreted by sed in replacement strings.
20560     case $configure_input in #(
20561     *\&* | *\|* | *\\* )
20562        ac_sed_conf_input=`$as_echo "$configure_input" |
20563        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20564     *) ac_sed_conf_input=$configure_input;;
20565     esac
20566
20567     case $ac_tag in
20568     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20569       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20570     esac
20571     ;;
20572   esac
20573
20574   ac_dir=`$as_dirname -- "$ac_file" ||
20575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576          X"$ac_file" : 'X\(//\)[^/]' \| \
20577          X"$ac_file" : 'X\(//\)$' \| \
20578          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20579 $as_echo X"$ac_file" |
20580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20581             s//\1/
20582             q
20583           }
20584           /^X\(\/\/\)[^/].*/{
20585             s//\1/
20586             q
20587           }
20588           /^X\(\/\/\)$/{
20589             s//\1/
20590             q
20591           }
20592           /^X\(\/\).*/{
20593             s//\1/
20594             q
20595           }
20596           s/.*/./; q'`
20597   as_dir="$ac_dir"; as_fn_mkdir_p
20598   ac_builddir=.
20599
20600 case "$ac_dir" in
20601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20602 *)
20603   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20604   # A ".." for each directory in $ac_dir_suffix.
20605   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20606   case $ac_top_builddir_sub in
20607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20609   esac ;;
20610 esac
20611 ac_abs_top_builddir=$ac_pwd
20612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20613 # for backward compatibility:
20614 ac_top_builddir=$ac_top_build_prefix
20615
20616 case $srcdir in
20617   .)  # We are building in place.
20618     ac_srcdir=.
20619     ac_top_srcdir=$ac_top_builddir_sub
20620     ac_abs_top_srcdir=$ac_pwd ;;
20621   [\\/]* | ?:[\\/]* )  # Absolute name.
20622     ac_srcdir=$srcdir$ac_dir_suffix;
20623     ac_top_srcdir=$srcdir
20624     ac_abs_top_srcdir=$srcdir ;;
20625   *) # Relative name.
20626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20627     ac_top_srcdir=$ac_top_build_prefix$srcdir
20628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20629 esac
20630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20631
20632
20633   case $ac_mode in
20634   :F)
20635   #
20636   # CONFIG_FILE
20637   #
20638
20639   case $INSTALL in
20640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20641   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20642   esac
20643   ac_MKDIR_P=$MKDIR_P
20644   case $MKDIR_P in
20645   [\\/$]* | ?:[\\/]* ) ;;
20646   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20647   esac
20648 _ACEOF
20649
20650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20651 # If the template does not know about datarootdir, expand it.
20652 # FIXME: This hack should be removed a few years after 2.60.
20653 ac_datarootdir_hack=; ac_datarootdir_seen=
20654 ac_sed_dataroot='
20655 /datarootdir/ {
20656   p
20657   q
20658 }
20659 /@datadir@/p
20660 /@docdir@/p
20661 /@infodir@/p
20662 /@localedir@/p
20663 /@mandir@/p'
20664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20665 *datarootdir*) ac_datarootdir_seen=yes;;
20666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20669 _ACEOF
20670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20671   ac_datarootdir_hack='
20672   s&@datadir@&$datadir&g
20673   s&@docdir@&$docdir&g
20674   s&@infodir@&$infodir&g
20675   s&@localedir@&$localedir&g
20676   s&@mandir@&$mandir&g
20677   s&\\\${datarootdir}&$datarootdir&g' ;;
20678 esac
20679 _ACEOF
20680
20681 # Neutralize VPATH when `$srcdir' = `.'.
20682 # Shell code in configure.ac might set extrasub.
20683 # FIXME: do we really want to maintain this feature?
20684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20685 ac_sed_extra="$ac_vpsub
20686 $extrasub
20687 _ACEOF
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20689 :t
20690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20691 s|@configure_input@|$ac_sed_conf_input|;t t
20692 s&@top_builddir@&$ac_top_builddir_sub&;t t
20693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20694 s&@srcdir@&$ac_srcdir&;t t
20695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20696 s&@top_srcdir@&$ac_top_srcdir&;t t
20697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20698 s&@builddir@&$ac_builddir&;t t
20699 s&@abs_builddir@&$ac_abs_builddir&;t t
20700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20701 s&@INSTALL@&$ac_INSTALL&;t t
20702 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20703 $ac_datarootdir_hack
20704 "
20705 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20706   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20707
20708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20709   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20710   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20711       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20713 which seems to be undefined.  Please make sure it is defined" >&5
20714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20715 which seems to be undefined.  Please make sure it is defined" >&2;}
20716
20717   rm -f "$ac_tmp/stdin"
20718   case $ac_file in
20719   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20720   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20721   esac \
20722   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20723  ;;
20724   :H)
20725   #
20726   # CONFIG_HEADER
20727   #
20728   if test x"$ac_file" != x-; then
20729     {
20730       $as_echo "/* $configure_input  */" \
20731       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20732     } >"$ac_tmp/config.h" \
20733       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20734     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20735       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20736 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20737     else
20738       rm -f "$ac_file"
20739       mv "$ac_tmp/config.h" "$ac_file" \
20740         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20741     fi
20742   else
20743     $as_echo "/* $configure_input  */" \
20744       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20745       || as_fn_error $? "could not create -" "$LINENO" 5
20746   fi
20747 # Compute "$ac_file"'s index in $config_headers.
20748 _am_arg="$ac_file"
20749 _am_stamp_count=1
20750 for _am_header in $config_headers :; do
20751   case $_am_header in
20752     $_am_arg | $_am_arg:* )
20753       break ;;
20754     * )
20755       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20756   esac
20757 done
20758 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20759 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20760          X"$_am_arg" : 'X\(//\)[^/]' \| \
20761          X"$_am_arg" : 'X\(//\)$' \| \
20762          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20763 $as_echo X"$_am_arg" |
20764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20765             s//\1/
20766             q
20767           }
20768           /^X\(\/\/\)[^/].*/{
20769             s//\1/
20770             q
20771           }
20772           /^X\(\/\/\)$/{
20773             s//\1/
20774             q
20775           }
20776           /^X\(\/\).*/{
20777             s//\1/
20778             q
20779           }
20780           s/.*/./; q'`/stamp-h$_am_stamp_count
20781  ;;
20782
20783   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20784 $as_echo "$as_me: executing $ac_file commands" >&6;}
20785  ;;
20786   esac
20787
20788
20789   case $ac_file$ac_mode in
20790     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20791   # Older Autoconf quotes --file arguments for eval, but not when files
20792   # are listed without --file.  Let's play safe and only enable the eval
20793   # if we detect the quoting.
20794   case $CONFIG_FILES in
20795   *\'*) eval set x "$CONFIG_FILES" ;;
20796   *)   set x $CONFIG_FILES ;;
20797   esac
20798   shift
20799   for mf
20800   do
20801     # Strip MF so we end up with the name of the file.
20802     mf=`echo "$mf" | sed -e 's/:.*$//'`
20803     # Check whether this is an Automake generated Makefile or not.
20804     # We used to match only the files named 'Makefile.in', but
20805     # some people rename them; so instead we look at the file content.
20806     # Grep'ing the first line is not enough: some people post-process
20807     # each Makefile.in and add a new line on top of each file to say so.
20808     # Grep'ing the whole file is not good either: AIX grep has a line
20809     # limit of 2048, but all sed's we know have understand at least 4000.
20810     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20811       dirpart=`$as_dirname -- "$mf" ||
20812 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20813          X"$mf" : 'X\(//\)[^/]' \| \
20814          X"$mf" : 'X\(//\)$' \| \
20815          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20816 $as_echo X"$mf" |
20817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20818             s//\1/
20819             q
20820           }
20821           /^X\(\/\/\)[^/].*/{
20822             s//\1/
20823             q
20824           }
20825           /^X\(\/\/\)$/{
20826             s//\1/
20827             q
20828           }
20829           /^X\(\/\).*/{
20830             s//\1/
20831             q
20832           }
20833           s/.*/./; q'`
20834     else
20835       continue
20836     fi
20837     # Extract the definition of DEPDIR, am__include, and am__quote
20838     # from the Makefile without running 'make'.
20839     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20840     test -z "$DEPDIR" && continue
20841     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20842     test -z "$am__include" && continue
20843     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20844     # Find all dependency output files, they are included files with
20845     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20846     # simplest approach to changing $(DEPDIR) to its actual value in the
20847     # expansion.
20848     for file in `sed -n "
20849       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20850          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20851       # Make sure the directory exists.
20852       test -f "$dirpart/$file" && continue
20853       fdir=`$as_dirname -- "$file" ||
20854 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20855          X"$file" : 'X\(//\)[^/]' \| \
20856          X"$file" : 'X\(//\)$' \| \
20857          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20858 $as_echo X"$file" |
20859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20860             s//\1/
20861             q
20862           }
20863           /^X\(\/\/\)[^/].*/{
20864             s//\1/
20865             q
20866           }
20867           /^X\(\/\/\)$/{
20868             s//\1/
20869             q
20870           }
20871           /^X\(\/\).*/{
20872             s//\1/
20873             q
20874           }
20875           s/.*/./; q'`
20876       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20877       # echo "creating $dirpart/$file"
20878       echo '# dummy' > "$dirpart/$file"
20879     done
20880   done
20881 }
20882  ;;
20883     "libtool":C)
20884
20885     # See if we are running on zsh, and set the options that allow our
20886     # commands through without removal of \ escapes.
20887     if test -n "${ZSH_VERSION+set}"; then
20888       setopt NO_GLOB_SUBST
20889     fi
20890
20891     cfgfile=${ofile}T
20892     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20893     $RM "$cfgfile"
20894
20895     cat <<_LT_EOF >> "$cfgfile"
20896 #! $SHELL
20897
20898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20899 # Generated automatically by $as_me ($PACKAGE) $VERSION
20900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20902 #
20903 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20904 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20905 #                 Foundation, Inc.
20906 #   Written by Gordon Matzigkeit, 1996
20907 #
20908 #   This file is part of GNU Libtool.
20909 #
20910 # GNU Libtool is free software; you can redistribute it and/or
20911 # modify it under the terms of the GNU General Public License as
20912 # published by the Free Software Foundation; either version 2 of
20913 # the License, or (at your option) any later version.
20914 #
20915 # As a special exception to the GNU General Public License,
20916 # if you distribute this file as part of a program or library that
20917 # is built using GNU Libtool, you may include this file under the
20918 # same distribution terms that you use for the rest of that program.
20919 #
20920 # GNU Libtool is distributed in the hope that it will be useful,
20921 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20923 # GNU General Public License for more details.
20924 #
20925 # You should have received a copy of the GNU General Public License
20926 # along with GNU Libtool; see the file COPYING.  If not, a copy
20927 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20928 # obtained by writing to the Free Software Foundation, Inc.,
20929 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20930
20931
20932 # The names of the tagged configurations supported by this script.
20933 available_tags='CXX '
20934
20935 # ### BEGIN LIBTOOL CONFIG
20936
20937 # Which release of libtool.m4 was used?
20938 macro_version=$macro_version
20939 macro_revision=$macro_revision
20940
20941 # Whether or not to build static libraries.
20942 build_old_libs=$enable_static
20943
20944 # Whether or not to build shared libraries.
20945 build_libtool_libs=$enable_shared
20946
20947 # What type of objects to build.
20948 pic_mode=$pic_mode
20949
20950 # Whether or not to optimize for fast installation.
20951 fast_install=$enable_fast_install
20952
20953 # Shell to use when invoking shell scripts.
20954 SHELL=$lt_SHELL
20955
20956 # An echo program that protects backslashes.
20957 ECHO=$lt_ECHO
20958
20959 # The PATH separator for the build system.
20960 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20961
20962 # The host system.
20963 host_alias=$host_alias
20964 host=$host
20965 host_os=$host_os
20966
20967 # The build system.
20968 build_alias=$build_alias
20969 build=$build
20970 build_os=$build_os
20971
20972 # A sed program that does not truncate output.
20973 SED=$lt_SED
20974
20975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20976 Xsed="\$SED -e 1s/^X//"
20977
20978 # A grep program that handles long lines.
20979 GREP=$lt_GREP
20980
20981 # An ERE matcher.
20982 EGREP=$lt_EGREP
20983
20984 # A literal string matcher.
20985 FGREP=$lt_FGREP
20986
20987 # A BSD- or MS-compatible name lister.
20988 NM=$lt_NM
20989
20990 # Whether we need soft or hard links.
20991 LN_S=$lt_LN_S
20992
20993 # What is the maximum length of a command?
20994 max_cmd_len=$max_cmd_len
20995
20996 # Object file suffix (normally "o").
20997 objext=$ac_objext
20998
20999 # Executable file suffix (normally "").
21000 exeext=$exeext
21001
21002 # whether the shell understands "unset".
21003 lt_unset=$lt_unset
21004
21005 # turn spaces into newlines.
21006 SP2NL=$lt_lt_SP2NL
21007
21008 # turn newlines into spaces.
21009 NL2SP=$lt_lt_NL2SP
21010
21011 # convert \$build file names to \$host format.
21012 to_host_file_cmd=$lt_cv_to_host_file_cmd
21013
21014 # convert \$build files to toolchain format.
21015 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21016
21017 # An object symbol dumper.
21018 OBJDUMP=$lt_OBJDUMP
21019
21020 # Method to check whether dependent libraries are shared objects.
21021 deplibs_check_method=$lt_deplibs_check_method
21022
21023 # Command to use when deplibs_check_method = "file_magic".
21024 file_magic_cmd=$lt_file_magic_cmd
21025
21026 # How to find potential files when deplibs_check_method = "file_magic".
21027 file_magic_glob=$lt_file_magic_glob
21028
21029 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21030 want_nocaseglob=$lt_want_nocaseglob
21031
21032 # DLL creation program.
21033 DLLTOOL=$lt_DLLTOOL
21034
21035 # Command to associate shared and link libraries.
21036 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21037
21038 # The archiver.
21039 AR=$lt_AR
21040
21041 # Flags to create an archive.
21042 AR_FLAGS=$lt_AR_FLAGS
21043
21044 # How to feed a file listing to the archiver.
21045 archiver_list_spec=$lt_archiver_list_spec
21046
21047 # A symbol stripping program.
21048 STRIP=$lt_STRIP
21049
21050 # Commands used to install an old-style archive.
21051 RANLIB=$lt_RANLIB
21052 old_postinstall_cmds=$lt_old_postinstall_cmds
21053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21054
21055 # Whether to use a lock for old archive extraction.
21056 lock_old_archive_extraction=$lock_old_archive_extraction
21057
21058 # A C compiler.
21059 LTCC=$lt_CC
21060
21061 # LTCC compiler flags.
21062 LTCFLAGS=$lt_CFLAGS
21063
21064 # Take the output of nm and produce a listing of raw symbols and C names.
21065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21066
21067 # Transform the output of nm in a proper C declaration.
21068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21069
21070 # Transform the output of nm into a list of symbols to manually relocate.
21071 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21072
21073 # Transform the output of nm in a C name address pair.
21074 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21075
21076 # Transform the output of nm in a C name address pair when lib prefix is needed.
21077 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21078
21079 # The name lister interface.
21080 nm_interface=$lt_lt_cv_nm_interface
21081
21082 # Specify filename containing input files for \$NM.
21083 nm_file_list_spec=$lt_nm_file_list_spec
21084
21085 # The root where to search for dependent libraries,and where our libraries should be installed.
21086 lt_sysroot=$lt_sysroot
21087
21088 # The name of the directory that contains temporary libtool files.
21089 objdir=$objdir
21090
21091 # Used to examine libraries when file_magic_cmd begins with "file".
21092 MAGIC_CMD=$MAGIC_CMD
21093
21094 # Must we lock files when doing compilation?
21095 need_locks=$lt_need_locks
21096
21097 # Manifest tool.
21098 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21099
21100 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21101 DSYMUTIL=$lt_DSYMUTIL
21102
21103 # Tool to change global to local symbols on Mac OS X.
21104 NMEDIT=$lt_NMEDIT
21105
21106 # Tool to manipulate fat objects and archives on Mac OS X.
21107 LIPO=$lt_LIPO
21108
21109 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21110 OTOOL=$lt_OTOOL
21111
21112 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21113 OTOOL64=$lt_OTOOL64
21114
21115 # Old archive suffix (normally "a").
21116 libext=$libext
21117
21118 # Shared library suffix (normally ".so").
21119 shrext_cmds=$lt_shrext_cmds
21120
21121 # The commands to extract the exported symbol list from a shared archive.
21122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21123
21124 # Variables whose values should be saved in libtool wrapper scripts and
21125 # restored at link time.
21126 variables_saved_for_relink=$lt_variables_saved_for_relink
21127
21128 # Do we need the "lib" prefix for modules?
21129 need_lib_prefix=$need_lib_prefix
21130
21131 # Do we need a version for libraries?
21132 need_version=$need_version
21133
21134 # Library versioning type.
21135 version_type=$version_type
21136
21137 # Shared library runtime path variable.
21138 runpath_var=$runpath_var
21139
21140 # Shared library path variable.
21141 shlibpath_var=$shlibpath_var
21142
21143 # Is shlibpath searched before the hard-coded library search path?
21144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21145
21146 # Format of library name prefix.
21147 libname_spec=$lt_libname_spec
21148
21149 # List of archive names.  First name is the real one, the rest are links.
21150 # The last name is the one that the linker finds with -lNAME
21151 library_names_spec=$lt_library_names_spec
21152
21153 # The coded name of the library, if different from the real name.
21154 soname_spec=$lt_soname_spec
21155
21156 # Permission mode override for installation of shared libraries.
21157 install_override_mode=$lt_install_override_mode
21158
21159 # Command to use after installation of a shared archive.
21160 postinstall_cmds=$lt_postinstall_cmds
21161
21162 # Command to use after uninstallation of a shared archive.
21163 postuninstall_cmds=$lt_postuninstall_cmds
21164
21165 # Commands used to finish a libtool library installation in a directory.
21166 finish_cmds=$lt_finish_cmds
21167
21168 # As "finish_cmds", except a single script fragment to be evaled but
21169 # not shown.
21170 finish_eval=$lt_finish_eval
21171
21172 # Whether we should hardcode library paths into libraries.
21173 hardcode_into_libs=$hardcode_into_libs
21174
21175 # Compile-time system search path for libraries.
21176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21177
21178 # Run-time system search path for libraries.
21179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21180
21181 # Whether dlopen is supported.
21182 dlopen_support=$enable_dlopen
21183
21184 # Whether dlopen of programs is supported.
21185 dlopen_self=$enable_dlopen_self
21186
21187 # Whether dlopen of statically linked programs is supported.
21188 dlopen_self_static=$enable_dlopen_self_static
21189
21190 # Commands to strip libraries.
21191 old_striplib=$lt_old_striplib
21192 striplib=$lt_striplib
21193
21194
21195 # The linker used to build libraries.
21196 LD=$lt_LD
21197
21198 # How to create reloadable object files.
21199 reload_flag=$lt_reload_flag
21200 reload_cmds=$lt_reload_cmds
21201
21202 # Commands used to build an old-style archive.
21203 old_archive_cmds=$lt_old_archive_cmds
21204
21205 # A language specific compiler.
21206 CC=$lt_compiler
21207
21208 # Is the compiler the GNU compiler?
21209 with_gcc=$GCC
21210
21211 # Compiler flag to turn off builtin functions.
21212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21213
21214 # Additional compiler flags for building library objects.
21215 pic_flag=$lt_lt_prog_compiler_pic
21216
21217 # How to pass a linker flag through the compiler.
21218 wl=$lt_lt_prog_compiler_wl
21219
21220 # Compiler flag to prevent dynamic linking.
21221 link_static_flag=$lt_lt_prog_compiler_static
21222
21223 # Does compiler simultaneously support -c and -o options?
21224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21225
21226 # Whether or not to add -lc for building shared libraries.
21227 build_libtool_need_lc=$archive_cmds_need_lc
21228
21229 # Whether or not to disallow shared libs when runtime libs are static.
21230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21231
21232 # Compiler flag to allow reflexive dlopens.
21233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21234
21235 # Compiler flag to generate shared objects directly from archives.
21236 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21237
21238 # Whether the compiler copes with passing no objects directly.
21239 compiler_needs_object=$lt_compiler_needs_object
21240
21241 # Create an old-style archive from a shared archive.
21242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21243
21244 # Create a temporary old-style archive to link instead of a shared archive.
21245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21246
21247 # Commands used to build a shared archive.
21248 archive_cmds=$lt_archive_cmds
21249 archive_expsym_cmds=$lt_archive_expsym_cmds
21250
21251 # Commands used to build a loadable module if different from building
21252 # a shared archive.
21253 module_cmds=$lt_module_cmds
21254 module_expsym_cmds=$lt_module_expsym_cmds
21255
21256 # Whether we are building with GNU ld or not.
21257 with_gnu_ld=$lt_with_gnu_ld
21258
21259 # Flag that allows shared libraries with undefined symbols to be built.
21260 allow_undefined_flag=$lt_allow_undefined_flag
21261
21262 # Flag that enforces no undefined symbols.
21263 no_undefined_flag=$lt_no_undefined_flag
21264
21265 # Flag to hardcode \$libdir into a binary during linking.
21266 # This must work even if \$libdir does not exist
21267 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21268
21269 # Whether we need a single "-rpath" flag with a separated argument.
21270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21271
21272 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21273 # DIR into the resulting binary.
21274 hardcode_direct=$hardcode_direct
21275
21276 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21277 # DIR into the resulting binary and the resulting library dependency is
21278 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21279 # library is relocated.
21280 hardcode_direct_absolute=$hardcode_direct_absolute
21281
21282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21283 # into the resulting binary.
21284 hardcode_minus_L=$hardcode_minus_L
21285
21286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21287 # into the resulting binary.
21288 hardcode_shlibpath_var=$hardcode_shlibpath_var
21289
21290 # Set to "yes" if building a shared library automatically hardcodes DIR
21291 # into the library and all subsequent libraries and executables linked
21292 # against it.
21293 hardcode_automatic=$hardcode_automatic
21294
21295 # Set to yes if linker adds runtime paths of dependent libraries
21296 # to runtime path list.
21297 inherit_rpath=$inherit_rpath
21298
21299 # Whether libtool must link a program against all its dependency libraries.
21300 link_all_deplibs=$link_all_deplibs
21301
21302 # Set to "yes" if exported symbols are required.
21303 always_export_symbols=$always_export_symbols
21304
21305 # The commands to list exported symbols.
21306 export_symbols_cmds=$lt_export_symbols_cmds
21307
21308 # Symbols that should not be listed in the preloaded symbols.
21309 exclude_expsyms=$lt_exclude_expsyms
21310
21311 # Symbols that must always be exported.
21312 include_expsyms=$lt_include_expsyms
21313
21314 # Commands necessary for linking programs (against libraries) with templates.
21315 prelink_cmds=$lt_prelink_cmds
21316
21317 # Commands necessary for finishing linking programs.
21318 postlink_cmds=$lt_postlink_cmds
21319
21320 # Specify filename containing input files.
21321 file_list_spec=$lt_file_list_spec
21322
21323 # How to hardcode a shared library path into an executable.
21324 hardcode_action=$hardcode_action
21325
21326 # The directories searched by this compiler when creating a shared library.
21327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21328
21329 # Dependencies to place before and after the objects being linked to
21330 # create a shared library.
21331 predep_objects=$lt_predep_objects
21332 postdep_objects=$lt_postdep_objects
21333 predeps=$lt_predeps
21334 postdeps=$lt_postdeps
21335
21336 # The library search path used internally by the compiler when linking
21337 # a shared library.
21338 compiler_lib_search_path=$lt_compiler_lib_search_path
21339
21340 # ### END LIBTOOL CONFIG
21341
21342 _LT_EOF
21343
21344   case $host_os in
21345   aix3*)
21346     cat <<\_LT_EOF >> "$cfgfile"
21347 # AIX sometimes has problems with the GCC collect2 program.  For some
21348 # reason, if we set the COLLECT_NAMES environment variable, the problems
21349 # vanish in a puff of smoke.
21350 if test set != "${COLLECT_NAMES+set}"; then
21351   COLLECT_NAMES=
21352   export COLLECT_NAMES
21353 fi
21354 _LT_EOF
21355     ;;
21356   esac
21357
21358
21359 ltmain=$ac_aux_dir/ltmain.sh
21360
21361
21362   # We use sed instead of cat because bash on DJGPP gets confused if
21363   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21364   # text mode, it properly converts lines to CR/LF.  This bash problem
21365   # is reportedly fixed, but why not run on old versions too?
21366   sed '$q' "$ltmain" >> "$cfgfile" \
21367      || (rm -f "$cfgfile"; exit 1)
21368
21369    mv -f "$cfgfile" "$ofile" ||
21370     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21371   chmod +x "$ofile"
21372
21373
21374     cat <<_LT_EOF >> "$ofile"
21375
21376 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21377
21378 # The linker used to build libraries.
21379 LD=$lt_LD_CXX
21380
21381 # How to create reloadable object files.
21382 reload_flag=$lt_reload_flag_CXX
21383 reload_cmds=$lt_reload_cmds_CXX
21384
21385 # Commands used to build an old-style archive.
21386 old_archive_cmds=$lt_old_archive_cmds_CXX
21387
21388 # A language specific compiler.
21389 CC=$lt_compiler_CXX
21390
21391 # Is the compiler the GNU compiler?
21392 with_gcc=$GCC_CXX
21393
21394 # Compiler flag to turn off builtin functions.
21395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21396
21397 # Additional compiler flags for building library objects.
21398 pic_flag=$lt_lt_prog_compiler_pic_CXX
21399
21400 # How to pass a linker flag through the compiler.
21401 wl=$lt_lt_prog_compiler_wl_CXX
21402
21403 # Compiler flag to prevent dynamic linking.
21404 link_static_flag=$lt_lt_prog_compiler_static_CXX
21405
21406 # Does compiler simultaneously support -c and -o options?
21407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21408
21409 # Whether or not to add -lc for building shared libraries.
21410 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21411
21412 # Whether or not to disallow shared libs when runtime libs are static.
21413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21414
21415 # Compiler flag to allow reflexive dlopens.
21416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21417
21418 # Compiler flag to generate shared objects directly from archives.
21419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21420
21421 # Whether the compiler copes with passing no objects directly.
21422 compiler_needs_object=$lt_compiler_needs_object_CXX
21423
21424 # Create an old-style archive from a shared archive.
21425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21426
21427 # Create a temporary old-style archive to link instead of a shared archive.
21428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21429
21430 # Commands used to build a shared archive.
21431 archive_cmds=$lt_archive_cmds_CXX
21432 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21433
21434 # Commands used to build a loadable module if different from building
21435 # a shared archive.
21436 module_cmds=$lt_module_cmds_CXX
21437 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21438
21439 # Whether we are building with GNU ld or not.
21440 with_gnu_ld=$lt_with_gnu_ld_CXX
21441
21442 # Flag that allows shared libraries with undefined symbols to be built.
21443 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21444
21445 # Flag that enforces no undefined symbols.
21446 no_undefined_flag=$lt_no_undefined_flag_CXX
21447
21448 # Flag to hardcode \$libdir into a binary during linking.
21449 # This must work even if \$libdir does not exist
21450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21451
21452 # Whether we need a single "-rpath" flag with a separated argument.
21453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21454
21455 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21456 # DIR into the resulting binary.
21457 hardcode_direct=$hardcode_direct_CXX
21458
21459 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21460 # DIR into the resulting binary and the resulting library dependency is
21461 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21462 # library is relocated.
21463 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21464
21465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21466 # into the resulting binary.
21467 hardcode_minus_L=$hardcode_minus_L_CXX
21468
21469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21470 # into the resulting binary.
21471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21472
21473 # Set to "yes" if building a shared library automatically hardcodes DIR
21474 # into the library and all subsequent libraries and executables linked
21475 # against it.
21476 hardcode_automatic=$hardcode_automatic_CXX
21477
21478 # Set to yes if linker adds runtime paths of dependent libraries
21479 # to runtime path list.
21480 inherit_rpath=$inherit_rpath_CXX
21481
21482 # Whether libtool must link a program against all its dependency libraries.
21483 link_all_deplibs=$link_all_deplibs_CXX
21484
21485 # Set to "yes" if exported symbols are required.
21486 always_export_symbols=$always_export_symbols_CXX
21487
21488 # The commands to list exported symbols.
21489 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21490
21491 # Symbols that should not be listed in the preloaded symbols.
21492 exclude_expsyms=$lt_exclude_expsyms_CXX
21493
21494 # Symbols that must always be exported.
21495 include_expsyms=$lt_include_expsyms_CXX
21496
21497 # Commands necessary for linking programs (against libraries) with templates.
21498 prelink_cmds=$lt_prelink_cmds_CXX
21499
21500 # Commands necessary for finishing linking programs.
21501 postlink_cmds=$lt_postlink_cmds_CXX
21502
21503 # Specify filename containing input files.
21504 file_list_spec=$lt_file_list_spec_CXX
21505
21506 # How to hardcode a shared library path into an executable.
21507 hardcode_action=$hardcode_action_CXX
21508
21509 # The directories searched by this compiler when creating a shared library.
21510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21511
21512 # Dependencies to place before and after the objects being linked to
21513 # create a shared library.
21514 predep_objects=$lt_predep_objects_CXX
21515 postdep_objects=$lt_postdep_objects_CXX
21516 predeps=$lt_predeps_CXX
21517 postdeps=$lt_postdeps_CXX
21518
21519 # The library search path used internally by the compiler when linking
21520 # a shared library.
21521 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21522
21523 # ### END LIBTOOL TAG CONFIG: CXX
21524 _LT_EOF
21525
21526  ;;
21527
21528   esac
21529 done # for ac_tag
21530
21531
21532 as_fn_exit 0
21533 _ACEOF
21534 ac_clean_files=$ac_clean_files_save
21535
21536 test $ac_write_fail = 0 ||
21537   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21538
21539
21540 # configure is writing to config.log, and then calls config.status.
21541 # config.status does its own redirection, appending to config.log.
21542 # Unfortunately, on DOS this fails, as config.log is still kept open
21543 # by configure, so config.status won't be able to write to it; its
21544 # output is simply discarded.  So we exec the FD to /dev/null,
21545 # effectively closing config.log, so it can be properly (re)opened and
21546 # appended to by config.status.  When coming back to configure, we
21547 # need to make the FD available again.
21548 if test "$no_create" != yes; then
21549   ac_cs_success=:
21550   ac_config_status_args=
21551   test "$silent" = yes &&
21552     ac_config_status_args="$ac_config_status_args --quiet"
21553   exec 5>/dev/null
21554   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21555   exec 5>>config.log
21556   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21557   # would make configure fail if this is the last instruction.
21558   $ac_cs_success || as_fn_exit 1
21559 fi
21560 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21562 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21563 fi
21564
21565
21566 { $as_echo "$as_me:${as_lineno-$LINENO}:
21567
21568 Build configuration:
21569
21570 Unicode callbacks (you want at least one):
21571         Glib:                   ${have_glib}
21572         ICU:                    ${have_icu}
21573         UCDN:                   ${have_ucdn}
21574
21575 Font callbacks (the more the better):
21576         FreeType:               ${have_freetype}
21577
21578 Tools used for command-line utilities:
21579         Cairo:                  ${have_cairo}
21580
21581 Additional shapers (the more the better):
21582         Graphite2:              ${have_graphite2}
21583
21584 Platform shapers (not normally needed):
21585         CoreText:               ${have_coretext}
21586         Uniscribe:              ${have_uniscribe}
21587
21588 Other features:
21589         Documentation:          ${have_gtk_doc}
21590         GObject bindings:       ${have_gobject}
21591         Introspection:          ${have_introspection}
21592 " >&5
21593 $as_echo "$as_me:
21594
21595 Build configuration:
21596
21597 Unicode callbacks (you want at least one):
21598         Glib:                   ${have_glib}
21599         ICU:                    ${have_icu}
21600         UCDN:                   ${have_ucdn}
21601
21602 Font callbacks (the more the better):
21603         FreeType:               ${have_freetype}
21604
21605 Tools used for command-line utilities:
21606         Cairo:                  ${have_cairo}
21607
21608 Additional shapers (the more the better):
21609         Graphite2:              ${have_graphite2}
21610
21611 Platform shapers (not normally needed):
21612         CoreText:               ${have_coretext}
21613         Uniscribe:              ${have_uniscribe}
21614
21615 Other features:
21616         Documentation:          ${have_gtk_doc}
21617         GObject bindings:       ${have_gobject}
21618         Introspection:          ${have_introspection}
21619 " >&6;}